diff --git a/audits/Curvy 2026 Audit Report Final.pdf b/audits/Curvy 2026 Audit Report Final.pdf
new file mode 100644
index 0000000..56a0d57
Binary files /dev/null and b/audits/Curvy 2026 Audit Report Final.pdf differ
diff --git a/contracts/aggregator-alpha/CHANGELOG.md b/contracts/aggregator-alpha/CHANGELOG.md
index a8b61a5..1a24744 100644
--- a/contracts/aggregator-alpha/CHANGELOG.md
+++ b/contracts/aggregator-alpha/CHANGELOG.md
@@ -1,110 +1,43 @@
# CurvyAggregatorAlpha Changelog
-## V6
-
-### Fee Deduction in AutoShield
-
-- `autoShield` now calculates a deposit fee: `note.amount * curvyVault.depositFee() / 10000`
-- The note committed to the Merkle tree uses `note.amount - feeAmount` instead of `note.amount`, so the committed note reflects the post-fee amount
-- Vault interface upgraded from `ICurvyVaultV2` to `ICurvyVaultV3`
-- `curvyVault` state variable type changed from `ICurvyVaultV2` to `ICurvyVaultV3`
-
----
-
-## V5
-
-### Meta-Transaction Removal & Circuit Layout Change
-
-#### Removed
-- **`depositNote` function removed** — the meta-transaction-based deposit path (with EIP-712 signatures) is gone entirely
-
-#### Changed: `autoShield`
-- `tokenAddress` parameter removed from signature — now resolved internally via `curvyVault.getTokenAddress(note.token)`
-- Access control changed from `require(...)` string to custom error `PortalNotRegistered()`
-- Vault deposit call changed from 4 args `(tokenAddress, address(this), note.amount, 0)` to 3 args `(tokenAddress, address(this), note.amount)` (gas sponsorship parameter removed), matching `ICurvyVaultV2`
-
-#### Changed: `commitDepositBatch`
-- Return type `bool success` removed (now returns nothing)
-- All `require(...)` replaced with custom errors: `NoteNotScheduledForDeposit()`, `InvalidNotesRoot()`, `InvalidProof()`
-
-#### Changed: `commitAggregationBatch`
-- Return type `bool` removed
-- All `require(...)` replaced with custom errors: `CurrentNoteTreeRootMismatch()`, `CurrentNullifierTreeRootMismatch()`, `InvalidProof()`
-
-#### Changed: `commitWithdrawalBatch`
-- `publicInputs` array size changed from `uint256[10]` to `uint256[9]` (new circuit layout)
-- Public input index offsets shifted: old notes tree root moved from `[2]` to `[1]`, old nullifiers tree root from `[3]` to `[2]`, withdrawal amounts from `[4+i]` to `[3+i]`, destinations from `[4+maxWithdrawals+i]` to `[3+maxWithdrawals+i]`
-- Withdrawal mechanism changed from `curvyVault.transfer(MetaTransaction(...))` to `curvyVault.withdraw(tokenId, destinationAddress, amount)` — direct withdraw instead of meta-transaction pattern
-- Fee collection step removed entirely
-- Return type `bool` removed
-- All `require(...)` replaced with custom errors
-
-#### Changed: View Functions
-- `getNullifierTreeRoot()` renamed to `getNullifiersTreeRoot()` (added "s")
-
-#### Interface & Imports
-- Interface changed from `ICurvyAggregatorAlpha` to `ICurvyAggregatorAlphaV2` (removes `tokenAddress` param from `autoShield`)
-- Vault interface changed from `ICurvyVault` to `ICurvyVaultV2`
-- `withdrawVerifier` type changed from `ICurvyWithdrawVerifier` to `ICurvyWithdrawVerifierV3`
-- Added `ICurvyWithdrawVerifierV3` import
-
-#### Comments
-- NatSpec comment added to `reset` documenting it as emergency-only
-- Improved comments on `maxAggregations`, `maxWithdrawals`, `_pendingIdsQueue`
-
----
-
-## V4
-
-### Portal Factory Integration
-
-#### Added
-- `IPortalFactory public portalFactory` state variable
-- Portal registration check in `autoShield`: `require(portalFactory.portalIsRegistered(msg.sender), ...)` — only registered portals can call `autoShield`
-
-#### Changed: `initialize`
-- `curvyVaultProxyAddress` parameter removed — vault must now be configured post-deployment via `updateConfig`
-- Default max values (`maxDeposits`, `maxWithdrawals`, `maxAggregations`) no longer set during initialization
-
-#### Changed: `updateConfig`
-- Parameter type changed from `AggregatorConfigurationUpdate` to `AggregatorConfigurationUpdateV2`
-- Added `portalFactory` configuration support
-
----
-
-## V3
-
-### AutoShield & SafeERC20
-
-#### Added
-- `autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable` — new function for portal-based deposits. Handles ERC-20 via `safeTransferFrom` + `forceApprove`, then calls `curvyVault.deposit`. Computes `noteId` via `PoseidonT4.hash`, adds to `_pendingIdsQueue`, emits `DepositedNote`. No access control in this version.
-- `NATIVE_ETH` constant (`0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`) — sentinel address for native ETH handling
-- `using SafeERC20 for IERC20` directive
-
-#### Changed: Inheritance
-- Added `ICurvyAggregatorAlpha` interface to inheritance chain
-
-#### New Imports
-- `ICurvyAggregatorAlpha` from `./ICurvyAggregatorAlpha.sol`
-- `SafeERC20` and `IERC20` from OpenZeppelin
-
----
-
-## V2
-
-### Withdrawal MetaTransaction Type Fix
-
-#### Changed: `commitWithdrawalBatch`
-- Per-user withdrawal transfers changed from `CurvyTypes.MetaTransactionType.Withdraw` to `CurvyTypes.MetaTransactionType.Transfer`
-
----
-
-## V1
-
-Initial release. Core aggregator contract with:
-- `initialize`, `_authorizeUpgrade`, `updateConfig`, `reset`
-- `depositNote` — meta-transaction-based note deposit with EIP-712 signature verification
-- `commitDepositBatch` — batch deposit commitment with ZK insertion proof verification
-- `commitAggregationBatch` — batch aggregation with ZK proof verification
-- `commitWithdrawalBatch` — batch withdrawal with ZK proof verification and vault transfers
-- View functions: `getNotesTreeRoot`, `getNullifierTreeRoot`, `getConfig`, `getPendingNoteIds`
+## V1 — Post-Audit Launch
+
+Initial production release. The pre-launch implementation chain (V1–V6) was
+flattened to a single audited V1 prior to this release; the historical
+versions and their changelog entries are preserved in the repository's git
+history.
+
+### Surface
+
+- UUPS-upgradeable proxy, owner-bound `_authorizeUpgrade` gated by
+ `AUTHORITY_ROLE`.
+- Single deposit entry point: `autoShield(CurvyTypes.Note)` — gated to
+ registered portals via `portalFactory.portalIsRegistered(msg.sender)`.
+ Deposit fee (`note.amount * curvyVault.depositFee() / 10000`) is deducted
+ before the note is committed to the Merkle tree.
+- ZK-verified batches: `commitDepositBatch`, `commitAggregationBatch`,
+ `commitWithdrawalBatch` — each verified against the corresponding verifier
+ configured via `updateConfig`.
+- Withdrawals delegated to `curvyVault.withdraw(tokenId, to, amount)` (direct,
+ no meta-transactions).
+- Role-based access control (OZ `AccessControlUpgradeable`):
+ - `AUTHORITY_ROLE` — upgrades, `updateConfig`.
+ - `OPERATOR_ROLE` — operational role (`forceWithdrawal`, …).
+
+### Production verifier set
+
+Trees of depth 30, dimensional suffixes encode circuit shape (not contract
+version):
+
+- `CurvyInsertionVerifierAlpha_2_30` — `maxDeposits = 2`
+- `CurvyAggregationVerifierAlpha_2_2_2_30` — `maxAggregations = 2`
+- `CurvyWithdrawVerifierAlpha_2_2_30` — `maxWithdrawals = 2`
+
+### Bootstrap path for existing proxies
+
+`bootstrapAccessControl()` is `external reinitializer(2) onlyOwner` and is
+called atomically via `upgradeToAndCall` during the V1 upgrade. It seeds
+`AUTHORITY_ROLE` and `OPERATOR_ROLE` on `owner()`. The pre-AC
+`_authorizeUpgrade(onlyOwner)` gate authorises the upgrade itself; the
+`reinitializer(2)` modifier guarantees the bootstrap can only run once per
+proxy.
diff --git a/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol b/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol
index 74ab325..a62ce68 100644
--- a/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol
+++ b/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol
@@ -1,41 +1,60 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.28;
-import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
-import { UUPSUpgradeable } from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
-import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
-import { PoseidonT4 } from "./utils/PoseidonT4.sol";
-
-import { ICurvyVault } from "../vault/ICurvyVault.sol";
+import "../portal/IPortalFactory.sol";
import {
- ICurvyInsertionVerifier,
- ICurvyAggregationVerifier,
- ICurvyWithdrawVerifier
+ICurvyInsertionVerifier,
+ICurvyAggregationVerifier,
+ICurvyWithdrawVerifier,
+ICurvyWithdrawVerifierV3
} from "./verifiers/ICurvyVerifiersAlpha.sol";
-import { CurvyTypes } from "../utils/Types.sol";
+import {CurvyTypes} from "../utils/Types.sol";
+import {ICurvyAggregatorAlpha} from "./ICurvyAggregatorAlpha.sol";
+import {ICurvyVault} from "../vault/ICurvyVault.sol";
+import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
+import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
+// audit(operator/authority): role-based access control via OZ AccessControl
+import {AccessControlUpgradeable} from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
+import {PoseidonT4} from "./utils/PoseidonT4.sol";
+import {SafeERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
+import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
/**
* @title CurvyAggregator
* @author Curvy Protocol (https://curvy.box)
* @dev Curvy's Aggregator contract.
*/
-contract CurvyAggregatorAlphaV1 is Initializable, UUPSUpgradeable, OwnableUpgradeable {
+contract CurvyAggregatorAlphaV1 is
+ ICurvyAggregatorAlpha,
+ Initializable,
+ UUPSUpgradeable,
+ OwnableUpgradeable,
+ AccessControlUpgradeable
+{
+ using SafeERC20 for IERC20;
//#region Events
event DepositedNote(uint256 noteId);
//#endregion
+ address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
+
+ // audit(operator/authority): operational role; rotated by AUTHORITY_ROLE
+ bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE");
+ // audit(operator/authority): security-critical role (upgrades, updateConfig)
+ bytes32 public constant AUTHORITY_ROLE = keccak256("AUTHORITY_ROLE");
+
//#region State variables
// Maximum number of notes to commit in deposit
uint256 public maxDeposits;
- // Maximum number of aggregations
+ // Maximum number of aggregations in one aggregation batch proof
uint256 public maxAggregations;
- // Maximum number of withdrawals
+ // Maximum number of withdrawals in one withdrawal batch proof
uint256 public maxWithdrawals;
- // Queue of note ids waiting for deposit commitment
+ // Queue of commited note ids waiting for proof verification and deposit batch commitment
mapping(uint256 => bool) private _pendingIdsQueue;
// Root of the tree containing all notes.
@@ -51,7 +70,10 @@ contract CurvyAggregatorAlphaV1 is Initializable, UUPSUpgradeable, OwnableUpgrad
//Curvy's aggregation verifier.
ICurvyAggregationVerifier public aggregationVerifier;
//Curvy's withdraw verifier.
- ICurvyWithdrawVerifier public withdrawVerifier;
+ ICurvyWithdrawVerifierV3 public withdrawVerifier;
+
+ // Curvy's portal factory contract;
+ IPortalFactory public portalFactory;
//#endregion
@@ -62,35 +84,57 @@ contract CurvyAggregatorAlphaV1 is Initializable, UUPSUpgradeable, OwnableUpgrad
_disableInitializers();
}
- function initialize(address initialOwner, address curvyVaultProxyAddress) public initializer {
- maxDeposits = 2;
- maxWithdrawals = 2;
- maxAggregations = 2;
-
+ function initialize(address initialOwner) public initializer {
__Ownable_init(initialOwner);
- curvyVault = ICurvyVault(curvyVaultProxyAddress);
+
+ // audit(operator/authority): seed roles on first deploy
+ __AccessControl_init();
+ _setRoleAdmin(OPERATOR_ROLE, AUTHORITY_ROLE);
+ _setRoleAdmin(AUTHORITY_ROLE, AUTHORITY_ROLE);
+ _grantRole(AUTHORITY_ROLE, initialOwner);
+ _grantRole(OPERATOR_ROLE, initialOwner);
+ }
+
+ // audit(operator/authority): bootstraps AccessControl on existing V6 proxies (initialize already ran).
+ // Pre-AC `_authorizeUpgrade` (onlyOwner) gates the upgrade itself; this reinitializer runs atomically
+ // with the upgrade and seeds OPERATOR_ROLE + AUTHORITY_ROLE on the current owner.
+ function bootstrapAccessControl() external reinitializer(2) onlyOwner {
+ __AccessControl_init();
+ _setRoleAdmin(OPERATOR_ROLE, AUTHORITY_ROLE);
+ _setRoleAdmin(AUTHORITY_ROLE, AUTHORITY_ROLE);
+ _grantRole(AUTHORITY_ROLE, owner());
+ _grantRole(OPERATOR_ROLE, owner());
}
- function _authorizeUpgrade(address) internal override onlyOwner {}
+ // audit(operator/authority): upgrades gated by AUTHORITY_ROLE
+ function _authorizeUpgrade(address) internal override onlyRole(AUTHORITY_ROLE) {}
//#endregion
//#region Owner functions
- function updateConfig(CurvyTypes.AggregatorConfigurationUpdate memory _update) external onlyOwner returns (bool) {
- if (_update.insertionVerifier != address(0)) {
+ // audit(operator/authority): authority-gated
+ function updateConfig(CurvyTypes.AggregatorConfigurationUpdate memory _update) external onlyRole(AUTHORITY_ROLE) returns (bool) {
+ // audit(2026-Q1): Missing Smart Contract address check - require code at address (also rejects EOAs and address(0))
+ if (_update.insertionVerifier.code.length > 0) {
insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);
}
- if (_update.aggregationVerifier != address(0)) {
+ // audit(2026-Q1): Missing Smart Contract address check
+ if (_update.aggregationVerifier.code.length > 0) {
aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);
}
- if (_update.withdrawVerifier != address(0)) {
- withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);
+ // audit(2026-Q1): Missing Smart Contract address check
+ if (_update.withdrawVerifier.code.length > 0) {
+ withdrawVerifier = ICurvyWithdrawVerifierV3(_update.withdrawVerifier);
}
- // TODO: We probably don't need this.
- if (_update.curvyVault != address(0)) {
+ // audit(2026-Q1): Missing Smart Contract address check
+ if (_update.curvyVault.code.length > 0) {
curvyVault = ICurvyVault(_update.curvyVault);
}
+ // audit(2026-Q1): Missing Smart Contract address check
+ if (_update.portalFactory.code.length > 0) {
+ portalFactory = IPortalFactory(_update.portalFactory);
+ }
if (_update.maxDeposits != 0) {
maxDeposits = _update.maxDeposits;
}
@@ -104,30 +148,27 @@ contract CurvyAggregatorAlphaV1 is Initializable, UUPSUpgradeable, OwnableUpgrad
return true;
}
- function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {
- _notesTreeRoot = newNotesTreeRoot;
- _nullifiersTreeRoot = newNullifiersTreeRoot;
- }
-
//#endregions
//#region Public functions
- function depositNote(address from, CurvyTypes.Note memory note, bytes memory signature) public {
- // TODO: Gas fee
- curvyVault.transfer(
- CurvyTypes.MetaTransaction(
- from,
- address(this),
- note.token,
- note.amount,
- 0,
- CurvyTypes.MetaTransactionType.Transfer
- ),
- signature
- );
-
- uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);
+ function autoShield(CurvyTypes.Note memory note) external payable {
+ // Only allow auto shielding of portals that were deployed through the portalFactory
+ if (!portalFactory.portalIsRegistered(msg.sender)) revert PortalNotRegistered();
+
+ // This will revert if tokenId is not found.
+ address tokenAddress = curvyVault.getTokenAddress(note.token);
+
+ if (tokenAddress != NATIVE_ETH) {
+ IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);
+ IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);
+ }
+
+ curvyVault.deposit{value: msg.value}(tokenAddress, address(this), note.amount);
+
+ uint256 feeAmount = note.amount * curvyVault.depositFee() / 10000;
+
+ uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount - feeAmount, note.token]);
_pendingIdsQueue[noteId] = true;
@@ -139,33 +180,28 @@ contract CurvyAggregatorAlphaV1 is Initializable, UUPSUpgradeable, OwnableUpgrad
uint256[2][2] memory proof_b,
uint256[2] memory proof_c,
uint256[4] memory publicInputs
- ) public returns (bool success) {
+ ) public {
for (uint256 i = 0; i < maxDeposits; i += 1) {
uint256 noteId = publicInputs[i];
if (noteId != 0) {
- require(
- _pendingIdsQueue[noteId],
- "CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!"
- );
+ if (!_pendingIdsQueue[noteId]) revert NoteNotScheduledForDeposit();
delete _pendingIdsQueue[noteId];
}
}
uint256 numPublicInputs = publicInputs.length;
- require(
- _notesTreeRoot == publicInputs[numPublicInputs - 2],
- "CurvyAggregator#commitDepositBatch: Invalid notes root!"
- );
+ // audit: emit before mutating root so the event captures the transition
+ uint256 oldNotesRoot = _notesTreeRoot;
+ if (oldNotesRoot != publicInputs[numPublicInputs - 2]) revert InvalidNotesRoot();
- require(
- insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),
- "CurvyAggregator#commitDepositBatch: Invalid proof!"
- );
+ if (!insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();
- _notesTreeRoot = publicInputs[numPublicInputs - 1];
+ uint256 newNotesRoot = publicInputs[numPublicInputs - 1];
+ _notesTreeRoot = newNotesRoot;
- return true;
+ // audit: batch-commit visibility for indexers
+ emit DepositBatchCommitted(oldNotesRoot, newNotesRoot);
}
function commitAggregationBatch(
@@ -173,52 +209,34 @@ contract CurvyAggregatorAlphaV1 is Initializable, UUPSUpgradeable, OwnableUpgrad
uint256[2][2] memory proof_b,
uint256[2] memory proof_c,
uint256[14] memory publicInputs
- ) public returns (bool) {
+ ) public {
uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];
uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];
uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];
uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];
- require(
- _notesTreeRoot == oldNotesTreeRoot,
- "CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!"
- );
- require(
- _nullifiersTreeRoot == oldNullifiersTreeRoot,
- "CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!"
- );
+ if (_notesTreeRoot != oldNotesTreeRoot) revert CurrentNoteTreeRootMismatch();
+ if (_nullifiersTreeRoot != oldNullifiersTreeRoot) revert CurrentNullifierTreeRootMismatch();
- require(
- aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),
- "CurvyAggregator#commitAggregationBatch: Invalid proof!"
- );
+ if (!aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();
// Update the roots of the trees
_notesTreeRoot = newNotesTreeRoot;
_nullifiersTreeRoot = newNullifiersTreeRoot;
-
- return true;
}
function commitWithdrawalBatch(
uint256[2] memory proof_a,
uint256[2][2] memory proof_b,
uint256[2] memory proof_c,
- uint256[10] memory publicInputs
- ) public returns (bool) {
- require(
- publicInputs[3] == _nullifiersTreeRoot,
- "CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!"
- );
- require(
- publicInputs[2] == _notesTreeRoot,
- "CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!"
- );
-
- require(
- withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),
- "CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!"
- );
+ uint256[9] memory publicInputs
+ ) public {
+ if (publicInputs[2] != _nullifiersTreeRoot) {
+ revert CurrentNullifierTreeRootMismatch();
+ }
+ if (publicInputs[1] != _notesTreeRoot) revert CurrentNoteTreeRootMismatch();
+
+ if (!withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();
// Update the root of the nullifier tree
_nullifiersTreeRoot = publicInputs[0];
@@ -227,34 +245,16 @@ contract CurvyAggregatorAlphaV1 is Initializable, UUPSUpgradeable, OwnableUpgrad
// Transfer withdrawals
for (uint256 i = 0; i < maxWithdrawals; i += 1) {
- uint256 amount = publicInputs[4 + i];
- address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));
+ uint256 amount = publicInputs[3 + i];
+ address destinationAddress = address(uint160(publicInputs[3 + maxWithdrawals + i]));
if (amount != 0) {
- curvyVault.transfer(
- CurvyTypes.MetaTransaction(
- address(this),
- destinationAddress,
- publicInputs[numPublicInputs - 1],
- amount,
- 0,
- CurvyTypes.MetaTransactionType.Withdraw
- )
+ curvyVault.withdraw(
+ publicInputs[numPublicInputs - 1], // tokenId
+ destinationAddress,
+ amount
);
}
}
-
- curvyVault.transfer(
- CurvyTypes.MetaTransaction(
- address(this),
- owner(),
- publicInputs[numPublicInputs - 1],
- publicInputs[1],
- 0,
- CurvyTypes.MetaTransactionType.Withdraw
- )
- );
-
- return true;
}
//#endregion
@@ -265,7 +265,7 @@ contract CurvyAggregatorAlphaV1 is Initializable, UUPSUpgradeable, OwnableUpgrad
return _notesTreeRoot;
}
- function getNullifierTreeRoot() external view returns (uint256) {
+ function getNullifiersTreeRoot() external view returns (uint256) {
return _nullifiersTreeRoot;
}
diff --git a/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol b/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol
deleted file mode 100644
index 0be59ed..0000000
--- a/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol
+++ /dev/null
@@ -1,278 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-pragma solidity ^0.8.28;
-
-import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
-import { UUPSUpgradeable } from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
-import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
-import { PoseidonT4 } from "./utils/PoseidonT4.sol";
-
-import { ICurvyVault } from "../vault/ICurvyVault.sol";
-import {
- ICurvyInsertionVerifier,
- ICurvyAggregationVerifier,
- ICurvyWithdrawVerifier
-} from "./verifiers/ICurvyVerifiersAlpha.sol";
-import { CurvyTypes } from "../utils/Types.sol";
-
-/**
- * @title CurvyAggregator
- * @author Curvy Protocol (https://curvy.box)
- * @dev Curvy's Aggregator contract.
- */
-contract CurvyAggregatorAlphaV2 is Initializable, UUPSUpgradeable, OwnableUpgradeable {
- //#region Events
-
- event DepositedNote(uint256 noteId);
-
- //#endregion
-
- //#region State variables
-
- // Maximum number of notes to commit in deposit
- uint256 public maxDeposits;
- // Maximum number of aggregations
- uint256 public maxAggregations;
- // Maximum number of withdrawals
- uint256 public maxWithdrawals;
-
- // Queue of note ids waiting for deposit commitment
- mapping(uint256 => bool) private _pendingIdsQueue;
-
- // Root of the tree containing all notes.
- uint256 private _notesTreeRoot;
- // Root of the tree contaiing all of the used nullifiers.
- uint256 private _nullifiersTreeRoot;
-
- // Curvy's vault contract
- ICurvyVault public curvyVault;
-
- //Curvy's insertion verifier.
- ICurvyInsertionVerifier public insertionVerifier;
- //Curvy's aggregation verifier.
- ICurvyAggregationVerifier public aggregationVerifier;
- //Curvy's withdraw verifier.
- ICurvyWithdrawVerifier public withdrawVerifier;
-
- //#endregion
-
- //#region Init functions
-
- /// @custom:oz-upgrades-unsafe-allow constructor
- constructor() {
- _disableInitializers();
- }
-
- function initialize(address initialOwner, address curvyVaultProxyAddress) public initializer {
- maxDeposits = 2;
- maxWithdrawals = 2;
- maxAggregations = 2;
-
- __Ownable_init(initialOwner);
- curvyVault = ICurvyVault(curvyVaultProxyAddress);
- }
-
- function _authorizeUpgrade(address) internal override onlyOwner {}
-
- //#endregion
-
- //#region Owner functions
-
- function updateConfig(CurvyTypes.AggregatorConfigurationUpdate memory _update) external onlyOwner returns (bool) {
- if (_update.insertionVerifier != address(0)) {
- insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);
- }
- if (_update.aggregationVerifier != address(0)) {
- aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);
- }
- if (_update.withdrawVerifier != address(0)) {
- withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);
- }
- // TODO: We probably don't need this.
- if (_update.curvyVault != address(0)) {
- curvyVault = ICurvyVault(_update.curvyVault);
- }
- if (_update.maxDeposits != 0) {
- maxDeposits = _update.maxDeposits;
- }
- if (_update.maxAggregations != 0) {
- maxAggregations = _update.maxAggregations;
- }
- if (_update.maxWithdrawals != 0) {
- maxWithdrawals = _update.maxWithdrawals;
- }
-
- return true;
- }
-
- function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {
- _notesTreeRoot = newNotesTreeRoot;
- _nullifiersTreeRoot = newNullifiersTreeRoot;
- }
-
- //#endregions
-
- //#region Public functions
-
- function depositNote(address from, CurvyTypes.Note memory note, bytes memory signature) public {
- // TODO: Gas fee
- curvyVault.transfer(
- CurvyTypes.MetaTransaction(
- from,
- address(this),
- note.token,
- note.amount,
- 0,
- CurvyTypes.MetaTransactionType.Transfer
- ),
- signature
- );
-
- uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);
-
- _pendingIdsQueue[noteId] = true;
-
- emit DepositedNote(noteId);
- }
-
- function commitDepositBatch(
- uint256[2] memory proof_a,
- uint256[2][2] memory proof_b,
- uint256[2] memory proof_c,
- uint256[4] memory publicInputs
- ) public returns (bool success) {
- for (uint256 i = 0; i < maxDeposits; i += 1) {
- uint256 noteId = publicInputs[i];
- if (noteId != 0) {
- require(
- _pendingIdsQueue[noteId],
- "CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!"
- );
- delete _pendingIdsQueue[noteId];
- }
- }
-
- uint256 numPublicInputs = publicInputs.length;
-
- require(
- _notesTreeRoot == publicInputs[numPublicInputs - 2],
- "CurvyAggregator#commitDepositBatch: Invalid notes root!"
- );
-
- require(
- insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),
- "CurvyAggregator#commitDepositBatch: Invalid proof!"
- );
-
- _notesTreeRoot = publicInputs[numPublicInputs - 1];
-
- return true;
- }
-
- function commitAggregationBatch(
- uint256[2] memory proof_a,
- uint256[2][2] memory proof_b,
- uint256[2] memory proof_c,
- uint256[14] memory publicInputs
- ) public returns (bool) {
- uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];
- uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];
- uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];
- uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];
-
- require(
- _notesTreeRoot == oldNotesTreeRoot,
- "CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!"
- );
- require(
- _nullifiersTreeRoot == oldNullifiersTreeRoot,
- "CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!"
- );
-
- require(
- aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),
- "CurvyAggregator#commitAggregationBatch: Invalid proof!"
- );
-
- // Update the roots of the trees
- _notesTreeRoot = newNotesTreeRoot;
- _nullifiersTreeRoot = newNullifiersTreeRoot;
-
- return true;
- }
-
- function commitWithdrawalBatch(
- uint256[2] memory proof_a,
- uint256[2][2] memory proof_b,
- uint256[2] memory proof_c,
- uint256[10] memory publicInputs
- ) public returns (bool) {
- require(
- publicInputs[3] == _nullifiersTreeRoot,
- "CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!"
- );
- require(
- publicInputs[2] == _notesTreeRoot,
- "CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!"
- );
-
- require(
- withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),
- "CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!"
- );
-
- // Update the root of the nullifier tree
- _nullifiersTreeRoot = publicInputs[0];
-
- uint256 numPublicInputs = publicInputs.length;
-
- // Transfer withdrawals
- for (uint256 i = 0; i < maxWithdrawals; i += 1) {
- uint256 amount = publicInputs[4 + i];
- address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));
- if (amount != 0) {
- curvyVault.transfer(
- CurvyTypes.MetaTransaction(
- address(this),
- destinationAddress,
- publicInputs[numPublicInputs - 1],
- amount,
- 0,
- CurvyTypes.MetaTransactionType.Transfer
- )
- );
- }
- }
-
- // Fee collection
- curvyVault.transfer(
- CurvyTypes.MetaTransaction(
- address(this),
- owner(),
- publicInputs[numPublicInputs - 1],
- publicInputs[1],
- 0,
- CurvyTypes.MetaTransactionType.Transfer
- )
- );
-
- return true;
- }
-
- //#endregion
-
- //#region View functions
-
- function getNoteTreeRoot() external view returns (uint256) {
- return _notesTreeRoot;
- }
-
- function getNullifierTreeRoot() external view returns (uint256) {
- return _nullifiersTreeRoot;
- }
-
- function noteInQueue(uint256 noteId) external view returns (bool) {
- return _pendingIdsQueue[noteId];
- }
-
- //#endregion
-}
diff --git a/contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol b/contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol
deleted file mode 100644
index a840638..0000000
--- a/contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol
+++ /dev/null
@@ -1,298 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-pragma solidity ^0.8.28;
-
-import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
-import { UUPSUpgradeable } from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
-import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
-import { PoseidonT4 } from "./utils/PoseidonT4.sol";
-
-import { ICurvyAggregatorAlpha } from "./ICurvyAggregatorAlpha.sol";
-import { ICurvyVault } from "../vault/ICurvyVault.sol";
-import {
- ICurvyInsertionVerifier,
- ICurvyAggregationVerifier,
- ICurvyWithdrawVerifier
-} from "./verifiers/ICurvyVerifiersAlpha.sol";
-import { CurvyTypes } from "../utils/Types.sol";
-import { SafeERC20, IERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
-
-/**
- * @title CurvyAggregator
- * @author Curvy Protocol (https://curvy.box)
- * @dev Curvy's Aggregator contract.
- */
-contract CurvyAggregatorAlphaV3 is ICurvyAggregatorAlpha, Initializable, UUPSUpgradeable, OwnableUpgradeable {
- using SafeERC20 for IERC20;
- //#region Events
-
- event DepositedNote(uint256 noteId);
-
- //#endregion
-
- address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
-
- //#region State variables
-
- // Maximum number of notes to commit in deposit
- uint256 public maxDeposits;
- // Maximum number of aggregations
- uint256 public maxAggregations;
- // Maximum number of withdrawals
- uint256 public maxWithdrawals;
-
- // Queue of note ids waiting for deposit commitment
- mapping(uint256 => bool) private _pendingIdsQueue;
-
- // Root of the tree containing all notes.
- uint256 private _notesTreeRoot;
- // Root of the tree contaiing all of the used nullifiers.
- uint256 private _nullifiersTreeRoot;
-
- // Curvy's vault contract
- ICurvyVault public curvyVault;
-
- //Curvy's insertion verifier.
- ICurvyInsertionVerifier public insertionVerifier;
- //Curvy's aggregation verifier.
- ICurvyAggregationVerifier public aggregationVerifier;
- //Curvy's withdraw verifier.
- ICurvyWithdrawVerifier public withdrawVerifier;
-
- //#endregion
-
- //#region Init functions
-
- /// @custom:oz-upgrades-unsafe-allow constructor
- constructor() {
- _disableInitializers();
- }
-
- function initialize(address initialOwner, address curvyVaultProxyAddress) public initializer {
- maxDeposits = 2;
- maxWithdrawals = 2;
- maxAggregations = 2;
-
- __Ownable_init(initialOwner);
- curvyVault = ICurvyVault(curvyVaultProxyAddress);
- }
-
- function _authorizeUpgrade(address) internal override onlyOwner {}
-
- //#endregion
-
- //#region Owner functions
-
- function updateConfig(CurvyTypes.AggregatorConfigurationUpdate memory _update) external onlyOwner returns (bool) {
- if (_update.insertionVerifier != address(0)) {
- insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);
- }
- if (_update.aggregationVerifier != address(0)) {
- aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);
- }
- if (_update.withdrawVerifier != address(0)) {
- withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);
- }
- // TODO: We probably don't need this.
- if (_update.curvyVault != address(0)) {
- curvyVault = ICurvyVault(_update.curvyVault);
- }
- if (_update.maxDeposits != 0) {
- maxDeposits = _update.maxDeposits;
- }
- if (_update.maxAggregations != 0) {
- maxAggregations = _update.maxAggregations;
- }
- if (_update.maxWithdrawals != 0) {
- maxWithdrawals = _update.maxWithdrawals;
- }
-
- return true;
- }
-
- function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {
- _notesTreeRoot = newNotesTreeRoot;
- _nullifiersTreeRoot = newNullifiersTreeRoot;
- }
-
- //#endregions
-
- //#region Public functions
-
- function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable {
- if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {
- IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);
- IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);
- }
-
- curvyVault.deposit{ value: msg.value }(tokenAddress, address(this), note.amount, 0);
-
- uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);
-
- _pendingIdsQueue[noteId] = true;
-
- emit DepositedNote(noteId);
- }
-
- function depositNote(address from, CurvyTypes.Note memory note, bytes memory signature) public {
- // TODO: Gas fee
- curvyVault.transfer(
- CurvyTypes.MetaTransaction(
- from,
- address(this),
- note.token,
- note.amount,
- 0,
- CurvyTypes.MetaTransactionType.Transfer
- ),
- signature
- );
-
- uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);
-
- _pendingIdsQueue[noteId] = true;
-
- emit DepositedNote(noteId);
- }
-
- function commitDepositBatch(
- uint256[2] memory proof_a,
- uint256[2][2] memory proof_b,
- uint256[2] memory proof_c,
- uint256[4] memory publicInputs
- ) public returns (bool success) {
- for (uint256 i = 0; i < maxDeposits; i += 1) {
- uint256 noteId = publicInputs[i];
- if (noteId != 0) {
- require(
- _pendingIdsQueue[noteId],
- "CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!"
- );
- delete _pendingIdsQueue[noteId];
- }
- }
-
- uint256 numPublicInputs = publicInputs.length;
-
- require(
- _notesTreeRoot == publicInputs[numPublicInputs - 2],
- "CurvyAggregator#commitDepositBatch: Invalid notes root!"
- );
-
- require(
- insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),
- "CurvyAggregator#commitDepositBatch: Invalid proof!"
- );
-
- _notesTreeRoot = publicInputs[numPublicInputs - 1];
-
- return true;
- }
-
- function commitAggregationBatch(
- uint256[2] memory proof_a,
- uint256[2][2] memory proof_b,
- uint256[2] memory proof_c,
- uint256[14] memory publicInputs
- ) public returns (bool) {
- uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];
- uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];
- uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];
- uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];
-
- require(
- _notesTreeRoot == oldNotesTreeRoot,
- "CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!"
- );
- require(
- _nullifiersTreeRoot == oldNullifiersTreeRoot,
- "CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!"
- );
-
- require(
- aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),
- "CurvyAggregator#commitAggregationBatch: Invalid proof!"
- );
-
- // Update the roots of the trees
- _notesTreeRoot = newNotesTreeRoot;
- _nullifiersTreeRoot = newNullifiersTreeRoot;
-
- return true;
- }
-
- function commitWithdrawalBatch(
- uint256[2] memory proof_a,
- uint256[2][2] memory proof_b,
- uint256[2] memory proof_c,
- uint256[10] memory publicInputs
- ) public returns (bool) {
- require(
- publicInputs[3] == _nullifiersTreeRoot,
- "CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!"
- );
- require(
- publicInputs[2] == _notesTreeRoot,
- "CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!"
- );
-
- require(
- withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),
- "CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!"
- );
-
- // Update the root of the nullifier tree
- _nullifiersTreeRoot = publicInputs[0];
-
- uint256 numPublicInputs = publicInputs.length;
-
- // Transfer withdrawals
- for (uint256 i = 0; i < maxWithdrawals; i += 1) {
- uint256 amount = publicInputs[4 + i];
- address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));
- if (amount != 0) {
- curvyVault.transfer(
- CurvyTypes.MetaTransaction(
- address(this),
- destinationAddress,
- publicInputs[numPublicInputs - 1],
- amount,
- 0,
- CurvyTypes.MetaTransactionType.Transfer
- )
- );
- }
- }
-
- // Fee collection
- curvyVault.transfer(
- CurvyTypes.MetaTransaction(
- address(this),
- owner(),
- publicInputs[numPublicInputs - 1],
- publicInputs[1],
- 0,
- CurvyTypes.MetaTransactionType.Transfer
- )
- );
-
- return true;
- }
-
- //#endregion
-
- //#region View functions
-
- function getNoteTreeRoot() external view returns (uint256) {
- return _notesTreeRoot;
- }
-
- function getNullifierTreeRoot() external view returns (uint256) {
- return _nullifiersTreeRoot;
- }
-
- function noteInQueue(uint256 noteId) external view returns (bool) {
- return _pendingIdsQueue[noteId];
- }
-
- //#endregion
-}
diff --git a/contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol b/contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol
deleted file mode 100644
index 33cf6e0..0000000
--- a/contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol
+++ /dev/null
@@ -1,303 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-pragma solidity ^0.8.28;
-
-import "../portal/IPortalFactory.sol";
-import {
-ICurvyInsertionVerifier,
-ICurvyAggregationVerifier,
-ICurvyWithdrawVerifier
-} from "./verifiers/ICurvyVerifiersAlpha.sol";
-import {CurvyTypes} from "../utils/Types.sol";
-import {ICurvyAggregatorAlpha} from "./ICurvyAggregatorAlpha.sol";
-
-import {ICurvyVault} from "../vault/ICurvyVault.sol";
-import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
-import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
-import {PoseidonT4} from "./utils/PoseidonT4.sol";
-import { SafeERC20, IERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
-import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
-
-/**
- * @title CurvyAggregator
- * @author Curvy Protocol (https://curvy.box)
- * @dev Curvy's Aggregator contract.
- */
-contract CurvyAggregatorAlphaV4 is ICurvyAggregatorAlpha, Initializable, UUPSUpgradeable, OwnableUpgradeable {
- using SafeERC20 for IERC20;
- //#region Events
-
- event DepositedNote(uint256 noteId);
-
- //#endregion
-
- address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
-
- //#region State variables
-
- // Maximum number of notes to commit in deposit
- uint256 public maxDeposits;
- // Maximum number of aggregations
- uint256 public maxAggregations;
- // Maximum number of withdrawals
- uint256 public maxWithdrawals;
-
- // Queue of note ids waiting for deposit commitment
- mapping(uint256 => bool) private _pendingIdsQueue;
-
- // Root of the tree containing all notes.
- uint256 private _notesTreeRoot;
- // Root of the tree contaiing all of the used nullifiers.
- uint256 private _nullifiersTreeRoot;
-
- // Curvy's vault contract
- ICurvyVault public curvyVault;
-
- //Curvy's insertion verifier.
- ICurvyInsertionVerifier public insertionVerifier;
- //Curvy's aggregation verifier.
- ICurvyAggregationVerifier public aggregationVerifier;
- //Curvy's withdraw verifier.
- ICurvyWithdrawVerifier public withdrawVerifier;
-
- // Curvy's portal factory contract;
- IPortalFactory public portalFactory;
-
-
- //#endregion
-
- //#region Init functions
-
- /// @custom:oz-upgrades-unsafe-allow constructor
- constructor() {
- _disableInitializers();
- }
-
- function initialize(address initialOwner) public initializer {
- __Ownable_init(initialOwner);
- }
-
- function _authorizeUpgrade(address) internal override onlyOwner {}
-
- //#endregion
-
- //#region Owner functions
-
- function updateConfig(CurvyTypes.AggregatorConfigurationUpdateV2 memory _update) external onlyOwner returns (bool) {
- if (_update.insertionVerifier != address(0)) {
- insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);
- }
- if (_update.aggregationVerifier != address(0)) {
- aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);
- }
- if (_update.withdrawVerifier != address(0)) {
- withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);
- }
- if (_update.curvyVault != address(0)) {
- curvyVault = ICurvyVault(_update.curvyVault);
- }
- if (_update.portalFactory != address(0)) {
- portalFactory = IPortalFactory(_update.portalFactory);
- }
- if (_update.maxDeposits != 0) {
- maxDeposits = _update.maxDeposits;
- }
- if (_update.maxAggregations != 0) {
- maxAggregations = _update.maxAggregations;
- }
- if (_update.maxWithdrawals != 0) {
- maxWithdrawals = _update.maxWithdrawals;
- }
-
- return true;
- }
-
- function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {
- _notesTreeRoot = newNotesTreeRoot;
- _nullifiersTreeRoot = newNullifiersTreeRoot;
- }
-
- //#endregions
-
- //#region Public functions
-
- function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable {
- // Only allow auto shielding of portals that were deployed through the portalFactory
- require(portalFactory.portalIsRegistered(msg.sender), "CurvyAggregator: portal is not registered");
-
- if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {
- IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);
- IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);
- }
-
- curvyVault.deposit{ value: msg.value }(tokenAddress, address(this), note.amount, 0);
-
- uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);
-
- _pendingIdsQueue[noteId] = true;
-
- emit DepositedNote(noteId);
- }
-
- function depositNote(address from, CurvyTypes.Note memory note, bytes memory signature) public {
- // TODO: Gas fee
- curvyVault.transfer(
- CurvyTypes.MetaTransaction(
- from,
- address(this),
- note.token,
- note.amount,
- 0,
- CurvyTypes.MetaTransactionType.Transfer
- ),
- signature
- );
-
- uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);
-
- _pendingIdsQueue[noteId] = true;
-
- emit DepositedNote(noteId);
- }
-
- function commitDepositBatch(
- uint256[2] memory proof_a,
- uint256[2][2] memory proof_b,
- uint256[2] memory proof_c,
- uint256[4] memory publicInputs
- ) public returns (bool success) {
- for (uint256 i = 0; i < maxDeposits; i += 1) {
- uint256 noteId = publicInputs[i];
- if (noteId != 0) {
- require(
- _pendingIdsQueue[noteId],
- "CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!"
- );
- delete _pendingIdsQueue[noteId];
- }
- }
-
- uint256 numPublicInputs = publicInputs.length;
-
- require(
- _notesTreeRoot == publicInputs[numPublicInputs - 2],
- "CurvyAggregator#commitDepositBatch: Invalid notes root!"
- );
-
- require(
- insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),
- "CurvyAggregator#commitDepositBatch: Invalid proof!"
- );
-
- _notesTreeRoot = publicInputs[numPublicInputs - 1];
-
- return true;
- }
-
- function commitAggregationBatch(
- uint256[2] memory proof_a,
- uint256[2][2] memory proof_b,
- uint256[2] memory proof_c,
- uint256[14] memory publicInputs
- ) public returns (bool) {
- uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];
- uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];
- uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];
- uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];
-
- require(
- _notesTreeRoot == oldNotesTreeRoot,
- "CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!"
- );
- require(
- _nullifiersTreeRoot == oldNullifiersTreeRoot,
- "CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!"
- );
-
- require(
- aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),
- "CurvyAggregator#commitAggregationBatch: Invalid proof!"
- );
-
- // Update the roots of the trees
- _notesTreeRoot = newNotesTreeRoot;
- _nullifiersTreeRoot = newNullifiersTreeRoot;
-
- return true;
- }
-
- function commitWithdrawalBatch(
- uint256[2] memory proof_a,
- uint256[2][2] memory proof_b,
- uint256[2] memory proof_c,
- uint256[10] memory publicInputs
- ) public returns (bool) {
- require(
- publicInputs[3] == _nullifiersTreeRoot,
- "CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!"
- );
- require(
- publicInputs[2] == _notesTreeRoot,
- "CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!"
- );
-
- require(
- withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),
- "CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!"
- );
-
- // Update the root of the nullifier tree
- _nullifiersTreeRoot = publicInputs[0];
-
- uint256 numPublicInputs = publicInputs.length;
-
- // Transfer withdrawals
- for (uint256 i = 0; i < maxWithdrawals; i += 1) {
- uint256 amount = publicInputs[4 + i];
- address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));
- if (amount != 0) {
- curvyVault.transfer(
- CurvyTypes.MetaTransaction(
- address(this),
- destinationAddress,
- publicInputs[numPublicInputs - 1],
- amount,
- 0,
- CurvyTypes.MetaTransactionType.Transfer
- )
- );
- }
- }
-
- // Fee collection
- curvyVault.transfer(
- CurvyTypes.MetaTransaction(
- address(this),
- owner(),
- publicInputs[numPublicInputs - 1],
- publicInputs[1],
- 0,
- CurvyTypes.MetaTransactionType.Transfer
- )
- );
-
- return true;
- }
-
- //#endregion
-
- //#region View functions
-
- function getNoteTreeRoot() external view returns (uint256) {
- return _notesTreeRoot;
- }
-
- function getNullifierTreeRoot() external view returns (uint256) {
- return _nullifiersTreeRoot;
- }
-
- function noteInQueue(uint256 noteId) external view returns (bool) {
- return _pendingIdsQueue[noteId];
- }
-
- //#endregion
-}
diff --git a/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol b/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol
deleted file mode 100644
index 8a74b16..0000000
--- a/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol
+++ /dev/null
@@ -1,242 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-pragma solidity ^0.8.28;
-
-import "../portal/IPortalFactory.sol";
-import {
- ICurvyInsertionVerifier,
- ICurvyAggregationVerifier,
- ICurvyWithdrawVerifier,
- ICurvyWithdrawVerifierV3
-} from "./verifiers/ICurvyVerifiersAlpha.sol";
-import {CurvyTypes} from "../utils/Types.sol";
-import {ICurvyAggregatorAlphaV2} from "./ICurvyAggregatorAlphaV2.sol";
-import {ICurvyVault} from "../vault/ICurvyVault.sol";
-import {ICurvyVaultV2} from "../vault/ICurvyVaultV2.sol";
-import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
-import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
-import {PoseidonT4} from "./utils/PoseidonT4.sol";
-import {SafeERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
-import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
-
-/**
- * @title CurvyAggregator
- * @author Curvy Protocol (https://curvy.box)
- * @dev Curvy's Aggregator contract.
- */
-contract CurvyAggregatorAlphaV5 is ICurvyAggregatorAlphaV2, Initializable, UUPSUpgradeable, OwnableUpgradeable {
- using SafeERC20 for IERC20;
- //#region Events
-
- event DepositedNote(uint256 noteId);
-
- //#endregion
-
- address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
-
- //#region State variables
-
- // Maximum number of notes to commit in deposit
- uint256 public maxDeposits;
- // Maximum number of aggregations in one aggregation batch proof
- uint256 public maxAggregations;
- // Maximum number of withdrawals in one withdrawal batch proof
- uint256 public maxWithdrawals;
-
- // Queue of commited note ids waiting for proof verification and deposit batch commitment
- mapping(uint256 => bool) private _pendingIdsQueue;
-
- // Root of the tree containing all notes.
- uint256 private _notesTreeRoot;
- // Root of the tree contaiing all of the used nullifiers.
- uint256 private _nullifiersTreeRoot;
-
- // Curvy's vault contract
- ICurvyVaultV2 public curvyVault;
-
- //Curvy's insertion verifier.
- ICurvyInsertionVerifier public insertionVerifier;
- //Curvy's aggregation verifier.
- ICurvyAggregationVerifier public aggregationVerifier;
- //Curvy's withdraw verifier.
- ICurvyWithdrawVerifierV3 public withdrawVerifier;
-
- // Curvy's portal factory contract;
- IPortalFactory public portalFactory;
-
- //#endregion
-
- //#region Init functions
-
- /// @custom:oz-upgrades-unsafe-allow constructor
- constructor() {
- _disableInitializers();
- }
-
- function initialize(address initialOwner) public initializer {
- __Ownable_init(initialOwner);
- }
-
- function _authorizeUpgrade(address) internal override onlyOwner {}
-
- //#endregion
-
- //#region Owner functions
-
- function updateConfig(CurvyTypes.AggregatorConfigurationUpdateV2 memory _update) external onlyOwner returns (bool) {
- if (_update.insertionVerifier != address(0)) {
- insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);
- }
- if (_update.aggregationVerifier != address(0)) {
- aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);
- }
- if (_update.withdrawVerifier != address(0)) {
- withdrawVerifier = ICurvyWithdrawVerifierV3(_update.withdrawVerifier);
- }
- if (_update.curvyVault != address(0)) {
- curvyVault = ICurvyVaultV2(_update.curvyVault);
- }
- if (_update.portalFactory != address(0)) {
- portalFactory = IPortalFactory(_update.portalFactory);
- }
- if (_update.maxDeposits != 0) {
- maxDeposits = _update.maxDeposits;
- }
- if (_update.maxAggregations != 0) {
- maxAggregations = _update.maxAggregations;
- }
- if (_update.maxWithdrawals != 0) {
- maxWithdrawals = _update.maxWithdrawals;
- }
-
- return true;
- }
-
- /*
- * @dev This function allows the owner to reset the roots of the notes and nullifiers trees to a known state.
- * @notice Only to be used in emergency cases where the contract is in a bad state and cannot be recovered
- * through normal operation (i.e. proof verification and batch commitments).
- */
- function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {
- _notesTreeRoot = newNotesTreeRoot;
- _nullifiersTreeRoot = newNullifiersTreeRoot;
- }
-
- //#endregions
-
- //#region Public functions
-
- function autoShield(CurvyTypes.Note memory note) external payable {
- // Only allow auto shielding of portals that were deployed through the portalFactory
- if (!portalFactory.portalIsRegistered(msg.sender)) revert PortalNotRegistered();
-
- // This will revert if tokenId is not found.
- address tokenAddress = curvyVault.getTokenAddress(note.token);
-
- if (tokenAddress != NATIVE_ETH) {
- IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);
- IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);
- }
-
- curvyVault.deposit{value: msg.value}(tokenAddress, address(this), note.amount);
-
- uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);
-
- _pendingIdsQueue[noteId] = true;
-
- emit DepositedNote(noteId);
- }
-
- function commitDepositBatch(
- uint256[2] memory proof_a,
- uint256[2][2] memory proof_b,
- uint256[2] memory proof_c,
- uint256[4] memory publicInputs
- ) public {
- for (uint256 i = 0; i < maxDeposits; i += 1) {
- uint256 noteId = publicInputs[i];
- if (noteId != 0) {
- if (!_pendingIdsQueue[noteId]) revert NoteNotScheduledForDeposit();
- delete _pendingIdsQueue[noteId];
- }
- }
-
- uint256 numPublicInputs = publicInputs.length;
-
- if (_notesTreeRoot != publicInputs[numPublicInputs - 2]) revert InvalidNotesRoot();
-
- if (!insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();
-
- _notesTreeRoot = publicInputs[numPublicInputs - 1];
- }
-
- function commitAggregationBatch(
- uint256[2] memory proof_a,
- uint256[2][2] memory proof_b,
- uint256[2] memory proof_c,
- uint256[14] memory publicInputs
- ) public {
- uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];
- uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];
- uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];
- uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];
-
- if (_notesTreeRoot != oldNotesTreeRoot) revert CurrentNoteTreeRootMismatch();
- if (_nullifiersTreeRoot != oldNullifiersTreeRoot) revert CurrentNullifierTreeRootMismatch();
-
- if (!aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();
-
- // Update the roots of the trees
- _notesTreeRoot = newNotesTreeRoot;
- _nullifiersTreeRoot = newNullifiersTreeRoot;
- }
-
- function commitWithdrawalBatch(
- uint256[2] memory proof_a,
- uint256[2][2] memory proof_b,
- uint256[2] memory proof_c,
- uint256[9] memory publicInputs
- ) public {
- if (publicInputs[2] != _nullifiersTreeRoot) {
- revert CurrentNullifierTreeRootMismatch();
- }
- if (publicInputs[1] != _notesTreeRoot) revert CurrentNoteTreeRootMismatch();
-
- if (!withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();
-
- // Update the root of the nullifier tree
- _nullifiersTreeRoot = publicInputs[0];
-
- uint256 numPublicInputs = publicInputs.length;
-
- // Transfer withdrawals
- for (uint256 i = 0; i < maxWithdrawals; i += 1) {
- uint256 amount = publicInputs[3 + i];
- address destinationAddress = address(uint160(publicInputs[3 + maxWithdrawals + i]));
- if (amount != 0) {
- curvyVault.withdraw(
- publicInputs[numPublicInputs - 1], // tokenId
- destinationAddress,
- amount
- );
- }
- }
- }
-
- //#endregion
-
- //#region View functions
-
- function getNoteTreeRoot() external view returns (uint256) {
- return _notesTreeRoot;
- }
-
- function getNullifiersTreeRoot() external view returns (uint256) {
- return _nullifiersTreeRoot;
- }
-
- function noteInQueue(uint256 noteId) external view returns (bool) {
- return _pendingIdsQueue[noteId];
- }
-
- //#endregion
-}
diff --git a/contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol b/contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol
deleted file mode 100644
index c8e8a24..0000000
--- a/contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol
+++ /dev/null
@@ -1,243 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-pragma solidity ^0.8.28;
-
-import "../portal/IPortalFactory.sol";
-import {
-ICurvyInsertionVerifier,
-ICurvyAggregationVerifier,
-ICurvyWithdrawVerifier,
-ICurvyWithdrawVerifierV3
-} from "./verifiers/ICurvyVerifiersAlpha.sol";
-import {CurvyTypes} from "../utils/Types.sol";
-import {ICurvyAggregatorAlphaV2} from "./ICurvyAggregatorAlphaV2.sol";
-import {ICurvyVaultV3} from "../vault/ICurvyVaultV3.sol";
-import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
-import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
-import {PoseidonT4} from "./utils/PoseidonT4.sol";
-import {SafeERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
-import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
-
-/**
- * @title CurvyAggregator
- * @author Curvy Protocol (https://curvy.box)
- * @dev Curvy's Aggregator contract.
- */
-contract CurvyAggregatorAlphaV6 is ICurvyAggregatorAlphaV2, Initializable, UUPSUpgradeable, OwnableUpgradeable {
- using SafeERC20 for IERC20;
- //#region Events
-
- event DepositedNote(uint256 noteId);
-
- //#endregion
-
- address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
-
- //#region State variables
-
- // Maximum number of notes to commit in deposit
- uint256 public maxDeposits;
- // Maximum number of aggregations in one aggregation batch proof
- uint256 public maxAggregations;
- // Maximum number of withdrawals in one withdrawal batch proof
- uint256 public maxWithdrawals;
-
- // Queue of commited note ids waiting for proof verification and deposit batch commitment
- mapping(uint256 => bool) private _pendingIdsQueue;
-
- // Root of the tree containing all notes.
- uint256 private _notesTreeRoot;
- // Root of the tree contaiing all of the used nullifiers.
- uint256 private _nullifiersTreeRoot;
-
- // Curvy's vault contract
- ICurvyVaultV3 public curvyVault;
-
- //Curvy's insertion verifier.
- ICurvyInsertionVerifier public insertionVerifier;
- //Curvy's aggregation verifier.
- ICurvyAggregationVerifier public aggregationVerifier;
- //Curvy's withdraw verifier.
- ICurvyWithdrawVerifierV3 public withdrawVerifier;
-
- // Curvy's portal factory contract;
- IPortalFactory public portalFactory;
-
- //#endregion
-
- //#region Init functions
-
- /// @custom:oz-upgrades-unsafe-allow constructor
- constructor() {
- _disableInitializers();
- }
-
- function initialize(address initialOwner) public initializer {
- __Ownable_init(initialOwner);
- }
-
- function _authorizeUpgrade(address) internal override onlyOwner {}
-
- //#endregion
-
- //#region Owner functions
-
- function updateConfig(CurvyTypes.AggregatorConfigurationUpdateV2 memory _update) external onlyOwner returns (bool) {
- if (_update.insertionVerifier != address(0)) {
- insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);
- }
- if (_update.aggregationVerifier != address(0)) {
- aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);
- }
- if (_update.withdrawVerifier != address(0)) {
- withdrawVerifier = ICurvyWithdrawVerifierV3(_update.withdrawVerifier);
- }
- if (_update.curvyVault != address(0)) {
- curvyVault = ICurvyVaultV3(_update.curvyVault);
- }
- if (_update.portalFactory != address(0)) {
- portalFactory = IPortalFactory(_update.portalFactory);
- }
- if (_update.maxDeposits != 0) {
- maxDeposits = _update.maxDeposits;
- }
- if (_update.maxAggregations != 0) {
- maxAggregations = _update.maxAggregations;
- }
- if (_update.maxWithdrawals != 0) {
- maxWithdrawals = _update.maxWithdrawals;
- }
-
- return true;
- }
-
- /*
- * @dev This function allows the owner to reset the roots of the notes and nullifiers trees to a known state.
- * @notice Only to be used in emergency cases where the contract is in a bad state and cannot be recovered
- * through normal operation (i.e. proof verification and batch commitments).
- */
- function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {
- _notesTreeRoot = newNotesTreeRoot;
- _nullifiersTreeRoot = newNullifiersTreeRoot;
- }
-
- //#endregions
-
- //#region Public functions
-
- function autoShield(CurvyTypes.Note memory note) external payable {
- // Only allow auto shielding of portals that were deployed through the portalFactory
- if (!portalFactory.portalIsRegistered(msg.sender)) revert PortalNotRegistered();
-
- // This will revert if tokenId is not found.
- address tokenAddress = curvyVault.getTokenAddress(note.token);
-
- if (tokenAddress != NATIVE_ETH) {
- IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);
- IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);
- }
-
- curvyVault.deposit{value: msg.value}(tokenAddress, address(this), note.amount);
-
- uint256 feeAmount = note.amount * curvyVault.depositFee() / 10000;
-
- uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount - feeAmount, note.token]);
-
- _pendingIdsQueue[noteId] = true;
-
- emit DepositedNote(noteId);
- }
-
- function commitDepositBatch(
- uint256[2] memory proof_a,
- uint256[2][2] memory proof_b,
- uint256[2] memory proof_c,
- uint256[4] memory publicInputs
- ) public {
- for (uint256 i = 0; i < maxDeposits; i += 1) {
- uint256 noteId = publicInputs[i];
- if (noteId != 0) {
- if (!_pendingIdsQueue[noteId]) revert NoteNotScheduledForDeposit();
- delete _pendingIdsQueue[noteId];
- }
- }
-
- uint256 numPublicInputs = publicInputs.length;
-
- if (_notesTreeRoot != publicInputs[numPublicInputs - 2]) revert InvalidNotesRoot();
-
- if (!insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();
-
- _notesTreeRoot = publicInputs[numPublicInputs - 1];
- }
-
- function commitAggregationBatch(
- uint256[2] memory proof_a,
- uint256[2][2] memory proof_b,
- uint256[2] memory proof_c,
- uint256[14] memory publicInputs
- ) public {
- uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];
- uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];
- uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];
- uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];
-
- if (_notesTreeRoot != oldNotesTreeRoot) revert CurrentNoteTreeRootMismatch();
- if (_nullifiersTreeRoot != oldNullifiersTreeRoot) revert CurrentNullifierTreeRootMismatch();
-
- if (!aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();
-
- // Update the roots of the trees
- _notesTreeRoot = newNotesTreeRoot;
- _nullifiersTreeRoot = newNullifiersTreeRoot;
- }
-
- function commitWithdrawalBatch(
- uint256[2] memory proof_a,
- uint256[2][2] memory proof_b,
- uint256[2] memory proof_c,
- uint256[9] memory publicInputs
- ) public {
- if (publicInputs[2] != _nullifiersTreeRoot) {
- revert CurrentNullifierTreeRootMismatch();
- }
- if (publicInputs[1] != _notesTreeRoot) revert CurrentNoteTreeRootMismatch();
-
- if (!withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();
-
- // Update the root of the nullifier tree
- _nullifiersTreeRoot = publicInputs[0];
-
- uint256 numPublicInputs = publicInputs.length;
-
- // Transfer withdrawals
- for (uint256 i = 0; i < maxWithdrawals; i += 1) {
- uint256 amount = publicInputs[3 + i];
- address destinationAddress = address(uint160(publicInputs[3 + maxWithdrawals + i]));
- if (amount != 0) {
- curvyVault.withdraw(
- publicInputs[numPublicInputs - 1], // tokenId
- destinationAddress,
- amount
- );
- }
- }
- }
-
- //#endregion
-
- //#region View functions
-
- function getNoteTreeRoot() external view returns (uint256) {
- return _notesTreeRoot;
- }
-
- function getNullifiersTreeRoot() external view returns (uint256) {
- return _nullifiersTreeRoot;
- }
-
- function noteInQueue(uint256 noteId) external view returns (bool) {
- return _pendingIdsQueue[noteId];
- }
-
- //#endregion
-}
diff --git a/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol b/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol
index d17c625..bdb4f09 100644
--- a/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol
+++ b/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol
@@ -1,10 +1,9 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.10;
-import { CurvyTypes } from "../utils/Types.sol";
+import {CurvyTypes} from "../utils/Types.sol";
interface ICurvyAggregatorAlpha {
-
//#region Errors
error PortalNotRegistered();
@@ -15,11 +14,14 @@ interface ICurvyAggregatorAlpha {
error CurrentNullifierTreeRootMismatch();
error InvalidWithdrawProof();
+ // audit: deposit-batch-commit visibility for off-chain indexers and monitoring
+ event DepositBatchCommitted(uint256 indexed oldNotesRoot, uint256 indexed newNotesRoot);
+
//#endregion
//#region Public functions
- function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;
+ function autoShield(CurvyTypes.Note memory note) external payable;
//#endregion
}
diff --git a/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol b/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol
deleted file mode 100644
index 3ca394a..0000000
--- a/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol
+++ /dev/null
@@ -1,24 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-pragma solidity ^0.8.10;
-
-import {CurvyTypes} from "../utils/Types.sol";
-
-interface ICurvyAggregatorAlphaV2 {
- //#region Errors
-
- error PortalNotRegistered();
- error NoteNotScheduledForDeposit();
- error InvalidNotesRoot();
- error InvalidProof();
- error CurrentNoteTreeRootMismatch();
- error CurrentNullifierTreeRootMismatch();
- error InvalidWithdrawProof();
-
- //#endregion
-
- //#region Public functions
-
- function autoShield(CurvyTypes.Note memory note) external payable;
-
- //#endregion
-}
diff --git a/contracts/portal/IPortal.sol b/contracts/portal/IPortal.sol
index b212b58..8804c8f 100644
--- a/contracts/portal/IPortal.sol
+++ b/contracts/portal/IPortal.sol
@@ -16,18 +16,12 @@ interface IPortal {
//#endregion
- //#region Events
-
- /// @notice Emitted when a shielding attempt fails
- event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);
-
- //#endregion
-
//#region Public functions
function shield(
CurvyTypes.Note memory note,
- address curvyAgrgegatorAlphaProxyAddress,
+ // audit(2026-Q1): Inconsistent Parameter Naming - fixed typo (was curvyAgrgegatorAlphaProxyAddress)
+ address curvyAggregatorAlphaProxyAddress,
address curvyVaultProxyAddress
) external;
diff --git a/contracts/portal/IPortalFactory.sol b/contracts/portal/IPortalFactory.sol
index 58888f2..ab3daec 100644
--- a/contracts/portal/IPortalFactory.sol
+++ b/contracts/portal/IPortalFactory.sol
@@ -25,9 +25,23 @@ interface ILiFiCalldataVerification {
uint256 receivingAmount;
}
+ // audit(2026-Q1): swap-then-bridge needs SwapData[].fromAmount instead of bridgeData.minAmount
+ struct SwapData {
+ address callTo;
+ address approveTo;
+ address sendingAssetId;
+ address receivingAssetId;
+ uint256 fromAmount;
+ bytes callData;
+ bool requiresDeposit;
+ }
+
function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);
function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);
+
+ // audit(2026-Q1): used to read source-chain swap input amount when hasSourceSwaps == true
+ function extractSwapData(bytes calldata data) external pure returns (SwapData[] memory);
}
interface IPortalFactory {
@@ -38,6 +52,21 @@ interface IPortalFactory {
error UnsupportedBridging();
error InvalidLiFiReceiver();
error InvalidLiFiDestinationChain();
+ // audit(2026-Q1): Difference between amount and note.amount - LiFi calldata amount mismatches expected
+ error AmountMismatch();
+
+ //#endregion
+
+ //#region Events
+
+ // audit(2026-Q1): No way to query which portals were deployed and when
+ event ShieldPortalDeployed(address indexed portalAddress, uint256 indexed ownerHash, address indexed recovery);
+ event EntryBridgePortalDeployed(address indexed portalAddress, uint256 indexed ownerHash, address indexed recovery, address currency);
+ event ExitBridgePortalDeployed(address indexed portalAddress, address indexed exitAddress, uint256 exitChainId, address indexed recovery, address currency);
+ event SolanaExitBridgePortalDeployed(address indexed portalAddress, bytes32 indexed exitAddress, uint256 exitChainId, address indexed recovery, address currency);
+ event RecoveryPortalDeployed(address indexed portalAddress, address indexed tokenAddress, address indexed to);
+ event SolanaRecoveryPortalDeployed(address indexed portalAddress, bytes32 indexed exitAddress, address indexed tokenAddress, address to);
+ event ConfigUpdated(address curvyVaultProxyAddress, address curvyAggregatorAlphaProxyAddress, address lifiDiamondAddress);
//#endregion
@@ -51,10 +80,14 @@ interface IPortalFactory {
function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);
+ function getSolanaExitCreationCode(bytes32 exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);
+
function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);
function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);
+ function getSolanaExitPortalAddress(bytes32 exitAddress, uint256 exitChainId, address recovery) external view returns (address);
+
function portalIsRegistered(address portalAddress) external view returns (bool);
function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;
@@ -75,5 +108,20 @@ interface IPortalFactory {
address recovery
) external;
+ function deploySolanaExitBridgePortal(
+ bytes calldata bridgeData,
+ uint256 amount,
+ address currency,
+ bytes32 exitAddress,
+ uint256 exitChainId,
+ address recovery
+ ) external;
+
+ function deployRecoveryEntryPortal(uint256 ownerHash, address recovery, address tokenAddress, address to) external;
+
+ function deployRecoveryExitPortal(address exitAddress, uint256 exitChainId, address recovery, address tokenAddress, address to) external;
+
+ function deploySolanaRecoveryExitPortal(bytes32 exitAddress, uint256 exitChainId, address recovery, address tokenAddress, address to) external;
+
//#endregion
}
diff --git a/contracts/portal/Portal.sol b/contracts/portal/Portal.sol
index 251485d..0895c3d 100644
--- a/contracts/portal/Portal.sol
+++ b/contracts/portal/Portal.sol
@@ -2,7 +2,7 @@
pragma solidity ^0.8.28;
import {CurvyTypes} from "../utils/Types.sol";
-import {ICurvyAggregatorAlphaV2} from "../aggregator-alpha/ICurvyAggregatorAlphaV2.sol";
+import {ICurvyAggregatorAlpha} from "../aggregator-alpha/ICurvyAggregatorAlpha.sol";
import {ICurvyVault} from "../vault/ICurvyVault.sol";
import {SafeERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IPortal} from "./IPortal.sol";
@@ -16,7 +16,7 @@ contract Portal is IPortal {
address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
- ICurvyAggregatorAlphaV2 public curvyAggregator;
+ ICurvyAggregatorAlpha public curvyAggregator;
ICurvyVault public curvyVault;
address public recovery;
@@ -24,7 +24,7 @@ contract Portal is IPortal {
bool private _used;
modifier onlyRecovery() {
- require(msg.sender == recovery, "Portal: Only recovery");
+ require(tx.origin == recovery, "Portal: Only recovery");
_;
}
@@ -55,18 +55,11 @@ contract Portal is IPortal {
revert InvalidOwnerHash();
}
- curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);
+ curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);
curvyVault = ICurvyVault(curvyVaultProxyAddress);
- address tokenAddress;
- try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {
- tokenAddress = _tokenAddress;
- } catch {
- emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, "Failed to get token address from vault");
- // Here we just do a return because we want the deployment to pass so that the user can call the recover method.
- _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.
- return;
- }
+ address tokenAddress = curvyVault.getTokenAddress(note.token);
+
if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {
IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);
curvyAggregator.autoShield(note);
@@ -75,6 +68,9 @@ contract Portal is IPortal {
}
}
+ // audit(2026-Q1): Difference between amount and note.amount - all LiFi calldata verification
+ // (address validity, receiver, destination, amount, hasSourceSwaps handling) is performed by
+ // PortalFactory before this call.
function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)
external
onlyOnce
@@ -88,9 +84,19 @@ contract Portal is IPortal {
}
token.forceApprove(lifiDiamondAddress, amount);
- (bool success,) = lifiDiamondAddress.call(bridgeData);
+ // audit(2026-Q1): LiFi error message not propagated - capture revert data
+ (bool success, bytes memory result) = lifiDiamondAddress.call(bridgeData);
+ // audit(2026-Q1): Difference between amount and note.amount - clear residual approval
+ // in case LiFi consumed less than `amount` (refund tokens, partial fill, etc.)
+ token.forceApprove(lifiDiamondAddress, 0);
if (!success) {
+ // audit(2026-Q1): LiFi error message not propagated - bubble up the underlying revert
+ if (result.length > 0) {
+ assembly {
+ revert(add(32, result), mload(result))
+ }
+ }
revert BridgeCallFailed();
}
} else {
@@ -99,16 +105,26 @@ contract Portal is IPortal {
revert InsufficientBalanceForLiFiBridging();
}
- (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);
+ // audit(2026-Q1): LiFi error message not propagated - capture revert data
+ (bool success, bytes memory result) = lifiDiamondAddress.call{value: amount}(bridgeData);
if (!success) {
+ // audit(2026-Q1): LiFi error message not propagated - bubble up the underlying revert
+ if (result.length > 0) {
+ assembly {
+ revert(add(32, result), mload(result))
+ }
+ }
revert BridgeCallFailed();
}
}
}
function recover(address tokenAddress, address to) external onlyRecovery {
- if (tokenAddress == NATIVE_ETH) {
+ // audit(2026-Q1): Burning balance during recovery - reject zero destination
+ if (to == address(0)) revert InvalidRecoveryAddress();
+ // audit(2026-Q1): Lost gas for transaction payment - treat zero address as native ETH (matches bridge)
+ if (tokenAddress == NATIVE_ETH || tokenAddress == address(0)) {
uint256 balance = address(this).balance;
(bool success,) = to.call{value: balance}("");
require(success, "Portal: ETH transfer failed");
diff --git a/contracts/portal/PortalFactory.sol b/contracts/portal/PortalFactory.sol
index 109b754..d3262df 100644
--- a/contracts/portal/PortalFactory.sol
+++ b/contracts/portal/PortalFactory.sol
@@ -2,14 +2,23 @@
pragma solidity ^0.8.28;
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
+// audit(operator/authority): role-based access control via OZ AccessControl
+import { AccessControl } from "@openzeppelin/contracts/access/AccessControl.sol";
import { IPortal } from "./IPortal.sol";
import { IPortalFactory, ILiFiCalldataVerification } from "./IPortalFactory.sol";
import { Portal } from "./Portal.sol";
+import {SolanaPortal} from "./SolanaPortal.sol";
import { CurvyTypes } from "../utils/Types.sol";
-contract PortalFactory is IPortalFactory, Ownable {
+contract PortalFactory is IPortalFactory, Ownable, AccessControl {
uint256 private constant AGGREGATOR_CHAIN_ID = 42161;
+
+ // audit(operator/authority): operational role (portal deployment); rotated by AUTHORITY_ROLE
+ bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE");
+ // audit(operator/authority): security-critical role (updateConfig)
+ bytes32 public constant AUTHORITY_ROLE = keccak256("AUTHORITY_ROLE");
+
bytes32 private _salt = keccak256(abi.encodePacked("curvy-portal-factory-salt"));
address private _curvyVaultProxyAddress;
@@ -19,25 +28,59 @@ contract PortalFactory is IPortalFactory, Ownable {
// Portals checked for compliance and deployed
mapping(address => bool) private _registeredPortals;
- constructor(address initialOwner) Ownable(initialOwner) {}
+ constructor(address initialOwner) Ownable(initialOwner) {
+ // audit(operator/authority): seed roles. AUTHORITY_ROLE administers both itself and OPERATOR_ROLE.
+ _setRoleAdmin(OPERATOR_ROLE, AUTHORITY_ROLE);
+ _setRoleAdmin(AUTHORITY_ROLE, AUTHORITY_ROLE);
+ _grantRole(AUTHORITY_ROLE, initialOwner);
+ _grantRole(OPERATOR_ROLE, initialOwner);
+ }
+
+ function deployPortal(bytes memory creationCodeWithArgs) private returns (address) {
+ address portalAddress;
+ bytes32 salt = _salt;
+
+ assembly {
+ // Deploy using CREATE2: value in wei, data pointer, data length, salt
+ portalAddress := create2(
+ callvalue(), // value to send
+ add(creationCodeWithArgs, 0x20), // pointer to start of bytecode
+ mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)
+ salt // the salt
+ )
+ }
+ if (portalAddress == address(0)) {
+ revert DeploymentFailed();
+ }
+
+ return portalAddress;
+ }
+
+ // audit(operator/authority): authority-gated
function updateConfig(
address curvyVaultProxyAddress,
address curvyAggregatorAlphaProxyAddress,
address lifiDiamondAddress
- ) external onlyOwner returns (bool) {
- if (curvyVaultProxyAddress != address(0)) {
+ ) external onlyRole(AUTHORITY_ROLE) returns (bool) {
+ // audit(2026-Q1): Missing Smart Contract address check - require code at address (also rejects EOAs and address(0))
+ if (curvyVaultProxyAddress.code.length > 0) {
_curvyVaultProxyAddress = curvyVaultProxyAddress;
}
- if (curvyAggregatorAlphaProxyAddress != address(0)) {
+ // audit(2026-Q1): Missing Smart Contract address check
+ if (curvyAggregatorAlphaProxyAddress.code.length > 0) {
_curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;
}
- if (lifiDiamondAddress != address(0)) {
+ // audit(2026-Q1): Missing Smart Contract address check
+ if (lifiDiamondAddress.code.length > 0) {
_lifiDiamondAddress = lifiDiamondAddress;
}
+ // audit(2026-Q1): No way to query which portals were deployed and when
+ emit ConfigUpdated(_curvyVaultProxyAddress, _curvyAggregatorAlphaProxyAddress, _lifiDiamondAddress);
+
return true;
}
@@ -72,40 +115,37 @@ contract PortalFactory is IPortalFactory, Ownable {
return _registeredPortals[portalAddress];
}
- function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {
+ // audit(operator/authority): operator-gated (operational portal deployment)
+ function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyRole(OPERATOR_ROLE) {
if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {
revert UnsupportedShielding();
}
bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);
- address portalAddress;
- bytes32 salt = _salt;
-
- assembly {
- // Deploy using CREATE2: value in wei, data pointer, data length, salt
- portalAddress := create2(
- callvalue(), // value to send
- add(creationCodeWithArgs, 0x20), // pointer to start of bytecode
- mload(creationCodeWithArgs), // length of bytecode
- salt // the salt
- )
- }
- if (portalAddress == address(0)) {
- revert DeploymentFailed();
- }
+ address portalAddress = deployPortal(creationCodeWithArgs);
_registeredPortals[portalAddress] = true;
IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);
+
+ // audit(2026-Q1): No way to query which portals were deployed and when - emitted after success
+ emit ShieldPortalDeployed(portalAddress, note.ownerHash, recovery);
}
- function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {
+ // audit(operator/authority): operator-gated (operational portal deployment)
+ function deployEntryBridgePortal(
+ bytes calldata bridgeData,
+ CurvyTypes.Note memory note,
+ address currency,
+ address recovery
+ ) public onlyRole(OPERATOR_ROLE) {
if (_lifiDiamondAddress == address(0)) {
revert UnsupportedBridging();
}
- ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);
+ ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)
+ .extractBridgeData(bridgeData);
if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {
revert InvalidLiFiReceiver();
@@ -115,26 +155,16 @@ contract PortalFactory is IPortalFactory, Ownable {
}
bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);
- address portalAddress;
-
- bytes32 salt = _salt;
- assembly {
- // Deploy using CREATE2: value in wei, data pointer, data length, salt
- portalAddress := create2(
- callvalue(), // value to send
- add(creationCodeWithArgs, 0x20), // pointer to start of bytecode
- mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)
- salt // the salt
- )
- }
- if (portalAddress == address(0)) {
- revert DeploymentFailed();
- }
+ address portalAddress = deployPortal(creationCodeWithArgs);
IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);
+
+ // audit(2026-Q1): No way to query which portals were deployed and when - emitted after success
+ emit EntryBridgePortalDeployed(portalAddress, note.ownerHash, recovery, currency);
}
+ // audit(operator/authority): operator-gated (operational portal deployment)
function deployExitBridgePortal(
bytes calldata bridgeData,
uint256 amount,
@@ -142,19 +172,22 @@ contract PortalFactory is IPortalFactory, Ownable {
address exitAddress,
uint256 exitChainId,
address recovery
- ) public {
+ ) public onlyRole(OPERATOR_ROLE) {
if (_lifiDiamondAddress == address(0)) {
revert UnsupportedBridging();
}
if (exitChainId == block.chainid) {
- ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);
+ ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(
+ _lifiDiamondAddress
+ ).extractGenericSwapParameters(bridgeData);
if (extractedData.receiver != exitAddress) {
revert InvalidLiFiReceiver();
}
} else {
- ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)
- .extractBridgeData(bridgeData);
+ ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(
+ _lifiDiamondAddress
+ ).extractBridgeData(bridgeData);
if (extractedData.receiver != exitAddress) {
revert InvalidLiFiReceiver();
}
@@ -164,23 +197,137 @@ contract PortalFactory is IPortalFactory, Ownable {
}
bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);
- address portalAddress;
- bytes32 salt = _salt;
+ address portalAddress = deployPortal(creationCodeWithArgs);
- assembly {
- // Deploy using CREATE2: value in wei, data pointer, data length, salt
- portalAddress := create2(
- callvalue(), // value to send
- add(creationCodeWithArgs, 0x20), // pointer to start of bytecode
- mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)
- salt // the salt
- )
+ IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);
+
+ // audit(2026-Q1): No way to query which portals were deployed and when - emitted after success
+ emit ExitBridgePortalDeployed(portalAddress, exitAddress, exitChainId, recovery, currency);
+ }
+
+ function deployRecoveryEntryPortal(uint256 ownerHash, address recovery, address tokenAddress, address to) public {
+ bytes memory creationCodeWithArgs = getCreationCode(ownerHash, address(0), 0, recovery);
+
+ address portalAddress = deployPortal(creationCodeWithArgs);
+
+ IPortal(portalAddress).recover(tokenAddress, to);
+
+ // audit(2026-Q1): No way to query which portals were deployed and when - emitted after success
+ emit RecoveryPortalDeployed(portalAddress, tokenAddress, to);
+ }
+
+ function deployRecoveryExitPortal(
+ address exitAddress,
+ uint256 exitChainId,
+ address recovery,
+ address tokenAddress,
+ address to
+ ) public {
+ bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);
+
+ address portalAddress = deployPortal(creationCodeWithArgs);
+
+ IPortal(portalAddress).recover(tokenAddress, to);
+
+ // audit(2026-Q1): No way to query which portals were deployed and when - emitted after success
+ emit RecoveryPortalDeployed(portalAddress, tokenAddress, to);
+ }
+
+ //#region Solana exit
+
+ function getSolanaExitCreationCode(
+ bytes32 exitAddress,
+ uint256 exitChainId,
+ address recovery
+ ) public pure returns (bytes memory) {
+ bytes memory bytecode = type(SolanaPortal).creationCode;
+ bytes memory encodedArgs = abi.encode(exitAddress, exitChainId, recovery);
+ return abi.encodePacked(bytecode, encodedArgs);
+ }
+
+ function getSolanaExitPortalAddress(
+ bytes32 exitAddress,
+ uint256 exitChainId,
+ address recovery
+ ) public view returns (address) {
+ bytes memory code = getSolanaExitCreationCode(exitAddress, exitChainId, recovery);
+ bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));
+ return address(uint160(uint256(hash)));
+ }
+
+ function deploySolanaExitBridgePortal(
+ bytes calldata bridgeData,
+ uint256 amount,
+ address currency,
+ bytes32 exitAddress,
+ uint256 exitChainId,
+ address recovery
+ ) public onlyRole(OPERATOR_ROLE) {
+ if (_lifiDiamondAddress == address(0)) {
+ revert UnsupportedBridging();
}
- if (portalAddress == address(0)) {
- revert DeploymentFailed();
+
+ ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(
+ _lifiDiamondAddress
+ ).extractBridgeData(bridgeData);
+ if (extractedData.destinationChainId != exitChainId) {
+ revert InvalidLiFiDestinationChain();
+ }
+ if (_extractNonEVMAddress(bridgeData, extractedData.hasSourceSwaps) != exitAddress) {
+ revert InvalidLiFiReceiver();
}
+ bytes memory creationCodeWithArgs = getSolanaExitCreationCode(exitAddress, exitChainId, recovery);
+
+ address portalAddress = deployPortal(creationCodeWithArgs);
+
IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);
+
+ // audit(2026-Q1): No way to query which portals were deployed and when - emitted after success
+ emit SolanaExitBridgePortalDeployed(portalAddress, exitAddress, exitChainId, recovery, currency);
+ }
+
+ /// @dev Mirrors LiFi's `CalldataVerificationFacet.extractNonEVMAddress`.
+ /// That function is not deployed on the live diamond, so the logic is
+ /// replicated here so the Solana exit path can verify the destination
+ /// matches the user-declared `exitAddress`. The receiver is the first
+ /// parameter of the bridge-specific data; the head slot that points to it
+ /// is `head[2]` when the calldata carries source swaps, otherwise `head[1]`.
+ function _extractNonEVMAddress(
+ bytes calldata data,
+ bool hasSourceSwaps
+ ) private pure returns (bytes32 nonEVMAddress) {
+ bytes memory callData = data;
+ if (hasSourceSwaps) {
+ assembly {
+ let offset := mload(add(callData, 0x64)) // bridge-specific data offset (head[2])
+ nonEVMAddress := mload(add(callData, add(offset, 0x24))) // first word of the bridge-specific struct
+ }
+ } else {
+ assembly {
+ let offset := mload(add(callData, 0x44)) // bridge-specific data offset (head[1])
+ nonEVMAddress := mload(add(callData, add(offset, 0x24))) // first word of the bridge-specific struct
+ }
+ }
}
+
+ function deploySolanaRecoveryExitPortal(
+ bytes32 exitAddress,
+ uint256 exitChainId,
+ address recovery,
+ address tokenAddress,
+ address to
+ ) public {
+ bytes memory creationCodeWithArgs = getSolanaExitCreationCode(exitAddress, exitChainId, recovery);
+
+ address portalAddress = deployPortal(creationCodeWithArgs);
+
+ IPortal(portalAddress).recover(tokenAddress, to);
+
+ // audit(2026-Q1): No way to query which portals were deployed and when - emitted after success
+ emit SolanaRecoveryPortalDeployed(portalAddress, exitAddress, tokenAddress, to);
+ }
+
+ //#endregion
}
diff --git a/contracts/portal/SolanaPortal.sol b/contracts/portal/SolanaPortal.sol
new file mode 100644
index 0000000..9cc85fa
--- /dev/null
+++ b/contracts/portal/SolanaPortal.sol
@@ -0,0 +1,115 @@
+// SPDX-License-Identifier: Apache-2.0
+pragma solidity ^0.8.28;
+
+import { SafeERC20, IERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
+
+/// @notice Single-use portal that bridges its balance to a Solana address via LiFi.
+///
+/// Mirrors `Portal` for the bridge/recover paths but stores `bytes32 _exitAddress`
+/// (a Solana pubkey) instead of an EVM address. Intentionally does not implement
+/// `IPortal.shield` — Solana exits never re-enter Curvy. The contract is invoked
+/// by `PortalFactory` via an ABI-level cast on the matching `bridge`/`recover`
+/// selectors; formal interface inheritance is unnecessary.
+contract SolanaPortal {
+ using SafeERC20 for IERC20;
+
+ error InvalidRecoveryAddress();
+ error InvalidExitBridgeData();
+ error InsufficientBalanceForLiFiBridging();
+ error BridgeCallFailed();
+
+ address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
+
+ bytes32 private _exitAddress;
+ uint256 private _exitChainId;
+
+ address public recovery;
+
+ bool private _used;
+
+ modifier onlyRecovery() {
+ require(tx.origin == recovery, "PortalSolanaExit: Only recovery");
+ _;
+ }
+
+ modifier onlyOnce() {
+ require(!_used, "SingleUse: Already used");
+ _;
+ _used = true;
+ }
+
+ constructor(bytes32 exitAddress, uint256 exitChainId, address _recovery) {
+ if (_recovery == address(0)) revert InvalidRecoveryAddress();
+ if (exitAddress == bytes32(0) || exitChainId == 0) revert InvalidExitBridgeData();
+
+ _exitAddress = exitAddress;
+ _exitChainId = exitChainId;
+ recovery = _recovery;
+ }
+
+ // audit(2026-Q1): All LiFi calldata verification (address validity, receiver, destination, amount,
+ // hasSourceSwaps handling) is performed by PortalFactory before this call.
+ function bridge(
+ address lifiDiamondAddress,
+ bytes calldata bridgeData,
+ uint256 amount,
+ address currency
+ ) external onlyOnce {
+ if (currency != address(0) && currency != NATIVE_ETH) {
+ IERC20 token = IERC20(currency);
+
+ uint256 balance = token.balanceOf(address(this));
+ if (balance < amount) revert InsufficientBalanceForLiFiBridging();
+
+ token.forceApprove(lifiDiamondAddress, amount);
+ // audit(2026-Q1): LiFi error message not propagated - capture revert data
+ (bool success, bytes memory result) = lifiDiamondAddress.call(bridgeData);
+ // audit(2026-Q1): Difference between amount and note.amount - clear residual approval
+ // in case LiFi consumed less than `amount` (refund tokens, partial fill, etc.)
+ token.forceApprove(lifiDiamondAddress, 0);
+
+ if (!success) {
+ // audit(2026-Q1): LiFi error message not propagated - bubble up the underlying revert
+ if (result.length > 0) {
+ assembly {
+ revert(add(32, result), mload(result))
+ }
+ }
+ revert BridgeCallFailed();
+ }
+ } else {
+ uint256 balance = address(this).balance;
+ if (balance < amount) revert InsufficientBalanceForLiFiBridging();
+
+ // audit(2026-Q1): LiFi error message not propagated - capture revert data
+ (bool success, bytes memory result) = lifiDiamondAddress.call{ value: amount }(bridgeData);
+
+ if (!success) {
+ // audit(2026-Q1): LiFi error message not propagated - bubble up the underlying revert
+ if (result.length > 0) {
+ assembly {
+ revert(add(32, result), mload(result))
+ }
+ }
+ revert BridgeCallFailed();
+ }
+ }
+ }
+
+ function recover(address tokenAddress, address to) external onlyRecovery {
+ // audit(2026-Q1): Burning balance during recovery - reject zero destination
+ if (to == address(0)) revert InvalidRecoveryAddress();
+ // audit(2026-Q1): Lost gas for transaction payment - treat zero address as native ETH (matches bridge)
+ if (tokenAddress == NATIVE_ETH || tokenAddress == address(0)) {
+ uint256 balance = address(this).balance;
+ (bool success, ) = to.call{ value: balance }("");
+ require(success, "PortalSolanaExit: ETH transfer failed");
+ } else {
+ IERC20 token = IERC20(tokenAddress);
+ uint256 balance = token.balanceOf(address(this));
+ token.safeTransfer(to, balance);
+ }
+ }
+
+ receive() external payable {}
+}
diff --git a/contracts/test/CurvyVaultV1ValidateSignatureHarness.sol b/contracts/test/CurvyVaultV1ValidateSignatureHarness.sol
deleted file mode 100644
index 1bc96bb..0000000
--- a/contracts/test/CurvyVaultV1ValidateSignatureHarness.sol
+++ /dev/null
@@ -1,11 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-pragma solidity ^0.8.28;
-
-import {CurvyVaultV1} from "../vault/CurvyVaultV1.sol";
-import { CurvyTypes } from "../utils/Types.sol";
-
-contract CurvyVaultV1ValidateSignatureHarness is CurvyVaultV1 {
- function _validateSignature_Harness(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {
- super._validateSignature(metaTransaction, signature);
- }
-}
\ No newline at end of file
diff --git a/contracts/test/CurvyVaultV2Mock.sol b/contracts/test/CurvyVaultV2Mock.sol
deleted file mode 100644
index f6fe895..0000000
--- a/contracts/test/CurvyVaultV2Mock.sol
+++ /dev/null
@@ -1,299 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-pragma solidity ^0.8.28;
-
-import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
-import { UUPSUpgradeable } from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
-import { EIP712Upgradeable } from "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol";
-import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
-import { SafeERC20, IERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
-import { ECDSA } from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
-
-import "../vault/ICurvyVault.sol";
-import { CurvyTypes } from "../utils/Types.sol";
-
-contract CurvyVaultV2Mock is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {
- using SafeERC20 for IERC20;
-
- //#region Constants
-
- uint256 constant private ETH_ID = 0x1;
- address constant private ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);
-
- uint96 constant private FEE_DENOMINATOR = 10000;
-
- bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH = keccak256("CurvyMetaTransaction(address from, address to, uint256 tokenId, uint256 amount, uint256 gasFee, uint8 metaTransactionType)");
-
- //#endregion
-
- //#region State variables
-
- mapping(address => mapping(uint256 => uint256)) private _balances;
- mapping(address => uint256) private _nonces;
-
- // Number of ERC-20 tokens registered
- uint256 private _numberOfTokens;
- // Maps the ERC-20 contract addresses to their tokenId
- mapping(address => uint256) private _tokenAddressToTokenId;
- // Maps the ERC-20 contract addresses to their tokenId
- mapping(uint256 => address) private _tokenIdToTokenAddress;
-
- uint96 public depositFee;
- uint96 public transferFee;
- uint96 public withdrawalFee;
-
- //#endregion
-
- //#region Init functions
-
- /// @custom:oz-upgrades-unsafe-allow constructor
- constructor() {
- _disableInitializers();
- }
-
- function initializeV2() reinitializer(2) public {
- __EIP712_init("Curvy Privacy Vault", "2.0");
- }
-
- function _authorizeUpgrade(address) internal override onlyOwner {}
-
- //#endregion
-
- //#region Private functions
-
- function _burn(address from, uint256 tokenId, uint256 amount) private {
- // Subtract _amount
- _balances[from][tokenId] -= amount;
-
- // Emit event
- emit Transfer(from, address(0x0), tokenId, amount);
- }
-
- function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {
- bytes32 structHash = keccak256(
- abi.encode(
- CURVY_META_TRANSACTION_TYPE_HASH,
- _nonces[metaTransaction.from],
- metaTransaction.from,
- metaTransaction.to,
- metaTransaction.tokenId,
- metaTransaction.amount,
- metaTransaction.gasFee
- )
- );
-
- // Add domain data to the hash
- bytes32 hash = _hashTypedDataV4(structHash);
-
- // Check that the metaTransaction is signed by metaTransaction.from
- address signer = ECDSA.recover(hash, signature);
- require(signer == metaTransaction.from, "CurvyVault#_validateSignature: Invalid signature!");
-
- // Increment nonce
- _nonces[signer]++;
- emit NonceChange(signer, _nonces[signer]);
- }
-
- function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {
- require(metaTransaction.to != address(0), "CurvyVault#_transfer: Invalid recipient for transfer!");
-
- _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;
- _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;
-
- // Refund gas if metaTransaction.gasFee is not 0
- if (metaTransaction.gasFee != 0) {
- _balances[metaTransaction.to][metaTransaction.tokenId] -= metaTransaction.gasFee;
- _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;
- }
-
- // Collect fees if they are set
- if (transferFee != 0) {
- uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;
- _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;
- _balances[owner()][metaTransaction.tokenId] += feeAmount;
- }
-
- emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);
- }
-
- function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {
- require(metaTransaction.to != address(0), "CurvyVault#_withdraw: Invalid withdraw recipient!");
-
- // Burn wrapped tokens
- _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;
-
- // Refund gas if metaTransaction.gasFee is not 0
- if (metaTransaction.gasFee != 0) {
- _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.gasFee;
- _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;
- }
-
- // Collect fees if they are set
- if (withdrawalFee != 0) {
- uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;
- _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;
- _balances[owner()][metaTransaction.tokenId] += feeAmount;
- }
-
- // Withdraw
- if (metaTransaction.tokenId != ETH_ID) { // We are withdrawing ERC20s
- address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];
- IERC20(tokenAddress).safeTransfer(metaTransaction.to, metaTransaction.amount);
- } else { // We are withdrawing ETH
- (bool success,) = metaTransaction.to.call{value: metaTransaction.amount}("");
- require(success, "CurvyVault#_withdraw: ETH withdrawal failed!");
- }
-
- emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);
- }
-
- //#endregion
-
- //#region Owner functions
-
- function registerToken(address tokenAddress) external onlyOwner {
- require(_tokenAddressToTokenId[tokenAddress] == 0, "CurvyVault#registerToken: Token already registered!");
-
- // Register ID
- _numberOfTokens++;
- _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;
- _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;
-
- // Emit registration event
- emit TokenRegistration(tokenAddress, _numberOfTokens);
- }
-
- function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {
- if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {
- depositFee = fee;
- } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {
- transferFee = fee;
- } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {
- withdrawalFee = fee;
- } else {
- revert("CurvyVault#setFeeAmount: Unknown fee type!");
- }
-
- emit FeeChange(metaTransactionType, fee);
- }
-
- //#endregion
-
- //#region Public functions
-
- receive() external payable {
- deposit(ETH_ADDRESS, msg.sender, msg.value, 0);
- }
-
- function deposit(address tokenAddress, address to, uint256 amount) external {
- deposit(tokenAddress, to, amount, 0);
- }
-
- function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {
- require(to != address(0x0), "CurvyVault#deposit: Invalid recipient for deposit!");
-
- uint256 tokenId;
-
- if (tokenAddress != ETH_ADDRESS) { // We are depositing ERC20
- require(msg.value == 0, "CurvyVault#deposit: Don't send ETH with ERC20 deposit!");
-
- IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);
-
- tokenId = _tokenAddressToTokenId[tokenAddress];
- require(tokenId != 0, "CurvyVault#deposit: Token address not registered!");
- } else { // We are depositing ETH
- require(amount == msg.value, "CurvyVault#deposit: Incorrect deposit value!");
- tokenId = ETH_ID;
- }
-
- // Mint wrapped tokens
- _balances[to][tokenId] += amount;
-
- // Collect fees if they are set
- if (depositFee != 0) {
- uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;
- _balances[to][tokenId] -= feeAmount;
- _balances[owner()][tokenId] += feeAmount;
- }
-
- // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)
- if (gasSponsorshipAmount != 0) {
- _balances[to][tokenId] -= gasSponsorshipAmount;
- _balances[owner()][tokenId] += gasSponsorshipAmount;
- }
-
- emit Transfer(address(0x0), to, tokenId, amount);
- }
-
- function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {
- require(msg.sender == metaTransaction.from, "CurvyVault#transfer: Invalid msg.sender!");
- require(metaTransaction.gasFee == 0, "CurvyVault#transfer: gasFee must be 0 when not relaying metaTransaction for others!");
-
- _transfer(metaTransaction);
- }
-
- function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {
- require(metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Transfer, "CurvyVault#transfer: Wrong type for meta transaction!");
-
- _validateSignature(metaTransaction, signature);
-
- _transfer(metaTransaction);
- }
-
- function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {
- require(msg.sender == metaTransaction.from, "CurvyVault#withdraw: Invalid msg.sender!");
- require(metaTransaction.gasFee == 0, "CurvyVault#withdraw: gasFee must be 0 when not relaying metaTransaction for others!");
-
- _withdraw(metaTransaction);
- }
-
- function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {
- require(metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw, "CurvyVault#withdraw: Wrong type for meta transaction!");
- _validateSignature(metaTransaction, signature);
-
- _withdraw(metaTransaction);
- }
-
- //#endregion
-
- //#region View functions
-
- function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {
- tokenAddress = _tokenIdToTokenAddress[tokenId];
- require(tokenAddress != address(0x0), "CurvyVault:#getIdAddress: Unregistered token!");
- return tokenAddress;
- }
-
- function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {
- tokenId = _tokenAddressToTokenId[tokenAddress];
- require(tokenId != 0, "CurvyVault:#getTokenID: Unregistered token!");
- return tokenId;
- }
-
- function getNumberOfTokens() external view returns (uint256) {
- return _numberOfTokens;
- }
-
- function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {
- return _balances[owner][tokenId];
- }
-
- function balanceOfBatch(address[] memory owners, uint256[] memory tokenIds) external view returns (uint256[] memory) {
- require(owners.length == tokenIds.length, "CurvyVault#balanceOfBatch: Invalid array length!");
-
- // Variables
- uint256[] memory batchBalances = new uint256[](owners.length);
-
- // Iterate over each owner and token ID
- for (uint256 i = 0; i < owners.length; i++) {
- batchBalances[i] = _balances[owners[i]][tokenIds[i]];
- }
-
- return batchBalances;
- }
-
- function getDepositFee() external view returns (uint96) {
- return depositFee;
- }
-
- //#endregion
-}
\ No newline at end of file
diff --git a/contracts/utils/Types.sol b/contracts/utils/Types.sol
index a098730..e920d65 100644
--- a/contracts/utils/Types.sol
+++ b/contracts/utils/Types.sol
@@ -2,33 +2,7 @@
pragma solidity ^0.8.10;
library CurvyTypes {
- enum MetaTransactionType {
- Withdraw,
- Transfer,
- Deposit
- }
-
- struct MetaTransaction {
- // + nonce when signing
- address from;
- address to;
- uint256 tokenId;
- uint256 amount;
- uint256 gasFee;
- MetaTransactionType metaTransactionType;
- }
-
struct AggregatorConfigurationUpdate {
- address insertionVerifier;
- address aggregationVerifier;
- address withdrawVerifier;
- address curvyVault;
- uint256 maxDeposits;
- uint256 maxWithdrawals;
- uint256 maxAggregations;
- }
-
- struct AggregatorConfigurationUpdateV2 {
address insertionVerifier;
address aggregationVerifier;
address withdrawVerifier;
diff --git a/contracts/vault/CHANGELOG.md b/contracts/vault/CHANGELOG.md
index 35c2f62..80b03db 100644
--- a/contracts/vault/CHANGELOG.md
+++ b/contracts/vault/CHANGELOG.md
@@ -1,118 +1,40 @@
# CurvyVault Changelog
-## V6
-
-### Interface Upgrade Only
-
-- Interface changed from `ICurvyVaultV2` to `ICurvyVaultV3`
-- `ICurvyVaultV3` formally declares `depositFee()` and `withdrawalFee()` view functions in the interface (previously only available as auto-generated public state variable getters)
-- No implementation changes
-
----
-
-## V5
-
-### Meta-Transaction System Removal & API Simplification
-
-This is the largest architectural change in the contract's history — the entire EIP-712 meta-transaction/signature system was removed in favor of a direct deposit/withdraw API.
-
-#### Removed Functions
-- `_validateSignature` — EIP-712 signature validation
-- `_transfer` — internal transfer logic
-- `_withdraw` — internal withdraw logic
-- `transfer(MetaTransaction)` — direct meta-transaction transfer
-- `transfer(MetaTransaction, bytes signature)` — relayed meta-transaction transfer
-- `withdraw(MetaTransaction)` — direct meta-transaction withdraw
-- `withdraw(MetaTransaction, bytes signature)` — relayed meta-transaction withdraw
-- `receive() external payable` — vault no longer accepts direct ETH transfers
-- `balanceOfBatch` — batch balance query
-- `getNonce` — nonce query (meta-transactions removed)
-
-#### Added Functions
-- `deregisterToken(address tokenAddress) external onlyOwner` — removes a token from both ID mappings, emits `TokenDeregistered`
-- `collectFees(uint256 tokenId) external onlyOwner` — withdraws accumulated fee balance for a token
-- `withdraw(uint256 tokenId, address to, uint256 amount) external` — new simplified withdraw, restricted to `_curvyAggregator` or `owner()`, applies withdrawal fee
-
-#### Changed: `deposit`
-- `gasSponsorshipAmount` parameter removed (4 args → 3 args)
-- Gas sponsorship deduction logic removed
-- Token ID lookup and validation now happens **before** `safeTransferFrom` (prevents wasted gas on unregistered tokens)
-- Error handling changed to custom errors: `NotCurvyAggregator()`, `ERC20TransferFailed()`, `ETHTransferFailed()`
-
-#### Changed: `setFeeAmount`
-- Signature changed from `(MetaTransactionType, uint96)` to `(FeeUpdate calldata)`
-- If/else chain replaced by direct struct field assignment
-- Event changed from per-type `FeeChange` to `FeeChange(FeeUpdate)`
-
-#### Changed: `registerToken`
-- `require(...)` replaced with `if (...) revert TokenAlreadyRegistered()`
-
-#### Changed: View Functions
-- `getTokenAddress` and `getTokenId` — require strings replaced with `revert TokenNotRegistered()`
-
-#### Deprecated (kept for storage layout compatibility)
-- `CURVY_META_TRANSACTION_TYPE_HASH` constant — no longer referenced
-- `transferFee` state variable — no longer used
-
-#### Events
-- Removed: `Transfer`, `NonceChange`
-- Added: `Deposit(address indexed tokenAddress, address indexed to, uint256 amount)`, `Withdraw(address indexed tokenAddress, address indexed to, uint256 amount)`, `TokenDeregistered(address tokenAddress, uint256 tokenId)`
-
-#### Errors
-- Removed: `InvalidSender`, `InvalidTransactionType`, `InvalidGasSponsorship`, `InsufficientBalance`, `InsufficientAmountForGas`
-- Added: `NotCurvyAggregator`, `TokenAlreadyRegistered`, `InvalidDestinationAddress`, `ERC20TransferFailed`, `WithdrawalFeeNotSet`, `NotCurvyAggregatorOrOwner`
-
-#### EIP-712
-- Version string changed from `"2.0"` back to `"1.0"`
-
----
-
-## V4
-
-### Gas Fee Source Change in Transfers
-
-#### Changed: `_transfer`
-- Gas fee deduction moved from `_balances[metaTransaction.to]` (recipient) to `_balances[metaTransaction.from]` (sender) — the sender now pays the gas fee instead of the recipient
-
----
-
-## V3
-
-### Aggregator-Gated Deposits
-
-#### Added
-- `address private _curvyAggregator` state variable
-- `setCurvyAggregatorAddress(address) external onlyOwner` — sets the aggregator address, emits `CurvyAggregatorAddressChange`
-
-#### Changed: `deposit`
-- Added access control: `require(msg.sender == _curvyAggregator, ...)` — only the CurvyAggregator contract can call `deposit`
-
----
-
-## V2
-
-### Custom Errors & Withdrawal Fee Bugfix
-
-#### Changed: Error Handling
-- Multiple `require(...)` with string messages replaced by custom error reverts across `_transfer`, `deposit`, `transfer`, and `withdraw` functions: `InvalidRecipient()`, `InvalidTransactionType()`, `InvalidSender()`, `InvalidGasSponsorship()`
-
-#### Changed: `_withdraw` — Critical Bugfix
-- V1 deducted gas fee and withdrawal fee from `_balances` separately but still transferred the full pre-fee `metaTransaction.amount` to the recipient
-- V2 introduces `amountAfterFees` local variable — fees are subtracted from this amount, and only `amountAfterFees` is transferred to the recipient
-
-#### Changed: EIP-712
-- Version string changed from `"1.0"` to `"2.0"`
-
----
-
-## V1
-
-Initial release. EIP-712 meta-transaction vault with:
-- `initialize`, `_authorizeUpgrade`
-- Token registration: `registerToken`
-- Deposits: `deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount)`
-- Meta-transaction transfers: `transfer(MetaTransaction)`, `transfer(MetaTransaction, bytes signature)`
-- Meta-transaction withdrawals: `withdraw(MetaTransaction)`, `withdraw(MetaTransaction, bytes signature)`
-- Fee management: `setFeeAmount`, `setCurvyAggregatorAddress`
-- View functions: `balanceOf`, `balanceOfBatch`, `getNonce`, `getTokenAddress`, `getTokenId`
-- `receive() external payable` for accepting direct ETH
+## V1 — Post-Audit Launch
+
+Initial production release. The pre-launch implementation chain (V1–V6) was
+flattened to a single audited V1 prior to this release; the historical
+versions and their changelog entries are preserved in the repository's git
+history.
+
+### Surface
+
+- UUPS-upgradeable proxy, owner-bound `_authorizeUpgrade` gated by
+ `AUTHORITY_ROLE`.
+- Direct deposit/withdraw API (no meta-transactions, no relayed signatures).
+- Native ETH (`0xEee…EEeE`) is registered as token id `1` at `initialize`;
+ ERC-20s registered via `registerToken(address)`.
+- Fee model: `depositFee` (default 10 bps) and `withdrawalFee` (default 20 bps),
+ capped at `MAX_FEE = 1000` (10%). Fees accumulate at `_feeCollectorAddress`
+ (rotated via `setFeeCollectorAddress`) and are claimed via
+ `collectFees(tokenId)`.
+- Role-based access control (OZ `AccessControlUpgradeable`):
+ - `AUTHORITY_ROLE` — upgrades, `registerToken`, `deregisterToken`,
+ `setCurvyAggregatorAddress`, `setFeeAmount`, `setFeeCollectorAddress`.
+ - `OPERATOR_ROLE` — operational calls (e.g. `collectFees`).
+ - `_setRoleAdmin(OPERATOR_ROLE, AUTHORITY_ROLE)` and
+ `_setRoleAdmin(AUTHORITY_ROLE, AUTHORITY_ROLE)`.
+
+### Bootstrap path for existing proxies
+
+`bootstrapAccessControl()` is `external reinitializer(2) onlyOwner` and is
+called atomically via `upgradeToAndCall` during the V1 upgrade. It seeds
+`AUTHORITY_ROLE` and `OPERATOR_ROLE` on `owner()` and sets
+`_feeCollectorAddress = owner()`. The pre-AC `_authorizeUpgrade(onlyOwner)`
+gate authorises the upgrade itself; the `reinitializer(2)` modifier guarantees
+the bootstrap can only run once per proxy.
+
+### Storage layout notes
+
+- `__deprecated_transaction_fee` (uint96) — formerly `transferFee`; kept in
+ storage layout for backwards-compatible upgrades from pre-V1 proxies.
diff --git a/contracts/vault/CurvyVaultV1.sol b/contracts/vault/CurvyVaultV1.sol
index 3d7bb62..e5cac9a 100644
--- a/contracts/vault/CurvyVaultV1.sol
+++ b/contracts/vault/CurvyVaultV1.sol
@@ -1,16 +1,24 @@
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.28;
-import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
-import { UUPSUpgradeable } from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
-import { EIP712Upgradeable } from "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol";
-import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
-import { SafeERC20, IERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
-import { ECDSA } from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
+import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
+import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
+import {EIP712Upgradeable} from "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol";
+import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
+// audit(operator/authority): role-based access control via OZ AccessControl
+import {AccessControlUpgradeable} from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
+import {SafeERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./ICurvyVault.sol";
-import { CurvyTypes } from "../utils/Types.sol";
-
-contract CurvyVaultV1 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {
+import {CurvyTypes} from "../utils/Types.sol";
+
+contract CurvyVaultV1 is
+ ICurvyVault,
+ Initializable,
+ EIP712Upgradeable,
+ UUPSUpgradeable,
+ OwnableUpgradeable,
+ AccessControlUpgradeable
+{
using SafeERC20 for IERC20;
//#region Constants
@@ -19,11 +27,13 @@ contract CurvyVaultV1 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgr
address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);
uint96 private constant FEE_DENOMINATOR = 10000;
+ // audit(2026-Q1): No upper limit for fee - cap at 10% (1000 / 10000)
+ uint96 private constant MAX_FEE = 1000;
- bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH =
- keccak256(
- "CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)"
- );
+ // audit(operator/authority): operational role (collectFees etc.); rotated by AUTHORITY_ROLE
+ bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR_ROLE");
+ // audit(operator/authority): security-critical role (upgrades, registerToken, fees, aggregator address)
+ bytes32 public constant AUTHORITY_ROLE = keccak256("AUTHORITY_ROLE");
//#endregion
@@ -40,9 +50,25 @@ contract CurvyVaultV1 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgr
mapping(uint256 => address) private _tokenIdToTokenAddress;
uint96 public depositFee;
- uint96 public transferFee;
+ // audit(2026-Q1): Deprecated fields - was `transferFee`; kept in storage layout, renamed for clarity
+ uint96 public __deprecated_transaction_fee;
uint96 public withdrawalFee;
+ address private _curvyAggregator;
+
+ // audit(operator/authority): address fees accumulate to; rotated via setFeeCollectorAddress
+ address private _feeCollectorAddress;
+
+ //#endregion
+
+ //#region Modifiers
+
+ // audit(2026-Q1): Modifier instead of error - encode caller restriction in the function signature
+ modifier onlyCurvyAggregator() {
+ if (msg.sender != _curvyAggregator) revert NotCurvyAggregator();
+ _;
+ }
+
//#endregion
//#region Init functions
@@ -52,6 +78,15 @@ contract CurvyVaultV1 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgr
_disableInitializers();
}
+ /**
+ * @dev DO NOT REMOVE THIS FUNCTION.
+ * This function does not affect existing deployments during an upgrade. The `initializer`
+ * modifier guarantees it can only be executed once per proxy. When an existing proxy is
+ * upgraded to this version, its state is already marked as initialized, making this
+ * function safely uncallable and preventing any accidental state resets.
+ *
+ * The transferFee (now __deprecated_transaction_fee) is unused anymore, but it is kept for storage layout reasons.
+ */
function initialize(address initialOwner) public initializer {
// Set native currency (ETH) in the token mappings
_tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;
@@ -61,212 +96,193 @@ contract CurvyVaultV1 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgr
__EIP712_init("Curvy Privacy Vault", "1.0");
__Ownable_init(initialOwner);
+ // audit(operator/authority): seed roles and fee collector on first deploy
+ __AccessControl_init();
+ _setRoleAdmin(OPERATOR_ROLE, AUTHORITY_ROLE);
+ _setRoleAdmin(AUTHORITY_ROLE, AUTHORITY_ROLE);
+ _grantRole(AUTHORITY_ROLE, initialOwner);
+ _grantRole(OPERATOR_ROLE, initialOwner);
+ _feeCollectorAddress = initialOwner;
+ emit FeeCollectorAddressChange(initialOwner);
+
depositFee = 10;
- transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol
+ // audit(2026-Q1): Deprecated fields - was `transferFee = 0`
+ __deprecated_transaction_fee = 0;
withdrawalFee = 20;
}
- function _authorizeUpgrade(address) internal override onlyOwner {}
+ // audit(operator/authority): bootstrap AccessControl + fee collector for existing V6 proxies
+ function bootstrapAccessControl() external reinitializer(2) onlyOwner {
+ __AccessControl_init();
+ _setRoleAdmin(OPERATOR_ROLE, AUTHORITY_ROLE);
+ _setRoleAdmin(AUTHORITY_ROLE, AUTHORITY_ROLE);
+ _grantRole(AUTHORITY_ROLE, owner());
+ _grantRole(OPERATOR_ROLE, owner());
+ _feeCollectorAddress = owner();
+ emit FeeCollectorAddressChange(owner());
+ }
+
+ // audit(operator/authority): upgrades gated by AUTHORITY_ROLE
+ function _authorizeUpgrade(address) internal override onlyRole(AUTHORITY_ROLE) {}
//#endregion
- //#region Private functions
-
- function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {
- bytes32 structHash = keccak256(
- abi.encode(
- CURVY_META_TRANSACTION_TYPE_HASH,
- _nonces[metaTransaction.from],
- metaTransaction.from,
- metaTransaction.to,
- metaTransaction.tokenId,
- metaTransaction.amount,
- metaTransaction.gasFee,
- metaTransaction.metaTransactionType
- )
- );
-
- // Add domain data to the hash
- bytes32 hash = _hashTypedDataV4(structHash);
-
- // Check that the metaTransaction is signed by metaTransaction.from
- address signer = ECDSA.recover(hash, signature);
- require(signer == metaTransaction.from, "CurvyVault#_validateSignature: Invalid signature!");
-
- // Increment nonce
- _nonces[signer]++;
- emit NonceChange(signer, _nonces[signer]);
- }
+ //#region Owner functions
- function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {
- require(metaTransaction.to != address(0), "CurvyVault#_transfer: Invalid recipient for transfer!");
- require(
- metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Transfer,
- "CurvyVault#transfer: Wrong type for meta transaction!"
- );
+ // audit(operator/authority): authority-gated
+ function registerToken(address tokenAddress) external onlyRole(AUTHORITY_ROLE) {
+ if (_tokenAddressToTokenId[tokenAddress] != 0) revert TokenAlreadyRegistered();
+ // audit(2026-Q1): EOA as tokenAddress - require a deployed contract at the address
+ if (tokenAddress.code.length == 0) revert NotAContract();
- _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;
- _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;
+ // Register ID
+ _numberOfTokens++;
+ _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;
+ _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;
- // Refund gas if metaTransaction.gasFee is not 0
- if (metaTransaction.gasFee != 0) {
- _balances[metaTransaction.to][metaTransaction.tokenId] -= metaTransaction.gasFee;
- _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;
- }
+ // Emit registration event
+ emit TokenRegistration(tokenAddress, _numberOfTokens);
+ }
- // Collect fees if they are set
- if (transferFee != 0) {
- uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;
- _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;
- _balances[owner()][metaTransaction.tokenId] += feeAmount;
- }
+ // audit(operator/authority): authority-gated
+ function deregisterToken(address tokenAddress) external onlyRole(AUTHORITY_ROLE) {
+ uint256 tokenId = _tokenAddressToTokenId[tokenAddress];
+ if (tokenId == 0) revert TokenNotRegistered();
- emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);
- }
+ // audit(2026-Q1): Deregister token does not check vault balance - prevent stranding funds
+ uint256 vaultBalance = IERC20(tokenAddress).balanceOf(address(this));
+ if (vaultBalance != 0) revert TokenHasOutstandingBalance();
- function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {
- require(metaTransaction.to != address(0), "CurvyVault#_withdraw: Invalid withdraw recipient!");
- require(
- metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,
- "CurvyVault#withdraw: Wrong type for meta transaction!"
- );
+ // Remove from both mappings
+ _tokenAddressToTokenId[tokenAddress] = 0;
+ _tokenIdToTokenAddress[tokenId] = address(0);
- // Burn wrapped tokens
- _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;
+ emit TokenDeregistered(tokenAddress, tokenId);
+ }
- // Refund gas if metaTransaction.gasFee is not 0
- if (metaTransaction.gasFee != 0) {
- _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.gasFee;
- _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;
- }
+ /**
+ * @dev This function is used to set the fees for the vault.
+ * @notice If you want to keep the current fee, pass the current fee values.
+ */
+ // audit(operator/authority): authority-gated
+ function setFeeAmount(CurvyTypes.FeeUpdate calldata feeUpdate) external onlyRole(AUTHORITY_ROLE) {
+ // audit(2026-Q1): No upper limit for fee - reject fees above MAX_FEE (10%)
+ if (feeUpdate.depositFee > MAX_FEE) revert FeeTooHigh();
+ if (feeUpdate.withdrawalFee > MAX_FEE) revert FeeTooHigh();
- // Collect fees if they are set
- if (withdrawalFee != 0) {
- uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;
- _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;
- _balances[owner()][metaTransaction.tokenId] += feeAmount;
- }
+ depositFee = feeUpdate.depositFee;
+ withdrawalFee = feeUpdate.withdrawalFee;
- // Withdraw
- if (metaTransaction.tokenId != ETH_ID) {
- // We are withdrawing ERC20s
- address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];
- IERC20(tokenAddress).safeTransfer(metaTransaction.to, metaTransaction.amount);
- } else {
- // We are withdrawing ETH
- (bool success, ) = metaTransaction.to.call{ value: metaTransaction.amount }("");
- require(success, "CurvyVault#_withdraw: ETH withdrawal failed!");
- }
+ emit FeeChange(feeUpdate);
+ }
- emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);
+ // audit(operator/authority): authority-gated
+ function setCurvyAggregatorAddress(address curvyAggregator) external onlyRole(AUTHORITY_ROLE) {
+ _curvyAggregator = curvyAggregator;
+ emit CurvyAggregatorAddressChange(curvyAggregator);
}
- //#endregion
+ // audit(operator/authority): authority-gated
+ function setFeeCollectorAddress(address newFeeCollectorAddress) external onlyRole(AUTHORITY_ROLE) {
+ if (newFeeCollectorAddress == address(0)) revert InvalidFeeCollectorAddress();
+ _feeCollectorAddress = newFeeCollectorAddress;
+ emit FeeCollectorAddressChange(newFeeCollectorAddress);
+ }
- //#region Owner functions
+ function feeCollectorAddress() external view returns (address) {
+ return _feeCollectorAddress;
+ }
- function registerToken(address tokenAddress) external onlyOwner {
- require(_tokenAddressToTokenId[tokenAddress] == 0, "CurvyVault#registerToken: Token already registered!");
+ // audit(operator/authority): operator-gated; sends to _feeCollectorAddress
+ function collectFees(uint256 tokenId) external onlyRole(OPERATOR_ROLE) {
+ address tokenAddress = _tokenIdToTokenAddress[tokenId];
+ if (tokenAddress == address(0)) {
+ revert TokenNotRegistered();
+ }
- // Register ID
- _numberOfTokens++;
- _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;
- _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;
+ uint256 amount = _balances[_feeCollectorAddress][tokenId];
+ // audit(2026-Q1): Collecting zero fees - skip transfer when nothing to collect
+ if (amount == 0) revert NoFeesToCollect();
- // Emit registration event
- emit TokenRegistration(tokenAddress, _numberOfTokens);
- }
+ _balances[_feeCollectorAddress][tokenId] = 0;
- function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {
- if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {
- depositFee = fee;
- } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {
- transferFee = fee;
- } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {
- withdrawalFee = fee;
+ if (tokenId != ETH_ID) {
+ IERC20(tokenAddress).safeTransfer(_feeCollectorAddress, amount);
} else {
- revert("CurvyVault#setFeeAmount: Unknown fee type!");
+ (bool success,) = _feeCollectorAddress.call{value: amount}("");
+ if (!success) revert ETHTransferFailed();
}
-
- emit FeeChange(metaTransactionType, fee);
}
//#endregion
//#region Public functions
- receive() external payable {
- deposit(ETH_ADDRESS, msg.sender, msg.value, 0);
- }
-
- function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {
- require(to != address(0x0), "CurvyVault#deposit: Invalid recipient for deposit!");
+ function deposit(address tokenAddress, address to, uint256 amount) public payable onlyCurvyAggregator() {
+ if (to == address(0x0)) revert InvalidRecipient();
uint256 tokenId;
if (tokenAddress != ETH_ADDRESS) {
// We are depositing ERC20
- require(msg.value == 0, "CurvyVault#deposit: Don't send ETH with ERC20 deposit!");
-
- IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);
+ if (msg.value != 0) revert ERC20TransferFailed();
tokenId = _tokenAddressToTokenId[tokenAddress];
- require(tokenId != 0, "CurvyVault#deposit: Token address not registered!");
+ if (tokenId == 0) revert TokenNotRegistered();
+
+ IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);
} else {
// We are depositing ETH
- require(amount == msg.value, "CurvyVault#deposit: Incorrect deposit value!");
+ if (amount != msg.value) revert ETHTransferFailed();
tokenId = ETH_ID;
}
- // Mint wrapped tokens
- _balances[to][tokenId] += amount;
-
- // Collect fees if they are set
+ // audit(2026-Q1): Gas optimization - single balance write per recipient instead of `+=` then `-=`
+ // audit(2026-Q1): Wrong data in event - emit truly deposited (post-fee) amount
+ // audit(operator/authority): fees go to _feeCollectorAddress
+ uint256 depositedAmount = amount;
if (depositFee != 0) {
uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;
- _balances[to][tokenId] -= feeAmount;
- _balances[owner()][tokenId] += feeAmount;
- }
-
- // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)
- if (gasSponsorshipAmount != 0) {
- _balances[to][tokenId] -= gasSponsorshipAmount;
- _balances[owner()][tokenId] += gasSponsorshipAmount;
+ depositedAmount = amount - feeAmount;
+ _balances[to][tokenId] += depositedAmount;
+ _balances[_feeCollectorAddress][tokenId] += feeAmount;
+ } else {
+ _balances[to][tokenId] += amount;
}
- emit Transfer(address(0x0), to, tokenId, amount);
+ emit Deposit(tokenAddress, to, depositedAmount);
}
- function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {
- require(msg.sender == metaTransaction.from, "CurvyVault#transfer: Invalid msg.sender!");
- require(
- metaTransaction.gasFee == 0,
- "CurvyVault#transfer: gasFee must be 0 when not relaying metaTransaction for others!"
- );
+ // audit(2026-Q1): Modifier instead of error - replaced inline check with onlyCurvyAggregator
+ function withdraw(uint256 tokenId, address to, uint256 amount) external onlyCurvyAggregator {
+ if (to == address(0)) revert InvalidRecipient();
- _transfer(metaTransaction);
- }
+ address tokenAddress = _tokenIdToTokenAddress[tokenId];
+ if (tokenAddress == address(0)) revert TokenNotRegistered();
- function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {
- _validateSignature(metaTransaction, signature);
+ _balances[msg.sender][tokenId] -= amount;
- _transfer(metaTransaction);
- }
+ uint256 amountAfterFees = amount;
- function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {
- require(msg.sender == metaTransaction.from, "CurvyVault#withdraw: Invalid msg.sender!");
- require(
- metaTransaction.gasFee == 0,
- "CurvyVault#withdraw: gasFee must be 0 when not relaying metaTransaction for others!"
- );
+ if (withdrawalFee != 0) {
+ uint256 feeAmount = (amount * withdrawalFee) / FEE_DENOMINATOR;
+ // audit(operator/authority): fees go to _feeCollectorAddress
+ _balances[_feeCollectorAddress][tokenId] += feeAmount;
- _withdraw(metaTransaction);
- }
+ amountAfterFees -= feeAmount;
+ }
- function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {
- _validateSignature(metaTransaction, signature);
+ // Withdraw
+ if (tokenId != ETH_ID) {
+ // We are withdrawing ERC20s
+ IERC20(tokenAddress).safeTransfer(to, amountAfterFees);
+ } else {
+ // We are withdrawing ETH
+ (bool success,) = to.call{value: amountAfterFees}("");
+ if (!success) revert ETHTransferFailed();
+ }
- _withdraw(metaTransaction);
+ emit Withdraw(tokenAddress, to, amount);
}
//#endregion
@@ -275,13 +291,13 @@ contract CurvyVaultV1 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgr
function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {
tokenAddress = _tokenIdToTokenAddress[tokenId];
- require(tokenAddress != address(0x0), "CurvyVault:#getIdAddress: Unregistered token!");
+ if (tokenAddress == address(0)) revert TokenNotRegistered();
return tokenAddress;
}
function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {
tokenId = _tokenAddressToTokenId[tokenAddress];
- require(tokenId != 0, "CurvyVault:#getTokenID: Unregistered token!");
+ if (tokenId == 0) revert TokenNotRegistered();
return tokenId;
}
@@ -293,26 +309,5 @@ contract CurvyVaultV1 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgr
return _balances[owner][tokenId];
}
- function balanceOfBatch(
- address[] memory owners,
- uint256[] memory tokenIds
- ) external view returns (uint256[] memory) {
- require(owners.length == tokenIds.length, "CurvyVault#balanceOfBatch: Invalid array length!");
-
- // Variables
- uint256[] memory batchBalances = new uint256[](owners.length);
-
- // Iterate over each owner and token ID
- for (uint256 i = 0; i < owners.length; i++) {
- batchBalances[i] = _balances[owners[i]][tokenIds[i]];
- }
-
- return batchBalances;
- }
-
- function getNonce(address _signer) external view returns (uint256 nonce) {
- return _nonces[_signer];
- }
-
//#endregion
}
diff --git a/contracts/vault/CurvyVaultV2.sol b/contracts/vault/CurvyVaultV2.sol
deleted file mode 100644
index 4bbb2e1..0000000
--- a/contracts/vault/CurvyVaultV2.sol
+++ /dev/null
@@ -1,312 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-pragma solidity ^0.8.28;
-
-import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
-import { UUPSUpgradeable } from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
-import { EIP712Upgradeable } from "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol";
-import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
-import { SafeERC20, IERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
-import { ECDSA } from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
-import "./ICurvyVault.sol";
-import { CurvyTypes } from "../utils/Types.sol";
-
-contract CurvyVaultV2 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {
- using SafeERC20 for IERC20;
-
- //#region Constants
-
- uint256 private constant ETH_ID = 0x1;
- address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);
-
- uint96 private constant FEE_DENOMINATOR = 10000;
-
- bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH =
- keccak256(
- "CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)"
- );
-
- //#endregion
-
- //#region State variables
-
- mapping(address => mapping(uint256 => uint256)) private _balances;
- mapping(address => uint256) internal _nonces;
-
- // Number of ERC-20 tokens registered
- uint256 private _numberOfTokens;
- // Maps the ERC-20 contract addresses to their tokenId
- mapping(address => uint256) private _tokenAddressToTokenId;
- // Maps the ERC-20 contract addresses to their tokenId
- mapping(uint256 => address) private _tokenIdToTokenAddress;
-
- uint96 public depositFee;
- uint96 public transferFee;
- uint96 public withdrawalFee;
-
- //#endregion
-
- //#region Init functions
-
- /// @custom:oz-upgrades-unsafe-allow constructor
- constructor() {
- _disableInitializers();
- }
-
- function initialize(address initialOwner) public initializer {
- // Set native currency (ETH) in the token mappings
- _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;
- _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;
- _numberOfTokens = 1;
-
- __EIP712_init("Curvy Privacy Vault", "2.0");
- __Ownable_init(initialOwner);
-
- depositFee = 10;
- transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol
- withdrawalFee = 20;
- }
-
- function _authorizeUpgrade(address) internal override onlyOwner {}
-
- //#endregion
-
- //#region Private functions
-
- function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {
- bytes32 structHash = keccak256(
- abi.encode(
- CURVY_META_TRANSACTION_TYPE_HASH,
- _nonces[metaTransaction.from],
- metaTransaction.from,
- metaTransaction.to,
- metaTransaction.tokenId,
- metaTransaction.amount,
- metaTransaction.gasFee,
- metaTransaction.metaTransactionType
- )
- );
-
- // Add domain data to the hash
- bytes32 hash = _hashTypedDataV4(structHash);
-
- // Check that the metaTransaction is signed by metaTransaction.from
- address signer = ECDSA.recover(hash, signature);
- require(signer == metaTransaction.from, "CurvyVault#_validateSignature: Invalid signature!");
-
- // Increment nonce
- _nonces[signer]++;
- emit NonceChange(signer, _nonces[signer]);
- }
-
- function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {
- if (metaTransaction.to == address(0)) revert InvalidRecipient();
- if (metaTransaction.metaTransactionType != CurvyTypes.MetaTransactionType.Transfer)
- revert InvalidTransactionType();
-
- _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;
- _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;
-
- // Refund gas if metaTransaction.gasFee is not 0
- if (metaTransaction.gasFee != 0) {
- _balances[metaTransaction.to][metaTransaction.tokenId] -= metaTransaction.gasFee;
- _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;
- }
-
- // Collect fees if they are set
- if (transferFee != 0) {
- uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;
- _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;
- _balances[owner()][metaTransaction.tokenId] += feeAmount;
- }
-
- emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);
- }
-
- function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {
- require(metaTransaction.to != address(0), "CurvyVault#_withdraw: Invalid withdraw recipient!");
- require(
- metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,
- "CurvyVault#withdraw: Wrong type for meta transaction!"
- );
-
- // Burn wrapped tokens
- _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;
-
- uint256 amountAfterFees = metaTransaction.amount;
-
- // Refund gas if metaTransaction.gasFee is not 0
- if (metaTransaction.gasFee != 0) {
- amountAfterFees -= metaTransaction.gasFee;
- _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;
- }
-
- // Collect fees if they are set
- if (withdrawalFee != 0) {
- uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;
- amountAfterFees -= feeAmount;
- _balances[owner()][metaTransaction.tokenId] += feeAmount;
- }
-
- // Withdraw
- if (metaTransaction.tokenId != ETH_ID) {
- // We are withdrawing ERC20s
- address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];
- IERC20(tokenAddress).safeTransfer(metaTransaction.to, amountAfterFees);
- } else {
- // We are withdrawing ETH
- (bool success, ) = metaTransaction.to.call{ value: amountAfterFees }("");
- require(success, "CurvyVault#_withdraw: ETH withdrawal failed!");
- }
-
- emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);
- }
-
- //#endregion
-
- //#region Owner functions
-
- function registerToken(address tokenAddress) external onlyOwner {
- require(_tokenAddressToTokenId[tokenAddress] == 0, "CurvyVault#registerToken: Token already registered!");
-
- // Register ID
- _numberOfTokens++;
- _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;
- _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;
-
- // Emit registration event
- emit TokenRegistration(tokenAddress, _numberOfTokens);
- }
-
- function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {
- if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {
- depositFee = fee;
- } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {
- transferFee = fee;
- } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {
- withdrawalFee = fee;
- } else {
- revert("CurvyVault#setFeeAmount: Unknown fee type!");
- }
-
- emit FeeChange(metaTransactionType, fee);
- }
-
- //#endregion
-
- //#region Public functions
-
- receive() external payable {
- deposit(ETH_ADDRESS, msg.sender, msg.value, 0);
- }
-
- function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {
- if (to == address(0x0)) revert InvalidRecipient();
-
- uint256 tokenId;
-
- if (tokenAddress != ETH_ADDRESS) {
- // We are depositing ERC20
- require(msg.value == 0, "CurvyVault#deposit: Don't send ETH with ERC20 deposit!");
-
- IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);
-
- tokenId = _tokenAddressToTokenId[tokenAddress];
- if (tokenId == 0) revert TokenNotRegistered();
- } else {
- // We are depositing ETH
- require(amount == msg.value, "CurvyVault#deposit: Incorrect deposit value!");
- tokenId = ETH_ID;
- }
-
- // Mint wrapped tokens
- _balances[to][tokenId] += amount;
-
- // Collect fees if they are set
- if (depositFee != 0) {
- uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;
- _balances[to][tokenId] -= feeAmount;
- _balances[owner()][tokenId] += feeAmount;
- }
-
- // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)
- if (gasSponsorshipAmount != 0) {
- _balances[to][tokenId] -= gasSponsorshipAmount;
- _balances[owner()][tokenId] += gasSponsorshipAmount;
- }
-
- emit Transfer(address(0x0), to, tokenId, amount);
- }
-
- function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {
- if (msg.sender != metaTransaction.from) revert InvalidSender();
- if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();
-
- _transfer(metaTransaction);
- }
-
- function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {
- _validateSignature(metaTransaction, signature);
-
- _transfer(metaTransaction);
- }
-
- function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {
- if (msg.sender != metaTransaction.from) revert InvalidSender();
- if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();
-
- _withdraw(metaTransaction);
- }
-
- function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {
- _validateSignature(metaTransaction, signature);
-
- _withdraw(metaTransaction);
- }
-
- //#endregion
-
- //#region View functions
-
- function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {
- tokenAddress = _tokenIdToTokenAddress[tokenId];
- require(tokenAddress != address(0x0), "CurvyVault:#getIdAddress: Unregistered token!");
- return tokenAddress;
- }
-
- function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {
- tokenId = _tokenAddressToTokenId[tokenAddress];
- require(tokenId != 0, "CurvyVault:#getTokenID: Unregistered token!");
- return tokenId;
- }
-
- function getNumberOfTokens() external view returns (uint256) {
- return _numberOfTokens;
- }
-
- function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {
- return _balances[owner][tokenId];
- }
-
- function balanceOfBatch(
- address[] memory owners,
- uint256[] memory tokenIds
- ) external view returns (uint256[] memory) {
- require(owners.length == tokenIds.length, "CurvyVault#balanceOfBatch: Invalid array length!");
-
- // Variables
- uint256[] memory batchBalances = new uint256[](owners.length);
-
- // Iterate over each owner and token ID
- for (uint256 i = 0; i < owners.length; i++) {
- batchBalances[i] = _balances[owners[i]][tokenIds[i]];
- }
-
- return batchBalances;
- }
-
- function getNonce(address _signer) external view returns (uint256 nonce) {
- return _nonces[_signer];
- }
-
- //#endregion
-}
diff --git a/contracts/vault/CurvyVaultV3.sol b/contracts/vault/CurvyVaultV3.sol
deleted file mode 100644
index a5eaa07..0000000
--- a/contracts/vault/CurvyVaultV3.sol
+++ /dev/null
@@ -1,322 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-pragma solidity ^0.8.28;
-
-import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
-import { UUPSUpgradeable } from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
-import { EIP712Upgradeable } from "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol";
-import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
-import { SafeERC20, IERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
-import { ECDSA } from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
-import "./ICurvyVault.sol";
-import { CurvyTypes } from "../utils/Types.sol";
-
-contract CurvyVaultV3 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {
- using SafeERC20 for IERC20;
-
- //#region Constants
-
- uint256 private constant ETH_ID = 0x1;
- address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);
-
- uint96 private constant FEE_DENOMINATOR = 10000;
-
- bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH =
- keccak256(
- "CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)"
- );
-
- //#endregion
-
- //#region State variables
-
- mapping(address => mapping(uint256 => uint256)) private _balances;
- mapping(address => uint256) internal _nonces;
-
- // Number of ERC-20 tokens registered
- uint256 private _numberOfTokens;
- // Maps the ERC-20 contract addresses to their tokenId
- mapping(address => uint256) private _tokenAddressToTokenId;
- // Maps the ERC-20 contract addresses to their tokenId
- mapping(uint256 => address) private _tokenIdToTokenAddress;
-
- uint96 public depositFee;
- uint96 public transferFee;
- uint96 public withdrawalFee;
-
- address private _curvyAggregator;
-
- //#endregion
-
- //#region Init functions
-
- /// @custom:oz-upgrades-unsafe-allow constructor
- constructor() {
- _disableInitializers();
- }
-
- function initialize(address initialOwner) public initializer {
- // Set native currency (ETH) in the token mappings
- _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;
- _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;
- _numberOfTokens = 1;
-
- __EIP712_init("Curvy Privacy Vault", "2.0");
- __Ownable_init(initialOwner);
-
- depositFee = 10;
- transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol
- withdrawalFee = 20;
- }
-
- function _authorizeUpgrade(address) internal override onlyOwner {}
-
- //#endregion
-
- //#region Private functions
-
- function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {
- bytes32 structHash = keccak256(
- abi.encode(
- CURVY_META_TRANSACTION_TYPE_HASH,
- _nonces[metaTransaction.from],
- metaTransaction.from,
- metaTransaction.to,
- metaTransaction.tokenId,
- metaTransaction.amount,
- metaTransaction.gasFee,
- metaTransaction.metaTransactionType
- )
- );
-
- // Add domain data to the hash
- bytes32 hash = _hashTypedDataV4(structHash);
-
- // Check that the metaTransaction is signed by metaTransaction.from
- address signer = ECDSA.recover(hash, signature);
- require(signer == metaTransaction.from, "CurvyVault#_validateSignature: Invalid signature!");
-
- // Increment nonce
- _nonces[signer]++;
- emit NonceChange(signer, _nonces[signer]);
- }
-
- function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {
- if (metaTransaction.to == address(0)) revert InvalidRecipient();
- if (metaTransaction.metaTransactionType != CurvyTypes.MetaTransactionType.Transfer)
- revert InvalidTransactionType();
-
- _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;
- _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;
-
- // Refund gas if metaTransaction.gasFee is not 0
- if (metaTransaction.gasFee != 0) {
- _balances[metaTransaction.to][metaTransaction.tokenId] -= metaTransaction.gasFee;
- _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;
- }
-
- // Collect fees if they are set
- if (transferFee != 0) {
- uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;
- _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;
- _balances[owner()][metaTransaction.tokenId] += feeAmount;
- }
-
- emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);
- }
-
- function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {
- require(metaTransaction.to != address(0), "CurvyVault#_withdraw: Invalid withdraw recipient!");
- require(
- metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,
- "CurvyVault#withdraw: Wrong type for meta transaction!"
- );
-
- // Burn wrapped tokens
- _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;
-
- uint256 amountAfterFees = metaTransaction.amount;
-
- // Refund gas if metaTransaction.gasFee is not 0
- if (metaTransaction.gasFee != 0) {
- amountAfterFees -= metaTransaction.gasFee;
- _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;
- }
-
- // Collect fees if they are set
- if (withdrawalFee != 0) {
- uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;
- amountAfterFees -= feeAmount;
- _balances[owner()][metaTransaction.tokenId] += feeAmount;
- }
-
- // Withdraw
- if (metaTransaction.tokenId != ETH_ID) {
- // We are withdrawing ERC20s
- address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];
- IERC20(tokenAddress).safeTransfer(metaTransaction.to, amountAfterFees);
- } else {
- // We are withdrawing ETH
- (bool success, ) = metaTransaction.to.call{ value: amountAfterFees }("");
- require(success, "CurvyVault#_withdraw: ETH withdrawal failed!");
- }
-
- emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);
- }
-
- //#endregion
-
- //#region Owner functions
-
- function registerToken(address tokenAddress) external onlyOwner {
- require(_tokenAddressToTokenId[tokenAddress] == 0, "CurvyVault#registerToken: Token already registered!");
-
- // Register ID
- _numberOfTokens++;
- _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;
- _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;
-
- // Emit registration event
- emit TokenRegistration(tokenAddress, _numberOfTokens);
- }
-
- function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {
- if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {
- depositFee = fee;
- } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {
- transferFee = fee;
- } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {
- withdrawalFee = fee;
- } else {
- revert("CurvyVault#setFeeAmount: Unknown fee type!");
- }
-
- emit FeeChange(metaTransactionType, fee);
- }
-
- function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {
- _curvyAggregator = curvyAggregator;
- emit CurvyAggregatorAddressChange(curvyAggregator);
- }
-
- //#endregion
-
- //#region Public functions
-
- receive() external payable {
- deposit(ETH_ADDRESS, msg.sender, msg.value, 0);
- }
-
- function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {
-
- require(msg.sender == _curvyAggregator, "Only CurvyAggregator can do vault deposits through portal autoShield");
-
- if (to == address(0x0)) revert InvalidRecipient();
-
- uint256 tokenId;
-
- if (tokenAddress != ETH_ADDRESS) {
- // We are depositing ERC20
- require(msg.value == 0, "CurvyVault#deposit: Don't send ETH with ERC20 deposit!");
-
- IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);
-
- tokenId = _tokenAddressToTokenId[tokenAddress];
- if (tokenId == 0) revert TokenNotRegistered();
- } else {
- // We are depositing ETH
- require(amount == msg.value, "CurvyVault#deposit: Incorrect deposit value!");
- tokenId = ETH_ID;
- }
-
- // Mint wrapped tokens
- _balances[to][tokenId] += amount;
-
- // Collect fees if they are set
- if (depositFee != 0) {
- uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;
- _balances[to][tokenId] -= feeAmount;
- _balances[owner()][tokenId] += feeAmount;
- }
-
- // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)
- if (gasSponsorshipAmount != 0) {
- _balances[to][tokenId] -= gasSponsorshipAmount;
- _balances[owner()][tokenId] += gasSponsorshipAmount;
- }
-
- emit Transfer(address(0x0), to, tokenId, amount);
- }
-
- function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {
- if (msg.sender != metaTransaction.from) revert InvalidSender();
- if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();
-
- _transfer(metaTransaction);
- }
-
- function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {
- _validateSignature(metaTransaction, signature);
-
- _transfer(metaTransaction);
- }
-
- function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {
- if (msg.sender != metaTransaction.from) revert InvalidSender();
- if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();
-
- _withdraw(metaTransaction);
- }
-
- function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {
- _validateSignature(metaTransaction, signature);
-
- _withdraw(metaTransaction);
- }
-
- //#endregion
-
- //#region View functions
-
- function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {
- tokenAddress = _tokenIdToTokenAddress[tokenId];
- require(tokenAddress != address(0x0), "CurvyVault:#getIdAddress: Unregistered token!");
- return tokenAddress;
- }
-
- function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {
- tokenId = _tokenAddressToTokenId[tokenAddress];
- require(tokenId != 0, "CurvyVault:#getTokenID: Unregistered token!");
- return tokenId;
- }
-
- function getNumberOfTokens() external view returns (uint256) {
- return _numberOfTokens;
- }
-
- function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {
- return _balances[owner][tokenId];
- }
-
- function balanceOfBatch(
- address[] memory owners,
- uint256[] memory tokenIds
- ) external view returns (uint256[] memory) {
- require(owners.length == tokenIds.length, "CurvyVault#balanceOfBatch: Invalid array length!");
-
- // Variables
- uint256[] memory batchBalances = new uint256[](owners.length);
-
- // Iterate over each owner and token ID
- for (uint256 i = 0; i < owners.length; i++) {
- batchBalances[i] = _balances[owners[i]][tokenIds[i]];
- }
-
- return batchBalances;
- }
-
- function getNonce(address _signer) external view returns (uint256 nonce) {
- return _nonces[_signer];
- }
-
- //#endregion
-}
diff --git a/contracts/vault/CurvyVaultV4.sol b/contracts/vault/CurvyVaultV4.sol
deleted file mode 100644
index 224fc27..0000000
--- a/contracts/vault/CurvyVaultV4.sol
+++ /dev/null
@@ -1,322 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-pragma solidity ^0.8.28;
-
-import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
-import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
-import {EIP712Upgradeable} from "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol";
-import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
-import {SafeERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
-import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
-import "./ICurvyVault.sol";
-import {CurvyTypes} from "../utils/Types.sol";
-
-contract CurvyVaultV4 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {
- using SafeERC20 for IERC20;
-
- //#region Constants
-
- uint256 private constant ETH_ID = 0x1;
- address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);
-
- uint96 private constant FEE_DENOMINATOR = 10000;
-
- bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH = keccak256(
- "CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)"
- );
-
- //#endregion
-
- //#region State variables
-
- mapping(address => mapping(uint256 => uint256)) private _balances;
- mapping(address => uint256) internal _nonces;
-
- // Number of ERC-20 tokens registered
- uint256 private _numberOfTokens;
- // Maps the ERC-20 contract addresses to their tokenId
- mapping(address => uint256) private _tokenAddressToTokenId;
- // Maps the ERC-20 contract addresses to their tokenId
- mapping(uint256 => address) private _tokenIdToTokenAddress;
-
- uint96 public depositFee;
- uint96 public transferFee;
- uint96 public withdrawalFee;
-
- address private _curvyAggregator;
-
- //#endregion
-
- //#region Init functions
-
- /// @custom:oz-upgrades-unsafe-allow constructor
- constructor() {
- _disableInitializers();
- }
-
- function initialize(address initialOwner) public initializer {
- // Set native currency (ETH) in the token mappings
- _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;
- _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;
- _numberOfTokens = 1;
-
- __EIP712_init("Curvy Privacy Vault", "2.0");
- __Ownable_init(initialOwner);
-
- depositFee = 10;
- transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol
- withdrawalFee = 20;
- }
-
- function _authorizeUpgrade(address) internal override onlyOwner {}
-
- //#endregion
-
- //#region Private functions
-
- function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {
- bytes32 structHash = keccak256(
- abi.encode(
- CURVY_META_TRANSACTION_TYPE_HASH,
- _nonces[metaTransaction.from],
- metaTransaction.from,
- metaTransaction.to,
- metaTransaction.tokenId,
- metaTransaction.amount,
- metaTransaction.gasFee,
- metaTransaction.metaTransactionType
- )
- );
-
- // Add domain data to the hash
- bytes32 hash = _hashTypedDataV4(structHash);
-
- // Check that the metaTransaction is signed by metaTransaction.from
- address signer = ECDSA.recover(hash, signature);
- require(signer == metaTransaction.from, "CurvyVault#_validateSignature: Invalid signature!");
-
- // Increment nonce
- _nonces[signer]++;
- emit NonceChange(signer, _nonces[signer]);
- }
-
- function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {
- if (metaTransaction.to == address(0)) revert InvalidRecipient();
- if (metaTransaction.metaTransactionType != CurvyTypes.MetaTransactionType.Transfer) {
- revert InvalidTransactionType();
- }
-
- _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;
- _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;
-
- // Refund gas if metaTransaction.gasFee is not 0
- if (metaTransaction.gasFee != 0) {
- _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.gasFee;
- _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;
- }
-
- // Collect fees if they are set
- if (transferFee != 0) {
- uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;
- _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;
- _balances[owner()][metaTransaction.tokenId] += feeAmount;
- }
-
- emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);
- }
-
- function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {
- require(metaTransaction.to != address(0), "CurvyVault#_withdraw: Invalid withdraw recipient!");
- require(
- metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,
- "CurvyVault#withdraw: Wrong type for meta transaction!"
- );
-
- // Burn wrapped tokens
- _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;
-
- uint256 amountAfterFees = metaTransaction.amount;
-
- // Refund gas if metaTransaction.gasFee is not 0
- if (metaTransaction.gasFee != 0) {
- amountAfterFees -= metaTransaction.gasFee;
- _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;
- }
-
- // Collect fees if they are set
- if (withdrawalFee != 0) {
- uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;
- amountAfterFees -= feeAmount;
- _balances[owner()][metaTransaction.tokenId] += feeAmount;
- }
-
- // Withdraw
- if (metaTransaction.tokenId != ETH_ID) {
- // We are withdrawing ERC20s
- address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];
- IERC20(tokenAddress).safeTransfer(metaTransaction.to, amountAfterFees);
- } else {
- // We are withdrawing ETH
- (bool success,) = metaTransaction.to.call{value: amountAfterFees}("");
- require(success, "CurvyVault#_withdraw: ETH withdrawal failed!");
- }
-
- emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);
- }
-
- //#endregion
-
- //#region Owner functions
-
- function registerToken(address tokenAddress) external onlyOwner {
- require(_tokenAddressToTokenId[tokenAddress] == 0, "CurvyVault#registerToken: Token already registered!");
-
- // Register ID
- _numberOfTokens++;
- _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;
- _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;
-
- // Emit registration event
- emit TokenRegistration(tokenAddress, _numberOfTokens);
- }
-
- function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {
- if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {
- depositFee = fee;
- } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {
- transferFee = fee;
- } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {
- withdrawalFee = fee;
- } else {
- revert("CurvyVault#setFeeAmount: Unknown fee type!");
- }
-
- emit FeeChange(metaTransactionType, fee);
- }
-
- function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {
- _curvyAggregator = curvyAggregator;
- emit CurvyAggregatorAddressChange(curvyAggregator);
- }
-
- //#endregion
-
- //#region Public functions
-
- receive() external payable {
- deposit(ETH_ADDRESS, msg.sender, msg.value, 0);
- }
-
- function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {
- require(msg.sender == _curvyAggregator, "Only CurvyAggregator can do vault deposits through portal autoShield");
-
- if (to == address(0x0)) revert InvalidRecipient();
-
- uint256 tokenId;
-
- if (tokenAddress != ETH_ADDRESS) {
- // We are depositing ERC20
- require(msg.value == 0, "CurvyVault#deposit: Don't send ETH with ERC20 deposit!");
-
- IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);
-
- tokenId = _tokenAddressToTokenId[tokenAddress];
- if (tokenId == 0) revert TokenNotRegistered();
- } else {
- // We are depositing ETH
- require(amount == msg.value, "CurvyVault#deposit: Incorrect deposit value!");
- tokenId = ETH_ID;
- }
-
- // Mint wrapped tokens
- _balances[to][tokenId] += amount;
-
- // Collect fees if they are set
- if (depositFee != 0) {
- uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;
- _balances[to][tokenId] -= feeAmount;
- _balances[owner()][tokenId] += feeAmount;
- }
-
- // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)
- if (gasSponsorshipAmount != 0) {
- _balances[to][tokenId] -= gasSponsorshipAmount;
- _balances[owner()][tokenId] += gasSponsorshipAmount;
- }
-
- emit Transfer(address(0x0), to, tokenId, amount);
- }
-
- function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {
- if (msg.sender != metaTransaction.from) revert InvalidSender();
- if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();
-
- _transfer(metaTransaction);
- }
-
- function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {
- _validateSignature(metaTransaction, signature);
-
- _transfer(metaTransaction);
- }
-
- function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {
- if (msg.sender != metaTransaction.from) revert InvalidSender();
- if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();
-
- _withdraw(metaTransaction);
- }
-
- function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {
- _validateSignature(metaTransaction, signature);
-
- _withdraw(metaTransaction);
- }
-
- //#endregion
-
- //#region View functions
-
- function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {
- tokenAddress = _tokenIdToTokenAddress[tokenId];
- require(tokenAddress != address(0x0), "CurvyVault:#getIdAddress: Unregistered token!");
- return tokenAddress;
- }
-
- function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {
- tokenId = _tokenAddressToTokenId[tokenAddress];
- require(tokenId != 0, "CurvyVault:#getTokenID: Unregistered token!");
- return tokenId;
- }
-
- function getNumberOfTokens() external view returns (uint256) {
- return _numberOfTokens;
- }
-
- function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {
- return _balances[owner][tokenId];
- }
-
- function balanceOfBatch(address[] memory owners, uint256[] memory tokenIds)
- external
- view
- returns (uint256[] memory)
- {
- require(owners.length == tokenIds.length, "CurvyVault#balanceOfBatch: Invalid array length!");
-
- // Variables
- uint256[] memory batchBalances = new uint256[](owners.length);
-
- // Iterate over each owner and token ID
- for (uint256 i = 0; i < owners.length; i++) {
- batchBalances[i] = _balances[owners[i]][tokenIds[i]];
- }
-
- return batchBalances;
- }
-
- function getNonce(address _signer) external view returns (uint256 nonce) {
- return _nonces[_signer];
- }
-
- //#endregion
-}
diff --git a/contracts/vault/CurvyVaultV5.sol b/contracts/vault/CurvyVaultV5.sol
deleted file mode 100644
index ec518a6..0000000
--- a/contracts/vault/CurvyVaultV5.sol
+++ /dev/null
@@ -1,240 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-pragma solidity ^0.8.28;
-
-import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
-import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
-import {EIP712Upgradeable} from "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol";
-import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
-import {SafeERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
-import "./ICurvyVaultV2.sol";
-import {CurvyTypes} from "../utils/Types.sol";
-
-contract CurvyVaultV5 is ICurvyVaultV2, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {
- using SafeERC20 for IERC20;
-
- //#region Constants
-
- uint256 private constant ETH_ID = 0x1;
- address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);
-
- uint96 private constant FEE_DENOMINATOR = 10000;
-
- // DEPRECATED: This is no longer used, but because of storage layout it *MUST* not be deleted
- bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH = keccak256(
- "CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)"
- );
-
- //#endregion
-
- //#region State variables
-
- mapping(address => mapping(uint256 => uint256)) private _balances;
- mapping(address => uint256) internal _nonces;
-
- // Number of ERC-20 tokens registered
- uint256 private _numberOfTokens;
- // Maps the ERC-20 contract addresses to their tokenId
- mapping(address => uint256) private _tokenAddressToTokenId;
- // Maps the ERC-20 contract addresses to their tokenId
- mapping(uint256 => address) private _tokenIdToTokenAddress;
-
- uint96 public depositFee;
- // DEPRECATED: This is no longer used, but because of storage layout it *MUST* not be deleted
- uint96 public transferFee;
- uint96 public withdrawalFee;
-
- address private _curvyAggregator;
-
- //#endregion
-
- //#region Init functions
-
- /// @custom:oz-upgrades-unsafe-allow constructor
- constructor() {
- _disableInitializers();
- }
-
- /**
- * @dev DO NOT REMOVE THIS FUNCTION.
- * This function does not affect existing deployments during an upgrade. The `initializer`
- * modifier guarantees it can only be executed once per proxy. When an existing proxy is
- * upgraded to this version, its state is already marked as initialized, making this
- * function safely uncallable and preventing any accidental state resets.
- *
- * The transferFee is unused anymore, but it is kept for storage layout reasons.
- */
- function initialize(address initialOwner) public initializer {
- // Set native currency (ETH) in the token mappings
- _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;
- _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;
- _numberOfTokens = 1;
-
- __EIP712_init("Curvy Privacy Vault", "1.0");
- __Ownable_init(initialOwner);
-
- depositFee = 10;
- transferFee = 0;
- withdrawalFee = 20;
- }
-
- function _authorizeUpgrade(address) internal override onlyOwner {}
-
- //#endregion
-
- //#region Owner functions
-
- function registerToken(address tokenAddress) external onlyOwner {
- if (_tokenAddressToTokenId[tokenAddress] != 0) revert TokenAlreadyRegistered();
-
- // Register ID
- _numberOfTokens++;
- _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;
- _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;
-
- // Emit registration event
- emit TokenRegistration(tokenAddress, _numberOfTokens);
- }
-
- function deregisterToken(address tokenAddress) external onlyOwner {
- uint256 tokenId = _tokenAddressToTokenId[tokenAddress];
- if (tokenId == 0) revert TokenNotRegistered();
-
- // Remove from both mappings
- _tokenAddressToTokenId[tokenAddress] = 0;
- _tokenIdToTokenAddress[tokenId] = address(0);
-
- emit TokenDeregistered(tokenAddress, tokenId);
- }
-
- /**
- * @dev This function is used to set the fees for the vault.
- * @notice If you want to keep the current fee, pass the current fee values.
- */
- function setFeeAmount(CurvyTypes.FeeUpdate calldata feeUpdate) external onlyOwner {
- depositFee = feeUpdate.depositFee;
- withdrawalFee = feeUpdate.withdrawalFee;
-
- emit FeeChange(feeUpdate);
- }
-
- function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {
- _curvyAggregator = curvyAggregator;
- emit CurvyAggregatorAddressChange(curvyAggregator);
- }
-
- function collectFees(uint256 tokenId) external onlyOwner {
- address tokenAddress = _tokenIdToTokenAddress[tokenId];
- if (tokenAddress == address(0)) {
- revert TokenNotRegistered();
- }
-
- uint256 amount = _balances[msg.sender][tokenId];
-
- // Burn wrapped tokens
- _balances[msg.sender][tokenId] = 0;
-
- if (tokenId != ETH_ID) {
- // We are withdrawing ERC20s
- IERC20(tokenAddress).safeTransfer(msg.sender, amount);
- } else {
- // We are withdrawing ETH
- (bool success,) = msg.sender.call{value: amount}("");
- if (!success) revert ETHTransferFailed();
- }
- }
-
- //#endregion
-
- //#region Public functions
-
- function deposit(address tokenAddress, address to, uint256 amount) public payable {
- if (msg.sender != _curvyAggregator) revert NotCurvyAggregator();
-
- if (to == address(0x0)) revert InvalidRecipient();
-
- uint256 tokenId;
-
- if (tokenAddress != ETH_ADDRESS) {
- // We are depositing ERC20
- if (msg.value != 0) revert ERC20TransferFailed();
-
- tokenId = _tokenAddressToTokenId[tokenAddress];
- if (tokenId == 0) revert TokenNotRegistered();
-
- IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);
- } else {
- // We are depositing ETH
- if (amount != msg.value) revert ETHTransferFailed();
- tokenId = ETH_ID;
- }
-
- // Mint wrapped tokens
- _balances[to][tokenId] += amount;
-
- // Collect fees if they are set
- if (depositFee != 0) {
- uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;
- _balances[to][tokenId] -= feeAmount;
- _balances[owner()][tokenId] += feeAmount;
- }
-
- emit Deposit(tokenAddress, to, amount);
- }
-
- function withdraw(uint256 tokenId, address to, uint256 amount) external {
- if (msg.sender != _curvyAggregator && msg.sender != owner()) revert NotCurvyAggregatorOrOwner();
- if (to == address(0)) revert InvalidRecipient();
-
- address tokenAddress = _tokenIdToTokenAddress[tokenId];
- if (tokenAddress == address(0)) revert TokenNotRegistered();
-
- _balances[msg.sender][tokenId] -= amount;
-
- uint256 amountAfterFees = amount;
-
- if (withdrawalFee != 0) {
- uint256 feeAmount = (amount * withdrawalFee) / FEE_DENOMINATOR;
- _balances[owner()][tokenId] += feeAmount;
-
- amountAfterFees -= feeAmount;
- }
-
- // Withdraw
- if (tokenId != ETH_ID) {
- // We are withdrawing ERC20s
- IERC20(tokenAddress).safeTransfer(to, amountAfterFees);
- } else {
- // We are withdrawing ETH
- (bool success,) = to.call{value: amountAfterFees}("");
- if (!success) revert ETHTransferFailed();
- }
-
- emit Withdraw(tokenAddress, to, amount);
- }
-
- //#endregion
-
- //#region View functions
-
- function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {
- tokenAddress = _tokenIdToTokenAddress[tokenId];
- if (tokenAddress == address(0)) revert TokenNotRegistered();
- return tokenAddress;
- }
-
- function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {
- tokenId = _tokenAddressToTokenId[tokenAddress];
- if (tokenId == 0) revert TokenNotRegistered();
- return tokenId;
- }
-
- function getNumberOfTokens() external view returns (uint256) {
- return _numberOfTokens;
- }
-
- function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {
- return _balances[owner][tokenId];
- }
-
- //#endregion
-}
diff --git a/contracts/vault/CurvyVaultV6.sol b/contracts/vault/CurvyVaultV6.sol
deleted file mode 100644
index c53e4a0..0000000
--- a/contracts/vault/CurvyVaultV6.sol
+++ /dev/null
@@ -1,240 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-pragma solidity ^0.8.28;
-
-import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
-import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
-import {EIP712Upgradeable} from "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol";
-import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
-import {SafeERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
-import "./ICurvyVaultV3.sol";
-import {CurvyTypes} from "../utils/Types.sol";
-
-contract CurvyVaultV6 is ICurvyVaultV3, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {
- using SafeERC20 for IERC20;
-
- //#region Constants
-
- uint256 private constant ETH_ID = 0x1;
- address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);
-
- uint96 private constant FEE_DENOMINATOR = 10000;
-
- // DEPRECATED: This is no longer used, but because of storage layout it *MUST* not be deleted
- bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH = keccak256(
- "CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)"
- );
-
- //#endregion
-
- //#region State variables
-
- mapping(address => mapping(uint256 => uint256)) private _balances;
- mapping(address => uint256) internal _nonces;
-
- // Number of ERC-20 tokens registered
- uint256 private _numberOfTokens;
- // Maps the ERC-20 contract addresses to their tokenId
- mapping(address => uint256) private _tokenAddressToTokenId;
- // Maps the ERC-20 contract addresses to their tokenId
- mapping(uint256 => address) private _tokenIdToTokenAddress;
-
- uint96 public depositFee;
- // DEPRECATED: This is no longer used, but because of storage layout it *MUST* not be deleted
- uint96 public transferFee;
- uint96 public withdrawalFee;
-
- address private _curvyAggregator;
-
- //#endregion
-
- //#region Init functions
-
- /// @custom:oz-upgrades-unsafe-allow constructor
- constructor() {
- _disableInitializers();
- }
-
- /**
- * @dev DO NOT REMOVE THIS FUNCTION.
- * This function does not affect existing deployments during an upgrade. The `initializer`
- * modifier guarantees it can only be executed once per proxy. When an existing proxy is
- * upgraded to this version, its state is already marked as initialized, making this
- * function safely uncallable and preventing any accidental state resets.
- *
- * The transferFee is unused anymore, but it is kept for storage layout reasons.
- */
- function initialize(address initialOwner) public initializer {
- // Set native currency (ETH) in the token mappings
- _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;
- _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;
- _numberOfTokens = 1;
-
- __EIP712_init("Curvy Privacy Vault", "1.0");
- __Ownable_init(initialOwner);
-
- depositFee = 10;
- transferFee = 0;
- withdrawalFee = 20;
- }
-
- function _authorizeUpgrade(address) internal override onlyOwner {}
-
- //#endregion
-
- //#region Owner functions
-
- function registerToken(address tokenAddress) external onlyOwner {
- if (_tokenAddressToTokenId[tokenAddress] != 0) revert TokenAlreadyRegistered();
-
- // Register ID
- _numberOfTokens++;
- _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;
- _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;
-
- // Emit registration event
- emit TokenRegistration(tokenAddress, _numberOfTokens);
- }
-
- function deregisterToken(address tokenAddress) external onlyOwner {
- uint256 tokenId = _tokenAddressToTokenId[tokenAddress];
- if (tokenId == 0) revert TokenNotRegistered();
-
- // Remove from both mappings
- _tokenAddressToTokenId[tokenAddress] = 0;
- _tokenIdToTokenAddress[tokenId] = address(0);
-
- emit TokenDeregistered(tokenAddress, tokenId);
- }
-
- /**
- * @dev This function is used to set the fees for the vault.
- * @notice If you want to keep the current fee, pass the current fee values.
- */
- function setFeeAmount(CurvyTypes.FeeUpdate calldata feeUpdate) external onlyOwner {
- depositFee = feeUpdate.depositFee;
- withdrawalFee = feeUpdate.withdrawalFee;
-
- emit FeeChange(feeUpdate);
- }
-
- function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {
- _curvyAggregator = curvyAggregator;
- emit CurvyAggregatorAddressChange(curvyAggregator);
- }
-
- function collectFees(uint256 tokenId) external onlyOwner {
- address tokenAddress = _tokenIdToTokenAddress[tokenId];
- if (tokenAddress == address(0)) {
- revert TokenNotRegistered();
- }
-
- uint256 amount = _balances[msg.sender][tokenId];
-
- // Burn wrapped tokens
- _balances[msg.sender][tokenId] = 0;
-
- if (tokenId != ETH_ID) {
- // We are withdrawing ERC20s
- IERC20(tokenAddress).safeTransfer(msg.sender, amount);
- } else {
- // We are withdrawing ETH
- (bool success,) = msg.sender.call{value: amount}("");
- if (!success) revert ETHTransferFailed();
- }
- }
-
- //#endregion
-
- //#region Public functions
-
- function deposit(address tokenAddress, address to, uint256 amount) public payable {
- if (msg.sender != _curvyAggregator) revert NotCurvyAggregator();
-
- if (to == address(0x0)) revert InvalidRecipient();
-
- uint256 tokenId;
-
- if (tokenAddress != ETH_ADDRESS) {
- // We are depositing ERC20
- if (msg.value != 0) revert ERC20TransferFailed();
-
- tokenId = _tokenAddressToTokenId[tokenAddress];
- if (tokenId == 0) revert TokenNotRegistered();
-
- IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);
- } else {
- // We are depositing ETH
- if (amount != msg.value) revert ETHTransferFailed();
- tokenId = ETH_ID;
- }
-
- // Mint wrapped tokens
- _balances[to][tokenId] += amount;
-
- // Collect fees if they are set
- if (depositFee != 0) {
- uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;
- _balances[to][tokenId] -= feeAmount;
- _balances[owner()][tokenId] += feeAmount;
- }
-
- emit Deposit(tokenAddress, to, amount);
- }
-
- function withdraw(uint256 tokenId, address to, uint256 amount) external {
- if (msg.sender != _curvyAggregator && msg.sender != owner()) revert NotCurvyAggregatorOrOwner();
- if (to == address(0)) revert InvalidRecipient();
-
- address tokenAddress = _tokenIdToTokenAddress[tokenId];
- if (tokenAddress == address(0)) revert TokenNotRegistered();
-
- _balances[msg.sender][tokenId] -= amount;
-
- uint256 amountAfterFees = amount;
-
- if (withdrawalFee != 0) {
- uint256 feeAmount = (amount * withdrawalFee) / FEE_DENOMINATOR;
- _balances[owner()][tokenId] += feeAmount;
-
- amountAfterFees -= feeAmount;
- }
-
- // Withdraw
- if (tokenId != ETH_ID) {
- // We are withdrawing ERC20s
- IERC20(tokenAddress).safeTransfer(to, amountAfterFees);
- } else {
- // We are withdrawing ETH
- (bool success,) = to.call{value: amountAfterFees}("");
- if (!success) revert ETHTransferFailed();
- }
-
- emit Withdraw(tokenAddress, to, amount);
- }
-
- //#endregion
-
- //#region View functions
-
- function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {
- tokenAddress = _tokenIdToTokenAddress[tokenId];
- if (tokenAddress == address(0)) revert TokenNotRegistered();
- return tokenAddress;
- }
-
- function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {
- tokenId = _tokenAddressToTokenId[tokenAddress];
- if (tokenId == 0) revert TokenNotRegistered();
- return tokenId;
- }
-
- function getNumberOfTokens() external view returns (uint256) {
- return _numberOfTokens;
- }
-
- function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {
- return _balances[owner][tokenId];
- }
-
- //#endregion
-}
diff --git a/contracts/vault/ICurvyVault.sol b/contracts/vault/ICurvyVault.sol
index cbffd9a..421c872 100644
--- a/contracts/vault/ICurvyVault.sol
+++ b/contracts/vault/ICurvyVault.sol
@@ -6,32 +6,45 @@ import {CurvyTypes} from "../utils/Types.sol";
interface ICurvyVault {
//#region Events
- event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);
+ event Deposit(address indexed tokenAddress, address indexed to, uint256 amount);
+ event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);
event TokenRegistration(address token_address, uint256 token_id);
- event NonceChange(address indexed signer, uint256 newNonce);
- event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);
+ event TokenDeregistered(address tokenAddress, uint256 tokenId);
+ event FeeChange(CurvyTypes.FeeUpdate feeUpdate);
event CurvyAggregatorAddressChange(address curvyAggregator);
+ // audit(operator/authority): fees now accumulate at _feeCollectorAddress instead of owner()
+ event FeeCollectorAddressChange(address indexed feeCollectorAddress);
//#endregion
//#region Errors
error InvalidRecipient();
- error InvalidSender();
- error InvalidTransactionType();
- error InvalidGasSponsorship();
+ error NotCurvyAggregator();
+ error TokenAlreadyRegistered();
+ error InvalidDestinationAddress();
error TokenNotRegistered();
- error InsufficientBalance(uint256 balance, uint256 required);
- error InsufficientAmountForGas();
error ETHTransferFailed();
+ error ERC20TransferFailed();
+ error WithdrawalFeeNotSet();
+ // audit(2026-Q1): Collecting zero fees
+ error NoFeesToCollect();
+ // audit(2026-Q1): EOA as tokenAddress
+ error NotAContract();
+ // audit(2026-Q1): Deregister token does not check vault balance
+ error TokenHasOutstandingBalance();
+ // audit(2026-Q1): No upper limit for fee
+ error FeeTooHigh();
+ // audit(operator/authority): fee collector address cannot be zero
+ error InvalidFeeCollectorAddress();
//#endregion
//#region Public functions
- function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;
- function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;
- function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;
+ function withdraw(uint256 tokenId, address to, uint256 amount) external;
+ function deposit(address tokenAddress, address to, uint256 amount) external payable;
+ function deregisterToken(address tokenAddress) external;
//#endregion
@@ -39,5 +52,8 @@ interface ICurvyVault {
function getTokenAddress(uint256 tokenId) external view returns (address);
+ function depositFee() external view returns (uint96);
+ function withdrawalFee() external view returns (uint96);
+
//#endregion
}
diff --git a/contracts/vault/ICurvyVaultV2.sol b/contracts/vault/ICurvyVaultV2.sol
deleted file mode 100644
index 8e48bcd..0000000
--- a/contracts/vault/ICurvyVaultV2.sol
+++ /dev/null
@@ -1,45 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-pragma solidity ^0.8.10;
-
-import {CurvyTypes} from "../utils/Types.sol";
-
-interface ICurvyVaultV2 {
- //#region Events
-
- event Deposit(address indexed tokenAddress, address indexed to, uint256 amount);
- event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);
- event TokenRegistration(address token_address, uint256 token_id);
- event TokenDeregistered(address tokenAddress, uint256 tokenId);
- event FeeChange(CurvyTypes.FeeUpdate feeUpdate);
- event CurvyAggregatorAddressChange(address curvyAggregator);
-
- //#endregion
-
- //#region Errors
-
- error InvalidRecipient();
- error NotCurvyAggregator();
- error TokenAlreadyRegistered();
- error InvalidDestinationAddress();
- error TokenNotRegistered();
- error ETHTransferFailed();
- error ERC20TransferFailed();
- error WithdrawalFeeNotSet();
- error NotCurvyAggregatorOrOwner();
-
- //#endregion
-
- //#region Public functions
-
- function withdraw(uint256 tokenId, address to, uint256 amount) external;
- function deposit(address tokenAddress, address to, uint256 amount) external payable;
- function deregisterToken(address tokenAddress) external;
-
- //#endregion
-
- //#region View functions
-
- function getTokenAddress(uint256 tokenId) external view returns (address);
-
- //#endregion
-}
diff --git a/contracts/vault/ICurvyVaultV3.sol b/contracts/vault/ICurvyVaultV3.sol
deleted file mode 100644
index 723c581..0000000
--- a/contracts/vault/ICurvyVaultV3.sol
+++ /dev/null
@@ -1,48 +0,0 @@
-// SPDX-License-Identifier: Apache-2.0
-pragma solidity ^0.8.10;
-
-import {CurvyTypes} from "../utils/Types.sol";
-
-interface ICurvyVaultV3 {
- //#region Events
-
- event Deposit(address indexed tokenAddress, address indexed to, uint256 amount);
- event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);
- event TokenRegistration(address token_address, uint256 token_id);
- event TokenDeregistered(address tokenAddress, uint256 tokenId);
- event FeeChange(CurvyTypes.FeeUpdate feeUpdate);
- event CurvyAggregatorAddressChange(address curvyAggregator);
-
- //#endregion
-
- //#region Errors
-
- error InvalidRecipient();
- error NotCurvyAggregator();
- error TokenAlreadyRegistered();
- error InvalidDestinationAddress();
- error TokenNotRegistered();
- error ETHTransferFailed();
- error ERC20TransferFailed();
- error WithdrawalFeeNotSet();
- error NotCurvyAggregatorOrOwner();
-
- //#endregion
-
- //#region Public functions
-
- function withdraw(uint256 tokenId, address to, uint256 amount) external;
- function deposit(address tokenAddress, address to, uint256 amount) external payable;
- function deregisterToken(address tokenAddress) external;
-
- //#endregion
-
- //#region View functions
-
- function getTokenAddress(uint256 tokenId) external view returns (address);
-
- function depositFee() external view returns (uint96);
- function withdrawalFee() external view returns (uint96);
-
- //#endregion
-}
diff --git a/hardhat.config.ts b/hardhat.config.ts
index 6342fb3..38792b9 100644
--- a/hardhat.config.ts
+++ b/hardhat.config.ts
@@ -109,6 +109,11 @@ const config: HardhatUserConfig = {
url: configVariable("ALCHEMY_API_KEY", "https://gnosis-mainnet.g.alchemy.com/v2/{variable}"),
accounts: [configVariable("SEPOLIA_PRIVATE_KEY")],
},
+ tempo: {
+ type: "http",
+ url: configVariable("ALCHEMY_API_KEY", "https://tempo-mainnet.g.alchemy.com/v2/{variable}"),
+ accounts: [configVariable("SEPOLIA_PRIVATE_KEY")],
+ },
},
verify: {
etherscan: {
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2.json
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json
similarity index 99%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json
index 108efa0..0ed2c7e 100644
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json
@@ -594,8 +594,8 @@
"type": "function"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c8a1428597d493cbe694c55d3c3140f6d4feec8584d111946bcfbdce984afdd264736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c8a1428597d493cbe694c55d3c3140f6d4feec8584d111946bcfbdce984afdd264736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122049274efc5236ee1482f9c66f21cf7c3103787b88182a2c96d8b86f766faffca364736f6c634300081c0033",
+ "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122049274efc5236ee1482f9c66f21cf7c3103787b88182a2c96d8b86f766faffca364736f6c634300081c0033",
"linkReferences": {
"project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
"PoseidonT4": [
@@ -633,5 +633,5 @@
]
},
"inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "buildInfoId": "solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10"
+ "buildInfoId": "solc-0_8_28-2d0f76051c4fe1487bf2b63ec22575690e89a6f2"
}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json
similarity index 99%
rename from ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json
index 3a8d5c1..0ed2c7e 100644
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json
@@ -594,8 +594,8 @@
"type": "function"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205c716993d98e927c2e009d323d30b276b9f9053b13c990872e37e08ceda5f0e864736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205c716993d98e927c2e009d323d30b276b9f9053b13c990872e37e08ceda5f0e864736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122049274efc5236ee1482f9c66f21cf7c3103787b88182a2c96d8b86f766faffca364736f6c634300081c0033",
+ "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122049274efc5236ee1482f9c66f21cf7c3103787b88182a2c96d8b86f766faffca364736f6c634300081c0033",
"linkReferences": {
"project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
"PoseidonT4": [
@@ -633,5 +633,5 @@
]
},
"inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "buildInfoId": "solc-0_8_28-7aa766fe6b7b062ed2ddb662f43195e0e5c263ca"
+ "buildInfoId": "solc-0_8_28-2d0f76051c4fe1487bf2b63ec22575690e89a6f2"
}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json
similarity index 99%
rename from ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json
index c563db4..02cac86 100644
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json
@@ -594,8 +594,8 @@
"type": "function"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220203f460927dd492ae23c6a846bacc1b688b31d219b7fe1d56291d876ca96db2b64736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220203f460927dd492ae23c6a846bacc1b688b31d219b7fe1d56291d876ca96db2b64736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220341dc6fef9a93660da25b75309496de439a8f47bcde0a3f90679d1bb2697fe9364736f6c634300081c0033",
+ "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220341dc6fef9a93660da25b75309496de439a8f47bcde0a3f90679d1bb2697fe9364736f6c634300081c0033",
"linkReferences": {
"project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
"PoseidonT4": [
@@ -633,5 +633,5 @@
]
},
"inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "buildInfoId": "solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8"
+ "buildInfoId": "solc-0_8_28-e46894f55d717e8f0d7de5c35aef9050d78c8678"
}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json
similarity index 99%
rename from ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json
index 9aa0056..02cac86 100644
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json
@@ -594,8 +594,8 @@
"type": "function"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212201730379fe7a3c7937db67ca664b730fe2e0b84fe42189a88b0c15e26b364904064736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212201730379fe7a3c7937db67ca664b730fe2e0b84fe42189a88b0c15e26b364904064736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220341dc6fef9a93660da25b75309496de439a8f47bcde0a3f90679d1bb2697fe9364736f6c634300081c0033",
+ "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220341dc6fef9a93660da25b75309496de439a8f47bcde0a3f90679d1bb2697fe9364736f6c634300081c0033",
"linkReferences": {
"project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
"PoseidonT4": [
@@ -633,5 +633,5 @@
]
},
"inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "buildInfoId": "solc-0_8_28-073f43613e21cd9c4dda603b6759f0d8e61b5e93"
+ "buildInfoId": "solc-0_8_28-e46894f55d717e8f0d7de5c35aef9050d78c8678"
}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json
similarity index 98%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json
index 7473757..936bb2f 100644
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json
@@ -19,6 +19,16 @@
"name": "AddressEmptyCode",
"type": "error"
},
+ {
+ "inputs": [],
+ "name": "CurrentNoteTreeRootMismatch",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "CurrentNullifierTreeRootMismatch",
+ "type": "error"
+ },
{
"inputs": [
{
@@ -45,11 +55,31 @@
"name": "InvalidInitialization",
"type": "error"
},
+ {
+ "inputs": [],
+ "name": "InvalidNotesRoot",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidProof",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidWithdrawProof",
+ "type": "error"
+ },
{
"inputs": [],
"name": "NotInitializing",
"type": "error"
},
+ {
+ "inputs": [],
+ "name": "NoteNotScheduledForDeposit",
+ "type": "error"
+ },
{
"inputs": [
{
@@ -72,6 +102,11 @@
"name": "OwnableUnauthorizedAccount",
"type": "error"
},
+ {
+ "inputs": [],
+ "name": "PortalNotRegistered",
+ "type": "error"
+ },
{
"inputs": [
{
@@ -640,8 +675,8 @@
"type": "function"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212206ff0d470ab001319b7a6d16084e8db1922e67b75e58813aaec5f4d41b61b48b164736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212206ff0d470ab001319b7a6d16084e8db1922e67b75e58813aaec5f4d41b61b48b164736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220dfe33aee463c8a52bfb59628480441439c953caaf1077fb67ce915711d8c35c964736f6c634300081c0033",
+ "deployedBytecode": "0x608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220dfe33aee463c8a52bfb59628480441439c953caaf1077fb67ce915711d8c35c964736f6c634300081c0033",
"linkReferences": {
"project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
"PoseidonT4": [
@@ -687,5 +722,5 @@
]
},
"inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol",
- "buildInfoId": "solc-0_8_28-96b1f146962f0bd5475b352d77ae5331b364780c"
+ "buildInfoId": "solc-0_8_28-33ba6816f30937e5236ff2727e3021f3b5abe26a"
}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json
similarity index 98%
rename from ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json
index ee51215..936bb2f 100644
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json
@@ -19,6 +19,16 @@
"name": "AddressEmptyCode",
"type": "error"
},
+ {
+ "inputs": [],
+ "name": "CurrentNoteTreeRootMismatch",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "CurrentNullifierTreeRootMismatch",
+ "type": "error"
+ },
{
"inputs": [
{
@@ -45,11 +55,31 @@
"name": "InvalidInitialization",
"type": "error"
},
+ {
+ "inputs": [],
+ "name": "InvalidNotesRoot",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidProof",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidWithdrawProof",
+ "type": "error"
+ },
{
"inputs": [],
"name": "NotInitializing",
"type": "error"
},
+ {
+ "inputs": [],
+ "name": "NoteNotScheduledForDeposit",
+ "type": "error"
+ },
{
"inputs": [
{
@@ -72,6 +102,11 @@
"name": "OwnableUnauthorizedAccount",
"type": "error"
},
+ {
+ "inputs": [],
+ "name": "PortalNotRegistered",
+ "type": "error"
+ },
{
"inputs": [
{
@@ -640,8 +675,8 @@
"type": "function"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212203e7631d092463e9fef733079a709fae68d0cf33ba8f41e1065fa3c8bfd72784264736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212203e7631d092463e9fef733079a709fae68d0cf33ba8f41e1065fa3c8bfd72784264736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220dfe33aee463c8a52bfb59628480441439c953caaf1077fb67ce915711d8c35c964736f6c634300081c0033",
+ "deployedBytecode": "0x608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220dfe33aee463c8a52bfb59628480441439c953caaf1077fb67ce915711d8c35c964736f6c634300081c0033",
"linkReferences": {
"project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
"PoseidonT4": [
@@ -687,5 +722,5 @@
]
},
"inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol",
- "buildInfoId": "solc-0_8_28-afcc26c0e2a098ed3d6af1f251e333e826a18474"
+ "buildInfoId": "solc-0_8_28-33ba6816f30937e5236ff2727e3021f3b5abe26a"
}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.json
similarity index 98%
rename from ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.json
index 0355bda..315a3fe 100644
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.json
@@ -19,6 +19,16 @@
"name": "AddressEmptyCode",
"type": "error"
},
+ {
+ "inputs": [],
+ "name": "CurrentNoteTreeRootMismatch",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "CurrentNullifierTreeRootMismatch",
+ "type": "error"
+ },
{
"inputs": [
{
@@ -45,11 +55,31 @@
"name": "InvalidInitialization",
"type": "error"
},
+ {
+ "inputs": [],
+ "name": "InvalidNotesRoot",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidProof",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidWithdrawProof",
+ "type": "error"
+ },
{
"inputs": [],
"name": "NotInitializing",
"type": "error"
},
+ {
+ "inputs": [],
+ "name": "NoteNotScheduledForDeposit",
+ "type": "error"
+ },
{
"inputs": [
{
@@ -72,6 +102,11 @@
"name": "OwnableUnauthorizedAccount",
"type": "error"
},
+ {
+ "inputs": [],
+ "name": "PortalNotRegistered",
+ "type": "error"
+ },
{
"inputs": [
{
@@ -653,8 +688,8 @@
"type": "function"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516124506100f95f395f818161168a015281816116b301526117f701526124505ff3fe608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516124506100f95f395f818161168a015281816116b301526117f701526124505ff3fe608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122068178859d452072de33b5fba446cea26aa92838687af8b41cb6a4f7cbe9fa8ac64736f6c634300081c0033",
+ "deployedBytecode": "0x608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122068178859d452072de33b5fba446cea26aa92838687af8b41cb6a4f7cbe9fa8ac64736f6c634300081c0033",
"linkReferences": {
"project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
"PoseidonT4": [
@@ -700,5 +735,5 @@
]
},
"inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol",
- "buildInfoId": "solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd"
+ "buildInfoId": "solc-0_8_28-250d350fdc19f76e88fab9d448b6f2661e90b49d"
}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation.json
similarity index 98%
rename from ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation.json
index 0355bda..315a3fe 100644
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation.json
@@ -19,6 +19,16 @@
"name": "AddressEmptyCode",
"type": "error"
},
+ {
+ "inputs": [],
+ "name": "CurrentNoteTreeRootMismatch",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "CurrentNullifierTreeRootMismatch",
+ "type": "error"
+ },
{
"inputs": [
{
@@ -45,11 +55,31 @@
"name": "InvalidInitialization",
"type": "error"
},
+ {
+ "inputs": [],
+ "name": "InvalidNotesRoot",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidProof",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidWithdrawProof",
+ "type": "error"
+ },
{
"inputs": [],
"name": "NotInitializing",
"type": "error"
},
+ {
+ "inputs": [],
+ "name": "NoteNotScheduledForDeposit",
+ "type": "error"
+ },
{
"inputs": [
{
@@ -72,6 +102,11 @@
"name": "OwnableUnauthorizedAccount",
"type": "error"
},
+ {
+ "inputs": [],
+ "name": "PortalNotRegistered",
+ "type": "error"
+ },
{
"inputs": [
{
@@ -653,8 +688,8 @@
"type": "function"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516124506100f95f395f818161168a015281816116b301526117f701526124505ff3fe608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516124506100f95f395f818161168a015281816116b301526117f701526124505ff3fe608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122068178859d452072de33b5fba446cea26aa92838687af8b41cb6a4f7cbe9fa8ac64736f6c634300081c0033",
+ "deployedBytecode": "0x608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122068178859d452072de33b5fba446cea26aa92838687af8b41cb6a4f7cbe9fa8ac64736f6c634300081c0033",
"linkReferences": {
"project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
"PoseidonT4": [
@@ -700,5 +735,5 @@
]
},
"inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol",
- "buildInfoId": "solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd"
+ "buildInfoId": "solc-0_8_28-250d350fdc19f76e88fab9d448b6f2661e90b49d"
}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.json
similarity index 99%
rename from ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.json
index e69c420..c0e35d0 100644
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.json
@@ -625,8 +625,8 @@
"type": "function"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d506100f95f395f8181610f9f01528181610fc8015261110c0152611d505ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d506100f95f395f8181610f9f01528181610fc8015261110c0152611d505ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122070aa2f391f6aee618a9571b7013a3623027535ec05a436f734f6ae5881dbcb8a64736f6c634300081c0033",
+ "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122070aa2f391f6aee618a9571b7013a3623027535ec05a436f734f6ae5881dbcb8a64736f6c634300081c0033",
"linkReferences": {
"project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
"PoseidonT4": [
@@ -664,5 +664,5 @@
]
},
"inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol",
- "buildInfoId": "solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74"
+ "buildInfoId": "solc-0_8_28-366cc542674341106d39d1484ee2683122ce7051"
}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation.json
similarity index 99%
rename from ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation.json
index e69c420..c0e35d0 100644
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation.json
@@ -625,8 +625,8 @@
"type": "function"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d506100f95f395f8181610f9f01528181610fc8015261110c0152611d505ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d506100f95f395f8181610f9f01528181610fc8015261110c0152611d505ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122070aa2f391f6aee618a9571b7013a3623027535ec05a436f734f6ae5881dbcb8a64736f6c634300081c0033",
+ "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122070aa2f391f6aee618a9571b7013a3623027535ec05a436f734f6ae5881dbcb8a64736f6c634300081c0033",
"linkReferences": {
"project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
"PoseidonT4": [
@@ -664,5 +664,5 @@
]
},
"inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol",
- "buildInfoId": "solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74"
+ "buildInfoId": "solc-0_8_28-366cc542674341106d39d1484ee2683122ce7051"
}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6.json
similarity index 99%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6.json
index 18895d9..7f22ed9 100644
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6.json
@@ -625,8 +625,8 @@
"type": "function"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611e4b6100f95f395f81816110500152818161107901526111bd0152611e4b5ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611e4b6100f95f395f81816110500152818161107901526111bd0152611e4b5ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a05b1dc83afabc011ce97116151690542780f0c344be86f6e926583e4a7f743e64736f6c634300081c0033",
+ "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a05b1dc83afabc011ce97116151690542780f0c344be86f6e926583e4a7f743e64736f6c634300081c0033",
"linkReferences": {
"project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
"PoseidonT4": [
@@ -664,5 +664,5 @@
]
},
"inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol",
- "buildInfoId": "solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e"
+ "buildInfoId": "solc-0_8_28-cbddb0255806adf1235aafb53338fe899eda7444"
}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation.json
similarity index 99%
rename from ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation.json
index 18895d9..7f22ed9 100644
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation.json
@@ -625,8 +625,8 @@
"type": "function"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611e4b6100f95f395f81816110500152818161107901526111bd0152611e4b5ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611e4b6100f95f395f81816110500152818161107901526111bd0152611e4b5ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a05b1dc83afabc011ce97116151690542780f0c344be86f6e926583e4a7f743e64736f6c634300081c0033",
+ "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a05b1dc83afabc011ce97116151690542780f0c344be86f6e926583e4a7f743e64736f6c634300081c0033",
"linkReferences": {
"project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
"PoseidonT4": [
@@ -664,5 +664,5 @@
]
},
"inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol",
- "buildInfoId": "solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e"
+ "buildInfoId": "solc-0_8_28-cbddb0255806adf1235aafb53338fe899eda7444"
}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2.json
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2.json
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#ERC1967Proxy.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#ERC1967Proxy.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#ERC1967Proxy.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#ERC1967Proxy.json
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#NewAggregationVerifier_v2.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#NewAggregationVerifier_v2.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#NewAggregationVerifier_v2.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#NewAggregationVerifier_v2.json
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#NewInsertionVerifier_v2.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#NewInsertionVerifier_v2.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#NewInsertionVerifier_v2.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#NewInsertionVerifier_v2.json
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#NewWithdrawVerifier_v2.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#NewWithdrawVerifier_v2.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#NewWithdrawVerifier_v2.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#NewWithdrawVerifier_v2.json
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#PoseidonT4.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#PoseidonT4.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#PoseidonT4.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#PoseidonT4.json
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#aggregationVerifierDepth30.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#aggregationVerifierDepth30.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#aggregationVerifierDepth30.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#aggregationVerifierDepth30.json
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#insertionVerifierDepth30.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#insertionVerifierDepth30.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#insertionVerifierDepth30.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#insertionVerifierDepth30.json
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#withdrawVerifierDepth30.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#withdrawVerifierDepth30.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#withdrawVerifierDepth30.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#withdrawVerifierDepth30.json
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#withdrawVerifierV3.json b/ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#withdrawVerifierV3.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#withdrawVerifierV3.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyAggregatorAlpha#withdrawVerifierV3.json
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV1.json b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV1.json
similarity index 99%
rename from ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV1.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV1.json
index 6eca4c6..3dff559 100644
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV1.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV1.json
@@ -873,8 +873,8 @@
"type": "receive"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092ee20f800c61ffef7cf843cfdfb8556dc583253cc5041e6938d0f36f866cde564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092ee20f800c61ffef7cf843cfdfb8556dc583253cc5041e6938d0f36f866cde564736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208706adfac7ab0a3022cfbb7f6766c25f9d35fd73adfc57455079d7c7128f335e64736f6c634300081c0033",
+ "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208706adfac7ab0a3022cfbb7f6766c25f9d35fd73adfc57455079d7c7128f335e64736f6c634300081c0033",
"linkReferences": {},
"deployedLinkReferences": {},
"immutableReferences": {
@@ -894,5 +894,5 @@
]
},
"inputSourceName": "project/contracts/vault/CurvyVaultV1.sol",
- "buildInfoId": "solc-0_8_28-058921f7f7dc564bf6aa8a523006ec8cbd607c64"
+ "buildInfoId": "solc-0_8_28-022b78849a8c7009f2216c2432572538cb4bcef2"
}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV1Implementation.json b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV1Implementation.json
similarity index 99%
rename from ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV1Implementation.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV1Implementation.json
index 6eca4c6..3dff559 100644
--- a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV1Implementation.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV1Implementation.json
@@ -873,8 +873,8 @@
"type": "receive"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092ee20f800c61ffef7cf843cfdfb8556dc583253cc5041e6938d0f36f866cde564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092ee20f800c61ffef7cf843cfdfb8556dc583253cc5041e6938d0f36f866cde564736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208706adfac7ab0a3022cfbb7f6766c25f9d35fd73adfc57455079d7c7128f335e64736f6c634300081c0033",
+ "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208706adfac7ab0a3022cfbb7f6766c25f9d35fd73adfc57455079d7c7128f335e64736f6c634300081c0033",
"linkReferences": {},
"deployedLinkReferences": {},
"immutableReferences": {
@@ -894,5 +894,5 @@
]
},
"inputSourceName": "project/contracts/vault/CurvyVaultV1.sol",
- "buildInfoId": "solc-0_8_28-058921f7f7dc564bf6aa8a523006ec8cbd607c64"
+ "buildInfoId": "solc-0_8_28-022b78849a8c7009f2216c2432572538cb4bcef2"
}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV2.json b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV2.json
similarity index 99%
rename from ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV2.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV2.json
index 45e9d6b..f1d2b0a 100644
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV2.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV2.json
@@ -873,8 +873,8 @@
"type": "receive"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212202a778473814d79a7a9c68762ac7b88d037ffd9a5579e8017bdea83dab1cac6c664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212202a778473814d79a7a9c68762ac7b88d037ffd9a5579e8017bdea83dab1cac6c664736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c673390aa109be7b86238be3e90113dfa5656367c901582ea2cd71027bafaf3f64736f6c634300081c0033",
+ "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c673390aa109be7b86238be3e90113dfa5656367c901582ea2cd71027bafaf3f64736f6c634300081c0033",
"linkReferences": {},
"deployedLinkReferences": {},
"immutableReferences": {
@@ -894,5 +894,5 @@
]
},
"inputSourceName": "project/contracts/vault/CurvyVaultV2.sol",
- "buildInfoId": "solc-0_8_28-f0322ae6d51b4110e2b55c267b545c35f2b0fd20"
+ "buildInfoId": "solc-0_8_28-6cc1a01c76b0e02d53719e5bedae3bcb52d61551"
}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV2Implementation.json b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV2Implementation.json
similarity index 99%
rename from ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV2Implementation.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV2Implementation.json
index 45e9d6b..f1d2b0a 100644
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV2Implementation.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV2Implementation.json
@@ -873,8 +873,8 @@
"type": "receive"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212202a778473814d79a7a9c68762ac7b88d037ffd9a5579e8017bdea83dab1cac6c664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212202a778473814d79a7a9c68762ac7b88d037ffd9a5579e8017bdea83dab1cac6c664736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c673390aa109be7b86238be3e90113dfa5656367c901582ea2cd71027bafaf3f64736f6c634300081c0033",
+ "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c673390aa109be7b86238be3e90113dfa5656367c901582ea2cd71027bafaf3f64736f6c634300081c0033",
"linkReferences": {},
"deployedLinkReferences": {},
"immutableReferences": {
@@ -894,5 +894,5 @@
]
},
"inputSourceName": "project/contracts/vault/CurvyVaultV2.sol",
- "buildInfoId": "solc-0_8_28-f0322ae6d51b4110e2b55c267b545c35f2b0fd20"
+ "buildInfoId": "solc-0_8_28-6cc1a01c76b0e02d53719e5bedae3bcb52d61551"
}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV3.json b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV3.json
similarity index 99%
rename from ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV3.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV3.json
index 5545902..2355a86 100644
--- a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV3.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV3.json
@@ -886,8 +886,8 @@
"type": "receive"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5f6100f95f395f81816117f20152818161181b015261195f0152612d5f5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5f6100f95f395f81816117f20152818161181b015261195f0152612d5f5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220df19561c5ab8a17864d5afedf033cb7957a160b2187b2ff9b65e8fa01cd0940664736f6c634300081c0033",
+ "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220df19561c5ab8a17864d5afedf033cb7957a160b2187b2ff9b65e8fa01cd0940664736f6c634300081c0033",
"linkReferences": {},
"deployedLinkReferences": {},
"immutableReferences": {
@@ -907,5 +907,5 @@
]
},
"inputSourceName": "project/contracts/vault/CurvyVaultV3.sol",
- "buildInfoId": "solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe"
+ "buildInfoId": "solc-0_8_28-2fdcdbada2eee84a734cef1e494de4601c6cbc09"
}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV3Implementation.json b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV3Implementation.json
similarity index 99%
rename from ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV3Implementation.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV3Implementation.json
index 5545902..2355a86 100644
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV3Implementation.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV3Implementation.json
@@ -886,8 +886,8 @@
"type": "receive"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5f6100f95f395f81816117f20152818161181b015261195f0152612d5f5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5f6100f95f395f81816117f20152818161181b015261195f0152612d5f5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220df19561c5ab8a17864d5afedf033cb7957a160b2187b2ff9b65e8fa01cd0940664736f6c634300081c0033",
+ "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220df19561c5ab8a17864d5afedf033cb7957a160b2187b2ff9b65e8fa01cd0940664736f6c634300081c0033",
"linkReferences": {},
"deployedLinkReferences": {},
"immutableReferences": {
@@ -907,5 +907,5 @@
]
},
"inputSourceName": "project/contracts/vault/CurvyVaultV3.sol",
- "buildInfoId": "solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe"
+ "buildInfoId": "solc-0_8_28-2fdcdbada2eee84a734cef1e494de4601c6cbc09"
}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV4.json b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV4.json
similarity index 99%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV4.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV4.json
index 8c91cae..58178fe 100644
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV4.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV4.json
@@ -886,8 +886,8 @@
"type": "receive"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5c6100f95f395f81816117ef01528181611818015261195c0152612d5c5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5c6100f95f395f81816117ef01528181611818015261195c0152612d5c5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122081d5b920558239d8cde0994fa1fd323dfa7b19485b59a9fe78d834671a22003b64736f6c634300081c0033",
+ "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122081d5b920558239d8cde0994fa1fd323dfa7b19485b59a9fe78d834671a22003b64736f6c634300081c0033",
"linkReferences": {},
"deployedLinkReferences": {},
"immutableReferences": {
@@ -907,5 +907,5 @@
]
},
"inputSourceName": "project/contracts/vault/CurvyVaultV4.sol",
- "buildInfoId": "solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c"
+ "buildInfoId": "solc-0_8_28-15a48b41b7a3c572fd2ed412bc05bd460d526acc"
}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV4Implementation.json b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV4Implementation.json
similarity index 99%
rename from ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV4Implementation.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV4Implementation.json
index 8c91cae..58178fe 100644
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV4Implementation.json
+++ b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV4Implementation.json
@@ -886,8 +886,8 @@
"type": "receive"
}
],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5c6100f95f395f81816117ef01528181611818015261195c0152612d5c5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033",
+ "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5c6100f95f395f81816117ef01528181611818015261195c0152612d5c5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122081d5b920558239d8cde0994fa1fd323dfa7b19485b59a9fe78d834671a22003b64736f6c634300081c0033",
+ "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122081d5b920558239d8cde0994fa1fd323dfa7b19485b59a9fe78d834671a22003b64736f6c634300081c0033",
"linkReferences": {},
"deployedLinkReferences": {},
"immutableReferences": {
@@ -907,5 +907,5 @@
]
},
"inputSourceName": "project/contracts/vault/CurvyVaultV4.sol",
- "buildInfoId": "solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c"
+ "buildInfoId": "solc-0_8_28-15a48b41b7a3c572fd2ed412bc05bd460d526acc"
}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV5.json b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV5.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV5.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV5.json
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV5Implementation.json b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV5Implementation.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV5Implementation.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV5Implementation.json
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV6.json b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV6.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV6.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV6.json
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV6Implementation.json b/ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV6Implementation.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV6Implementation.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyVault#CurvyVaultV6Implementation.json
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#ERC1967Proxy.json b/ignition/deployments/local_sepolia/artifacts/CurvyVault#ERC1967Proxy.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/artifacts/CurvyVault#ERC1967Proxy.json
rename to ignition/deployments/local_sepolia/artifacts/CurvyVault#ERC1967Proxy.json
diff --git a/ignition/deployments/production_base/artifacts/PortalFactory#CreateX.json b/ignition/deployments/local_sepolia/artifacts/PortalFactory#CreateX.json
similarity index 99%
rename from ignition/deployments/production_base/artifacts/PortalFactory#CreateX.json
rename to ignition/deployments/local_sepolia/artifacts/PortalFactory#CreateX.json
index 5d6f263..7fe6487 100644
--- a/ignition/deployments/production_base/artifacts/PortalFactory#CreateX.json
+++ b/ignition/deployments/local_sepolia/artifacts/PortalFactory#CreateX.json
@@ -1,7 +1,7 @@
{
"_format": "hh3-artifact-1",
"contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
+ "sourceName": "contracts/utils/ICreateX.sol",
"abi": [
{
"inputs": [
@@ -901,6 +901,6 @@
"linkReferences": {},
"deployedLinkReferences": {},
"immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
+ "inputSourceName": "project/contracts/utils/ICreateX.sol",
+ "buildInfoId": "solc-0_8_28-0310eaba4238d2f667ee74848906afaf3102aaed"
}
\ No newline at end of file
diff --git a/ignition/deployments/local_sepolia/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/local_sepolia/artifacts/PortalFactory#PortalFactory.json
new file mode 100644
index 0000000..9fdef80
--- /dev/null
+++ b/ignition/deployments/local_sepolia/artifacts/PortalFactory#PortalFactory.json
@@ -0,0 +1,438 @@
+{
+ "_format": "hh3-artifact-1",
+ "contractName": "PortalFactory",
+ "sourceName": "contracts/portal/PortalFactory.sol",
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "initialOwner",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "constructor"
+ },
+ {
+ "inputs": [],
+ "name": "DeploymentFailed",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidLiFiDestinationChain",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidLiFiReceiver",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableInvalidOwner",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableUnauthorizedAccount",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "UnsupportedBridging",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "UnsupportedShielding",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferred",
+ "type": "event"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes",
+ "name": "bridgeData",
+ "type": "bytes"
+ },
+ {
+ "components": [
+ {
+ "internalType": "uint256",
+ "name": "ownerHash",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "token",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "internalType": "struct CurvyTypes.Note",
+ "name": "note",
+ "type": "tuple"
+ },
+ {
+ "internalType": "address",
+ "name": "currency",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "recovery",
+ "type": "address"
+ }
+ ],
+ "name": "deployEntryBridgePortal",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes",
+ "name": "bridgeData",
+ "type": "bytes"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "currency",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "exitAddress",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "exitChainId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "recovery",
+ "type": "address"
+ }
+ ],
+ "name": "deployExitBridgePortal",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "ownerHash",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "recovery",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "tokenAddress",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ }
+ ],
+ "name": "deployRecoveryEntryPortal",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "exitAddress",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "exitChainId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "recovery",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "tokenAddress",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "to",
+ "type": "address"
+ }
+ ],
+ "name": "deployRecoveryExitPortal",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "components": [
+ {
+ "internalType": "uint256",
+ "name": "ownerHash",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "token",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "amount",
+ "type": "uint256"
+ }
+ ],
+ "internalType": "struct CurvyTypes.Note",
+ "name": "note",
+ "type": "tuple"
+ },
+ {
+ "internalType": "address",
+ "name": "recovery",
+ "type": "address"
+ }
+ ],
+ "name": "deployShieldPortal",
+ "outputs": [],
+ "stateMutability": "payable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "ownerHash",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "exitAddress",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "exitChainId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "recovery",
+ "type": "address"
+ }
+ ],
+ "name": "getCreationCode",
+ "outputs": [
+ {
+ "internalType": "bytes",
+ "name": "",
+ "type": "bytes"
+ }
+ ],
+ "stateMutability": "pure",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "ownerHash",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "recovery",
+ "type": "address"
+ }
+ ],
+ "name": "getEntryPortalAddress",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "exitAddress",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "exitChainId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "recovery",
+ "type": "address"
+ }
+ ],
+ "name": "getExitPortalAddress",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "owner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "portalAddress",
+ "type": "address"
+ }
+ ],
+ "name": "portalIsRegistered",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "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",
+ "name": "curvyVaultProxyAddress",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "curvyAggregatorAlphaProxyAddress",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "lifiDiamondAddress",
+ "type": "address"
+ }
+ ],
+ "name": "updateConfig",
+ "outputs": [
+ {
+ "internalType": "bool",
+ "name": "",
+ "type": "bool"
+ }
+ ],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ }
+ ],
+ "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161205c38038061205c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611f1a806101425f395ff3fe6080604052600436106100bf575f3560e01c80635e8b95d21161007c5780638da5cb5b116100575780638da5cb5b14610203578063e16ca8951461021f578063eb2347fd1461023e578063f2fde38b14610275575f5ffd5b80635e8b95d21461019957806366e93b8c146101d0578063715018a6146101ef575f5ffd5b80630188ab0f146100c357806303e62121146100f857806307922e191461011957806311c9a94d1461012c5780632b4c74fa1461015b57806353070b551461017a575b5f5ffd5b3480156100ce575f5ffd5b506100e26100dd366004610b87565b610294565b6040516100ef9190610bce565b60405180910390f35b348015610103575f5ffd5b50610117610112366004610c48565b610323565b005b610117610127366004610d67565b61056a565b348015610137575f5ffd5b5061014b610146366004610d9d565b61066c565b60405190151581526020016100ef565b348015610166575f5ffd5b50610117610175366004610de5565b610700565b348015610185575f5ffd5b50610117610194366004610e5d565b6108a1565b3480156101a4575f5ffd5b506101b86101b3366004610ea2565b610924565b6040516001600160a01b0390911681526020016100ef565b3480156101db575f5ffd5b506101176101ea366004610ec5565b61097a565b3480156101fa575f5ffd5b506101176109fe565b34801561020e575f5ffd5b505f546001600160a01b03166101b8565b34801561022a575f5ffd5b506101b8610239366004610f1b565b610a11565b348015610249575f5ffd5b5061014b610258366004610f4f565b6001600160a01b03165f9081526005602052604090205460ff1690565b348015610280575f5ffd5b5061011761028f366004610f4f565b610a68565b60605f604051806020016102a790610b66565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a08301909152919250610308908390839060c001610f88565b60405160208183030381529060405292505050949350505050565b61032b610aaa565b6004546001600160a01b03166103545760405163437f3ac360e01b815260040160405180910390fd5b46820361040b576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda9161038e918c918c9101610fcc565b60a060405180830381865afa1580156103a9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103cd9190610fef565b9050836001600160a01b031681604001516001600160a01b0316146104055760405163523660f760e01b815260040160405180910390fd5b506104dd565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161043e918c918c9101610fcc565b5f60405180830381865afa158015610458573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261047f9190810190611111565b9050836001600160a01b03168160a001516001600160a01b0316146104b75760405163523660f760e01b815260040160405180910390fd5b828160e00151146104db576040516397c91b6960e01b815260040160405180910390fd5b505b5f6104ea5f858585610294565b90505f6104f682610ad6565b6004805460405163a31716bf60e01b81529293506001600160a01b038085169363a31716bf9361053293909216918e918e918e918e9101611220565b5f604051808303815f87803b158015610549575f5ffd5b505af115801561055b573d5f5f3e3d5ffd5b50505050505050505050505050565b610572610aaa565b6002546001600160a01b0316158061059357506003546001600160a01b0316155b156105b1576040516389da714f60e01b815260040160405180910390fd5b5f6105c1835f01515f5f85610294565b90505f6105cd82610ad6565b6001600160a01b038181165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a01516044830152841660648201529216608483015291925063994d0d389060a4015f604051808303815f87803b158015610650575f5ffd5b505af1158015610662573d5f5f3e3d5ffd5b5050505050505050565b5f610675610aaa565b6001600160a01b038416156106a057600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106cb57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106f657600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b610708610aaa565b6004546001600160a01b03166107315760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af91610764918a918a9101610fcc565b5f60405180830381865afa15801561077e573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526107a59190810190611111565b90506107b4845f015183610924565b6001600160a01b03168160a001516001600160a01b0316146107e95760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461080f576040516397c91b6960e01b815260040160405180910390fd5b5f61081f855f01515f5f86610294565b90505f61082b82610ad6565b600480546040808a0151905163a31716bf60e01b81529394506001600160a01b038086169463a31716bf9461086a94909216928e928e928d9101611220565b5f604051808303815f87803b158015610881575f5ffd5b505af1158015610893573d5f5f3e3d5ffd5b505050505050505050505050565b5f6108ae855f5f87610294565b90505f6108ba82610ad6565b604051631922fddd60e21b81526001600160a01b03868116600483015285811660248301529192509082169063648bf774906044015f604051808303815f87803b158015610906575f5ffd5b505af1158015610918573d5f5f3e3d5ffd5b50505050505050505050565b5f5f610932845f5f86610294565b90505f60ff60f81b3060015484805190602001206040516020016109599493929190611266565b60408051808303601f19018152919052805160209091012095945050505050565b5f6109875f878787610294565b90505f61099382610ad6565b604051631922fddd60e21b81526001600160a01b03868116600483015285811660248301529192509082169063648bf774906044015f604051808303815f87803b1580156109df575f5ffd5b505af11580156109f1573d5f5f3e3d5ffd5b5050505050505050505050565b610a06610aaa565b610a0f5f610b17565b565b5f5f610a1f5f868686610294565b90505f60ff60f81b306001548480519060200120604051602001610a469493929190611266565b60408051808303601f1901815291905280516020909101209695505050505050565b610a70610aaa565b6001600160a01b038116610a9e57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610aa781610b17565b50565b5f546001600160a01b03163314610a0f5760405163118cdaa760e01b8152336004820152602401610a95565b5f5f5f60015490508084516020860134f591506001600160a01b038216610b1057604051633011642560e01b815260040160405180910390fd5b5092915050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610c45806112a083390190565b6001600160a01b0381168114610aa7575f5ffd5b5f5f5f5f60808587031215610b9a575f5ffd5b843593506020850135610bac81610b73565b9250604085013591506060850135610bc381610b73565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610c13575f5ffd5b50813567ffffffffffffffff811115610c2a575f5ffd5b602083019150836020828501011115610c41575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610c5e575f5ffd5b873567ffffffffffffffff811115610c74575f5ffd5b610c808a828b01610c03565b909850965050602088013594506040880135610c9b81610b73565b93506060880135610cab81610b73565b92506080880135915060a0880135610cc281610b73565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610d0a57610d0a610cd2565b60405290565b5f60608284031215610d20575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d4357610d43610cd2565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610d78575f5ffd5b610d828484610d10565b91506060830135610d9281610b73565b809150509250929050565b5f5f5f60608486031215610daf575f5ffd5b8335610dba81610b73565b92506020840135610dca81610b73565b91506040840135610dda81610b73565b809150509250925092565b5f5f5f5f5f60c08688031215610df9575f5ffd5b853567ffffffffffffffff811115610e0f575f5ffd5b610e1b88828901610c03565b9096509450610e2f90508760208801610d10565b92506080860135610e3f81610b73565b915060a0860135610e4f81610b73565b809150509295509295909350565b5f5f5f5f60808587031215610e70575f5ffd5b843593506020850135610e8281610b73565b92506040850135610e9281610b73565b91506060850135610bc381610b73565b5f5f60408385031215610eb3575f5ffd5b823591506020830135610d9281610b73565b5f5f5f5f5f60a08688031215610ed9575f5ffd5b8535610ee481610b73565b9450602086013593506040860135610efb81610b73565b92506060860135610f0b81610b73565b91506080860135610e4f81610b73565b5f5f5f60608486031215610f2d575f5ffd5b8335610f3881610b73565b9250602084013591506040840135610dda81610b73565b5f60208284031215610f5f575f5ffd5b8135610f6a81610b73565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610f9c610f968386610f71565b84610f71565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610f9c602083018486610fa4565b8051610fea81610b73565b919050565b5f60a0828403128015611000575f5ffd5b5060405160a0810167ffffffffffffffff8111828210171561102457611024610cd2565b604052825161103281610b73565b815260208381015190820152604083015161104c81610b73565b6040820152606083015161105f81610b73565b60608201526080928301519281019290925250919050565b5f82601f830112611086575f5ffd5b815167ffffffffffffffff8111156110a0576110a0610cd2565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110cf576110cf610cd2565b6040528181528382016020018510156110e6575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610fea575f5ffd5b5f60208284031215611121575f5ffd5b815167ffffffffffffffff811115611137575f5ffd5b82016101408185031215611149575f5ffd5b611151610ce6565b81518152602082015167ffffffffffffffff81111561116e575f5ffd5b61117a86828501611077565b602083015250604082015167ffffffffffffffff811115611199575f5ffd5b6111a586828501611077565b6040830152506111b760608301610fdf565b60608201526111c860808301610fdf565b60808201526111d960a08301610fdf565b60a082015260c0828101519082015260e080830151908201526111ff6101008301611102565b6101008201526112126101208301611102565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906112449083018688610fa4565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610c45380380610c4583398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610b10806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b436600461092d565b6100f4565b005b6100b96100c9366004610964565b610296565b6100b96100dc3660046109f4565b6104f4565b600554610077906001600160a01b031681565b6005546001600160a01b0316321461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610a92565b90506102106001600160a01b0383168483610762565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa158015610376573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061039a9190610aa9565b90506001600160a01b038116158015906103d157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104685760035460408501516103f6916001600160a01b03848116929116906107c6565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b15801561044d575f5ffd5b505af115801561045f573d5f5f3e3d5ffd5b505050506104db565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b1580156104c3575f5ffd5b505af11580156104d5573d5f5f3e3d5ffd5b50505050505b50506005805460ff60a01b1916600160a01b1790555050565b600554600160a01b900460ff16156105485760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061057d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156106a6576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156105c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105ec9190610a92565b90508381101561060f57604051637bdd7ae760e01b815260040160405180910390fd5b6106236001600160a01b03831688866107c6565b5f876001600160a01b0316878760405161063e929190610acb565b5f604051808303815f865af19150503d805f8114610677576040519150601f19603f3d011682016040523d82523d5f602084013e61067c565b606091505b505090508061069e57604051631bb7daad60e11b815260040160405180910390fd5b505050610748565b47828110156106c857604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516106e4929190610acb565b5f6040518083038185875af1925050503d805f811461071e576040519150601f19603f3d011682016040523d82523d5f602084013e610723565b606091505b505090508061074557604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b038381166024830152604482018390526107c191859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610851565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261081784826108bd565b610210576040516001600160a01b0384811660248301525f604483015261084b91869182169063095ea7b39060640161078f565b61021084825b5f5f60205f8451602086015f885af180610870576040513d5f823e3d81fd5b50505f513d91508115610887578060011415610894565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108fc575081156108ee57806001146108fc565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b038116811461091a575f5ffd5b50565b803561092881610906565b919050565b5f5f6040838503121561093e575f5ffd5b823561094981610906565b9150602083013561095981610906565b809150509250929050565b5f5f5f83850360a0811215610977575f5ffd5b6060811215610984575f5ffd5b506040516060810181811067ffffffffffffffff821117156109b457634e487b7160e01b5f52604160045260245ffd5b60409081528535825260208087013590830152858101359082015292506109dd6060850161091d565b91506109eb6080850161091d565b90509250925092565b5f5f5f5f5f60808688031215610a08575f5ffd5b8535610a1381610906565b9450602086013567ffffffffffffffff811115610a2e575f5ffd5b8601601f81018813610a3e575f5ffd5b803567ffffffffffffffff811115610a54575f5ffd5b886020828401011115610a65575f5ffd5b60209190910194509250604086013591506060860135610a8481610906565b809150509295509295909350565b5f60208284031215610aa2575f5ffd5b5051919050565b5f60208284031215610ab9575f5ffd5b8151610ac481610906565b9392505050565b818382375f910190815291905056fea2646970667358221220ef2e672beab9ba98f9b823dbdb9af01f97da0fa3990b47d9b0e59fb3a69f47f564736f6c634300081c0033a26469706673582212205e77fa29f0c06d6c75666f9d4341eee6d74bf483e7c24fda04f181922a8007bd64736f6c634300081c0033",
+ "deployedBytecode": "0x6080604052600436106100bf575f3560e01c80635e8b95d21161007c5780638da5cb5b116100575780638da5cb5b14610203578063e16ca8951461021f578063eb2347fd1461023e578063f2fde38b14610275575f5ffd5b80635e8b95d21461019957806366e93b8c146101d0578063715018a6146101ef575f5ffd5b80630188ab0f146100c357806303e62121146100f857806307922e191461011957806311c9a94d1461012c5780632b4c74fa1461015b57806353070b551461017a575b5f5ffd5b3480156100ce575f5ffd5b506100e26100dd366004610b87565b610294565b6040516100ef9190610bce565b60405180910390f35b348015610103575f5ffd5b50610117610112366004610c48565b610323565b005b610117610127366004610d67565b61056a565b348015610137575f5ffd5b5061014b610146366004610d9d565b61066c565b60405190151581526020016100ef565b348015610166575f5ffd5b50610117610175366004610de5565b610700565b348015610185575f5ffd5b50610117610194366004610e5d565b6108a1565b3480156101a4575f5ffd5b506101b86101b3366004610ea2565b610924565b6040516001600160a01b0390911681526020016100ef565b3480156101db575f5ffd5b506101176101ea366004610ec5565b61097a565b3480156101fa575f5ffd5b506101176109fe565b34801561020e575f5ffd5b505f546001600160a01b03166101b8565b34801561022a575f5ffd5b506101b8610239366004610f1b565b610a11565b348015610249575f5ffd5b5061014b610258366004610f4f565b6001600160a01b03165f9081526005602052604090205460ff1690565b348015610280575f5ffd5b5061011761028f366004610f4f565b610a68565b60605f604051806020016102a790610b66565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a08301909152919250610308908390839060c001610f88565b60405160208183030381529060405292505050949350505050565b61032b610aaa565b6004546001600160a01b03166103545760405163437f3ac360e01b815260040160405180910390fd5b46820361040b576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda9161038e918c918c9101610fcc565b60a060405180830381865afa1580156103a9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103cd9190610fef565b9050836001600160a01b031681604001516001600160a01b0316146104055760405163523660f760e01b815260040160405180910390fd5b506104dd565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161043e918c918c9101610fcc565b5f60405180830381865afa158015610458573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261047f9190810190611111565b9050836001600160a01b03168160a001516001600160a01b0316146104b75760405163523660f760e01b815260040160405180910390fd5b828160e00151146104db576040516397c91b6960e01b815260040160405180910390fd5b505b5f6104ea5f858585610294565b90505f6104f682610ad6565b6004805460405163a31716bf60e01b81529293506001600160a01b038085169363a31716bf9361053293909216918e918e918e918e9101611220565b5f604051808303815f87803b158015610549575f5ffd5b505af115801561055b573d5f5f3e3d5ffd5b50505050505050505050505050565b610572610aaa565b6002546001600160a01b0316158061059357506003546001600160a01b0316155b156105b1576040516389da714f60e01b815260040160405180910390fd5b5f6105c1835f01515f5f85610294565b90505f6105cd82610ad6565b6001600160a01b038181165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a01516044830152841660648201529216608483015291925063994d0d389060a4015f604051808303815f87803b158015610650575f5ffd5b505af1158015610662573d5f5f3e3d5ffd5b5050505050505050565b5f610675610aaa565b6001600160a01b038416156106a057600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106cb57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106f657600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b610708610aaa565b6004546001600160a01b03166107315760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af91610764918a918a9101610fcc565b5f60405180830381865afa15801561077e573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526107a59190810190611111565b90506107b4845f015183610924565b6001600160a01b03168160a001516001600160a01b0316146107e95760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461080f576040516397c91b6960e01b815260040160405180910390fd5b5f61081f855f01515f5f86610294565b90505f61082b82610ad6565b600480546040808a0151905163a31716bf60e01b81529394506001600160a01b038086169463a31716bf9461086a94909216928e928e928d9101611220565b5f604051808303815f87803b158015610881575f5ffd5b505af1158015610893573d5f5f3e3d5ffd5b505050505050505050505050565b5f6108ae855f5f87610294565b90505f6108ba82610ad6565b604051631922fddd60e21b81526001600160a01b03868116600483015285811660248301529192509082169063648bf774906044015f604051808303815f87803b158015610906575f5ffd5b505af1158015610918573d5f5f3e3d5ffd5b50505050505050505050565b5f5f610932845f5f86610294565b90505f60ff60f81b3060015484805190602001206040516020016109599493929190611266565b60408051808303601f19018152919052805160209091012095945050505050565b5f6109875f878787610294565b90505f61099382610ad6565b604051631922fddd60e21b81526001600160a01b03868116600483015285811660248301529192509082169063648bf774906044015f604051808303815f87803b1580156109df575f5ffd5b505af11580156109f1573d5f5f3e3d5ffd5b5050505050505050505050565b610a06610aaa565b610a0f5f610b17565b565b5f5f610a1f5f868686610294565b90505f60ff60f81b306001548480519060200120604051602001610a469493929190611266565b60408051808303601f1901815291905280516020909101209695505050505050565b610a70610aaa565b6001600160a01b038116610a9e57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610aa781610b17565b50565b5f546001600160a01b03163314610a0f5760405163118cdaa760e01b8152336004820152602401610a95565b5f5f5f60015490508084516020860134f591506001600160a01b038216610b1057604051633011642560e01b815260040160405180910390fd5b5092915050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610c45806112a083390190565b6001600160a01b0381168114610aa7575f5ffd5b5f5f5f5f60808587031215610b9a575f5ffd5b843593506020850135610bac81610b73565b9250604085013591506060850135610bc381610b73565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610c13575f5ffd5b50813567ffffffffffffffff811115610c2a575f5ffd5b602083019150836020828501011115610c41575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610c5e575f5ffd5b873567ffffffffffffffff811115610c74575f5ffd5b610c808a828b01610c03565b909850965050602088013594506040880135610c9b81610b73565b93506060880135610cab81610b73565b92506080880135915060a0880135610cc281610b73565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610d0a57610d0a610cd2565b60405290565b5f60608284031215610d20575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d4357610d43610cd2565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610d78575f5ffd5b610d828484610d10565b91506060830135610d9281610b73565b809150509250929050565b5f5f5f60608486031215610daf575f5ffd5b8335610dba81610b73565b92506020840135610dca81610b73565b91506040840135610dda81610b73565b809150509250925092565b5f5f5f5f5f60c08688031215610df9575f5ffd5b853567ffffffffffffffff811115610e0f575f5ffd5b610e1b88828901610c03565b9096509450610e2f90508760208801610d10565b92506080860135610e3f81610b73565b915060a0860135610e4f81610b73565b809150509295509295909350565b5f5f5f5f60808587031215610e70575f5ffd5b843593506020850135610e8281610b73565b92506040850135610e9281610b73565b91506060850135610bc381610b73565b5f5f60408385031215610eb3575f5ffd5b823591506020830135610d9281610b73565b5f5f5f5f5f60a08688031215610ed9575f5ffd5b8535610ee481610b73565b9450602086013593506040860135610efb81610b73565b92506060860135610f0b81610b73565b91506080860135610e4f81610b73565b5f5f5f60608486031215610f2d575f5ffd5b8335610f3881610b73565b9250602084013591506040840135610dda81610b73565b5f60208284031215610f5f575f5ffd5b8135610f6a81610b73565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610f9c610f968386610f71565b84610f71565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610f9c602083018486610fa4565b8051610fea81610b73565b919050565b5f60a0828403128015611000575f5ffd5b5060405160a0810167ffffffffffffffff8111828210171561102457611024610cd2565b604052825161103281610b73565b815260208381015190820152604083015161104c81610b73565b6040820152606083015161105f81610b73565b60608201526080928301519281019290925250919050565b5f82601f830112611086575f5ffd5b815167ffffffffffffffff8111156110a0576110a0610cd2565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110cf576110cf610cd2565b6040528181528382016020018510156110e6575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610fea575f5ffd5b5f60208284031215611121575f5ffd5b815167ffffffffffffffff811115611137575f5ffd5b82016101408185031215611149575f5ffd5b611151610ce6565b81518152602082015167ffffffffffffffff81111561116e575f5ffd5b61117a86828501611077565b602083015250604082015167ffffffffffffffff811115611199575f5ffd5b6111a586828501611077565b6040830152506111b760608301610fdf565b60608201526111c860808301610fdf565b60808201526111d960a08301610fdf565b60a082015260c0828101519082015260e080830151908201526111ff6101008301611102565b6101008201526112126101208301611102565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906112449083018688610fa4565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610c45380380610c4583398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610b10806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b436600461092d565b6100f4565b005b6100b96100c9366004610964565b610296565b6100b96100dc3660046109f4565b6104f4565b600554610077906001600160a01b031681565b6005546001600160a01b0316321461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610a92565b90506102106001600160a01b0383168483610762565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa158015610376573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061039a9190610aa9565b90506001600160a01b038116158015906103d157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104685760035460408501516103f6916001600160a01b03848116929116906107c6565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b15801561044d575f5ffd5b505af115801561045f573d5f5f3e3d5ffd5b505050506104db565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b1580156104c3575f5ffd5b505af11580156104d5573d5f5f3e3d5ffd5b50505050505b50506005805460ff60a01b1916600160a01b1790555050565b600554600160a01b900460ff16156105485760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061057d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156106a6576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156105c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105ec9190610a92565b90508381101561060f57604051637bdd7ae760e01b815260040160405180910390fd5b6106236001600160a01b03831688866107c6565b5f876001600160a01b0316878760405161063e929190610acb565b5f604051808303815f865af19150503d805f8114610677576040519150601f19603f3d011682016040523d82523d5f602084013e61067c565b606091505b505090508061069e57604051631bb7daad60e11b815260040160405180910390fd5b505050610748565b47828110156106c857604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516106e4929190610acb565b5f6040518083038185875af1925050503d805f811461071e576040519150601f19603f3d011682016040523d82523d5f602084013e610723565b606091505b505090508061074557604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b038381166024830152604482018390526107c191859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610851565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261081784826108bd565b610210576040516001600160a01b0384811660248301525f604483015261084b91869182169063095ea7b39060640161078f565b61021084825b5f5f60205f8451602086015f885af180610870576040513d5f823e3d81fd5b50505f513d91508115610887578060011415610894565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108fc575081156108ee57806001146108fc565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b038116811461091a575f5ffd5b50565b803561092881610906565b919050565b5f5f6040838503121561093e575f5ffd5b823561094981610906565b9150602083013561095981610906565b809150509250929050565b5f5f5f83850360a0811215610977575f5ffd5b6060811215610984575f5ffd5b506040516060810181811067ffffffffffffffff821117156109b457634e487b7160e01b5f52604160045260245ffd5b60409081528535825260208087013590830152858101359082015292506109dd6060850161091d565b91506109eb6080850161091d565b90509250925092565b5f5f5f5f5f60808688031215610a08575f5ffd5b8535610a1381610906565b9450602086013567ffffffffffffffff811115610a2e575f5ffd5b8601601f81018813610a3e575f5ffd5b803567ffffffffffffffff811115610a54575f5ffd5b886020828401011115610a65575f5ffd5b60209190910194509250604086013591506060860135610a8481610906565b809150509295509295909350565b5f60208284031215610aa2575f5ffd5b5051919050565b5f60208284031215610ab9575f5ffd5b8151610ac481610906565b9392505050565b818382375f910190815291905056fea2646970667358221220ef2e672beab9ba98f9b823dbdb9af01f97da0fa3990b47d9b0e59fb3a69f47f564736f6c634300081c0033a26469706673582212205e77fa29f0c06d6c75666f9d4341eee6d74bf483e7c24fda04f181922a8007bd64736f6c634300081c0033",
+ "linkReferences": {},
+ "deployedLinkReferences": {},
+ "immutableReferences": {},
+ "inputSourceName": "project/contracts/portal/PortalFactory.sol",
+ "buildInfoId": "solc-0_8_28-548b1b971ceaa73b63e28856230b75d9e0f47bbc"
+}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-058921f7f7dc564bf6aa8a523006ec8cbd607c64.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-022b78849a8c7009f2216c2432572538cb4bcef2.json
similarity index 99%
rename from ignition/deployments/staging_sepolia/build-info/solc-0_8_28-058921f7f7dc564bf6aa8a523006ec8cbd607c64.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-022b78849a8c7009f2216c2432572538cb4bcef2.json
index f3b18de..545cb99 100644
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-058921f7f7dc564bf6aa8a523006ec8cbd607c64.json
+++ b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-022b78849a8c7009f2216c2432572538cb4bcef2.json
@@ -1,6 +1,6 @@
{
"_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-058921f7f7dc564bf6aa8a523006ec8cbd607c64",
+ "id": "solc-0_8_28-022b78849a8c7009f2216c2432572538cb4bcef2",
"solcVersion": "0.8.28",
"solcLongVersion": "0.8.28+commit.7893614a",
"userSourceNameMap": {
@@ -121,13 +121,13 @@
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
},
"project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
+ "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
},
"project/contracts/vault/CurvyVaultV1.sol": {
"content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { EIP712Upgradeable } from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { ECDSA } from \"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\";\nimport \"./ICurvyVault.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract CurvyVaultV1 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH =\n keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"1.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Private functions\n\n function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {\n bytes32 structHash = keccak256(\n abi.encode(\n CURVY_META_TRANSACTION_TYPE_HASH,\n _nonces[metaTransaction.from],\n metaTransaction.from,\n metaTransaction.to,\n metaTransaction.tokenId,\n metaTransaction.amount,\n metaTransaction.gasFee,\n metaTransaction.metaTransactionType\n )\n );\n\n // Add domain data to the hash\n bytes32 hash = _hashTypedDataV4(structHash);\n\n // Check that the metaTransaction is signed by metaTransaction.from\n address signer = ECDSA.recover(hash, signature);\n require(signer == metaTransaction.from, \"CurvyVault#_validateSignature: Invalid signature!\");\n\n // Increment nonce\n _nonces[signer]++;\n emit NonceChange(signer, _nonces[signer]);\n }\n\n function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_transfer: Invalid recipient for transfer!\");\n require(\n metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Transfer,\n \"CurvyVault#transfer: Wrong type for meta transaction!\"\n );\n\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.to][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (transferFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);\n }\n\n function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_withdraw: Invalid withdraw recipient!\");\n require(\n metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,\n \"CurvyVault#withdraw: Wrong type for meta transaction!\"\n );\n\n // Burn wrapped tokens\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (withdrawalFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n // Withdraw\n if (metaTransaction.tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];\n IERC20(tokenAddress).safeTransfer(metaTransaction.to, metaTransaction.amount);\n } else {\n // We are withdrawing ETH\n (bool success, ) = metaTransaction.to.call{ value: metaTransaction.amount }(\"\");\n require(success, \"CurvyVault#_withdraw: ETH withdrawal failed!\");\n }\n\n emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);\n }\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n require(_tokenAddressToTokenId[tokenAddress] == 0, \"CurvyVault#registerToken: Token already registered!\");\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {\n if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {\n depositFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {\n transferFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {\n withdrawalFee = fee;\n } else {\n revert(\"CurvyVault#setFeeAmount: Unknown fee type!\");\n }\n\n emit FeeChange(metaTransactionType, fee);\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n require(to != address(0x0), \"CurvyVault#deposit: Invalid recipient for deposit!\");\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n require(msg.value == 0, \"CurvyVault#deposit: Don't send ETH with ERC20 deposit!\");\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault#deposit: Token address not registered!\");\n } else {\n // We are depositing ETH\n require(amount == msg.value, \"CurvyVault#deposit: Incorrect deposit value!\");\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)\n if (gasSponsorshipAmount != 0) {\n _balances[to][tokenId] -= gasSponsorshipAmount;\n _balances[owner()][tokenId] += gasSponsorshipAmount;\n }\n\n emit Transfer(address(0x0), to, tokenId, amount);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n require(msg.sender == metaTransaction.from, \"CurvyVault#transfer: Invalid msg.sender!\");\n require(\n metaTransaction.gasFee == 0,\n \"CurvyVault#transfer: gasFee must be 0 when not relaying metaTransaction for others!\"\n );\n\n _transfer(metaTransaction);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _transfer(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n require(msg.sender == metaTransaction.from, \"CurvyVault#withdraw: Invalid msg.sender!\");\n require(\n metaTransaction.gasFee == 0,\n \"CurvyVault#withdraw: gasFee must be 0 when not relaying metaTransaction for others!\"\n );\n\n _withdraw(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _withdraw(metaTransaction);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n require(tokenAddress != address(0x0), \"CurvyVault:#getIdAddress: Unregistered token!\");\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault:#getTokenID: Unregistered token!\");\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n function balanceOfBatch(\n address[] memory owners,\n uint256[] memory tokenIds\n ) external view returns (uint256[] memory) {\n require(owners.length == tokenIds.length, \"CurvyVault#balanceOfBatch: Invalid array length!\");\n\n // Variables\n uint256[] memory batchBalances = new uint256[](owners.length);\n\n // Iterate over each owner and token ID\n for (uint256 i = 0; i < owners.length; i++) {\n batchBalances[i] = _balances[owners[i]][tokenIds[i]];\n }\n\n return batchBalances;\n }\n\n function getNonce(address _signer) external view returns (uint256 nonce) {\n return _nonces[_signer];\n }\n\n //#endregion\n}\n"
},
"project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
+ "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
}
}
}
diff --git a/ignition/deployments/production_base/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-0310eaba4238d2f667ee74848906afaf3102aaed.json
similarity index 97%
rename from ignition/deployments/production_base/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-0310eaba4238d2f667ee74848906afaf3102aaed.json
index 4b57fc4..f265fb8 100644
--- a/ignition/deployments/production_base/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-0310eaba4238d2f667ee74848906afaf3102aaed.json
@@ -1,10 +1,10 @@
{
"_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
+ "id": "solc-0_8_28-0310eaba4238d2f667ee74848906afaf3102aaed",
"solcVersion": "0.8.28",
"solcLongVersion": "0.8.28+commit.7893614a",
"userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
+ "contracts/utils/ICreateX.sol": "project/contracts/utils/ICreateX.sol"
},
"input": {
"language": "Solidity",
@@ -31,7 +31,7 @@
"remappings": []
},
"sources": {
- "project/contracts/devenv/ICreateX.sol": {
+ "project/contracts/utils/ICreateX.sol": {
"content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
}
}
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-15a48b41b7a3c572fd2ed412bc05bd460d526acc.json
similarity index 99%
rename from ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-15a48b41b7a3c572fd2ed412bc05bd460d526acc.json
index acd3a77..77df9ea 100644
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c.json
+++ b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-15a48b41b7a3c572fd2ed412bc05bd460d526acc.json
@@ -1,6 +1,6 @@
{
"_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c",
+ "id": "solc-0_8_28-15a48b41b7a3c572fd2ed412bc05bd460d526acc",
"solcVersion": "0.8.28",
"solcLongVersion": "0.8.28+commit.7893614a",
"userSourceNameMap": {
@@ -121,13 +121,13 @@
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
},
"project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
+ "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
},
"project/contracts/vault/CurvyVaultV4.sol": {
"content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {EIP712Upgradeable} from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {ECDSA} from \"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\";\nimport \"./ICurvyVault.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ncontract CurvyVaultV4 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH = keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"2.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Private functions\n\n function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {\n bytes32 structHash = keccak256(\n abi.encode(\n CURVY_META_TRANSACTION_TYPE_HASH,\n _nonces[metaTransaction.from],\n metaTransaction.from,\n metaTransaction.to,\n metaTransaction.tokenId,\n metaTransaction.amount,\n metaTransaction.gasFee,\n metaTransaction.metaTransactionType\n )\n );\n\n // Add domain data to the hash\n bytes32 hash = _hashTypedDataV4(structHash);\n\n // Check that the metaTransaction is signed by metaTransaction.from\n address signer = ECDSA.recover(hash, signature);\n require(signer == metaTransaction.from, \"CurvyVault#_validateSignature: Invalid signature!\");\n\n // Increment nonce\n _nonces[signer]++;\n emit NonceChange(signer, _nonces[signer]);\n }\n\n function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n if (metaTransaction.to == address(0)) revert InvalidRecipient();\n if (metaTransaction.metaTransactionType != CurvyTypes.MetaTransactionType.Transfer) {\n revert InvalidTransactionType();\n }\n\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (transferFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);\n }\n\n function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_withdraw: Invalid withdraw recipient!\");\n require(\n metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,\n \"CurvyVault#withdraw: Wrong type for meta transaction!\"\n );\n\n // Burn wrapped tokens\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n\n uint256 amountAfterFees = metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n amountAfterFees -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (withdrawalFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;\n amountAfterFees -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n // Withdraw\n if (metaTransaction.tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];\n IERC20(tokenAddress).safeTransfer(metaTransaction.to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success,) = metaTransaction.to.call{value: amountAfterFees}(\"\");\n require(success, \"CurvyVault#_withdraw: ETH withdrawal failed!\");\n }\n\n emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);\n }\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n require(_tokenAddressToTokenId[tokenAddress] == 0, \"CurvyVault#registerToken: Token already registered!\");\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {\n if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {\n depositFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {\n transferFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {\n withdrawalFee = fee;\n } else {\n revert(\"CurvyVault#setFeeAmount: Unknown fee type!\");\n }\n\n emit FeeChange(metaTransactionType, fee);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n require(msg.sender == _curvyAggregator, \"Only CurvyAggregator can do vault deposits through portal autoShield\");\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n require(msg.value == 0, \"CurvyVault#deposit: Don't send ETH with ERC20 deposit!\");\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n } else {\n // We are depositing ETH\n require(amount == msg.value, \"CurvyVault#deposit: Incorrect deposit value!\");\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)\n if (gasSponsorshipAmount != 0) {\n _balances[to][tokenId] -= gasSponsorshipAmount;\n _balances[owner()][tokenId] += gasSponsorshipAmount;\n }\n\n emit Transfer(address(0x0), to, tokenId, amount);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _transfer(metaTransaction);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _transfer(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _withdraw(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _withdraw(metaTransaction);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n require(tokenAddress != address(0x0), \"CurvyVault:#getIdAddress: Unregistered token!\");\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault:#getTokenID: Unregistered token!\");\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n function balanceOfBatch(address[] memory owners, uint256[] memory tokenIds)\n external\n view\n returns (uint256[] memory)\n {\n require(owners.length == tokenIds.length, \"CurvyVault#balanceOfBatch: Invalid array length!\");\n\n // Variables\n uint256[] memory batchBalances = new uint256[](owners.length);\n\n // Iterate over each owner and token ID\n for (uint256 i = 0; i < owners.length; i++) {\n batchBalances[i] = _balances[owners[i]][tokenIds[i]];\n }\n\n return batchBalances;\n }\n\n function getNonce(address _signer) external view returns (uint256 nonce) {\n return _nonces[_signer];\n }\n\n //#endregion\n}\n"
},
"project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
+ "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
}
}
}
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/build-info/solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd.json
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-250d350fdc19f76e88fab9d448b6f2661e90b49d.json
similarity index 94%
rename from ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-250d350fdc19f76e88fab9d448b6f2661e90b49d.json
index 74d5a07..1788640 100644
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd.json
+++ b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-250d350fdc19f76e88fab9d448b6f2661e90b49d.json
@@ -1,6 +1,6 @@
{
"_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd",
+ "id": "solc-0_8_28-250d350fdc19f76e88fab9d448b6f2661e90b49d",
"solcVersion": "0.8.28",
"solcLongVersion": "0.8.28+commit.7893614a",
"userSourceNameMap": {
@@ -93,22 +93,22 @@
"content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport \"../portal/IPortalFactory.sol\";\nimport {\nICurvyInsertionVerifier,\nICurvyAggregationVerifier,\nICurvyWithdrawVerifier\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"./ICurvyAggregatorAlpha.sol\";\n\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {PoseidonT4} from \"./utils/PoseidonT4.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV4 is ICurvyAggregatorAlpha, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n // Curvy's portal factory contract;\n IPortalFactory public portalFactory;\n\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n __Ownable_init(initialOwner);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdateV2 memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);\n }\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVault(_update.curvyVault);\n }\n if (_update.portalFactory != address(0)) {\n portalFactory = IPortalFactory(_update.portalFactory);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable {\n // Only allow auto shielding of portals that were deployed through the portalFactory\n require(portalFactory.portalIsRegistered(msg.sender), \"CurvyAggregator: portal is not registered\");\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);\n IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);\n }\n\n curvyVault.deposit{ value: msg.value }(tokenAddress, address(this), note.amount, 0);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function depositNote(address from, CurvyTypes.Note memory note, bytes memory signature) public {\n // TODO: Gas fee\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n from,\n address(this),\n note.token,\n note.amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n ),\n signature\n );\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n require(\n _pendingIdsQueue[noteId],\n \"CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!\"\n );\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n require(\n _notesTreeRoot == publicInputs[numPublicInputs - 2],\n \"CurvyAggregator#commitDepositBatch: Invalid notes root!\"\n );\n\n require(\n insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitDepositBatch: Invalid proof!\"\n );\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n require(\n _notesTreeRoot == oldNotesTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!\"\n );\n require(\n _nullifiersTreeRoot == oldNullifiersTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!\"\n );\n\n require(\n aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitAggregationBatch: Invalid proof!\"\n );\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[10] memory publicInputs\n ) public returns (bool) {\n require(\n publicInputs[3] == _nullifiersTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!\"\n );\n require(\n publicInputs[2] == _notesTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!\"\n );\n\n require(\n withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!\"\n );\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[4 + i];\n address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n destinationAddress,\n publicInputs[numPublicInputs - 1],\n amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n }\n }\n\n // Fee collection\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n owner(),\n publicInputs[numPublicInputs - 1],\n publicInputs[1],\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
},
"project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
+ "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
},
"project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
"content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
},
"project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
+ "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\ninterface ICurvyWithdrawVerifierV3 {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[9] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
},
"project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address recovery) external pure returns (bytes memory);\n\n function getPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) external;\n}\n"
+ "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n function deployRecoveryEntryPortal(uint256 ownerHash, address recovery, address tokenAddress, address to) external;\n\n function deployRecoveryExitPortal(address exitAddress, uint256 exitChainId, address recovery, address tokenAddress, address to) external;\n\n //#endregion\n}\n"
},
"project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
+ "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
},
"project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
+ "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
}
}
}
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-7aa766fe6b7b062ed2ddb662f43195e0e5c263ca.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-2d0f76051c4fe1487bf2b63ec22575690e89a6f2.json
similarity index 97%
rename from ignition/deployments/staging_sepolia/build-info/solc-0_8_28-7aa766fe6b7b062ed2ddb662f43195e0e5c263ca.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-2d0f76051c4fe1487bf2b63ec22575690e89a6f2.json
index 29447ab..5028410 100644
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-7aa766fe6b7b062ed2ddb662f43195e0e5c263ca.json
+++ b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-2d0f76051c4fe1487bf2b63ec22575690e89a6f2.json
@@ -1,6 +1,6 @@
{
"_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-7aa766fe6b7b062ed2ddb662f43195e0e5c263ca",
+ "id": "solc-0_8_28-2d0f76051c4fe1487bf2b63ec22575690e89a6f2",
"solcVersion": "0.8.28",
"solcLongVersion": "0.8.28+commit.7893614a",
"userSourceNameMap": {
@@ -77,13 +77,13 @@
"content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
},
"project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
+ "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\ninterface ICurvyWithdrawVerifierV3 {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[9] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
},
"project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
+ "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
},
"project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
+ "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
}
}
}
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-2fdcdbada2eee84a734cef1e494de4601c6cbc09.json
similarity index 99%
rename from ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-2fdcdbada2eee84a734cef1e494de4601c6cbc09.json
index 78d979b..4a729d5 100644
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe.json
+++ b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-2fdcdbada2eee84a734cef1e494de4601c6cbc09.json
@@ -1,6 +1,6 @@
{
"_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe",
+ "id": "solc-0_8_28-2fdcdbada2eee84a734cef1e494de4601c6cbc09",
"solcVersion": "0.8.28",
"solcLongVersion": "0.8.28+commit.7893614a",
"userSourceNameMap": {
@@ -121,13 +121,13 @@
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
},
"project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
+ "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
},
"project/contracts/vault/CurvyVaultV3.sol": {
"content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { EIP712Upgradeable } from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { ECDSA } from \"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\";\nimport \"./ICurvyVault.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract CurvyVaultV3 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH =\n keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"2.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Private functions\n\n function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {\n bytes32 structHash = keccak256(\n abi.encode(\n CURVY_META_TRANSACTION_TYPE_HASH,\n _nonces[metaTransaction.from],\n metaTransaction.from,\n metaTransaction.to,\n metaTransaction.tokenId,\n metaTransaction.amount,\n metaTransaction.gasFee,\n metaTransaction.metaTransactionType\n )\n );\n\n // Add domain data to the hash\n bytes32 hash = _hashTypedDataV4(structHash);\n\n // Check that the metaTransaction is signed by metaTransaction.from\n address signer = ECDSA.recover(hash, signature);\n require(signer == metaTransaction.from, \"CurvyVault#_validateSignature: Invalid signature!\");\n\n // Increment nonce\n _nonces[signer]++;\n emit NonceChange(signer, _nonces[signer]);\n }\n\n function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n if (metaTransaction.to == address(0)) revert InvalidRecipient();\n if (metaTransaction.metaTransactionType != CurvyTypes.MetaTransactionType.Transfer)\n revert InvalidTransactionType();\n\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.to][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (transferFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);\n }\n\n function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_withdraw: Invalid withdraw recipient!\");\n require(\n metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,\n \"CurvyVault#withdraw: Wrong type for meta transaction!\"\n );\n\n // Burn wrapped tokens\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n\n uint256 amountAfterFees = metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n amountAfterFees -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (withdrawalFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;\n amountAfterFees -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n // Withdraw\n if (metaTransaction.tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];\n IERC20(tokenAddress).safeTransfer(metaTransaction.to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success, ) = metaTransaction.to.call{ value: amountAfterFees }(\"\");\n require(success, \"CurvyVault#_withdraw: ETH withdrawal failed!\");\n }\n\n emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);\n }\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n require(_tokenAddressToTokenId[tokenAddress] == 0, \"CurvyVault#registerToken: Token already registered!\");\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {\n if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {\n depositFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {\n transferFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {\n withdrawalFee = fee;\n } else {\n revert(\"CurvyVault#setFeeAmount: Unknown fee type!\");\n }\n\n emit FeeChange(metaTransactionType, fee);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n\n require(msg.sender == _curvyAggregator, \"Only CurvyAggregator can do vault deposits through portal autoShield\");\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n require(msg.value == 0, \"CurvyVault#deposit: Don't send ETH with ERC20 deposit!\");\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n } else {\n // We are depositing ETH\n require(amount == msg.value, \"CurvyVault#deposit: Incorrect deposit value!\");\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)\n if (gasSponsorshipAmount != 0) {\n _balances[to][tokenId] -= gasSponsorshipAmount;\n _balances[owner()][tokenId] += gasSponsorshipAmount;\n }\n\n emit Transfer(address(0x0), to, tokenId, amount);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _transfer(metaTransaction);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _transfer(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _withdraw(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _withdraw(metaTransaction);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n require(tokenAddress != address(0x0), \"CurvyVault:#getIdAddress: Unregistered token!\");\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault:#getTokenID: Unregistered token!\");\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n function balanceOfBatch(\n address[] memory owners,\n uint256[] memory tokenIds\n ) external view returns (uint256[] memory) {\n require(owners.length == tokenIds.length, \"CurvyVault#balanceOfBatch: Invalid array length!\");\n\n // Variables\n uint256[] memory batchBalances = new uint256[](owners.length);\n\n // Iterate over each owner and token ID\n for (uint256 i = 0; i < owners.length; i++) {\n batchBalances[i] = _balances[owners[i]][tokenIds[i]];\n }\n\n return batchBalances;\n }\n\n function getNonce(address _signer) external view returns (uint256 nonce) {\n return _nonces[_signer];\n }\n\n //#endregion\n}\n"
},
"project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
+ "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
}
}
}
diff --git a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-96b1f146962f0bd5475b352d77ae5331b364780c.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-33ba6816f30937e5236ff2727e3021f3b5abe26a.json
similarity index 97%
rename from ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-96b1f146962f0bd5475b352d77ae5331b364780c.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-33ba6816f30937e5236ff2727e3021f3b5abe26a.json
index 193e30d..0231b6b 100644
--- a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-96b1f146962f0bd5475b352d77ae5331b364780c.json
+++ b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-33ba6816f30937e5236ff2727e3021f3b5abe26a.json
@@ -1,6 +1,6 @@
{
"_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-96b1f146962f0bd5475b352d77ae5331b364780c",
+ "id": "solc-0_8_28-33ba6816f30937e5236ff2727e3021f3b5abe26a",
"solcVersion": "0.8.28",
"solcLongVersion": "0.8.28+commit.7893614a",
"userSourceNameMap": {
@@ -93,19 +93,19 @@
"content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { PoseidonT4 } from \"./utils/PoseidonT4.sol\";\n\nimport { ICurvyAggregatorAlpha } from \"./ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport {\n ICurvyInsertionVerifier,\n ICurvyAggregationVerifier,\n ICurvyWithdrawVerifier\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV3 is ICurvyAggregatorAlpha, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner, address curvyVaultProxyAddress) public initializer {\n maxDeposits = 2;\n maxWithdrawals = 2;\n maxAggregations = 2;\n\n __Ownable_init(initialOwner);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdate memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);\n }\n // TODO: We probably don't need this.\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVault(_update.curvyVault);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable {\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);\n IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);\n }\n\n curvyVault.deposit{ value: msg.value }(tokenAddress, address(this), note.amount, 0);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function depositNote(address from, CurvyTypes.Note memory note, bytes memory signature) public {\n // TODO: Gas fee\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n from,\n address(this),\n note.token,\n note.amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n ),\n signature\n );\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n require(\n _pendingIdsQueue[noteId],\n \"CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!\"\n );\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n require(\n _notesTreeRoot == publicInputs[numPublicInputs - 2],\n \"CurvyAggregator#commitDepositBatch: Invalid notes root!\"\n );\n\n require(\n insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitDepositBatch: Invalid proof!\"\n );\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n require(\n _notesTreeRoot == oldNotesTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!\"\n );\n require(\n _nullifiersTreeRoot == oldNullifiersTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!\"\n );\n\n require(\n aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitAggregationBatch: Invalid proof!\"\n );\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[10] memory publicInputs\n ) public returns (bool) {\n require(\n publicInputs[3] == _nullifiersTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!\"\n );\n require(\n publicInputs[2] == _notesTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!\"\n );\n\n require(\n withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!\"\n );\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[4 + i];\n address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n destinationAddress,\n publicInputs[numPublicInputs - 1],\n amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n }\n }\n\n // Fee collection\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n owner(),\n publicInputs[numPublicInputs - 1],\n publicInputs[1],\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
},
"project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
+ "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
},
"project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
"content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
},
"project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
+ "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\ninterface ICurvyWithdrawVerifierV3 {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[9] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
},
"project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
+ "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
},
"project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
+ "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
}
}
}
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-366cc542674341106d39d1484ee2683122ce7051.json
similarity index 98%
rename from ignition/deployments/production_arbitrum/build-info/solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-366cc542674341106d39d1484ee2683122ce7051.json
index 5c0e081..651b0b0 100644
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74.json
+++ b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-366cc542674341106d39d1484ee2683122ce7051.json
@@ -1,6 +1,6 @@
{
"_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74",
+ "id": "solc-0_8_28-366cc542674341106d39d1484ee2683122ce7051",
"solcVersion": "0.8.28",
"solcLongVersion": "0.8.28+commit.7893614a",
"userSourceNameMap": {
@@ -102,7 +102,7 @@
"content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\ninterface ICurvyWithdrawVerifierV3 {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[9] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
},
"project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
+ "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n function deployRecoveryEntryPortal(uint256 ownerHash, address recovery, address tokenAddress, address to) external;\n\n function deployRecoveryExitPortal(address exitAddress, uint256 exitChainId, address recovery, address tokenAddress, address to) external;\n\n //#endregion\n}\n"
},
"project/contracts/utils/Types.sol": {
"content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
diff --git a/ignition/deployments/production_base/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-548b1b971ceaa73b63e28856230b75d9e0f47bbc.json
similarity index 74%
rename from ignition/deployments/production_base/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-548b1b971ceaa73b63e28856230b75d9e0f47bbc.json
index 6ea1fae..7f018c4 100644
--- a/ignition/deployments/production_base/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-548b1b971ceaa73b63e28856230b75d9e0f47bbc.json
@@ -1,6 +1,6 @@
{
"_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
+ "id": "solc-0_8_28-548b1b971ceaa73b63e28856230b75d9e0f47bbc",
"solcVersion": "0.8.28",
"solcLongVersion": "0.8.28+commit.7893614a",
"userSourceNameMap": {
@@ -62,16 +62,16 @@
"content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
},
"project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
+ "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
},
"project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
+ "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n function deployRecoveryEntryPortal(uint256 ownerHash, address recovery, address tokenAddress, address to) external;\n\n function deployRecoveryExitPortal(address exitAddress, uint256 exitChainId, address recovery, address tokenAddress, address to) external;\n\n //#endregion\n}\n"
},
"project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
+ "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(tx.origin == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress = curvyVault.getTokenAddress(note.token);\n \n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
},
"project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
+ "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function deployPortal(bytes memory creationCodeWithArgs) private returns (address) {\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n return portalAddress;\n }\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n\n address portalAddress = deployPortal(creationCodeWithArgs);\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) public onlyOwner {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n\n address portalAddress = deployPortal(creationCodeWithArgs);\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public onlyOwner {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(\n _lifiDiamondAddress\n ).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(\n _lifiDiamondAddress\n ).extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n\n address portalAddress = deployPortal(creationCodeWithArgs);\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n\n function deployRecoveryEntryPortal(uint256 ownerHash, address recovery, address tokenAddress, address to) public {\n bytes memory creationCodeWithArgs = getCreationCode(ownerHash, address(0), 0, recovery);\n\n address portalAddress = deployPortal(creationCodeWithArgs);\n\n IPortal(portalAddress).recover(tokenAddress, to);\n }\n\n function deployRecoveryExitPortal(\n address exitAddress,\n uint256 exitChainId,\n address recovery,\n address tokenAddress,\n address to\n ) public {\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n\n address portalAddress = deployPortal(creationCodeWithArgs);\n\n IPortal(portalAddress).recover(tokenAddress, to);\n }\n}\n"
},
"project/contracts/utils/Types.sol": {
"content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/build-info/solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6.json
diff --git a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-3a19216336357ee9e58c9163cd4bbaea062085e2.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-6cc1a01c76b0e02d53719e5bedae3bcb52d61551.json
similarity index 99%
rename from ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-3a19216336357ee9e58c9163cd4bbaea062085e2.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-6cc1a01c76b0e02d53719e5bedae3bcb52d61551.json
index fcb6798..d21df5f 100644
--- a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-3a19216336357ee9e58c9163cd4bbaea062085e2.json
+++ b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-6cc1a01c76b0e02d53719e5bedae3bcb52d61551.json
@@ -1,6 +1,6 @@
{
"_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-3a19216336357ee9e58c9163cd4bbaea062085e2",
+ "id": "solc-0_8_28-6cc1a01c76b0e02d53719e5bedae3bcb52d61551",
"solcVersion": "0.8.28",
"solcLongVersion": "0.8.28+commit.7893614a",
"userSourceNameMap": {
@@ -121,13 +121,13 @@
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
},
"project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
+ "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
},
"project/contracts/vault/CurvyVaultV2.sol": {
"content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { EIP712Upgradeable } from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { ECDSA } from \"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\";\nimport \"./ICurvyVault.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract CurvyVaultV2 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH =\n keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"2.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Private functions\n\n function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {\n bytes32 structHash = keccak256(\n abi.encode(\n CURVY_META_TRANSACTION_TYPE_HASH,\n _nonces[metaTransaction.from],\n metaTransaction.from,\n metaTransaction.to,\n metaTransaction.tokenId,\n metaTransaction.amount,\n metaTransaction.gasFee,\n metaTransaction.metaTransactionType\n )\n );\n\n // Add domain data to the hash\n bytes32 hash = _hashTypedDataV4(structHash);\n\n // Check that the metaTransaction is signed by metaTransaction.from\n address signer = ECDSA.recover(hash, signature);\n require(signer == metaTransaction.from, \"CurvyVault#_validateSignature: Invalid signature!\");\n\n // Increment nonce\n _nonces[signer]++;\n emit NonceChange(signer, _nonces[signer]);\n }\n\n function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n if (metaTransaction.to == address(0)) revert InvalidRecipient();\n if (metaTransaction.metaTransactionType != CurvyTypes.MetaTransactionType.Transfer)\n revert InvalidTransactionType();\n\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.to][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (transferFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);\n }\n\n function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_withdraw: Invalid withdraw recipient!\");\n require(\n metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,\n \"CurvyVault#withdraw: Wrong type for meta transaction!\"\n );\n\n // Burn wrapped tokens\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n\n uint256 amountAfterFees = metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n amountAfterFees -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (withdrawalFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;\n amountAfterFees -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n // Withdraw\n if (metaTransaction.tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];\n IERC20(tokenAddress).safeTransfer(metaTransaction.to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success, ) = metaTransaction.to.call{ value: amountAfterFees }(\"\");\n require(success, \"CurvyVault#_withdraw: ETH withdrawal failed!\");\n }\n\n emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);\n }\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n require(_tokenAddressToTokenId[tokenAddress] == 0, \"CurvyVault#registerToken: Token already registered!\");\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {\n if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {\n depositFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {\n transferFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {\n withdrawalFee = fee;\n } else {\n revert(\"CurvyVault#setFeeAmount: Unknown fee type!\");\n }\n\n emit FeeChange(metaTransactionType, fee);\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n require(msg.value == 0, \"CurvyVault#deposit: Don't send ETH with ERC20 deposit!\");\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n } else {\n // We are depositing ETH\n require(amount == msg.value, \"CurvyVault#deposit: Incorrect deposit value!\");\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)\n if (gasSponsorshipAmount != 0) {\n _balances[to][tokenId] -= gasSponsorshipAmount;\n _balances[owner()][tokenId] += gasSponsorshipAmount;\n }\n\n emit Transfer(address(0x0), to, tokenId, amount);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _transfer(metaTransaction);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _transfer(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _withdraw(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _withdraw(metaTransaction);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n require(tokenAddress != address(0x0), \"CurvyVault:#getIdAddress: Unregistered token!\");\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault:#getTokenID: Unregistered token!\");\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n function balanceOfBatch(\n address[] memory owners,\n uint256[] memory tokenIds\n ) external view returns (uint256[] memory) {\n require(owners.length == tokenIds.length, \"CurvyVault#balanceOfBatch: Invalid array length!\");\n\n // Variables\n uint256[] memory batchBalances = new uint256[](owners.length);\n\n // Iterate over each owner and token ID\n for (uint256 i = 0; i < owners.length; i++) {\n batchBalances[i] = _balances[owners[i]][tokenIds[i]];\n }\n\n return batchBalances;\n }\n\n function getNonce(address _signer) external view returns (uint256 nonce) {\n return _nonces[_signer];\n }\n\n //#endregion\n}\n"
},
"project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
+ "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
}
}
}
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/build-info/solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440.json
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/build-info/solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6.json
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/build-info/solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f.json
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/build-info/solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3.json
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/build-info/solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a.json
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/build-info/solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14.json
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/build-info/solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf.json
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/build-info/solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf.json
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/build-info/solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139.json
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/build-info/solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f.json
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-cbddb0255806adf1235aafb53338fe899eda7444.json
similarity index 98%
rename from ignition/deployments/production_sepolia/build-info/solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-cbddb0255806adf1235aafb53338fe899eda7444.json
index 6e1588a..1cd1408 100644
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e.json
+++ b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-cbddb0255806adf1235aafb53338fe899eda7444.json
@@ -1,6 +1,6 @@
{
"_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e",
+ "id": "solc-0_8_28-cbddb0255806adf1235aafb53338fe899eda7444",
"solcVersion": "0.8.28",
"solcLongVersion": "0.8.28+commit.7893614a",
"userSourceNameMap": {
@@ -102,7 +102,7 @@
"content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\ninterface ICurvyWithdrawVerifierV3 {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[9] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
},
"project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
+ "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n function deployRecoveryEntryPortal(uint256 ownerHash, address recovery, address tokenAddress, address to) external;\n\n function deployRecoveryExitPortal(address exitAddress, uint256 exitChainId, address recovery, address tokenAddress, address to) external;\n\n //#endregion\n}\n"
},
"project/contracts/utils/Types.sol": {
"content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/build-info/solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f.json
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-073f43613e21cd9c4dda603b6759f0d8e61b5e93.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-e46894f55d717e8f0d7de5c35aef9050d78c8678.json
similarity index 96%
rename from ignition/deployments/production_sepolia/build-info/solc-0_8_28-073f43613e21cd9c4dda603b6759f0d8e61b5e93.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-e46894f55d717e8f0d7de5c35aef9050d78c8678.json
index ae38b6f..3cd028f 100644
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-073f43613e21cd9c4dda603b6759f0d8e61b5e93.json
+++ b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-e46894f55d717e8f0d7de5c35aef9050d78c8678.json
@@ -1,6 +1,6 @@
{
"_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-073f43613e21cd9c4dda603b6759f0d8e61b5e93",
+ "id": "solc-0_8_28-e46894f55d717e8f0d7de5c35aef9050d78c8678",
"solcVersion": "0.8.28",
"solcLongVersion": "0.8.28+commit.7893614a",
"userSourceNameMap": {
@@ -77,13 +77,13 @@
"content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
},
"project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
+ "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\ninterface ICurvyWithdrawVerifierV3 {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[9] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
},
"project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
+ "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
},
"project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
+ "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
}
}
}
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477.json b/ignition/deployments/local_sepolia/build-info/solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477.json
similarity index 100%
rename from ignition/deployments/production_arbitrum/build-info/solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477.json
rename to ignition/deployments/local_sepolia/build-info/solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477.json
diff --git a/ignition/deployments/local_sepolia/deployed_addresses.json b/ignition/deployments/local_sepolia/deployed_addresses.json
new file mode 100644
index 0000000..31c1b17
--- /dev/null
+++ b/ignition/deployments/local_sepolia/deployed_addresses.json
@@ -0,0 +1,41 @@
+{
+ "PortalFactory#CreateX": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
+ "CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2": "0x0807B0f18a61Eafc1fdF25A82C46a538576153c8",
+ "CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2": "0x699180472883d46c888905c9dBdf185b0c879b3d",
+ "CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2": "0xc46F8D8BEfFeA00B31D0BE64103397786E83eedB",
+ "CurvyAggregatorAlpha#PoseidonT4": "0x2397B9fC20cea49371Ff96c98ca076E84904975B",
+ "CurvyVault#CurvyVaultV1Implementation": "0x11e7501aAe705909cCc8e87FE7137150FBcE56B3",
+ "CurvyVault#CurvyVaultV2Implementation": "0x00c0126B6bBd3474c56761c86980002b3323e7fb",
+ "CurvyVault#CurvyVaultV3Implementation": "0x6e70f6E726aD03E69eEe5f4314b4Ce1BEba079bB",
+ "CurvyVault#CurvyVaultV4Implementation": "0xf10Fd4526C76f048ec668E1c1641c136D71cd8a8",
+ "CurvyVault#CurvyVaultV5Implementation": "0x390CD91Af28CAF35352e69830f9A01305917A28B",
+ "CurvyVault#CurvyVaultV6Implementation": "0x8fF5Ac2166F275aF49e0306AB1cB9154fA5F8aD9",
+ "CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation": "0x197Db000f002a679770C55bc24A089b493b94aB6",
+ "CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation": "0xa3583063667530A4bAc011a8fF420c48FD1b3C55",
+ "CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation": "0x01E4CB6105a3b6Dd3ad8e21BCb60064FEe8426B7",
+ "CurvyVault#ERC1967Proxy": "0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4",
+ "CurvyVault#CurvyVaultV1": "0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4",
+ "CurvyVault#CurvyVaultV2": "0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4",
+ "CurvyVault#CurvyVaultV3": "0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4",
+ "CurvyVault#CurvyVaultV4": "0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4",
+ "CurvyVault#CurvyVaultV5": "0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4",
+ "CurvyVault#CurvyVaultV6": "0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4",
+ "PortalFactory#PortalFactory": "0x0bE0dD9B26b78f96943877bdAEDD573C05A060C2",
+ "CurvyAggregatorAlpha#ERC1967Proxy": "0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d",
+ "CurvyAggregatorAlpha#CurvyAggregatorAlphaV1": "0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d",
+ "CurvyAggregatorAlpha#CurvyAggregatorAlphaV2": "0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d",
+ "CurvyAggregatorAlpha#CurvyAggregatorAlphaV3": "0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d",
+ "CurvyAggregatorAlpha#CurvyAggregatorAlphaV4": "0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d",
+ "CurvyAggregatorAlpha#CurvyAggregatorAlphaV5": "0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d",
+ "CurvyAggregatorAlpha#CurvyAggregatorAlphaV6": "0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d",
+ "CurvyAggregatorAlpha#NewInsertionVerifier_v2": "0xfE3AAa72338D8d03EA23ae50a8320D81201df097",
+ "CurvyAggregatorAlpha#NewAggregationVerifier_v2": "0xc17492964b50D1c0Fa38b0DA275ccB460b94EDD9",
+ "CurvyAggregatorAlpha#NewWithdrawVerifier_v2": "0x09261d0A725091Ec542b76CA482588E680BAafD2",
+ "CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation": "0x7A1Ebd81A282D8B5dC25600f1366e2DD7d9b2130",
+ "CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation": "0x0f6700276706dA5FA1D4c9a750E3D35781700585",
+ "CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation": "0x0B64f5A0C7730D69ec52EE404D338e9B6Cda5a1B",
+ "CurvyAggregatorAlpha#withdrawVerifierV3": "0x5e86fF8863b765981671984b2453E91f61957733",
+ "CurvyAggregatorAlpha#insertionVerifierDepth30": "0x3bAb2814aC3748C0f5c1556aDc158353C3b8371F",
+ "CurvyAggregatorAlpha#aggregationVerifierDepth30": "0x740f473Af452C8fA32c7B74eAfaAFCcB2f72e5F4",
+ "CurvyAggregatorAlpha#withdrawVerifierDepth30": "0x194c294851c0243e96Ea8Bf3d79B43b8DbFF02eE"
+}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/journal.jsonl b/ignition/deployments/local_sepolia/journal.jsonl
similarity index 69%
rename from ignition/deployments/production_sepolia/journal.jsonl
rename to ignition/deployments/local_sepolia/journal.jsonl
index 85953af..43c01d4 100644
--- a/ignition/deployments/production_sepolia/journal.jsonl
+++ b/ignition/deployments/local_sepolia/journal.jsonl
@@ -2,364 +2,282 @@
{"chainId":11155111,"type":"DEPLOYMENT_INITIALIZE"}
{"artifactId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","constructorArgs":[],"contractName":"CurvyAggregationVerifierAlpha_2_2_2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b50610a0c8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610974565b610054565b604051901515815260200160405180910390f35b5f610881565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7e10acd6d4ce082a72b623deeac4b4c1c526b8ab76ab54f82d13b63a6f23e2cd85527f282cd953fc7bc024a80710dd645d4cd8e4ef6d10eb7403a76618f96eddb5336e60208601525f608086018661018d87357f21626e5f52776516ac007ae23e14ca016f4e7623b79f63f4ab59482e4872c52b7f2c8f6445390acb60223f07dcf516fee816534c9940dc8d59595786b35106f0f38461008c565b6101dd60208801357f20d91723fc6a5cff2a4d8bd53db8c7647c86b9245b27d7042634dd317becf0797f1693b6ee023f9ef0c9e7cb1d290717e3df5f6d2154ba30f3a6a833f3171c2ee08461008c565b61022d60408801357f1a9347082efac79b5d64033c95c7f2190984cd2a19884b4ad26162ea47e0ea3b7f27173150520b68cc7844935166da0f68924aeccc8a30ae9ca0768eb597cf2a638461008c565b61027d60608801357f207839c9f296371e642b17ab83a64fca9b9044d10b0f6a5319ae0e2ee2a76c0c7f235a1223ea30a75c93efd51c3abd465c611878ebc52d9830e61978f914d7c8908461008c565b6102cd60808801357f0cefdb3db08f930f2ed5534a797dc304a1189c61a2835aabb6c5831f0ca838f37f15bf6ee50fbb6b6a07695b99fa739330553161a7de0b0380556b61ebe950563f8461008c565b61031d60a08801357f0b50c85999c665bad3101fb618ca967aa4860c1c07f4c54bcf692b7b30b2c11a7f2d4f881288f63fa77f63eaad252bd5efbbbda01e21976fb645aaadd286929c3f8461008c565b61036d60c08801357f15b81a815c06b38295623648d75372799d4755f7a0b74f7bd655f5f64715a03e7f09331bcaac14f8bcf495ed09470e01f3c268f1fdb4e019c19c836e2c8310044a8461008c565b6103bd60e08801357f2a2a8f30efa6592960fa69f190f96c5f0b432948973a9c53269de3e6b8abebb57f297cd48dfb07dc7ad0120ed8151942d511ebca1b71a736b61ac6375e2a51947a8461008c565b61040e6101008801357f0a9c03a1994f221c057f75855cb14a95329dde81e32a7a8660a3828c46e4af7d7f1dc315ae7bd487ac77c690ee6e5d2fe7bbfd5ae36935ffac15114a4f2748dc5b8461008c565b61045f6101208801357f0280bc41f56d2038589161b139f5c3704eeb19e9da2f170a5b4e977678a727697f063f6dc839c18a58049574763b3de59bc2c20609b01907e66dcfe264b091cd858461008c565b6104b06101408801357f1f96dc322de85ba0a31ce878d61f5047eba9ad25489230b888ede7739aeb36f57f0d58db0890c2f6ee0bda8261a76d6ad9da96e539d0df7046cd0799f0176a53fb8461008c565b6105016101608801357f246ef5979ae9aea616e30dbab411c28406510a656ddd2043a5b9211d31edd1647f24d8db926da6b7c4a17804818d83058eb0f5dfa6163c3922aa9a7edeb4b85ede8461008c565b6105526101808801357f1011fe6c75f7c6cf1a8a62ff71387fef8a19e46d0af37193380a7c603f7529497f12b2d70c94e401c6f3822578fb27c67f97bf1827a1b9e0cc1c2fb34a68a6521d8461008c565b6105a36101a08801357f082d86555b48de36b698d5bc0cb44148b3a0eb1d3b992638453070deb120b15d7f26b43cf48f595a8e3e2a3b8515b7df9db6ffebecbc968995b4071e0f2dad32dc8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1f7f9f69ea5e04a56ee102635a0fcdbefd57b4c7f37a1e0d903ba69281a5f0d36102808201527f2a49c1e717e044ad7bc38e0b841e28e08eebe51b906016be33a2ff2d74f10c586102a08201527f027a67b0798b9350cd04c5ce09117b7e660dbe3e1449f667ea13c3c43255f84c6102c08201527f19725ce00771a3c317cb70a3c5856f91c6ac2313426f5863fcd93969d2384de06102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108985f84013561005a565b6108a5602084013561005a565b6108b2604084013561005a565b6108bf606084013561005a565b6108cc608084013561005a565b6108d960a084013561005a565b6108e660c084013561005a565b6108f360e084013561005a565b61090161010084013561005a565b61090f61012084013561005a565b61091d61014084013561005a565b61092b61016084013561005a565b61093961018084013561005a565b6109476101a084013561005a565b610954818486888a6100f2565b9050805f5260205ff35b806040810183101561096e575f5ffd5b92915050565b5f5f5f5f6102c08587031215610988575f5ffd5b610992868661095e565b935060c08501868111156109a4575f5ffd5b6040860193506109b4878261095e565b925050856102c0860111156109c7575f5ffd5b5091949093509091610100019056fea2646970667358221220c5df5a746d614b72f69595bc69601e5559fe5a1a70d66d8b1723b65d65e2b55c64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","networkInteractionId":1,"nonce":798,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","networkInteractionId":1,"nonce":798,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2190209267"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xede22ab5548e43e920ead119a0aaefc97e36a46901df5d6fa8ceded55514e087"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","networkInteractionId":1,"nonce":994,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","networkInteractionId":1,"nonce":994,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1046729050"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x759e70a192264533f151b81557c09f307b3408d1595493719c19c148b01a20d0"},"type":"TRANSACTION_SEND"}
{"artifactId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","constructorArgs":[],"contractName":"CurvyInsertionVerifierAlpha_2_2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506106648061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d7565b610054565b604051901515815260200160405180910390f35b5f61055c565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0f3cc497f7f2ad2db9f9a01e1d1e237e7bd547ee48d3698641bae08ce37c187485527f2a2f300a2bc9b5576e8d348d9542dedfce1dd7566c9f7ad0c7936e9508f2d13f60208601525f608086018661018e87357f152cd78e51c23961af90e069fcceb20b0358a4c13f4d05ad78f5554803410ec47f068d0161c738b8256d8f80c113a6f2adc60bf92724e5ba844434551f353109bb8461008c565b6101de60208801357f28aeb7fafb1d5864b489fac2ac75795429a84564ed301367b95bdbbda22e41cc7f01fb82a3a457b9782065bddb3961e014b8602fe337a83a253a4edbe7f9eca5de8461008c565b61022e60408801357f10e505cabab95d2954811e50e0c907e6e27d3ea37df4576cb85d2b024b758e5e7f132ffdaaa0e5fbd39240ae81be15c78f27d1a5e9f0b046bc50a19ebd0e1f50be8461008c565b61027e60608801357f061f18bbab38fe7f8eca85f2017b25f057fb908ca68d0965746884ca8b0b2e027f0323511d8b4f23d71a970779314d464e5993156eaed0970a246cd2a43da830c88461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f2ce5cf088183ccc73bfeb1244cdee7ae92ceb0e007194b0bf6c6e9819a863ca960c08201527f0b549a9abb46bc0c3ed48341aa21baa4532bca1fb1ff7a8ef409d3384eb73d3660e08201527f270e5ddc8a3d6e364fae6b353c6deedc579e522582d3d1d60036e9c43428bb8e6101008201527f2d9ef7723573eb05565ba62424d4b2f2d5a0e68d542f8c45daadb2f10a5cde376101208201527f1f542545a1550702631817615d0eac929e73ccc384d92ac156c7d3577e01d5226101408201527f08cd2dbefe01d914cd9826b6a1309de1d3c645a028b69cc3c690a05c183a9fa36101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f126779f2434a76e4e37da855f43a1df5648908e4e91eebf1e086544970eed7b86102808201527f12624c6dbae3875cc0583ab185cb81fc69d606519eef4d6140b7ac67aa6e26e76102a08201527f116d7e6cfc0480d16acdcebb03bef4a46abe3cff28a3aa60d1bf691b43679d866102c08201527f1bbda14ad6f8f4d5d33363f1d50fd72bf4b3b25d615b896c9e050098f5016f7d6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105735f84013561005a565b610580602084013561005a565b61058d604084013561005a565b61059a606084013561005a565b6105a7818486888a6100f2565b9050805f5260205ff35b80604081018310156105c1575f5ffd5b92915050565b80608081018310156105c1575f5ffd5b5f5f5f5f61018085870312156105eb575f5ffd5b6105f586866105b1565b935061060486604087016105c7565b92506106138660c087016105b1565b91506106238661010087016105c7565b90509295919450925056fea26469706673582212206f782de436746e389d2f3f8eeac94b985e369b9a2c08f0f7a2167fc9a1fa233d64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","networkInteractionId":1,"nonce":799,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","networkInteractionId":1,"nonce":799,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2190209267"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xe5911b7f85f067a2aaf4abbbf56e2d78ad5e4dc325e18a6743407bf683d4730c"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","networkInteractionId":1,"nonce":995,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","networkInteractionId":1,"nonce":995,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1046729050"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x74ec2d3c819c57d29e41f1032eb91d7c14b59cba3027ea422ace8dc8d1f147d7"},"type":"TRANSACTION_SEND"}
{"artifactId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlpha_2_2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506108918061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b3660046107f9565b610054565b604051901515815260200160405180910390f35b5f61073e565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f1a75f14b8b1faa4b851f07b25985339af1f9563cb229396803fd379fead2bd7385527f0b5b03df8219c60d5be03ad52394f3d6330cf3e7cea9e656bc22982dd15cbadc60208601525f608086018661018e87357f05f00c0d109f87a8cf18b9d3052caae6027871b0d6fea2f54ca225891e16b0607f0d35ddf8253fb232d095057744ccb6f9d5887bee97ea61f885d511934169bcf08461008c565b6101de60208801357f2a60d3a69ccee567e2b57a0a42bcf19ba0d2335ceb81a2dcb71439314fea13857f2f70a47844f43803cbb4ce9a69cd5b3db4647da90f325d2ef456abea72d0bfe08461008c565b61022e60408801357f0f18cbcd1cbf7d154a35393c17382058e4b30517ab8be123af7d1951c671d4697f26cfb6e0961b50d6d1f534baef948730bec2a603ebf189eaaf72036e2a4d2fe68461008c565b61027e60608801357f033ae488254843311cd5bb9676251b2c80852d467355d37f443e17d049a503267f27e5a68de42fcbcbadd940c39e2013830c75dbb9ad6714cb768ba7d14af9421a8461008c565b6102ce60808801357f28120958d688c8a0d58372b242df5ec1c75aa124ab6f19c90c4b76b81057fd297f11c4be0f98ac33b680d4607a898dc72cdfc6d9946943b3e9f0080fe825263a5d8461008c565b61031e60a08801357f037d488c8ba35a919f4cfd44b1a9be07a0ca1ea689695c6b238ad364c47bbf7a7f2dd63748d624fd0124f265891b52eeb7d5565727b674658be4378d6e5b46be308461008c565b61036e60c08801357f2297bda45459480a6a488bd3386537b38ae11ffecb6beaec43e291d33dd2f8947f1d7c255c5e9cfa6d8457dc20e4af90332c6550fa6bea6ac80b2fcae91e31fb658461008c565b6103be60e08801357f1c564b05c0c5fc1db338de776a71a9b6408e0f1062ee5eec1ead8fe1fb68f0317f085c76b320e78e8fc1c30cd9a86ee083c737af478c344a985ff23109398c4e768461008c565b61040f6101008801357f0f6d3858a35815b73d414424416d4e35babb3e0141641fb6f11c5899b96ff6ce7f0678620b35e9ade6b5807cf7ccd5210ae099894132f0bff6345ba129e944dd3d8461008c565b6104606101208801357f2ef17308df02f12bcd04a63c4f9642e6a21bbfecd79bc266d9278cba32c0b7f47f1e5b526c2f7dbd765611c3117d2aa8924597b68d5b8d3654c375174d6affa8998461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f044bacd3d9b251fa2cdcb89c1e71c78d2d0ff824d43403d616a47c804c0469696102808201527f297536676d7cec34d41955f24cc5034a5b79d92b20c48c6d8073bc32016612396102a08201527f0281d22ffce2cf0ca8b4109517cf30ceed20be4d2ed307fda036ad8ef5e12df26102c08201527f1ffe72c016746c242459c1973b77d50d6415bb22ce31c61ee504c42c65b3d33c6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107555f84013561005a565b610762602084013561005a565b61076f604084013561005a565b61077c606084013561005a565b610789608084013561005a565b61079660a084013561005a565b6107a360c084013561005a565b6107b060e084013561005a565b6107be61010084013561005a565b6107cc61012084013561005a565b6107d9818486888a6100f2565b9050805f5260205ff35b80604081018310156107f3575f5ffd5b92915050565b5f5f5f5f610240858703121561080d575f5ffd5b61081786866107e3565b935060c0850186811115610829575f5ffd5b60408601935061083987826107e3565b925050856102408601111561084c575f5ffd5b5091949093509091610100019056fea2646970667358221220703faca2770b9c9f7e9a23c6d18d7c741c60c3262a4a3449160cfe04d5d9618164736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","networkInteractionId":1,"nonce":800,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","networkInteractionId":1,"nonce":800,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2190209267"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xd442fad14927ff8ba2a4f707e461dc445274db1331721e2189e9b8d2837eab31"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","networkInteractionId":1,"nonce":996,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","networkInteractionId":1,"nonce":996,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1046729050"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x79835d9306816cb8437452f2b18e75c6ff01ac03d0d465ccc392d4c29f82230b"},"type":"TRANSACTION_SEND"}
{"artifactId":"CurvyAggregatorAlpha#PoseidonT4","constructorArgs":[],"contractName":"PoseidonT4","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#PoseidonT4","futureType":"NAMED_ARTIFACT_LIBRARY_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
{"futureId":"CurvyAggregatorAlpha#PoseidonT4","networkInteraction":{"data":"0x6130c0610034600b8282823980515f1a607314602857634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe7300000000000000000000000000000000000000003014608060405260043610610034575f3560e01c806320cf0a3714610038575b5f5ffd5b61004b610046366004612f90565b61005d565b60405190815260200160405180910390f35b5f610793565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f52838409099450505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f528384090994505f51602061302b5f395f51905f5284850990505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528384090993505f51602061302b5f395f51905f5283840990505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528384090992505f51602061302b5f395f51905f5282830990505f51602061302b5f395f51905f52825f51602061302b5f395f51905f52838409099150505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b5f7f265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d65f51602061302b5f395f51905f5260805106017f199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa5f51602061302b5f395f51905f5260a05106017f157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf85f51602061302b5f395f51905f5260c05106015f51602061302b5f395f51905f5283840993505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528687090992505f51602061302b5f395f51905f5282830993505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528687090991505f51602061302b5f395f51905f5281820993505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528687090990505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287097f211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87097f19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87097f21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87097f26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be30101010660a052505050610c167f13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e7f251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b9967f0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e7f2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac949026103aa565b610ca27f04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b7f0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f3675497f011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca067f0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd47386103aa565b610d2e7f0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd69414324477f28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a17f259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f7f0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e86103aa565b610dba7f1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c57f26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee757f123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf8117f0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf610063565b610e467f2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a57f2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c7f011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e55747f1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0610063565b610ed27f179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb7f1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d857f192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b7f0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d610063565b610f5e7f10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b877f064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd597f225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e087f29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c610063565b610fea7f2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db7f1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b7f1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb7f0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c610063565b6110767f20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d7f0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b7f062100eb485db06269655cf186a68532985275428450359adc99cec6960711b87f2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926610063565b6111027f26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce57f22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e07f23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b7f25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a610063565b61118e7f1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa7f248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d7297f12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da7f070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9610063565b6112197f2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde1877f04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d657e94975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e7f28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf610063565b6112a47f159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a7eb7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b647f03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b07f2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3610063565b6113307f0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb1737f2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f7f1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d7f1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f610063565b6113bc7f22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea97f0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a7f0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed7057f02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16610063565b6114487f2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d835057f2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e57f1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d07f25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16610063565b6114d47f0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac7f02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a68003557f227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a53190257f044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d610063565b6115607f25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f7f1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c7f0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e57f1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38610063565b6115ec7f21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f9597f2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce7f13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a967f0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a610063565b6116787f09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f14557f0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf7f0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a47f05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b610063565b6117047f176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c4047f1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df7f2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b7f0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335610063565b6117907f2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c77f14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def7f226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a7f2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db610063565b61181c7f0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c7f03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f37f0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c297f2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7610063565b6118a77e780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef3631821857f0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa7f1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa91467f203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78610063565b6119327f222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c7e544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac167f10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e87f10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5610063565b6119be7f04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d7f06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf047467f062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b7f2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5610063565b611a4a7f14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f13647f0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae7f011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f17f13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a610063565b611ad67f2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a7f16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d582597f278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b6077f1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106610063565b611b627f02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe67692500420257f16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf7f15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c9847f29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8610063565b611bee7f1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec7f0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de89907f1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a427f05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119610063565b611c7a7f0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf7f2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d07f09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb96507f25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d610063565b611d067f24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d00567f1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f835297f2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f627f25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2610063565b611d927f2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f639257f06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f57f23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d7f25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74610063565b611e1e7f17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd7f13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be7f265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e7f15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5610063565b611eaa7f2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e7f2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e887f18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c7f21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d610063565b611f367f11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f57f0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c7f0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe57f277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7610063565b611fc27f30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad47f221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f4217f0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb8247f224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6610063565b61204e7f1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b317f0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc7f2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b7f23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0610063565b6120da7f1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b877f174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d77f22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d27f26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3610063565b6121667f2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c8755267f29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e7f0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade4577f1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1610063565b6121f27f0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad7257f1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f7f2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac7063641137f12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2610063565b61227e7f1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a7f2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e7f08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a37f07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492610063565b61230a7f265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e7f2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff7f2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d197f18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb610063565b6123967f01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf57f2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b87f094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf604177f2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c610063565b6124227f2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd8064617f27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d0287727f154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc747f0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb610063565b6124ae7f0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c7377f1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa957f298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc7f301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71610063565b61253a7f01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b7f1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d7f0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee7f0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279610063565b6125c67f2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe597f19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d7f23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c47f2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32610063565b6126527f0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c87f19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb07f0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b357f2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267610063565b6126de7f2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d7f0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af7f240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b7f16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca610063565b61276a7f242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d17f089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c377027f18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f7f166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6610063565b6127f67f0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e9617f1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b27f17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b7f174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b610063565b6128817eccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d1587f292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e7f12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec67f2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f610063565b61290d7f1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e87f0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e7f14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f7f185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b610063565b6129997f29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c0087f05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c0146047f2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c87f0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024610063565b612a257f1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f7f1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b7f1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc7f2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314610063565b612ab07f0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d7e6e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b7f191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c7f1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5610063565b612b3c7f0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc7f16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae7f12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a7f25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d610063565b612bc87f13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc8247f11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde547f03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b767f1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089610063565b612c547f2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec7f2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e7f1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db47f0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b6103aa565b612ce07f1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b7f2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd6073687f065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc33947f2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb3876103aa565b612d6b7eb4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd790787f0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f7f2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb7f027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd6103aa565b7f1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd55f51017f12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6602051017f13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db608051017f163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d560a051015f51602061302b5f395f51905f5284850994505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528788090993505f51602061302b5f395f51905f5283840994505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528788090992505f51602061302b5f395f51905f5282830994505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528788090991505f51602061302b5f395f51905f5281820994505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528788090990505f51602061302b5f395f51905f52805f51602061302b5f395f51905f525f51602061300b5f395f51905f5284095f51602061302b5f395f51905f525f51602061306b5f395f51905f5286095f51602061302b5f395f51905f525f51602061304b5f395f51905f5288095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8a0901010106065f5260205ff35b634e487b7160e01b5f52604160045260245ffd5b5f60608284031215612fa0575f5ffd5b82601f830112612fae575f5ffd5b6040516060810181811067ffffffffffffffff82111715612fd157612fd1612f7c565b604052806060840185811115612fe5575f5ffd5b845b81811015612fff578035835260209283019201612fe7565b50919594505050505056fe1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c130644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62a2646970667358221220f6d5cfe9ef56c84b95ece8760d16164e8a9649e1f378cc0d39152a9bac67d08e64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","networkInteractionId":1,"nonce":801,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","networkInteractionId":1,"nonce":801,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2190209267"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x5b1769f42a5f5255b77e79db59b7bced9d4b9aa0fc8a715ee7557c65a247fe75"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#PoseidonT4","networkInteractionId":1,"nonce":997,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#PoseidonT4","networkInteractionId":1,"nonce":997,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1177392950"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x4b808775ccbc1b85c4e1b959aeca17e77074e2dc0a0f74b636b7b1062e8fffdc"},"type":"TRANSACTION_SEND"}
{"artifactId":"CurvyVault#CurvyVaultV1Implementation","constructorArgs":[],"contractName":"CurvyVaultV1","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV1Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092ee20f800c61ffef7cf843cfdfb8556dc583253cc5041e6938d0f36f866cde564736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteractionId":1,"nonce":802,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteractionId":1,"nonce":802,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2190209267"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x09ce5061c7bc0c1bc5fd58744aa4f951407fb5dd661d5449c9db91b1c1333989"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208706adfac7ab0a3022cfbb7f6766c25f9d35fd73adfc57455079d7c7128f335e64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteractionId":1,"nonce":998,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteractionId":1,"nonce":998,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1177392950"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xdabb029607702977972c690f1746a99075a551f789de6639a020d671496fcd1e"},"type":"TRANSACTION_SEND"}
{"artifactId":"CurvyVault#CurvyVaultV2Implementation","constructorArgs":[],"contractName":"CurvyVaultV2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV2Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212202a778473814d79a7a9c68762ac7b88d037ffd9a5579e8017bdea83dab1cac6c664736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteractionId":1,"nonce":803,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteractionId":1,"nonce":803,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2190209267"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x4e25e2d5abf5b1c2671384f6a57036574da93dfbeb84f15cb5c9c37386d60879"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c673390aa109be7b86238be3e90113dfa5656367c901582ea2cd71027bafaf3f64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteractionId":1,"nonce":999,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteractionId":1,"nonce":999,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1177392950"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x8f0e5a106ab8b7cfd203b62428bb35241d149706c6fd30baa28ef7c1c6f1dc4f"},"type":"TRANSACTION_SEND"}
{"artifactId":"CurvyVault#CurvyVaultV3Implementation","constructorArgs":[],"contractName":"CurvyVaultV3","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV3Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5f6100f95f395f81816117f20152818161181b015261195f0152612d5f5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","networkInteractionId":1,"nonce":804,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","networkInteractionId":1,"nonce":804,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2190209267"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xed12926b9d5927d3cd1dfb626e345e2fae77f3e94cba63721b97e6d90df1905e"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyVault#CurvyVaultV3Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5f6100f95f395f81816117f20152818161181b015261195f0152612d5f5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220df19561c5ab8a17864d5afedf033cb7957a160b2187b2ff9b65e8fa01cd0940664736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyVault#CurvyVaultV3Implementation","networkInteractionId":1,"nonce":1000,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyVault#CurvyVaultV3Implementation","networkInteractionId":1,"nonce":1000,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1177392950"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x778ff1fbbd65d92608c9d8347b902c12a424d932433e10e39b166d82fdcdf114"},"type":"TRANSACTION_SEND"}
+{"artifactId":"CurvyVault#CurvyVaultV4Implementation","constructorArgs":[],"contractName":"CurvyVaultV4","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV4Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyVault#CurvyVaultV4Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5c6100f95f395f81816117ef01528181611818015261195c0152612d5c5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122081d5b920558239d8cde0994fa1fd323dfa7b19485b59a9fe78d834671a22003b64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyVault#CurvyVaultV4Implementation","networkInteractionId":1,"nonce":1001,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyVault#CurvyVaultV4Implementation","networkInteractionId":1,"nonce":1001,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1177392950"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xd7868fb7868fa2c8f2729791b6c7c8e43cf793529e9768be134e06b7021c2caf"},"type":"TRANSACTION_SEND"}
+{"artifactId":"CurvyVault#CurvyVaultV5Implementation","constructorArgs":[],"contractName":"CurvyVaultV5","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV5Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fd491bda775b94cc947797bcd0ac41b752963a10eb8562367f9c41712eda766664736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":1002,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":1002,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1177392950"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x494fb6740c228eb6398b3581ca7e6b96ac94e8876601c7054f779128ff43f1e7"},"type":"TRANSACTION_SEND"}
+{"artifactId":"CurvyVault#CurvyVaultV6Implementation","constructorArgs":[],"contractName":"CurvyVaultV6","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV6Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyVault#CurvyVaultV6Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220abf4833af5f4eaf00c587d9249e43bdb81105120a948ba55ef3190468959dffb64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyVault#CurvyVaultV6Implementation","networkInteractionId":1,"nonce":1003,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyVault#CurvyVaultV6Implementation","networkInteractionId":1,"nonce":1003,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1177392950"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xdf5c456b16ef78d4f3ca1189ad71d44d69c03a043824ab1891eb815edd04b51c"},"type":"TRANSACTION_SEND"}
{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","hash":"0xede22ab5548e43e920ead119a0aaefc97e36a46901df5d6fa8ceded55514e087","networkInteractionId":1,"receipt":{"blockHash":"0x300806069f5726708a47ddb3d273034789110dc795cd3258948ec2671096c44e","blockNumber":10210846,"contractAddress":"0x9493Cb84D6D37302676495B975DB92FbB5f4e51F","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","result":{"address":"0x9493Cb84D6D37302676495B975DB92FbB5f4e51F","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","hash":"0xe5911b7f85f067a2aaf4abbbf56e2d78ad5e4dc325e18a6743407bf683d4730c","networkInteractionId":1,"receipt":{"blockHash":"0x300806069f5726708a47ddb3d273034789110dc795cd3258948ec2671096c44e","blockNumber":10210846,"contractAddress":"0xc38CFF93C02F8C05D9e800b808b61C6a159Fb633","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","result":{"address":"0xc38CFF93C02F8C05D9e800b808b61C6a159Fb633","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","hash":"0xd442fad14927ff8ba2a4f707e461dc445274db1331721e2189e9b8d2837eab31","networkInteractionId":1,"receipt":{"blockHash":"0x8dc079f46470e91076f2b558dafce3884bf033635a2f3e565c9ae4c7f2690cf8","blockNumber":10210847,"contractAddress":"0x98407b14a486584c308991b9a44835a9D071f10a","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","result":{"address":"0x98407b14a486584c308991b9a44835a9D071f10a","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","hash":"0x5b1769f42a5f5255b77e79db59b7bced9d4b9aa0fc8a715ee7557c65a247fe75","networkInteractionId":1,"receipt":{"blockHash":"0x8dc079f46470e91076f2b558dafce3884bf033635a2f3e565c9ae4c7f2690cf8","blockNumber":10210847,"contractAddress":"0xEa16Fb67A4Bb4a90598FDf03e68091ecD33614ae","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","result":{"address":"0xEa16Fb67A4Bb4a90598FDf03e68091ecD33614ae","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","hash":"0x09ce5061c7bc0c1bc5fd58744aa4f951407fb5dd661d5449c9db91b1c1333989","networkInteractionId":1,"receipt":{"blockHash":"0x8dc079f46470e91076f2b558dafce3884bf033635a2f3e565c9ae4c7f2690cf8","blockNumber":10210847,"contractAddress":"0x2aBAf45eA01566F756cB3EB7E9A16D592303FDE1","logs":[{"address":"0x2aBAf45eA01566F756cB3EB7E9A16D592303FDE1","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":107,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","result":{"address":"0x2aBAf45eA01566F756cB3EB7E9A16D592303FDE1","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","hash":"0x4e25e2d5abf5b1c2671384f6a57036574da93dfbeb84f15cb5c9c37386d60879","networkInteractionId":1,"receipt":{"blockHash":"0x8dc079f46470e91076f2b558dafce3884bf033635a2f3e565c9ae4c7f2690cf8","blockNumber":10210847,"contractAddress":"0xF3913Fa76d0E0B3B6645f8471C9799C3CED47328","logs":[{"address":"0xF3913Fa76d0E0B3B6645f8471C9799C3CED47328","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":108,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","result":{"address":"0xF3913Fa76d0E0B3B6645f8471C9799C3CED47328","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","hash":"0xed12926b9d5927d3cd1dfb626e345e2fae77f3e94cba63721b97e6d90df1905e","networkInteractionId":1,"receipt":{"blockHash":"0x8dc079f46470e91076f2b558dafce3884bf033635a2f3e565c9ae4c7f2690cf8","blockNumber":10210847,"contractAddress":"0x603Da3323C3881236C4157f6a1440697e2ba36A9","logs":[{"address":"0x603Da3323C3881236C4157f6a1440697e2ba36A9","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":109,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","result":{"address":"0x603Da3323C3881236C4157f6a1440697e2ba36A9","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV1","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xEa16Fb67A4Bb4a90598FDf03e68091ecD33614ae"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073Ea16Fb67A4Bb4a90598FDf03e68091ecD33614ae92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205c716993d98e927c2e009d323d30b276b9f9053b13c990872e37e08ceda5f0e864736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteractionId":1,"nonce":806,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteractionId":1,"nonce":806,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1884763253"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xe809d3aac22a188c9cfb0cc48920ddf98899fe9d56d7715abbc90ffd5e728bb3"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV2","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xEa16Fb67A4Bb4a90598FDf03e68091ecD33614ae"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073Ea16Fb67A4Bb4a90598FDf03e68091ecD33614ae92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212201730379fe7a3c7937db67ca664b730fe2e0b84fe42189a88b0c15e26b364904064736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteractionId":1,"nonce":807,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteractionId":1,"nonce":807,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1884763253"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x541578aec2e616d377c576b2a8ec721366a1b1d184d802cff55e176198c67e34"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV3","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xEa16Fb67A4Bb4a90598FDf03e68091ecD33614ae"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073Ea16Fb67A4Bb4a90598FDf03e68091ecD33614ae92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073Ea16Fb67A4Bb4a90598FDf03e68091ecD33614ae93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212203e7631d092463e9fef733079a709fae68d0cf33ba8f41e1065fa3c8bfd72784264736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteractionId":1,"nonce":808,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteractionId":1,"nonce":808,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1884763253"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x1af3f95728fff1c4d4e270bb0917c362462d91643c3ee5ccb1ab0c0c7e4e9b2c"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","hash":"0x759e70a192264533f151b81557c09f307b3408d1595493719c19c148b01a20d0","networkInteractionId":1,"receipt":{"blockHash":"0x9dc787bbd1d9eb390f9c5f9f7c21f556f3a595fd33bae05cba11a56e625e89b3","blockNumber":10703401,"contractAddress":"0x0807B0f18a61Eafc1fdF25A82C46a538576153c8","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","result":{"address":"0x0807B0f18a61Eafc1fdF25A82C46a538576153c8","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","hash":"0x74ec2d3c819c57d29e41f1032eb91d7c14b59cba3027ea422ace8dc8d1f147d7","networkInteractionId":1,"receipt":{"blockHash":"0x24cf0a63620c7e3b8df6896aa74c5224f5135bce22d28a6bc2e38b9f90bf7e8c","blockNumber":10703402,"contractAddress":"0x699180472883d46c888905c9dBdf185b0c879b3d","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","result":{"address":"0x699180472883d46c888905c9dBdf185b0c879b3d","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","hash":"0x79835d9306816cb8437452f2b18e75c6ff01ac03d0d465ccc392d4c29f82230b","networkInteractionId":1,"receipt":{"blockHash":"0x24cf0a63620c7e3b8df6896aa74c5224f5135bce22d28a6bc2e38b9f90bf7e8c","blockNumber":10703402,"contractAddress":"0xc46F8D8BEfFeA00B31D0BE64103397786E83eedB","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","result":{"address":"0xc46F8D8BEfFeA00B31D0BE64103397786E83eedB","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyAggregatorAlpha#PoseidonT4","hash":"0x4b808775ccbc1b85c4e1b959aeca17e77074e2dc0a0f74b636b7b1062e8fffdc","networkInteractionId":1,"receipt":{"blockHash":"0x24cf0a63620c7e3b8df6896aa74c5224f5135bce22d28a6bc2e38b9f90bf7e8c","blockNumber":10703402,"contractAddress":"0x2397B9fC20cea49371Ff96c98ca076E84904975B","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#PoseidonT4","result":{"address":"0x2397B9fC20cea49371Ff96c98ca076E84904975B","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyVault#CurvyVaultV1Implementation","hash":"0xdabb029607702977972c690f1746a99075a551f789de6639a020d671496fcd1e","networkInteractionId":1,"receipt":{"blockHash":"0x24cf0a63620c7e3b8df6896aa74c5224f5135bce22d28a6bc2e38b9f90bf7e8c","blockNumber":10703402,"contractAddress":"0x11e7501aAe705909cCc8e87FE7137150FBcE56B3","logs":[{"address":"0x11e7501aAe705909cCc8e87FE7137150FBcE56B3","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":1597,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyVault#CurvyVaultV1Implementation","result":{"address":"0x11e7501aAe705909cCc8e87FE7137150FBcE56B3","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyVault#CurvyVaultV2Implementation","hash":"0x8f0e5a106ab8b7cfd203b62428bb35241d149706c6fd30baa28ef7c1c6f1dc4f","networkInteractionId":1,"receipt":{"blockHash":"0x24cf0a63620c7e3b8df6896aa74c5224f5135bce22d28a6bc2e38b9f90bf7e8c","blockNumber":10703402,"contractAddress":"0x00c0126B6bBd3474c56761c86980002b3323e7fb","logs":[{"address":"0x00c0126B6bBd3474c56761c86980002b3323e7fb","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":1605,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyVault#CurvyVaultV2Implementation","result":{"address":"0x00c0126B6bBd3474c56761c86980002b3323e7fb","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyVault#CurvyVaultV3Implementation","hash":"0x778ff1fbbd65d92608c9d8347b902c12a424d932433e10e39b166d82fdcdf114","networkInteractionId":1,"receipt":{"blockHash":"0x24cf0a63620c7e3b8df6896aa74c5224f5135bce22d28a6bc2e38b9f90bf7e8c","blockNumber":10703402,"contractAddress":"0x6e70f6E726aD03E69eEe5f4314b4Ce1BEba079bB","logs":[{"address":"0x6e70f6E726aD03E69eEe5f4314b4Ce1BEba079bB","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":1660,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyVault#CurvyVaultV3Implementation","result":{"address":"0x6e70f6E726aD03E69eEe5f4314b4Ce1BEba079bB","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyVault#CurvyVaultV4Implementation","hash":"0xd7868fb7868fa2c8f2729791b6c7c8e43cf793529e9768be134e06b7021c2caf","networkInteractionId":1,"receipt":{"blockHash":"0x24cf0a63620c7e3b8df6896aa74c5224f5135bce22d28a6bc2e38b9f90bf7e8c","blockNumber":10703402,"contractAddress":"0xf10Fd4526C76f048ec668E1c1641c136D71cd8a8","logs":[{"address":"0xf10Fd4526C76f048ec668E1c1641c136D71cd8a8","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":1685,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyVault#CurvyVaultV4Implementation","result":{"address":"0xf10Fd4526C76f048ec668E1c1641c136D71cd8a8","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyVault#CurvyVaultV5Implementation","hash":"0x494fb6740c228eb6398b3581ca7e6b96ac94e8876601c7054f779128ff43f1e7","networkInteractionId":1,"receipt":{"blockHash":"0x24cf0a63620c7e3b8df6896aa74c5224f5135bce22d28a6bc2e38b9f90bf7e8c","blockNumber":10703402,"contractAddress":"0x390CD91Af28CAF35352e69830f9A01305917A28B","logs":[{"address":"0x390CD91Af28CAF35352e69830f9A01305917A28B","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":1721,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyVault#CurvyVaultV5Implementation","result":{"address":"0x390CD91Af28CAF35352e69830f9A01305917A28B","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyVault#CurvyVaultV6Implementation","hash":"0xdf5c456b16ef78d4f3ca1189ad71d44d69c03a043824ab1891eb815edd04b51c","networkInteractionId":1,"receipt":{"blockHash":"0x24cf0a63620c7e3b8df6896aa74c5224f5135bce22d28a6bc2e38b9f90bf7e8c","blockNumber":10703402,"contractAddress":"0x8fF5Ac2166F275aF49e0306AB1cB9154fA5F8aD9","logs":[{"address":"0x8fF5Ac2166F275aF49e0306AB1cB9154fA5F8aD9","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":1777,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyVault#CurvyVaultV6Implementation","result":{"address":"0x8fF5Ac2166F275aF49e0306AB1cB9154fA5F8aD9","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV1","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0x2397B9fC20cea49371Ff96c98ca076E84904975B"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f9350732397B9fC20cea49371Ff96c98ca076E84904975B92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122049274efc5236ee1482f9c66f21cf7c3103787b88182a2c96d8b86f766faffca364736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteractionId":1,"nonce":1004,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteractionId":1,"nonce":1004,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1537882350"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xc7aca872cd7cbf8c42acf1b3cba867a62c006a36e6a2d2811415288ad85b8fc6"},"type":"TRANSACTION_SEND"}
+{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV2","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0x2397B9fC20cea49371Ff96c98ca076E84904975B"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f9350732397B9fC20cea49371Ff96c98ca076E84904975B92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220341dc6fef9a93660da25b75309496de439a8f47bcde0a3f90679d1bb2697fe9364736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteractionId":1,"nonce":1005,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteractionId":1,"nonce":1005,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1537882350"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x59563eaff56481b638f59aa4fe1af4f78ac75fdea3b77725aac9cc395dda2b73"},"type":"TRANSACTION_SEND"}
+{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV3","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0x2397B9fC20cea49371Ff96c98ca076E84904975B"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f9350732397B9fC20cea49371Ff96c98ca076E84904975B92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f9450732397B9fC20cea49371Ff96c98ca076E84904975B93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220dfe33aee463c8a52bfb59628480441439c953caaf1077fb67ce915711d8c35c964736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteractionId":1,"nonce":1006,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteractionId":1,"nonce":1006,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1537882350"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xb30c1acf5e41245383f571e18ddac2eb59af6fb8100abec685b9d98bcaea30bb"},"type":"TRANSACTION_SEND"}
{"args":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"CurvyVault#CurvyVaultV1Implementation","dependencies":["CurvyVault#CurvyVaultV1Implementation"],"functionName":"initialize","futureId":"CurvyVault#encodeFunctionCall(CurvyVault#CurvyVaultV1Implementation.initialize)","result":"0xc4d66de800000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","strategy":"basic","strategyConfig":{},"type":"ENCODE_FUNCTION_CALL_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":809,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":809,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1884763253"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x50400bb7cf4da3e691e1e689fcb107b496dd134d796900767d1ef933f39fb7b2"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","hash":"0xe809d3aac22a188c9cfb0cc48920ddf98899fe9d56d7715abbc90ffd5e728bb3","networkInteractionId":1,"receipt":{"blockHash":"0x06c2d23148ce02f0068e6df7efa107c063d508f65970869f9477bd9443bda64e","blockNumber":10210854,"contractAddress":"0x56412C92455aED0c8c1e53B7e2323fE0fC99E6a0","logs":[{"address":"0x56412C92455aED0c8c1e53B7e2323fE0fC99E6a0","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":170,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","result":{"address":"0x56412C92455aED0c8c1e53B7e2323fE0fC99E6a0","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","hash":"0x541578aec2e616d377c576b2a8ec721366a1b1d184d802cff55e176198c67e34","networkInteractionId":1,"receipt":{"blockHash":"0x06c2d23148ce02f0068e6df7efa107c063d508f65970869f9477bd9443bda64e","blockNumber":10210854,"contractAddress":"0x93d0e174e6fa34528DC04CD3Ea90976DbDb18E98","logs":[{"address":"0x93d0e174e6fa34528DC04CD3Ea90976DbDb18E98","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":177,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","result":{"address":"0x93d0e174e6fa34528DC04CD3Ea90976DbDb18E98","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","hash":"0x1af3f95728fff1c4d4e270bb0917c362462d91643c3ee5ccb1ab0c0c7e4e9b2c","networkInteractionId":1,"receipt":{"blockHash":"0x06c2d23148ce02f0068e6df7efa107c063d508f65970869f9477bd9443bda64e","blockNumber":10210854,"contractAddress":"0x7B2a3a6A5f311193c5c01734A78FB1C7CeD5C6D7","logs":[{"address":"0x7B2a3a6A5f311193c5c01734A78FB1C7CeD5C6D7","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":178,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","result":{"address":"0x7B2a3a6A5f311193c5c01734A78FB1C7CeD5C6D7","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","hash":"0x50400bb7cf4da3e691e1e689fcb107b496dd134d796900767d1ef933f39fb7b2","networkInteractionId":1,"receipt":{"blockHash":"0x06c2d23148ce02f0068e6df7efa107c063d508f65970869f9477bd9443bda64e","blockNumber":10210854,"logs":[{"address":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","data":"0x","logIndex":182,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":183,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000341d1571998c937e5f3cb3e640805c8b457e7124","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
+{"args":["0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161205c38038061205c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611f1a806101425f395ff3fe6080604052600436106100bf575f3560e01c80635e8b95d21161007c5780638da5cb5b116100575780638da5cb5b14610203578063e16ca8951461021f578063eb2347fd1461023e578063f2fde38b14610275575f5ffd5b80635e8b95d21461019957806366e93b8c146101d0578063715018a6146101ef575f5ffd5b80630188ab0f146100c357806303e62121146100f857806307922e191461011957806311c9a94d1461012c5780632b4c74fa1461015b57806353070b551461017a575b5f5ffd5b3480156100ce575f5ffd5b506100e26100dd366004610b87565b610294565b6040516100ef9190610bce565b60405180910390f35b348015610103575f5ffd5b50610117610112366004610c48565b610323565b005b610117610127366004610d67565b61056a565b348015610137575f5ffd5b5061014b610146366004610d9d565b61066c565b60405190151581526020016100ef565b348015610166575f5ffd5b50610117610175366004610de5565b610700565b348015610185575f5ffd5b50610117610194366004610e5d565b6108a1565b3480156101a4575f5ffd5b506101b86101b3366004610ea2565b610924565b6040516001600160a01b0390911681526020016100ef565b3480156101db575f5ffd5b506101176101ea366004610ec5565b61097a565b3480156101fa575f5ffd5b506101176109fe565b34801561020e575f5ffd5b505f546001600160a01b03166101b8565b34801561022a575f5ffd5b506101b8610239366004610f1b565b610a11565b348015610249575f5ffd5b5061014b610258366004610f4f565b6001600160a01b03165f9081526005602052604090205460ff1690565b348015610280575f5ffd5b5061011761028f366004610f4f565b610a68565b60605f604051806020016102a790610b66565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a08301909152919250610308908390839060c001610f88565b60405160208183030381529060405292505050949350505050565b61032b610aaa565b6004546001600160a01b03166103545760405163437f3ac360e01b815260040160405180910390fd5b46820361040b576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda9161038e918c918c9101610fcc565b60a060405180830381865afa1580156103a9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103cd9190610fef565b9050836001600160a01b031681604001516001600160a01b0316146104055760405163523660f760e01b815260040160405180910390fd5b506104dd565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161043e918c918c9101610fcc565b5f60405180830381865afa158015610458573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261047f9190810190611111565b9050836001600160a01b03168160a001516001600160a01b0316146104b75760405163523660f760e01b815260040160405180910390fd5b828160e00151146104db576040516397c91b6960e01b815260040160405180910390fd5b505b5f6104ea5f858585610294565b90505f6104f682610ad6565b6004805460405163a31716bf60e01b81529293506001600160a01b038085169363a31716bf9361053293909216918e918e918e918e9101611220565b5f604051808303815f87803b158015610549575f5ffd5b505af115801561055b573d5f5f3e3d5ffd5b50505050505050505050505050565b610572610aaa565b6002546001600160a01b0316158061059357506003546001600160a01b0316155b156105b1576040516389da714f60e01b815260040160405180910390fd5b5f6105c1835f01515f5f85610294565b90505f6105cd82610ad6565b6001600160a01b038181165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a01516044830152841660648201529216608483015291925063994d0d389060a4015f604051808303815f87803b158015610650575f5ffd5b505af1158015610662573d5f5f3e3d5ffd5b5050505050505050565b5f610675610aaa565b6001600160a01b038416156106a057600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106cb57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106f657600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b610708610aaa565b6004546001600160a01b03166107315760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af91610764918a918a9101610fcc565b5f60405180830381865afa15801561077e573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526107a59190810190611111565b90506107b4845f015183610924565b6001600160a01b03168160a001516001600160a01b0316146107e95760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461080f576040516397c91b6960e01b815260040160405180910390fd5b5f61081f855f01515f5f86610294565b90505f61082b82610ad6565b600480546040808a0151905163a31716bf60e01b81529394506001600160a01b038086169463a31716bf9461086a94909216928e928e928d9101611220565b5f604051808303815f87803b158015610881575f5ffd5b505af1158015610893573d5f5f3e3d5ffd5b505050505050505050505050565b5f6108ae855f5f87610294565b90505f6108ba82610ad6565b604051631922fddd60e21b81526001600160a01b03868116600483015285811660248301529192509082169063648bf774906044015f604051808303815f87803b158015610906575f5ffd5b505af1158015610918573d5f5f3e3d5ffd5b50505050505050505050565b5f5f610932845f5f86610294565b90505f60ff60f81b3060015484805190602001206040516020016109599493929190611266565b60408051808303601f19018152919052805160209091012095945050505050565b5f6109875f878787610294565b90505f61099382610ad6565b604051631922fddd60e21b81526001600160a01b03868116600483015285811660248301529192509082169063648bf774906044015f604051808303815f87803b1580156109df575f5ffd5b505af11580156109f1573d5f5f3e3d5ffd5b5050505050505050505050565b610a06610aaa565b610a0f5f610b17565b565b5f5f610a1f5f868686610294565b90505f60ff60f81b306001548480519060200120604051602001610a469493929190611266565b60408051808303601f1901815291905280516020909101209695505050505050565b610a70610aaa565b6001600160a01b038116610a9e57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610aa781610b17565b50565b5f546001600160a01b03163314610a0f5760405163118cdaa760e01b8152336004820152602401610a95565b5f5f5f60015490508084516020860134f591506001600160a01b038216610b1057604051633011642560e01b815260040160405180910390fd5b5092915050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610c45806112a083390190565b6001600160a01b0381168114610aa7575f5ffd5b5f5f5f5f60808587031215610b9a575f5ffd5b843593506020850135610bac81610b73565b9250604085013591506060850135610bc381610b73565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610c13575f5ffd5b50813567ffffffffffffffff811115610c2a575f5ffd5b602083019150836020828501011115610c41575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610c5e575f5ffd5b873567ffffffffffffffff811115610c74575f5ffd5b610c808a828b01610c03565b909850965050602088013594506040880135610c9b81610b73565b93506060880135610cab81610b73565b92506080880135915060a0880135610cc281610b73565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610d0a57610d0a610cd2565b60405290565b5f60608284031215610d20575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d4357610d43610cd2565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610d78575f5ffd5b610d828484610d10565b91506060830135610d9281610b73565b809150509250929050565b5f5f5f60608486031215610daf575f5ffd5b8335610dba81610b73565b92506020840135610dca81610b73565b91506040840135610dda81610b73565b809150509250925092565b5f5f5f5f5f60c08688031215610df9575f5ffd5b853567ffffffffffffffff811115610e0f575f5ffd5b610e1b88828901610c03565b9096509450610e2f90508760208801610d10565b92506080860135610e3f81610b73565b915060a0860135610e4f81610b73565b809150509295509295909350565b5f5f5f5f60808587031215610e70575f5ffd5b843593506020850135610e8281610b73565b92506040850135610e9281610b73565b91506060850135610bc381610b73565b5f5f60408385031215610eb3575f5ffd5b823591506020830135610d9281610b73565b5f5f5f5f5f60a08688031215610ed9575f5ffd5b8535610ee481610b73565b9450602086013593506040860135610efb81610b73565b92506060860135610f0b81610b73565b91506080860135610e4f81610b73565b5f5f5f60608486031215610f2d575f5ffd5b8335610f3881610b73565b9250602084013591506040840135610dda81610b73565b5f60208284031215610f5f575f5ffd5b8135610f6a81610b73565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610f9c610f968386610f71565b84610f71565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610f9c602083018486610fa4565b8051610fea81610b73565b919050565b5f60a0828403128015611000575f5ffd5b5060405160a0810167ffffffffffffffff8111828210171561102457611024610cd2565b604052825161103281610b73565b815260208381015190820152604083015161104c81610b73565b6040820152606083015161105f81610b73565b60608201526080928301519281019290925250919050565b5f82601f830112611086575f5ffd5b815167ffffffffffffffff8111156110a0576110a0610cd2565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110cf576110cf610cd2565b6040528181528382016020018510156110e6575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610fea575f5ffd5b5f60208284031215611121575f5ffd5b815167ffffffffffffffff811115611137575f5ffd5b82016101408185031215611149575f5ffd5b611151610ce6565b81518152602082015167ffffffffffffffff81111561116e575f5ffd5b61117a86828501611077565b602083015250604082015167ffffffffffffffff811115611199575f5ffd5b6111a586828501611077565b6040830152506111b760608301610fdf565b60608201526111c860808301610fdf565b60808201526111d960a08301610fdf565b60a082015260c0828101519082015260e080830151908201526111ff6101008301611102565b6101008201526112126101208301611102565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906112449083018688610fa4565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610c45380380610c4583398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610b10806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b436600461092d565b6100f4565b005b6100b96100c9366004610964565b610296565b6100b96100dc3660046109f4565b6104f4565b600554610077906001600160a01b031681565b6005546001600160a01b0316321461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610a92565b90506102106001600160a01b0383168483610762565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa158015610376573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061039a9190610aa9565b90506001600160a01b038116158015906103d157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104685760035460408501516103f6916001600160a01b03848116929116906107c6565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b15801561044d575f5ffd5b505af115801561045f573d5f5f3e3d5ffd5b505050506104db565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b1580156104c3575f5ffd5b505af11580156104d5573d5f5f3e3d5ffd5b50505050505b50506005805460ff60a01b1916600160a01b1790555050565b600554600160a01b900460ff16156105485760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061057d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156106a6576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156105c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105ec9190610a92565b90508381101561060f57604051637bdd7ae760e01b815260040160405180910390fd5b6106236001600160a01b03831688866107c6565b5f876001600160a01b0316878760405161063e929190610acb565b5f604051808303815f865af19150503d805f8114610677576040519150601f19603f3d011682016040523d82523d5f602084013e61067c565b606091505b505090508061069e57604051631bb7daad60e11b815260040160405180910390fd5b505050610748565b47828110156106c857604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516106e4929190610acb565b5f6040518083038185875af1925050503d805f811461071e576040519150601f19603f3d011682016040523d82523d5f602084013e610723565b606091505b505090508061074557604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b038381166024830152604482018390526107c191859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610851565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261081784826108bd565b610210576040516001600160a01b0384811660248301525f604483015261084b91869182169063095ea7b39060640161078f565b61021084825b5f5f60205f8451602086015f885af180610870576040513d5f823e3d81fd5b50505f513d91508115610887578060011415610894565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108fc575081156108ee57806001146108fc565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b038116811461091a575f5ffd5b50565b803561092881610906565b919050565b5f5f6040838503121561093e575f5ffd5b823561094981610906565b9150602083013561095981610906565b809150509250929050565b5f5f5f83850360a0811215610977575f5ffd5b6060811215610984575f5ffd5b506040516060810181811067ffffffffffffffff821117156109b457634e487b7160e01b5f52604160045260245ffd5b60409081528535825260208087013590830152858101359082015292506109dd6060850161091d565b91506109eb6080850161091d565b90509250925092565b5f5f5f5f5f60808688031215610a08575f5ffd5b8535610a1381610906565b9450602086013567ffffffffffffffff811115610a2e575f5ffd5b8601601f81018813610a3e575f5ffd5b803567ffffffffffffffff811115610a54575f5ffd5b886020828401011115610a65575f5ffd5b60209190910194509250604086013591506060860135610a8481610906565b809150509295509295909350565b5f60208284031215610aa2575f5ffd5b5051919050565b5f60208284031215610ab9575f5ffd5b8151610ac481610906565b9392505050565b818382375f910190815291905056fea2646970667358221220ef2e672beab9ba98f9b823dbdb9af01f97da0fa3990b47d9b0e59fb3a69f47f564736f6c634300081c0033a26469706673582212205e77fa29f0c06d6c75666f9d4341eee6d74bf483e7c24fda04f181922a8007bd64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076687374616765206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000207c7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161205c38038061205c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611f1a806101425f395ff3fe6080604052600436106100bf575f3560e01c80635e8b95d21161007c5780638da5cb5b116100575780638da5cb5b14610203578063e16ca8951461021f578063eb2347fd1461023e578063f2fde38b14610275575f5ffd5b80635e8b95d21461019957806366e93b8c146101d0578063715018a6146101ef575f5ffd5b80630188ab0f146100c357806303e62121146100f857806307922e191461011957806311c9a94d1461012c5780632b4c74fa1461015b57806353070b551461017a575b5f5ffd5b3480156100ce575f5ffd5b506100e26100dd366004610b87565b610294565b6040516100ef9190610bce565b60405180910390f35b348015610103575f5ffd5b50610117610112366004610c48565b610323565b005b610117610127366004610d67565b61056a565b348015610137575f5ffd5b5061014b610146366004610d9d565b61066c565b60405190151581526020016100ef565b348015610166575f5ffd5b50610117610175366004610de5565b610700565b348015610185575f5ffd5b50610117610194366004610e5d565b6108a1565b3480156101a4575f5ffd5b506101b86101b3366004610ea2565b610924565b6040516001600160a01b0390911681526020016100ef565b3480156101db575f5ffd5b506101176101ea366004610ec5565b61097a565b3480156101fa575f5ffd5b506101176109fe565b34801561020e575f5ffd5b505f546001600160a01b03166101b8565b34801561022a575f5ffd5b506101b8610239366004610f1b565b610a11565b348015610249575f5ffd5b5061014b610258366004610f4f565b6001600160a01b03165f9081526005602052604090205460ff1690565b348015610280575f5ffd5b5061011761028f366004610f4f565b610a68565b60605f604051806020016102a790610b66565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a08301909152919250610308908390839060c001610f88565b60405160208183030381529060405292505050949350505050565b61032b610aaa565b6004546001600160a01b03166103545760405163437f3ac360e01b815260040160405180910390fd5b46820361040b576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda9161038e918c918c9101610fcc565b60a060405180830381865afa1580156103a9573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103cd9190610fef565b9050836001600160a01b031681604001516001600160a01b0316146104055760405163523660f760e01b815260040160405180910390fd5b506104dd565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161043e918c918c9101610fcc565b5f60405180830381865afa158015610458573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261047f9190810190611111565b9050836001600160a01b03168160a001516001600160a01b0316146104b75760405163523660f760e01b815260040160405180910390fd5b828160e00151146104db576040516397c91b6960e01b815260040160405180910390fd5b505b5f6104ea5f858585610294565b90505f6104f682610ad6565b6004805460405163a31716bf60e01b81529293506001600160a01b038085169363a31716bf9361053293909216918e918e918e918e9101611220565b5f604051808303815f87803b158015610549575f5ffd5b505af115801561055b573d5f5f3e3d5ffd5b50505050505050505050505050565b610572610aaa565b6002546001600160a01b0316158061059357506003546001600160a01b0316155b156105b1576040516389da714f60e01b815260040160405180910390fd5b5f6105c1835f01515f5f85610294565b90505f6105cd82610ad6565b6001600160a01b038181165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a01516044830152841660648201529216608483015291925063994d0d389060a4015f604051808303815f87803b158015610650575f5ffd5b505af1158015610662573d5f5f3e3d5ffd5b5050505050505050565b5f610675610aaa565b6001600160a01b038416156106a057600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106cb57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106f657600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b610708610aaa565b6004546001600160a01b03166107315760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af91610764918a918a9101610fcc565b5f60405180830381865afa15801561077e573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526107a59190810190611111565b90506107b4845f015183610924565b6001600160a01b03168160a001516001600160a01b0316146107e95760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461080f576040516397c91b6960e01b815260040160405180910390fd5b5f61081f855f01515f5f86610294565b90505f61082b82610ad6565b600480546040808a0151905163a31716bf60e01b81529394506001600160a01b038086169463a31716bf9461086a94909216928e928e928d9101611220565b5f604051808303815f87803b158015610881575f5ffd5b505af1158015610893573d5f5f3e3d5ffd5b505050505050505050505050565b5f6108ae855f5f87610294565b90505f6108ba82610ad6565b604051631922fddd60e21b81526001600160a01b03868116600483015285811660248301529192509082169063648bf774906044015f604051808303815f87803b158015610906575f5ffd5b505af1158015610918573d5f5f3e3d5ffd5b50505050505050505050565b5f5f610932845f5f86610294565b90505f60ff60f81b3060015484805190602001206040516020016109599493929190611266565b60408051808303601f19018152919052805160209091012095945050505050565b5f6109875f878787610294565b90505f61099382610ad6565b604051631922fddd60e21b81526001600160a01b03868116600483015285811660248301529192509082169063648bf774906044015f604051808303815f87803b1580156109df575f5ffd5b505af11580156109f1573d5f5f3e3d5ffd5b5050505050505050505050565b610a06610aaa565b610a0f5f610b17565b565b5f5f610a1f5f868686610294565b90505f60ff60f81b306001548480519060200120604051602001610a469493929190611266565b60408051808303601f1901815291905280516020909101209695505050505050565b610a70610aaa565b6001600160a01b038116610a9e57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610aa781610b17565b50565b5f546001600160a01b03163314610a0f5760405163118cdaa760e01b8152336004820152602401610a95565b5f5f5f60015490508084516020860134f591506001600160a01b038216610b1057604051633011642560e01b815260040160405180910390fd5b5092915050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610c45806112a083390190565b6001600160a01b0381168114610aa7575f5ffd5b5f5f5f5f60808587031215610b9a575f5ffd5b843593506020850135610bac81610b73565b9250604085013591506060850135610bc381610b73565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610c13575f5ffd5b50813567ffffffffffffffff811115610c2a575f5ffd5b602083019150836020828501011115610c41575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610c5e575f5ffd5b873567ffffffffffffffff811115610c74575f5ffd5b610c808a828b01610c03565b909850965050602088013594506040880135610c9b81610b73565b93506060880135610cab81610b73565b92506080880135915060a0880135610cc281610b73565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610d0a57610d0a610cd2565b60405290565b5f60608284031215610d20575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d4357610d43610cd2565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610d78575f5ffd5b610d828484610d10565b91506060830135610d9281610b73565b809150509250929050565b5f5f5f60608486031215610daf575f5ffd5b8335610dba81610b73565b92506020840135610dca81610b73565b91506040840135610dda81610b73565b809150509250925092565b5f5f5f5f5f60c08688031215610df9575f5ffd5b853567ffffffffffffffff811115610e0f575f5ffd5b610e1b88828901610c03565b9096509450610e2f90508760208801610d10565b92506080860135610e3f81610b73565b915060a0860135610e4f81610b73565b809150509295509295909350565b5f5f5f5f60808587031215610e70575f5ffd5b843593506020850135610e8281610b73565b92506040850135610e9281610b73565b91506060850135610bc381610b73565b5f5f60408385031215610eb3575f5ffd5b823591506020830135610d9281610b73565b5f5f5f5f5f60a08688031215610ed9575f5ffd5b8535610ee481610b73565b9450602086013593506040860135610efb81610b73565b92506060860135610f0b81610b73565b91506080860135610e4f81610b73565b5f5f5f60608486031215610f2d575f5ffd5b8335610f3881610b73565b9250602084013591506040840135610dda81610b73565b5f60208284031215610f5f575f5ffd5b8135610f6a81610b73565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610f9c610f968386610f71565b84610f71565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610f9c602083018486610fa4565b8051610fea81610b73565b919050565b5f60a0828403128015611000575f5ffd5b5060405160a0810167ffffffffffffffff8111828210171561102457611024610cd2565b604052825161103281610b73565b815260208381015190820152604083015161104c81610b73565b6040820152606083015161105f81610b73565b60608201526080928301519281019290925250919050565b5f82601f830112611086575f5ffd5b815167ffffffffffffffff8111156110a0576110a0610cd2565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110cf576110cf610cd2565b6040528181528382016020018510156110e6575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610fea575f5ffd5b5f60208284031215611121575f5ffd5b815167ffffffffffffffff811115611137575f5ffd5b82016101408185031215611149575f5ffd5b611151610ce6565b81518152602082015167ffffffffffffffff81111561116e575f5ffd5b61117a86828501611077565b602083015250604082015167ffffffffffffffff811115611199575f5ffd5b6111a586828501611077565b6040830152506111b760608301610fdf565b60608201526111c860808301610fdf565b60808201526111d960a08301610fdf565b60a082015260c0828101519082015260e080830151908201526111ff6101008301611102565b6101008201526112126101208301611102565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906112449083018688610fa4565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610c45380380610c4583398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610b10806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b436600461092d565b6100f4565b005b6100b96100c9366004610964565b610296565b6100b96100dc3660046109f4565b6104f4565b600554610077906001600160a01b031681565b6005546001600160a01b0316321461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610a92565b90506102106001600160a01b0383168483610762565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa158015610376573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061039a9190610aa9565b90506001600160a01b038116158015906103d157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104685760035460408501516103f6916001600160a01b03848116929116906107c6565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b15801561044d575f5ffd5b505af115801561045f573d5f5f3e3d5ffd5b505050506104db565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b1580156104c3575f5ffd5b505af11580156104d5573d5f5f3e3d5ffd5b50505050505b50506005805460ff60a01b1916600160a01b1790555050565b600554600160a01b900460ff16156105485760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061057d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156106a6576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156105c8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105ec9190610a92565b90508381101561060f57604051637bdd7ae760e01b815260040160405180910390fd5b6106236001600160a01b03831688866107c6565b5f876001600160a01b0316878760405161063e929190610acb565b5f604051808303815f865af19150503d805f8114610677576040519150601f19603f3d011682016040523d82523d5f602084013e61067c565b606091505b505090508061069e57604051631bb7daad60e11b815260040160405180910390fd5b505050610748565b47828110156106c857604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516106e4929190610acb565b5f6040518083038185875af1925050503d805f811461071e576040519150601f19603f3d011682016040523d82523d5f602084013e610723565b606091505b505090508061074557604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b038381166024830152604482018390526107c191859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610851565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261081784826108bd565b610210576040516001600160a01b0384811660248301525f604483015261084b91869182169063095ea7b39060640161078f565b61021084825b5f5f60205f8451602086015f885af180610870576040513d5f823e3d81fd5b50505f513d91508115610887578060011415610894565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108fc575081156108ee57806001146108fc565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b038116811461091a575f5ffd5b50565b803561092881610906565b919050565b5f5f6040838503121561093e575f5ffd5b823561094981610906565b9150602083013561095981610906565b809150509250929050565b5f5f5f83850360a0811215610977575f5ffd5b6060811215610984575f5ffd5b506040516060810181811067ffffffffffffffff821117156109b457634e487b7160e01b5f52604160045260245ffd5b60409081528535825260208087013590830152858101359082015292506109dd6060850161091d565b91506109eb6080850161091d565b90509250925092565b5f5f5f5f5f60808688031215610a08575f5ffd5b8535610a1381610906565b9450602086013567ffffffffffffffff811115610a2e575f5ffd5b8601601f81018813610a3e575f5ffd5b803567ffffffffffffffff811115610a54575f5ffd5b886020828401011115610a65575f5ffd5b60209190910194509250604086013591506060860135610a8481610906565b809150509295509295909350565b5f60208284031215610aa2575f5ffd5b5051919050565b5f60208284031215610ab9575f5ffd5b8151610ac481610906565b9392505050565b818382375f910190815291905056fea2646970667358221220ef2e672beab9ba98f9b823dbdb9af01f97da0fa3990b47d9b0e59fb3a69f47f564736f6c634300081c0033a26469706673582212205e77fa29f0c06d6c75666f9d4341eee6d74bf483e7c24fda04f181922a8007bd64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":1007,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":1007,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1537882350"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x6da9607d4c7b9b6826e4339db6b9ffdfa8f5845fbbbce337961beac8349e2620"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","hash":"0xc7aca872cd7cbf8c42acf1b3cba867a62c006a36e6a2d2811415288ad85b8fc6","networkInteractionId":1,"receipt":{"blockHash":"0x8b2f4eeb220e01e956b57ab0716fd350c39a307d1808065bcb9a0d5ecc6ac3b0","blockNumber":10703407,"contractAddress":"0x197Db000f002a679770C55bc24A089b493b94aB6","logs":[{"address":"0x197Db000f002a679770C55bc24A089b493b94aB6","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":996,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","result":{"address":"0x197Db000f002a679770C55bc24A089b493b94aB6","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","hash":"0x59563eaff56481b638f59aa4fe1af4f78ac75fdea3b77725aac9cc395dda2b73","networkInteractionId":1,"receipt":{"blockHash":"0x8b2f4eeb220e01e956b57ab0716fd350c39a307d1808065bcb9a0d5ecc6ac3b0","blockNumber":10703407,"contractAddress":"0xa3583063667530A4bAc011a8fF420c48FD1b3C55","logs":[{"address":"0xa3583063667530A4bAc011a8fF420c48FD1b3C55","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":997,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","result":{"address":"0xa3583063667530A4bAc011a8fF420c48FD1b3C55","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","hash":"0xb30c1acf5e41245383f571e18ddac2eb59af6fb8100abec685b9d98bcaea30bb","networkInteractionId":1,"receipt":{"blockHash":"0x8b2f4eeb220e01e956b57ab0716fd350c39a307d1808065bcb9a0d5ecc6ac3b0","blockNumber":10703407,"contractAddress":"0x01E4CB6105a3b6Dd3ad8e21BCb60064FEe8426B7","logs":[{"address":"0x01E4CB6105a3b6Dd3ad8e21BCb60064FEe8426B7","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":998,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","result":{"address":"0x01E4CB6105a3b6Dd3ad8e21BCb60064FEe8426B7","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x6da9607d4c7b9b6826e4339db6b9ffdfa8f5845fbbbce337961beac8349e2620","networkInteractionId":1,"receipt":{"blockHash":"0x8b2f4eeb220e01e956b57ab0716fd350c39a307d1808065bcb9a0d5ecc6ac3b0","blockNumber":10703407,"logs":[{"address":"0x0bE0dD9B26b78f96943877bdAEDD573C05A060C2","data":"0x","logIndex":999,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1000,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000000be0dd9b26b78f96943877bdaedd573c05a060c2","0x424e4b9db5d95a27499fbc0588f9e21c9c6eab4cae98df46601e5284d9e6f6c8"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
{"args":["0x61826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000000000000000000000"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation"],"functionName":"initialize","futureId":"CurvyAggregatorAlpha#encodeFunctionCall(CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.initialize)","result":"0x485cc95500000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000000000000000000000000000000000","strategy":"basic","strategyConfig":{},"type":"ENCODE_FUNCTION_CALL_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#ERC1967Proxy","constructorArgs":["0x2aBAf45eA01566F756cB3EB7E9A16D592303FDE1","0xc4d66de800000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"ERC1967Proxy","dependencies":["CurvyVault#CurvyVaultV1Implementation","CurvyVault#encodeFunctionCall(CurvyVault#CurvyVaultV1Implementation.initialize)"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#ERC1967Proxy","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#ERC1967Proxy","networkInteraction":{"data":"0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c00330000000000000000000000002abaf45ea01566f756cb3eb7e9a16d592303fde100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000024c4d66de800000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000000000000000000000000000000000000000000000","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#ERC1967Proxy","networkInteractionId":1,"nonce":810,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#ERC1967Proxy","networkInteractionId":1,"nonce":810,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2082205099"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x4839df7b9d29cd2b79a9a89ea6e8ebe7dd1a866dd0166fcd94d94903197e268d"},"type":"TRANSACTION_SEND"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0","nameOrIndex":"newContract","result":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x50400bb7cf4da3e691e1e689fcb107b496dd134d796900767d1ef933f39fb7b2","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"CurvyVault#ERC1967Proxy","hash":"0x4839df7b9d29cd2b79a9a89ea6e8ebe7dd1a866dd0166fcd94d94903197e268d","networkInteractionId":1,"receipt":{"blockHash":"0x99b20412fdedebf1404d7377d7a555d148e7949f22b58af2a94ef047d6f68452","blockNumber":10210860,"contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","logs":[{"address":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","data":"0x","logIndex":107,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000002abaf45ea01566f756cb3eb7e9a16d592303fde1"]},{"address":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","data":"0x","logIndex":108,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","data":"0x0000000000000000000000000000000000000000000000000000000000000001","logIndex":109,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#ERC1967Proxy","result":{"address":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#ERC1967Proxy","constructorArgs":["0x56412C92455aED0c8c1e53B7e2323fE0fC99E6a0","0x485cc95500000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000000000000000000000000000000000"],"contractName":"ERC1967Proxy","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","CurvyAggregatorAlpha#encodeFunctionCall(CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.initialize)"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#ERC1967Proxy","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteraction":{"data":"0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c003300000000000000000000000056412c92455aed0c8c1e53b7e2323fe0fc99e6a000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000044485cc95500000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteractionId":1,"nonce":811,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteractionId":1,"nonce":811,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1946609071"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x9649c2c448969ef411c3d8f84cb35958d82ef41d2fae0f243074ff6ee9f44169"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","contractName":"CurvyVaultV1","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV1","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV2","contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","contractName":"CurvyVaultV2","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV3","contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","contractName":"CurvyVaultV3","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","hash":"0x9649c2c448969ef411c3d8f84cb35958d82ef41d2fae0f243074ff6ee9f44169","networkInteractionId":1,"receipt":{"blockHash":"0x3a5304944cf576865a696d9dc8bc718b1f015937a5a4bef28bcbcfdfe8dd64aa","blockNumber":10210865,"contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","logs":[{"address":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","data":"0x","logIndex":189,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000056412c92455aed0c8c1e53b7e2323fe0fc99e6a0"]},{"address":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","data":"0x","logIndex":190,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","data":"0x0000000000000000000000000000000000000000000000000000000000000001","logIndex":191,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","result":{"address":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","contractName":"CurvyAggregatorAlphaV1","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","contractName":"CurvyAggregatorAlphaV2","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","contractName":"CurvyAggregatorAlphaV3","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","contractName":"CurvyAggregatorAlphaV4","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0xF3913Fa76d0E0B3B6645f8471C9799C3CED47328","0x"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#CurvyVaultV2Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000f3913fa76d0e0b3b6645f8471c9799c3ced4732800000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteractionId":1,"nonce":812,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteractionId":1,"nonce":812,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2052647557"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x060ba17253b639321f39532d923831373d06bf1001f01870d80c3007a1aa7e85"},"type":"TRANSACTION_SEND"}
-{"args":["0x603Da3323C3881236C4157f6a1440697e2ba36A9","0x"],"artifactId":"CurvyVault#CurvyVaultV2","contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","dependencies":["CurvyVault#CurvyVaultV2","CurvyVault#CurvyVaultV3Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000603da3323c3881236c4157f6a1440697e2ba36a900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","networkInteractionId":1,"nonce":813,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","networkInteractionId":1,"nonce":813,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2052647557"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xa0da7eb24857a9fa633f1c8009a23d686565fd1bd7538c7ff94a195c763bdb5f"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","hash":"0x060ba17253b639321f39532d923831373d06bf1001f01870d80c3007a1aa7e85","networkInteractionId":1,"receipt":{"blockHash":"0xe5f4233e6909d29e4f0586e53b6f22cc5ac9d3a13e40607287276ac3b2c7eef1","blockNumber":10210871,"logs":[{"address":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","data":"0x","logIndex":156,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000f3913fa76d0e0b3b6645f8471c9799c3ced47328"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"artifactId":"CurvyVault#ERC1967Proxy","constructorArgs":["0x11e7501aAe705909cCc8e87FE7137150FBcE56B3","0xc4d66de800000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"ERC1967Proxy","dependencies":["CurvyVault#CurvyVaultV1Implementation","CurvyVault#encodeFunctionCall(CurvyVault#CurvyVaultV1Implementation.initialize)"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#ERC1967Proxy","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyVault#ERC1967Proxy","networkInteraction":{"data":"0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c003300000000000000000000000011e7501aae705909ccc8e87fe7137150fbce56b300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000024c4d66de800000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000000000000000000000000000000000000000000000","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyVault#ERC1967Proxy","networkInteractionId":1,"nonce":1008,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyVault#ERC1967Proxy","networkInteractionId":1,"nonce":1008,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1701325950"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xc903b0f8e00d0c23ac83565fc80efd7aa8e79c658092763757543afe9e1888dc"},"type":"TRANSACTION_SEND"}
+{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x0bE0dD9B26b78f96943877bdAEDD573C05A060C2","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x6da9607d4c7b9b6826e4339db6b9ffdfa8f5845fbbbce337961beac8349e2620","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
+{"futureId":"CurvyVault#ERC1967Proxy","hash":"0xc903b0f8e00d0c23ac83565fc80efd7aa8e79c658092763757543afe9e1888dc","networkInteractionId":1,"receipt":{"blockHash":"0x2c5c0c606787535acc0fa5960266cb521bfad00660a2c24e8cd13cbb9952a8bb","blockNumber":10703412,"contractAddress":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","logs":[{"address":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","data":"0x","logIndex":1389,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000011e7501aae705909ccc8e87fe7137150fbce56b3"]},{"address":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","data":"0x","logIndex":1390,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","data":"0x0000000000000000000000000000000000000000000000000000000000000001","logIndex":1391,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyVault#ERC1967Proxy","result":{"address":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"artifactId":"CurvyAggregatorAlpha#ERC1967Proxy","constructorArgs":["0x197Db000f002a679770C55bc24A089b493b94aB6","0x485cc95500000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000000000000000000000000000000000"],"contractName":"ERC1967Proxy","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","CurvyAggregatorAlpha#encodeFunctionCall(CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.initialize)"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#ERC1967Proxy","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteraction":{"data":"0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033000000000000000000000000197db000f002a679770c55bc24a089b493b94ab600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000044485cc95500000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteractionId":1,"nonce":1009,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteractionId":1,"nonce":1009,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1783820250"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x6d3a7e1b825b7f619c28b6256a04e5c6cf61812671e13d05116476eb8c5d4a36"},"type":"TRANSACTION_SEND"}
+{"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","contractName":"CurvyVaultV1","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV1","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
+{"artifactId":"CurvyVault#CurvyVaultV2","contractAddress":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","contractName":"CurvyVaultV2","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
+{"artifactId":"CurvyVault#CurvyVaultV3","contractAddress":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","contractName":"CurvyVaultV3","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
+{"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","contractName":"CurvyVaultV4","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
+{"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","contractName":"CurvyVaultV5","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV5","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
+{"artifactId":"CurvyVault#CurvyVaultV6","contractAddress":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","contractName":"CurvyVaultV6","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV6","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
+{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0bE0dD9B26b78f96943877bdAEDD573C05A060C2","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
+{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","hash":"0x6d3a7e1b825b7f619c28b6256a04e5c6cf61812671e13d05116476eb8c5d4a36","networkInteractionId":1,"receipt":{"blockHash":"0x56be820a80e38d40052da72bfe015060a4e24930935e30602aea6a3e33cfe804","blockNumber":10703417,"contractAddress":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","logs":[{"address":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","data":"0x","logIndex":1395,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000197db000f002a679770c55bc24a089b493b94ab6"]},{"address":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","data":"0x","logIndex":1396,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","data":"0x0000000000000000000000000000000000000000000000000000000000000001","logIndex":1397,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","result":{"address":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","contractName":"CurvyAggregatorAlphaV1","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
+{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","contractAddress":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","contractName":"CurvyAggregatorAlphaV2","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
+{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","contractName":"CurvyAggregatorAlphaV3","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
+{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","contractAddress":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","contractName":"CurvyAggregatorAlphaV4","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
+{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","contractName":"CurvyAggregatorAlphaV5","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
+{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","contractName":"CurvyAggregatorAlphaV6","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
+{"args":["0x00c0126B6bBd3474c56761c86980002b3323e7fb","0x"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#CurvyVaultV2Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef28600000000000000000000000000c0126b6bbd3474c56761c86980002b3323e7fb00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteractionId":1,"nonce":1010,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteractionId":1,"nonce":1010,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2002442076"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x040b0fd9c3707cc71659dbc80f2ce0efad1d98c53da74d5417814be9a93de176"},"type":"TRANSACTION_SEND"}
+{"args":["0x6e70f6E726aD03E69eEe5f4314b4Ce1BEba079bB","0x"],"artifactId":"CurvyVault#CurvyVaultV2","contractAddress":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","dependencies":["CurvyVault#CurvyVaultV2","CurvyVault#CurvyVaultV3Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef2860000000000000000000000006e70f6e726ad03e69eee5f4314b4ce1beba079bb00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","networkInteractionId":1,"nonce":1011,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","networkInteractionId":1,"nonce":1011,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2002442076"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x0f12e41ece583a39760faf250decd73d4d552daa4c98f7b7e59fef091b771c26"},"type":"TRANSACTION_SEND"}
+{"args":["0xf10Fd4526C76f048ec668E1c1641c136D71cd8a8","0x"],"artifactId":"CurvyVault#CurvyVaultV3","contractAddress":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","dependencies":["CurvyVault#CurvyVaultV3","CurvyVault#CurvyVaultV4Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000f10fd4526c76f048ec668e1c1641c136d71cd8a800000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","networkInteractionId":1,"nonce":1012,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","networkInteractionId":1,"nonce":1012,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2002442076"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x66a9bca6de1f39d77dc136caaf437b8fdc610daa0055505afc99c330ea1a786b"},"type":"TRANSACTION_SEND"}
+{"args":["0x390CD91Af28CAF35352e69830f9A01305917A28B","0x"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","dependencies":["CurvyVault#CurvyVaultV4","CurvyVault#CurvyVaultV5Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000390cd91af28caf35352e69830f9a01305917a28b00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":1013,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":1013,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2002442076"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x991a1dd6cc72c46265747aece2bd0da34d9a19a9c3988fe8ee84177457a0d5ef"},"type":"TRANSACTION_SEND"}
+{"args":["0x8fF5Ac2166F275aF49e0306AB1cB9154fA5F8aD9","0x"],"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","dependencies":["CurvyVault#CurvyVaultV5","CurvyVault#CurvyVaultV6Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef2860000000000000000000000008ff5ac2166f275af49e0306ab1cb9154fa5f8ad900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","networkInteractionId":1,"nonce":1014,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","networkInteractionId":1,"nonce":1014,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2002442076"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x8e404851343cfc768408a9dfb7fa22f7eb766207a2b2cafdc87713462a2df1c0"},"type":"TRANSACTION_SEND"}
+{"args":["0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","dependencies":["CurvyVault#CurvyVaultV4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_0","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyVault#RegisterVaultToken_0","networkInteraction":{"data":"0x09824a800000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c7238","id":1,"to":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyVault#RegisterVaultToken_0","networkInteractionId":1,"nonce":1015,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyVault#RegisterVaultToken_0","networkInteractionId":1,"nonce":1015,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2002442076"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x107b3304d77bda4d2395e73b7f6864b26dc4447fbe7a9b5ca590a295020e1b74"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","hash":"0x040b0fd9c3707cc71659dbc80f2ce0efad1d98c53da74d5417814be9a93de176","networkInteractionId":1,"receipt":{"blockHash":"0x84012c81466d5e8c114ac34ac7248ade8a83eb9fdf0dcbf0a908db5c0232aba2","blockNumber":10703422,"logs":[{"address":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","data":"0x","logIndex":240,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000000c0126b6bbd3474c56761c86980002b3323e7fb"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","hash":"0xa0da7eb24857a9fa633f1c8009a23d686565fd1bd7538c7ff94a195c763bdb5f","networkInteractionId":1,"receipt":{"blockHash":"0xe5f4233e6909d29e4f0586e53b6f22cc5ac9d3a13e40607287276ac3b2c7eef1","blockNumber":10210871,"logs":[{"address":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","data":"0x","logIndex":157,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000603da3323c3881236c4157f6a1440697e2ba36a9"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","hash":"0x0f12e41ece583a39760faf250decd73d4d552daa4c98f7b7e59fef091b771c26","networkInteractionId":1,"receipt":{"blockHash":"0x84012c81466d5e8c114ac34ac7248ade8a83eb9fdf0dcbf0a908db5c0232aba2","blockNumber":10703422,"logs":[{"address":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","data":"0x","logIndex":261,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000006e70f6e726ad03e69eee5f4314b4ce1beba079bb"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x9493Cb84D6D37302676495B975DB92FbB5f4e51F","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0xc38CFF93C02F8C05D9e800b808b61C6a159Fb633","maxAggregations":2,"maxDeposits":2,"maxWithdrawals":2,"withdrawVerifier":"0x98407b14a486584c308991b9a44835a9D071f10a"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteraction":{"data":"0xb4da7173000000000000000000000000c38cff93c02f8c05d9e800b808b61c6a159fb6330000000000000000000000009493cb84d6d37302676495b975db92fbb5f4e51f00000000000000000000000098407b14a486584c308991b9a44835a9d071f10a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002","id":1,"to":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteractionId":1,"nonce":814,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteractionId":1,"nonce":814,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1883839259"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x446cb5f9a93538af3a4744dcf5ff2addb9288dee38a36efa49f253c7a967fdc7"},"type":"TRANSACTION_SEND"}
-{"args":["0x93d0e174e6fa34528DC04CD3Ea90976DbDb18E98","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef28600000000000000000000000093d0e174e6fa34528dc04cd3ea90976dbdb18e9800000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteractionId":1,"nonce":815,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteractionId":1,"nonce":815,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1883839259"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x52875180ad01a21148d3313d1d4b3e4d42949f244578117e8b7b3b05e8103b28"},"type":"TRANSACTION_SEND"}
-{"args":["0x7B2a3a6A5f311193c5c01734A78FB1C7CeD5C6D7","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef2860000000000000000000000007b2a3a6a5f311193c5c01734a78fb1c7ced5c6d700000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteractionId":1,"nonce":816,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteractionId":1,"nonce":816,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1883839259"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x07b3b1cade5a01414e1daabebdcd8b14c907603e83e35dd762b61565ff48fa67"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","hash":"0x66a9bca6de1f39d77dc136caaf437b8fdc610daa0055505afc99c330ea1a786b","networkInteractionId":1,"receipt":{"blockHash":"0x84012c81466d5e8c114ac34ac7248ade8a83eb9fdf0dcbf0a908db5c0232aba2","blockNumber":10703422,"logs":[{"address":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","data":"0x","logIndex":284,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000f10fd4526c76f048ec668e1c1641c136d71cd8a8"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","hash":"0x991a1dd6cc72c46265747aece2bd0da34d9a19a9c3988fe8ee84177457a0d5ef","networkInteractionId":1,"receipt":{"blockHash":"0x84012c81466d5e8c114ac34ac7248ade8a83eb9fdf0dcbf0a908db5c0232aba2","blockNumber":10703422,"logs":[{"address":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","data":"0x","logIndex":311,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000390cd91af28caf35352e69830f9a01305917a28b"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","hash":"0x8e404851343cfc768408a9dfb7fa22f7eb766207a2b2cafdc87713462a2df1c0","networkInteractionId":1,"receipt":{"blockHash":"0x84012c81466d5e8c114ac34ac7248ade8a83eb9fdf0dcbf0a908db5c0232aba2","blockNumber":10703422,"logs":[{"address":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","data":"0x","logIndex":322,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000008ff5ac2166f275af49e0306ab1cb9154fa5f8ad9"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyVault#RegisterVaultToken_0","hash":"0x107b3304d77bda4d2395e73b7f6864b26dc4447fbe7a9b5ca590a295020e1b74","networkInteractionId":1,"receipt":{"blockHash":"0x84012c81466d5e8c114ac34ac7248ade8a83eb9fdf0dcbf0a908db5c0232aba2","blockNumber":10703422,"logs":[{"address":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","data":"0x0000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c72380000000000000000000000000000000000000000000000000000000000000002","logIndex":332,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyVault#RegisterVaultToken_0","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
+{"args":[{"aggregationVerifier":"0x0807B0f18a61Eafc1fdF25A82C46a538576153c8","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0x699180472883d46c888905c9dBdf185b0c879b3d","maxAggregations":2,"maxDeposits":2,"maxWithdrawals":2,"withdrawVerifier":"0xc46F8D8BEfFeA00B31D0BE64103397786E83eedB"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteraction":{"data":"0xb4da7173000000000000000000000000699180472883d46c888905c9dbdf185b0c879b3d0000000000000000000000000807b0f18a61eafc1fdf25a82c46a538576153c8000000000000000000000000c46f8d8beffea00b31d0be64103397786e83eedb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002","id":1,"to":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteractionId":1,"nonce":1016,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteractionId":1,"nonce":1016,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1879332956"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x7ee5bd25d15687be53d92c66e755e3635c8d3642a2166f1cff5da542feb52688"},"type":"TRANSACTION_SEND"}
+{"args":["0xa3583063667530A4bAc011a8fF420c48FD1b3C55","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000a3583063667530a4bac011a8ff420c48fd1b3c5500000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteractionId":1,"nonce":1017,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteractionId":1,"nonce":1017,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1879332956"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xad684352f429ebe5c55fe462026097b242c2d3c147d2c12a429079ee77aec5e2"},"type":"TRANSACTION_SEND"}
+{"args":["0x01E4CB6105a3b6Dd3ad8e21BCb60064FEe8426B7","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","contractAddress":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef28600000000000000000000000001e4cb6105a3b6dd3ad8e21bcb60064fee8426b700000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteractionId":1,"nonce":1018,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteractionId":1,"nonce":1018,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1879332956"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xb4b1464439fb90b1893b3ed568c58354216298c805b874e11da9892d57b82d28"},"type":"TRANSACTION_SEND"}
{"artifactId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","constructorArgs":[],"contractName":"CurvyInsertionVerifierAlpha_2","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b5061124e8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046110b1565b610054565b604051901515815260200160405180910390f35b5f61005d610ed8565b60408051808201825287518152602080890151818301529083528151608080820184528851518285019081528951840151606084015282528351808501855289840180515182525184015181850152828401528483019190915282518084018452875181528783015181840152848401528251600480825260a082019094525f939092909190830190803683370190505090505f5b60048110156101375784816004811061010d5761010d611194565b602002015182828151811061012457610124611194565b60209081029190910101526001016100f2565b506101428183610161565b5f0361015357600192505050610159565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018161018c610348565b9050806080015151855160016101a291906111bc565b146101e95760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cf578387828151811061021b5761021b611194565b6020026020010151106102705760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101e0565b6102c5826102c0856080015184600161028991906111bc565b8151811061029957610299611194565b60200260200101518a85815181106102b3576102b3611194565b6020026020010151610845565b6108d9565b91506001016101ff565b506102f78183608001515f815181106102ea576102ea611194565b60200260200101516108d9565b905061032b610308865f0151610970565b8660200151845f015185602001518587604001518b604001518960600151610a0c565b61033b5760019350505050610342565b5f93505050505b92915050565b610350610f26565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f2933c663723e3630bea92f14ce272046739c1de9ac0de5108d9f97504796bcdd8185019081527f2d9d46b72cb758726c5730268fdedefe18f1b55f5b935a82ecf821c05b252da1828401528152835180850185527f0d673c337136dbf082c467ce378ee3bce333a36c5f27cc01edf54179d6e7dc6081527f0c907c5922e46c3cadc99de46a7b8d01770eded5cef85379f58252ab65cb80ad8185015281840152908401528151600580825260c08201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105cb57505060808201908152604080518082019091527f0cdbf7f6fb2cf15ec81a44a104d6490ebeeeea7bf9a0cbf4d695c2a5e7ef7d8481527e5eff6d3e9efe8e7e1fc61c474ed76a4e42f9233e0e5c1054caa772f3b03c396020820152905180515f9061065b5761065b611194565b602002602001018190525060405180604001604052807f24aa7ee61e4ad8e6faf43e12eeb8b33081498ee103385743f2f357bf8b0c6af181526020017f22d171354b9d3a5d983212b596739d62f1cc42aff5df6db8475e4b887902146581525081608001516001815181106106d2576106d2611194565b602002602001018190525060405180604001604052807f3037fd725c311a8a59dc660d0fa266e188928bef08015840cf45d7998b747a1881526020017f20918eb8f6b9ca00d9004f42b7bd61a3703ea034983fa552ba34fcbde0d59bc2815250816080015160028151811061074957610749611194565b602002602001018190525060405180604001604052807f1b5c870d21c274d5bdf96cd309bdbda13661a47c01ce8483bd3682fcc1d58a3081526020017f2f4600674aa2b704715e8f62433edcae3bae85557d27e74af090ebcdbc0b195e81525081608001516003815181106107c0576107c0611194565b602002602001018190525060405180604001604052807f199fcda69c0bfd4d6f2db0f385bd0fcf78f0074be4d5eeb7f75f32963269d8d981526020017f1638a9aa5129a8fa9964966f9545941fbceb843dd14aa0f40531c6197da17578815250816080015160048151811061083757610837611194565b602002602001018190525090565b604080518082019091525f8082526020820152610860610f76565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa9050808061088e57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101e0565b505092915050565b604080518082019091525f80825260208201526108f4610f94565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa9050808061092d57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101e0565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47901580156109b657506020830151155b156109d5575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f015181526020018285602001516109f991906111cf565b610a0390846111ee565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610a2657505060408051600480825260a082019092529192505f9190602082015b610a6e610fb2565b815260200190600190039081610a665790505090508a825f81518110610a9657610a96611194565b60200260200101819052508882600181518110610ab557610ab5611194565b60200260200101819052508682600281518110610ad457610ad4611194565b60200260200101819052508482600381518110610af357610af3611194565b602002602001018190525089815f81518110610b1157610b11611194565b60200260200101819052508781600181518110610b3057610b30611194565b60200260200101819052508581600281518110610b4f57610b4f611194565b60200260200101819052508381600381518110610b6e57610b6e611194565b6020026020010181905250610b838282610b92565b9b9a5050505050505050505050565b5f8151835114610bdd5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101e0565b82515f610beb826006611201565b90505f8167ffffffffffffffff811115610c0757610c0761100e565b604051908082528060200260200182016040528015610c30578160200160208202803683370190505b5090505f5b83811015610e5d57868181518110610c4f57610c4f611194565b60200260200101515f015182826006610c689190611201565b610c72905f6111bc565b81518110610c8257610c82611194565b602002602001018181525050868181518110610ca057610ca0611194565b60200260200101516020015182826006610cba9190611201565b610cc59060016111bc565b81518110610cd557610cd5611194565b602002602001018181525050858181518110610cf357610cf3611194565b6020908102919091010151515182610d0c836006611201565b610d179060026111bc565b81518110610d2757610d27611194565b602002602001018181525050858181518110610d4557610d45611194565b60209081029190910181015151015182610d60836006611201565b610d6b9060036111bc565b81518110610d7b57610d7b611194565b602002602001018181525050858181518110610d9957610d99611194565b6020026020010151602001515f60028110610db657610db6611194565b602002015182610dc7836006611201565b610dd29060046111bc565b81518110610de257610de2611194565b602002602001018181525050858181518110610e0057610e00611194565b602002602001015160200151600160028110610e1e57610e1e611194565b602002015182610e2f836006611201565b610e3a9060056111bc565b81518110610e4a57610e4a611194565b6020908102919091010152600101610c35565b50610e66610fd2565b5f602082602086026020860160086107d05a03fa90508080610e8457fe5b5080610eca5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101e0565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101610f01610fb2565b8152602001610f2160405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101610f4f610fb2565b8152602001610f5c610fb2565b8152602001610f69610fb2565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280610fc5610ff0565b8152602001610f21610ff0565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561105757634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f83011261106e575f5ffd5b5f6110796040611022565b905080604084018581111561108c575f5ffd5b845b818110156110a657803583526020928301920161108e565b509195945050505050565b5f5f5f5f61018085870312156110c5575f5ffd5b6110cf868661105f565b935085605f8601126110df575f5ffd5b60406110ea81611022565b8060c08801898111156110fb575f5ffd5b604089015b81811015611121576111128b8261105f565b84526020909301928401611100565b5081965061112f8a8261105f565b95505050505061010085015f87601f830112611149575f5ffd5b5f6111546080611022565b905080608084018a811115611167575f5ffd5b5b80851015611183578435825260209485019490910190611168565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610342576103426111a8565b5f826111e957634e487b7160e01b5f52601260045260245ffd5b500690565b81810381811115610342576103426111a8565b8082028115828204841417610342576103426111a856fea264697066735822122052b8c89d46e40ccc60f13c59a59ab39c0a5084d1333d84af2fe13436741f62ef64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","networkInteractionId":1,"nonce":817,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","networkInteractionId":1,"nonce":817,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1883839259"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x0da5bb438062315a80f552795397f8b53878693300d572ff244a96c3c9ddf05f"},"type":"TRANSACTION_SEND"}
-{"args":["0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","dependencies":["CurvyVault#CurvyVaultV3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_0","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_0","networkInteraction":{"data":"0x09824a800000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c7238","id":1,"to":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_0","networkInteractionId":1,"nonce":818,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_0","networkInteractionId":1,"nonce":818,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1883839259"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x3971c2b9d87f4b384d64aea26a7524d9028adb6764b1cfe52c1c132f7ccd087d"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_0","hash":"0x3971c2b9d87f4b384d64aea26a7524d9028adb6764b1cfe52c1c132f7ccd087d","networkInteractionId":1,"receipt":{"blockHash":"0x67ab7fdf0b1fee84ad8ddea1c8104c0772d70c1a3fef448e4f9f8feea70e464f","blockNumber":10210876,"logs":[{"address":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","data":"0x0000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c72380000000000000000000000000000000000000000000000000000000000000002","logIndex":231,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_0","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","hash":"0x446cb5f9a93538af3a4744dcf5ff2addb9288dee38a36efa49f253c7a967fdc7","networkInteractionId":1,"receipt":{"blockHash":"0x67ab7fdf0b1fee84ad8ddea1c8104c0772d70c1a3fef448e4f9f8feea70e464f","blockNumber":10210876,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","networkInteractionId":1,"nonce":1019,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","networkInteractionId":1,"nonce":1019,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1879332956"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x38524379046a086b99db16bca9a53ee8c63ea5d61d2635dc70c2a947f2b46691"},"type":"TRANSACTION_SEND"}
+{"args":["0x779877A7B0D9E8603169DdbD7836e478b4624789"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","dependencies":["CurvyVault#CurvyVaultV4","CurvyVault#RegisterVaultToken_0"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_1","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyVault#RegisterVaultToken_1","networkInteraction":{"data":"0x09824a80000000000000000000000000779877a7b0d9e8603169ddbd7836e478b4624789","id":1,"to":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyVault#RegisterVaultToken_1","networkInteractionId":1,"nonce":1020,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyVault#RegisterVaultToken_1","networkInteractionId":1,"nonce":1020,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1879332956"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xbd59d2d49adedefd8bc801948522853fc5234572d989bb8bd6286eba5ef53e7b"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","hash":"0x7ee5bd25d15687be53d92c66e755e3635c8d3642a2166f1cff5da542feb52688","networkInteractionId":1,"receipt":{"blockHash":"0xfcdf032f559146e52e338e19a1cd5d396adc151d79385bf2f31bcd724af0cfc5","blockNumber":10703427,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","hash":"0x52875180ad01a21148d3313d1d4b3e4d42949f244578117e8b7b3b05e8103b28","networkInteractionId":1,"receipt":{"blockHash":"0x67ab7fdf0b1fee84ad8ddea1c8104c0772d70c1a3fef448e4f9f8feea70e464f","blockNumber":10210876,"logs":[{"address":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","data":"0x","logIndex":229,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000093d0e174e6fa34528dc04cd3ea90976dbdb18e98"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","hash":"0xad684352f429ebe5c55fe462026097b242c2d3c147d2c12a429079ee77aec5e2","networkInteractionId":1,"receipt":{"blockHash":"0xfcdf032f559146e52e338e19a1cd5d396adc151d79385bf2f31bcd724af0cfc5","blockNumber":10703427,"logs":[{"address":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","data":"0x","logIndex":493,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000a3583063667530a4bac011a8ff420c48fd1b3c55"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","hash":"0x07b3b1cade5a01414e1daabebdcd8b14c907603e83e35dd762b61565ff48fa67","networkInteractionId":1,"receipt":{"blockHash":"0x67ab7fdf0b1fee84ad8ddea1c8104c0772d70c1a3fef448e4f9f8feea70e464f","blockNumber":10210876,"logs":[{"address":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","data":"0x","logIndex":230,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000007b2a3a6a5f311193c5c01734a78fb1c7ced5c6d7"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","hash":"0xb4b1464439fb90b1893b3ed568c58354216298c805b874e11da9892d57b82d28","networkInteractionId":1,"receipt":{"blockHash":"0xfcdf032f559146e52e338e19a1cd5d396adc151d79385bf2f31bcd724af0cfc5","blockNumber":10703427,"logs":[{"address":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","data":"0x","logIndex":494,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000001e4cb6105a3b6dd3ad8e21bcb60064fee8426b7"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","hash":"0x0da5bb438062315a80f552795397f8b53878693300d572ff244a96c3c9ddf05f","networkInteractionId":1,"receipt":{"blockHash":"0x67ab7fdf0b1fee84ad8ddea1c8104c0772d70c1a3fef448e4f9f8feea70e464f","blockNumber":10210876,"contractAddress":"0x0887f15D62cADE29503815328760447FF60d6916","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","result":{"address":"0x0887f15D62cADE29503815328760447FF60d6916","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","hash":"0x38524379046a086b99db16bca9a53ee8c63ea5d61d2635dc70c2a947f2b46691","networkInteractionId":1,"receipt":{"blockHash":"0xfcdf032f559146e52e338e19a1cd5d396adc151d79385bf2f31bcd724af0cfc5","blockNumber":10703427,"contractAddress":"0xfE3AAa72338D8d03EA23ae50a8320D81201df097","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","result":{"address":"0xfE3AAa72338D8d03EA23ae50a8320D81201df097","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyVault#RegisterVaultToken_1","hash":"0xbd59d2d49adedefd8bc801948522853fc5234572d989bb8bd6286eba5ef53e7b","networkInteractionId":1,"receipt":{"blockHash":"0xfcdf032f559146e52e338e19a1cd5d396adc151d79385bf2f31bcd724af0cfc5","blockNumber":10703427,"logs":[{"address":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","data":"0x000000000000000000000000779877a7b0d9e8603169ddbd7836e478b46247890000000000000000000000000000000000000000000000000000000000000003","logIndex":495,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyVault#RegisterVaultToken_1","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
{"artifactId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","constructorArgs":[],"contractName":"CurvyAggregationVerifierAlpha_2","dependencies":["CurvyAggregatorAlpha#NewInsertionVerifier_v2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506116ed8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004611553565b610054565b604051901515815260200160405180910390f35b5f61005d61137a565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600e8082526101e082019093525f92909182016101c0803683370190505090505f5b600e811015610133578481600e811061010957610109611633565b602002015182828151811061012057610120611633565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061165b565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611633565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061165b565b8151811061029557610295611633565b60200260200101518a85815181106102af576102af611633565b6020026020010151610ce7565b610d7b565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611633565b6020026020010151610d7b565b9050610327610304865f0151610e12565b8660200151845f015185602001518587604001518b604001518960600151610eae565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6113c8565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f040960ae7a0345676e57477fe153547dac4996ccff6cd8bdbfab68194176ebfe8185019081527f09f390a54aa2c22bc7ab1273ccbfba2d124f277c4b7858b7e6b2b215264b2524828401528152835180850185527f069489b61aadf82d080f5b031e40c78265091ce5230bde1c6b129bd6ee8f929a81527f11d4a92da28cae8798f897d046ec7d2b818431d18ca7d7b30c720a5a4320777f8185015281840152908401528151600f8082526102008201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f18c30badf97bca79e0290e1e2709c180d796014d89846a50fdf83edb9a5f126081527ec6ff8cc32c2c88d6a18abf5d8474acb27c8174ed0969d8641896bb65bc14c46020820152905180515f9061065857610658611633565b602002602001018190525060405180604001604052807f26be249a1394d006fdb707e50aafdbfae0abcdd8424b6e9ecfaad5546f97f78881526020017f1d61635959d20e223664b32f4564dc44e3b7b360b37d388f9f7f51585800155581525081608001516001815181106106cf576106cf611633565b602002602001018190525060405180604001604052807f2506541fa33baf46747051d8ebe51a91b929a728a707a75f0cdeafd7f739fd3181526020017f0d08b60cf224252ab06e146a2272e4c007567054b6e83778161343ae31deb5ac815250816080015160028151811061074657610746611633565b602002602001018190525060405180604001604052807f1f3bdf1e50dc24be846513f7f74068a55438ca5acb4f64c3d3921bde7468a2d681526020017f2e5e1a4837097500979c5d1cf152f067e70c896ac860ba29651b02f6e79edae281525081608001516003815181106107bd576107bd611633565b602002602001018190525060405180604001604052807f203c139f09bbb742c8d4c51234494498c24d56884f24f6545086e2238e763a5881526020017f028e6932f3bc2561b30d7fe76c6de6bebf4c8ea0621bbb6ad41882df5eb7264b815250816080015160048151811061083457610834611633565b602002602001018190525060405180604001604052807f204223f3717fb8cd7ebd1a98a872f75b82e0ef94fa940335abd65568db85649f81526020017f0d2ccb01844a345701f9b1f27c633fdb9ad135aeaa0fae0fd831d08edcdc323b81525081608001516005815181106108ab576108ab611633565b602002602001018190525060405180604001604052807f2ca96167b9316ee5855a83bb4a92112653444fffa0bf5725ae9b090bb288152e81526020017f1d6d5440897b2ec044f2aaecdab5e507c4d69f8c7ca8813db13ce819e79129d4815250816080015160068151811061092257610922611633565b602002602001018190525060405180604001604052807f1cba19de78b5c7c47d2407121e7e86d0d70c63aaee0ce04ca5fecaee97ab75d481526020017f059319895b38a350849d8c25b406b951743ab1c6237a63b648f07c5f3e7e19dd815250816080015160078151811061099957610999611633565b602002602001018190525060405180604001604052807f016cc32364e0c0823d4b34edc52852c6665a421cd8867fbd190170fab867bea681526020017f0734df7485b401e47cbd1c3ab7024be0250f9fa13ab7ec9b3b40d83178eb2b468152508160800151600881518110610a1057610a10611633565b602002602001018190525060405180604001604052807f29286c62d871cffa08e84997e6180455e1edca20d681ef29656ef4d6d45b001781526020017f2e71a4c29421434de9ed5e921a2b6a23816a740d99b6f135fd01cad64bd288ac8152508160800151600981518110610a8757610a87611633565b602002602001018190525060405180604001604052807f2492df9b4d0ad2639c6f34096692d29d2f9ed9ee57d9e9c3ba303e9dbcdae43081526020017f2e497c91b7e5e3a2a9b9f7fe9cdfe78c9e72037bb7552e29d54813a4566c6fbd8152508160800151600a81518110610afe57610afe611633565b602002602001018190525060405180604001604052807f1476e8d331c072345e564de7e0c1b051b0b0b18531bdd1e7441e0257090a0c1781526020017f110b09db70453d4ec6bed001ab95fcb5ce4b8e21a0c4f4c26b91dc8059aa1dce8152508160800151600b81518110610b7557610b75611633565b602002602001018190525060405180604001604052807e6e2fbcfe989d63aea84d90addc8537a921948b213ef36ec5fa0cbb5b68670381526020017f06f6a502b00b2945dd9841eca5ab5f69654f4992777102c600ca5402c35d6c288152508160800151600c81518110610beb57610beb611633565b602002602001018190525060405180604001604052807f01a330e578c215a80aaf5fc3208956611670affa4560f2dd1f7892698b50c35881526020017f0a9ccad9b2edacd7bbb8a5c460a47d7a114166eace7c8cfe32c7a4243c30e0f28152508160800151600d81518110610c6257610c62611633565b602002602001018190525060405180604001604052807f0aa436490c317254e1444ad76cac634937ea2fa0d0730983455fed54f43c9ff981526020017f12228d15b01f07e1d77acd2c2c609c7e4c9a70503e071ec4963191e6d4d13d598152508160800151600e81518110610cd957610cd9611633565b602002602001018190525090565b604080518082019091525f8082526020820152610d02611418565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610d3057fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610d96611436565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610dcf57fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610e5857506020830151155b15610e77575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610e9b919061166e565b610ea5908461168d565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610ec857505060408051600480825260a082019092529192505f9190602082015b610f10611454565b815260200190600190039081610f085790505090508a825f81518110610f3857610f38611633565b60200260200101819052508882600181518110610f5757610f57611633565b60200260200101819052508682600281518110610f7657610f76611633565b60200260200101819052508482600381518110610f9557610f95611633565b602002602001018190525089815f81518110610fb357610fb3611633565b60200260200101819052508781600181518110610fd257610fd2611633565b60200260200101819052508581600281518110610ff157610ff1611633565b6020026020010181905250838160038151811061101057611010611633565b60200260200101819052506110258282611034565b9b9a5050505050505050505050565b5f815183511461107f5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f61108d8260066116a0565b90505f8167ffffffffffffffff8111156110a9576110a96114b0565b6040519080825280602002602001820160405280156110d2578160200160208202803683370190505b5090505f5b838110156112ff578681815181106110f1576110f1611633565b60200260200101515f01518282600661110a91906116a0565b611114905f61165b565b8151811061112457611124611633565b60200260200101818152505086818151811061114257611142611633565b6020026020010151602001518282600661115c91906116a0565b61116790600161165b565b8151811061117757611177611633565b60200260200101818152505085818151811061119557611195611633565b60209081029190910101515151826111ae8360066116a0565b6111b990600261165b565b815181106111c9576111c9611633565b6020026020010181815250508581815181106111e7576111e7611633565b602090810291909101810151510151826112028360066116a0565b61120d90600361165b565b8151811061121d5761121d611633565b60200260200101818152505085818151811061123b5761123b611633565b6020026020010151602001515f6002811061125857611258611633565b6020020151826112698360066116a0565b61127490600461165b565b8151811061128457611284611633565b6020026020010181815250508581815181106112a2576112a2611633565b6020026020010151602001516001600281106112c0576112c0611633565b6020020151826112d18360066116a0565b6112dc90600561165b565b815181106112ec576112ec611633565b60209081029190910101526001016110d7565b50611308611474565b5f602082602086026020860160086107d05a03fa9050808061132657fe5b508061136c5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016113a3611454565b81526020016113c360405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c08301919091528152602081016113f1611454565b81526020016113fe611454565b815260200161140b611454565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280611467611492565b81526020016113c3611492565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156114f957634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611510575f5ffd5b5f61151b60406114c4565b905080604084018581111561152e575f5ffd5b845b81811015611548578035835260209283019201611530565b509195945050505050565b5f5f5f5f6102c08587031215611567575f5ffd5b6115718686611501565b935085605f860112611581575f5ffd5b604061158c816114c4565b8060c088018981111561159d575f5ffd5b604089015b818110156115c3576115b48b82611501565b845260209093019284016115a2565b508196506115d18a82611501565b95505050505061010085015f87601f8301126115eb575f5ffd5b5f6101c06115f8816114c4565b91508301818a821115611609575f5ffd5b5b8185101561162257843581526020948501940161160a565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e611647565b5f8261168857634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e611647565b808202811582820484141761033e5761033e61164756fea26469706673582212208ecec3b58f8c69288c925191a76554c85a5d679e9a34b2047785e1439c8c3d1d64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","networkInteractionId":1,"nonce":819,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","networkInteractionId":1,"nonce":819,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1915868653"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xf0447b4ec30d2fa068ce020bde840a9bd36b359306bbe472c4802c9829b40771"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","hash":"0xf0447b4ec30d2fa068ce020bde840a9bd36b359306bbe472c4802c9829b40771","networkInteractionId":1,"receipt":{"blockHash":"0xccbcb1d7e398c81484bf455af876ef9ac68fb3b8b8903018c768716fc8fbc88e","blockNumber":10210881,"contractAddress":"0x799409D5066b0b3CB5cE1398Bf208587b5B9285C","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","result":{"address":"0x799409D5066b0b3CB5cE1398Bf208587b5B9285C","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x779877A7B0D9E8603169DdbD7836e478b4624789"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","dependencies":["CurvyVault#CurvyVaultV3","CurvyVault#RegisterVaultToken_0"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_1","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_1","networkInteraction":{"data":"0x09824a80000000000000000000000000779877a7b0d9e8603169ddbd7836e478b4624789","id":1,"to":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_1","networkInteractionId":1,"nonce":820,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_1","networkInteractionId":1,"nonce":820,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1915868653"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x2373ca3ba2d626c5866a66b450aca10a87072be4b18cb0525f70e165555c873f"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_1","hash":"0x2373ca3ba2d626c5866a66b450aca10a87072be4b18cb0525f70e165555c873f","networkInteractionId":1,"receipt":{"blockHash":"0xccbcb1d7e398c81484bf455af876ef9ac68fb3b8b8903018c768716fc8fbc88e","blockNumber":10210881,"logs":[{"address":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","data":"0x000000000000000000000000779877a7b0d9e8603169ddbd7836e478b46247890000000000000000000000000000000000000000000000000000000000000003","logIndex":205,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_1","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","networkInteractionId":1,"nonce":1021,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","networkInteractionId":1,"nonce":1021,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1740409736"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x0103c76351be3e25e1083f6cb2bb079b9246b61115a87b3598a5ebf636afff25"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","hash":"0x0103c76351be3e25e1083f6cb2bb079b9246b61115a87b3598a5ebf636afff25","networkInteractionId":1,"receipt":{"blockHash":"0x1adbac60ab0ab7e1aacbc8eedf91a514db6415928fda7bbe36430fd8b00e893b","blockNumber":10703432,"contractAddress":"0xc17492964b50D1c0Fa38b0DA275ccB460b94EDD9","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","result":{"address":"0xc17492964b50D1c0Fa38b0DA275ccB460b94EDD9","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
{"artifactId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlpha_2","dependencies":["CurvyAggregatorAlpha#NewAggregationVerifier_v2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506115118061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b366004611377565b610054565b604051901515815260200160405180910390f35b5f61005d61119e565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600a80825261016082019093525f9290918201610140803683370190505090505f5b600a811015610133578481600a811061010957610109611457565b602002015182828151811061012057610120611457565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061147f565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611457565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061147f565b8151811061029557610295611457565b60200260200101518a85815181106102af576102af611457565b6020026020010151610b0b565b610b9f565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611457565b6020026020010151610b9f565b9050610327610304865f0151610c36565b8660200151845f015185602001518587604001518b604001518960600151610cd2565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6111ec565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f0b5a45bbb3d9f21c42579fd5a810f82f25e696fb3b00ef64b8ca2d17d89fe4ed8185019081527f0f79b405819a9900f7edb3f309c9b73a45673c17366eeb72361c23f957680a89828401528152835180850185527f23b107da251eb5c5dd3c157a900388d73f64a4394faf6a12ae2077766d720b0881527f2188bf40a163dba1ba12fc061d0a6fc9d7246af5e912fcbb23b59a53823b7c048185015281840152908401528151600b8082526101808201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f118592ce705cf3d21e870156a4dc6cff3b2a01fca2c8e60a402fc01dd47341de81527f1fe6c8cb2c02b9ddf7ed360fd3ba99867e54e590d7ca62b57d839ef26d549f0c6020820152905180515f9061065957610659611457565b602002602001018190525060405180604001604052807f154574f61b1a23d66f35533910d332b8ab9bffc6274ce4ffb0bf3b7f1210090781526020017f1ac6f7f35d927f760afe3efc726d0d1ab8ab6514d018630e92a11b5079108b9a81525081608001516001815181106106d0576106d0611457565b602002602001018190525060405180604001604052807f102a84a54eb42169d68f30c781aabd282a341b2b4c25cd55fdae5e3479b4182a81526020017f1b8113a1108e05880a85ae50fdaa0f86926095751a6c3f0130cee222578c7911815250816080015160028151811061074757610747611457565b602002602001018190525060405180604001604052807f25504b6ec89efe8110a42f0ffda2f64b4c0b63b83a776f2146c23ddb2b9c346081526020017e1bd1b27eb32e5c1ecc7f9b08d87e6c7eff72e21014bd87c5badb37e82d50c781525081608001516003815181106107bd576107bd611457565b602002602001018190525060405180604001604052807f2955cc92eefc93c0bb8f2a726fbcbadbedd59c2f68b3701defa2ac66e1c1643f81526020017f1a8bfc29eefca9fd267806f814daf245aa0fb67048fbc16761d5fc39282f7336815250816080015160048151811061083457610834611457565b602002602001018190525060405180604001604052807f0acefb487079ce3764bf9e0af6b69a939b8f43cb3cce80262ebd68167a86afa881526020017f2500ee5fc51d1ed187adfe4cb25ef69610207eefc41a868d14a519b58c99286081525081608001516005815181106108ab576108ab611457565b602002602001018190525060405180604001604052807f1eca69b2e86127c29cd324a9b13cf89c0e657596c9e37dc05eec008c8fa84fdb81526020017f2f11a966ac185bf5d584d386b3e8a555d66e51913d8801fb9189542b4bcd3624815250816080015160068151811061092257610922611457565b602002602001018190525060405180604001604052807ee8670dd1e30ffd6e6d42b6f98d3cd5ebb1a6c2a726f4024e6c27b555683cf881526020017f152894c1731fbedba470963903d414e8c210a8b846aedba229071fa832e882fa815250816080015160078151811061099857610998611457565b602002602001018190525060405180604001604052807f2354fe17a8632ee331a1459f6df0806153f19ed6c1645906895e966cea47cab981526020017f27700ede44b18910d2a31045a1d448bb930ba1c39cc918aa3f4b093a610e45b58152508160800151600881518110610a0f57610a0f611457565b602002602001018190525060405180604001604052807f2f583f76ad789e51575f9168446813e1e5655c1f444ed4f8bd2c38c8c438a52e81526020017f21e4aa608b395b9eaf98de7f2c77baac96da672aedab46f36e4a732fbefdaa328152508160800151600981518110610a8657610a86611457565b602002602001018190525060405180604001604052807f29b71cd418de446ac259b14d47ccbc6c7bf3021aa56d6d3ab3fc80becde42ba281526020017f1671437c4af2a055de0faf52bad6da5b1c1f37d53e279ef8d7a04b401b8f00b18152508160800151600a81518110610afd57610afd611457565b602002602001018190525090565b604080518082019091525f8082526020820152610b2661123c565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610b5457fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610bba61125a565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610bf357fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c7c57506020830151155b15610c9b575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610cbf9190611492565b610cc990846114b1565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610cec57505060408051600480825260a082019092529192505f9190602082015b610d34611278565b815260200190600190039081610d2c5790505090508a825f81518110610d5c57610d5c611457565b60200260200101819052508882600181518110610d7b57610d7b611457565b60200260200101819052508682600281518110610d9a57610d9a611457565b60200260200101819052508482600381518110610db957610db9611457565b602002602001018190525089815f81518110610dd757610dd7611457565b60200260200101819052508781600181518110610df657610df6611457565b60200260200101819052508581600281518110610e1557610e15611457565b60200260200101819052508381600381518110610e3457610e34611457565b6020026020010181905250610e498282610e58565b9b9a5050505050505050505050565b5f8151835114610ea35760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610eb18260066114c4565b90505f8167ffffffffffffffff811115610ecd57610ecd6112d4565b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b5090505f5b8381101561112357868181518110610f1557610f15611457565b60200260200101515f015182826006610f2e91906114c4565b610f38905f61147f565b81518110610f4857610f48611457565b602002602001018181525050868181518110610f6657610f66611457565b60200260200101516020015182826006610f8091906114c4565b610f8b90600161147f565b81518110610f9b57610f9b611457565b602002602001018181525050858181518110610fb957610fb9611457565b6020908102919091010151515182610fd28360066114c4565b610fdd90600261147f565b81518110610fed57610fed611457565b60200260200101818152505085818151811061100b5761100b611457565b602090810291909101810151510151826110268360066114c4565b61103190600361147f565b8151811061104157611041611457565b60200260200101818152505085818151811061105f5761105f611457565b6020026020010151602001515f6002811061107c5761107c611457565b60200201518261108d8360066114c4565b61109890600461147f565b815181106110a8576110a8611457565b6020026020010181815250508581815181106110c6576110c6611457565b6020026020010151602001516001600281106110e4576110e4611457565b6020020151826110f58360066114c4565b61110090600561147f565b8151811061111057611110611457565b6020908102919091010152600101610efb565b5061112c611298565b5f602082602086026020860160086107d05a03fa9050808061114a57fe5b50806111905760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016111c7611278565b81526020016111e760405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101611215611278565b8152602001611222611278565b815260200161122f611278565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061128b6112b6565b81526020016111e76112b6565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561131d57634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611334575f5ffd5b5f61133f60406112e8565b9050806040840185811115611352575f5ffd5b845b8181101561136c578035835260209283019201611354565b509195945050505050565b5f5f5f5f610240858703121561138b575f5ffd5b6113958686611325565b935085605f8601126113a5575f5ffd5b60406113b0816112e8565b8060c08801898111156113c1575f5ffd5b604089015b818110156113e7576113d88b82611325565b845260209093019284016113c6565b508196506113f58a82611325565b95505050505061010085015f87601f83011261140f575f5ffd5b5f61014061141c816112e8565b91508301818a82111561142d575f5ffd5b5b8185101561144657843581526020948501940161142e565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e61146b565b5f826114ac57634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e61146b565b808202811582820484141761033e5761033e61146b56fea2646970667358221220dcff813b86dd38808694958c9a737d51423f91e9af2ee777888630650f47d44264736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","networkInteractionId":1,"nonce":821,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","networkInteractionId":1,"nonce":821,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1944808049"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xdb6790c231e3cf091a0fda592b8481ba59b66de503e9ccaa0379d84e703c5d93"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","hash":"0xdb6790c231e3cf091a0fda592b8481ba59b66de503e9ccaa0379d84e703c5d93","networkInteractionId":1,"receipt":{"blockHash":"0xc583670b78bbdaea1854a471ea3dac81bcf707b1edbccf79d347971a75071903","blockNumber":10210886,"contractAddress":"0xC80bBc0C209C3d62397c88CE47Ddf31272E69F6b","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","result":{"address":"0xC80bBc0C209C3d62397c88CE47Ddf31272E69F6b","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x799409D5066b0b3CB5cE1398Bf208587b5B9285C","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0x0887f15D62cADE29503815328760447FF60d6916","maxAggregations":0,"maxDeposits":0,"maxWithdrawals":0,"withdrawVerifier":"0xC80bBc0C209C3d62397c88CE47Ddf31272E69F6b"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","CurvyAggregatorAlpha#NewInsertionVerifier_v2","CurvyAggregatorAlpha#NewAggregationVerifier_v2","CurvyAggregatorAlpha#NewWithdrawVerifier_v2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteraction":{"data":"0xb4da71730000000000000000000000000887f15d62cade29503815328760447ff60d6916000000000000000000000000799409d5066b0b3cb5ce1398bf208587b5b9285c000000000000000000000000c80bbc0c209c3d62397c88ce47ddf31272e69f6b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteractionId":1,"nonce":822,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteractionId":1,"nonce":822,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1978027633"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xafa564b4b27e8624fd4b96504f2fc8370abdce0efa1a3379474d21d6a40ecd1e"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","hash":"0xafa564b4b27e8624fd4b96504f2fc8370abdce0efa1a3379474d21d6a40ecd1e","networkInteractionId":1,"receipt":{"blockHash":"0xc90f6ddbcf675fd4d20df516e783f3c7aff772c711b899e340dcc331d70c3409","blockNumber":10210891,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","networkInteractionId":1,"nonce":1022,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","networkInteractionId":1,"nonce":1022,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1470088522"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xb717b578ab7bc9eef93a2d5a854e8405d2f4a577a049d1ca3c4aa3d14fc037be"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","hash":"0xb717b578ab7bc9eef93a2d5a854e8405d2f4a577a049d1ca3c4aa3d14fc037be","networkInteractionId":1,"receipt":{"blockHash":"0xf44556dc341af9fb97860ad54171fcc3b97a3e0c6061775f230808d353099bbc","blockNumber":10703437,"contractAddress":"0x09261d0A725091Ec542b76CA482588E680BAafD2","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","result":{"address":"0x09261d0A725091Ec542b76CA482588E680BAafD2","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"args":[{"aggregationVerifier":"0xc17492964b50D1c0Fa38b0DA275ccB460b94EDD9","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0xfE3AAa72338D8d03EA23ae50a8320D81201df097","maxAggregations":0,"maxDeposits":0,"maxWithdrawals":0,"withdrawVerifier":"0x09261d0A725091Ec542b76CA482588E680BAafD2"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","CurvyAggregatorAlpha#NewInsertionVerifier_v2","CurvyAggregatorAlpha#NewAggregationVerifier_v2","CurvyAggregatorAlpha#NewWithdrawVerifier_v2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteraction":{"data":"0xb4da7173000000000000000000000000fe3aaa72338d8d03ea23ae50a8320d81201df097000000000000000000000000c17492964b50d1c0fa38b0da275ccb460b94edd900000000000000000000000009261d0a725091ec542b76ca482588e680baafd20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteractionId":1,"nonce":1023,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteractionId":1,"nonce":1023,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1592108056"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x6a77edda6632d440e2cfb3737247c670fa712f2c9baed2fc203ad8fb8b2f1796"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","hash":"0x6a77edda6632d440e2cfb3737247c670fa712f2c9baed2fc203ad8fb8b2f1796","networkInteractionId":1,"receipt":{"blockHash":"0xc6dc4e7c29d45fd09b7a57aaeec707de8b4c501a6546bd3342f67d587fc05f5e","blockNumber":10703442,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV4","dependencies":["CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xEa16Fb67A4Bb4a90598FDf03e68091ecD33614ae"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516124506100f95f395f818161168a015281816116b301526117f701526124505ff3fe608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073Ea16Fb67A4Bb4a90598FDf03e68091ecD33614ae92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073Ea16Fb67A4Bb4a90598FDf03e68091ecD33614ae93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","networkInteractionId":1,"nonce":823,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","networkInteractionId":1,"nonce":823,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2230410575"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xfb4a2aceebc1c9f9df46df2deef7e940cc482220832f4456eec2ebaa04b62227"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","hash":"0xfb4a2aceebc1c9f9df46df2deef7e940cc482220832f4456eec2ebaa04b62227","networkInteractionId":1,"receipt":{"blockHash":"0xc1979cc9702724eeaed6e9c180a396fe2aebfb90129bfb215045f5288d352fd2","blockNumber":10210896,"contractAddress":"0x655e119C92f39CEc144A8AC41224fECC145bf059","logs":[{"address":"0x655e119C92f39CEc144A8AC41224fECC145bf059","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":146,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","result":{"address":"0x655e119C92f39CEc144A8AC41224fECC145bf059","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x655e119C92f39CEc144A8AC41224fECC145bf059","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000655e119c92f39cec144a8ac41224fecc145bf05900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","networkInteractionId":1,"nonce":824,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","networkInteractionId":1,"nonce":824,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1913653401"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x4d95c1892fd0941edd94c83ece2e40d6adc5b580d8066aaca504b2103926dcf2"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","hash":"0x4d95c1892fd0941edd94c83ece2e40d6adc5b580d8066aaca504b2103926dcf2","networkInteractionId":1,"receipt":{"blockHash":"0x5676b9f0c3729231af69e352889736322035eacae423d933afc386f2841f882b","blockNumber":10210901,"logs":[{"address":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","data":"0x","logIndex":121,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000655e119c92f39cec144a8ac41224fecc145bf059"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","withdrawVerifier":"0x0000000000000000000000000000000000000000"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","CurvyVault#CurvyVaultV3","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","networkInteraction":{"data":"0xcf101a49000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c837aaa99a8e5a096f5e6e54e396f027fa106ab5000000000000000000000000341d1571998c937e5f3cb3e640805c8b457e7124000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","networkInteractionId":1,"nonce":825,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","networkInteractionId":1,"nonce":825,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1971906209"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xc6d6a16e5a208c27900402a8f66002e4e2b41a49918a518759454bff19408a28"},"type":"TRANSACTION_SEND"}
-{"args":["0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB"],"artifactId":"CurvyVault#CurvyVaultV3","contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","dependencies":["CurvyVault#CurvyVaultV3","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d000000000000000000000000e7c543de96e99fdd9f8435bdeecee4361b98cebb","id":1,"to":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":826,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":826,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1971906209"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xaa297f0aa3e68e7926078be67162225df77f37c4126496896b88521327a7707c"},"type":"TRANSACTION_SEND"}
-{"args":["0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","dependencies":["PortalFactory#PortalFactory","CurvyVault#CurvyVaultV3","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000c837aaa99a8e5a096f5e6e54e396f027fa106ab5000000000000000000000000e7c543de96e99fdd9f8435bdeecee4361b98cebb0000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":827,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":827,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1971906209"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x5ccdb031c1e74e927806fbd4b397e8a0a6a8257aa7dfa216ca954a29da5ccf61"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","hash":"0xc6d6a16e5a208c27900402a8f66002e4e2b41a49918a518759454bff19408a28","networkInteractionId":1,"receipt":{"blockHash":"0xbe998a9ac9b9d13e92b32513241e3cebbb0b062bb6e1d944c571f3c61f770bbc","blockNumber":10210906,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","hash":"0xaa297f0aa3e68e7926078be67162225df77f37c4126496896b88521327a7707c","networkInteractionId":1,"receipt":{"blockHash":"0xbe998a9ac9b9d13e92b32513241e3cebbb0b062bb6e1d944c571f3c61f770bbc","blockNumber":10210906,"logs":[{"address":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","data":"0x000000000000000000000000e7c543de96e99fdd9f8435bdeecee4361b98cebb","logIndex":249,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x5ccdb031c1e74e927806fbd4b397e8a0a6a8257aa7dfa216ca954a29da5ccf61","networkInteractionId":1,"receipt":{"blockHash":"0xbe998a9ac9b9d13e92b32513241e3cebbb0b062bb6e1d944c571f3c61f770bbc","blockNumber":10210906,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","contractName":"CurvyVaultV4","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV4Implementation","constructorArgs":[],"contractName":"CurvyVaultV4","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV4Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5c6100f95f395f81816117ef01528181611818015261195c0152612d5c5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","networkInteractionId":1,"nonce":837,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","networkInteractionId":1,"nonce":837,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000026"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x9e430f648be2b1d7ee59ec55543db176735f7aa73bb40f0425ca2c7895b82c9c"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","hash":"0x9e430f648be2b1d7ee59ec55543db176735f7aa73bb40f0425ca2c7895b82c9c","networkInteractionId":1,"receipt":{"blockHash":"0x37217b390437c2914bcb7ecdff383a4b3f322e5efecf809afd7a55c2d12c5d30","blockNumber":10308253,"contractAddress":"0xc4d31f0d91B40Fe24d6416e546323AeceEfDAA5B","logs":[{"address":"0xc4d31f0d91B40Fe24d6416e546323AeceEfDAA5B","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":267,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","result":{"address":"0xc4d31f0d91B40Fe24d6416e546323AeceEfDAA5B","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0xc4d31f0d91B40Fe24d6416e546323AeceEfDAA5B","0x"],"artifactId":"CurvyVault#CurvyVaultV3","contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","dependencies":["CurvyVault#CurvyVaultV3","CurvyVault#CurvyVaultV4Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000c4d31f0d91b40fe24d6416e546323aeceefdaa5b00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","networkInteractionId":1,"nonce":838,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","networkInteractionId":1,"nonce":838,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000026"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xdff1a9a193d63b4efccb3093ef712884a996df8c9a7f316ef7b1faa3b157f5ff"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","hash":"0xdff1a9a193d63b4efccb3093ef712884a996df8c9a7f316ef7b1faa3b157f5ff","networkInteractionId":1,"receipt":{"blockHash":"0x52cd8cea56c6ea55deba4e904e9360396efb470eacfd5b64c07255b5f1d54510","blockNumber":10308258,"logs":[{"address":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","data":"0x","logIndex":301,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000c4d31f0d91b40fe24d6416e546323aeceefdaa5b"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","dependencies":["CurvyVault#CurvyVaultV4","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d000000000000000000000000e7c543de96e99fdd9f8435bdeecee4361b98cebb","id":1,"to":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":839,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":839,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000028"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x9604eb1b5692bf905c11a311eaee6f813d38e6eef0807714dd88af9ac837238e"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","hash":"0x9604eb1b5692bf905c11a311eaee6f813d38e6eef0807714dd88af9ac837238e","networkInteractionId":1,"receipt":{"blockHash":"0x1f870a0d699668ce6b1f2212145e0c8d507c720aa5a99852f1709e1eada3f54c","blockNumber":10308263,"logs":[{"address":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","data":"0x000000000000000000000000e7c543de96e99fdd9f8435bdeecee4361b98cebb","logIndex":159,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x655e119C92f39CEc144A8AC41224fECC145bf059","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","networkInteraction":{"data":"0x4f1ef286000000000000000000000000655e119c92f39cec144a8ac41224fecc145bf05900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","networkInteractionId":1,"nonce":889,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","networkInteractionId":1,"nonce":889,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1037809"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000003"}},"hash":"0xd4da8b57ae522638ee772d95d903f649f25666b6c53686ce7e78f387be1141bd"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","contractName":"CurvyAggregatorAlphaV5","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","contractName":"CurvyVaultV5","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV5","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV5Implementation","constructorArgs":[],"contractName":"CurvyVaultV5","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV5Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fd491bda775b94cc947797bcd0ac41b752963a10eb8562367f9c41712eda766664736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":890,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":890,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1037809"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000003"}},"hash":"0x2752a2dad852ac3ead3c35e6269bb403c2d179626c6d37e2dfe4be7c67067e1b"},"type":"TRANSACTION_SEND"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":891,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":891,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1037809"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000003"}},"hash":"0x223f6da623de2013a3fa4ee093fad3a280cf7d75e535c94b277e121cf7a731f6"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","hash":"0xd4da8b57ae522638ee772d95d903f649f25666b6c53686ce7e78f387be1141bd","networkInteractionId":1,"receipt":{"blockHash":"0x116812a1d9ba4cdf89660a2bb4b60145acdbf3a934b716c35379e2891ef57caf","blockNumber":10414263,"logs":[{"address":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","data":"0x","logIndex":484,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000655e119c92f39cec144a8ac41224fecc145bf059"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV4","dependencies":["CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0x2397B9fC20cea49371Ff96c98ca076E84904975B"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516124506100f95f395f818161168a015281816116b301526117f701526124505ff3fe608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f9350732397B9fC20cea49371Ff96c98ca076E84904975B92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f9450732397B9fC20cea49371Ff96c98ca076E84904975B93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122068178859d452072de33b5fba446cea26aa92838687af8b41cb6a4f7cbe9fa8ac64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","networkInteractionId":1,"nonce":1024,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","networkInteractionId":1,"nonce":1024,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1511552848"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x98f47c200b516bb66548cf8ef414e35530ce941416c71de5485384828080aa16"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","hash":"0x98f47c200b516bb66548cf8ef414e35530ce941416c71de5485384828080aa16","networkInteractionId":1,"receipt":{"blockHash":"0x1132bc95466c7eb9086989e6be923ac3c9a7633d676a1f80220fdf8c4c97b45d","blockNumber":10703447,"contractAddress":"0x7A1Ebd81A282D8B5dC25600f1366e2DD7d9b2130","logs":[{"address":"0x7A1Ebd81A282D8B5dC25600f1366e2DD7d9b2130","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":1165,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","result":{"address":"0x7A1Ebd81A282D8B5dC25600f1366e2DD7d9b2130","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"args":["0x7A1Ebd81A282D8B5dC25600f1366e2DD7d9b2130","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","networkInteraction":{"data":"0x4f1ef2860000000000000000000000007a1ebd81a282d8b5dc25600f1366e2dd7d9b213000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","networkInteractionId":1,"nonce":1025,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","networkInteractionId":1,"nonce":1025,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1411893440"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x5e63925d7bec394550543c0f742dd15d1b98e3c671d093f7f29a4caa31168fa4"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","hash":"0x5e63925d7bec394550543c0f742dd15d1b98e3c671d093f7f29a4caa31168fa4","networkInteractionId":1,"receipt":{"blockHash":"0x8e37cbc85723dfeb8af1fb1d960fe35b38b602b8744d383f6e2eba564fe23863","blockNumber":10703452,"logs":[{"address":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","data":"0x","logIndex":880,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000007a1ebd81a282d8b5dc25600f1366e2dd7d9b2130"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","hash":"0x2752a2dad852ac3ead3c35e6269bb403c2d179626c6d37e2dfe4be7c67067e1b","networkInteractionId":1,"receipt":{"blockHash":"0x116812a1d9ba4cdf89660a2bb4b60145acdbf3a934b716c35379e2891ef57caf","blockNumber":10414263,"contractAddress":"0xBE5dC54703aA0a2e6e538F338224db56a3302756","logs":[{"address":"0xBE5dC54703aA0a2e6e538F338224db56a3302756","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":485,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","result":{"address":"0xBE5dC54703aA0a2e6e538F338224db56a3302756","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x223f6da623de2013a3fa4ee093fad3a280cf7d75e535c94b277e121cf7a731f6","networkInteractionId":1,"receipt":{"blockHash":"0x116812a1d9ba4cdf89660a2bb4b60145acdbf3a934b716c35379e2891ef57caf","blockNumber":10414263,"logs":[{"address":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","data":"0x","logIndex":486,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":487,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000008ec5dedfd00599a6d820f8d54195ac0a7193d15c","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV5","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xEa16Fb67A4Bb4a90598FDf03e68091ecD33614ae"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d506100f95f395f8181610f9f01528181610fc8015261110c0152611d505ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073Ea16Fb67A4Bb4a90598FDf03e68091ecD33614ae93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteractionId":1,"nonce":892,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteractionId":1,"nonce":892,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1035379"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000003"}},"hash":"0xcbe55f34c867b22ff39e220cafa603bb8246bca279b8111c12f13fc851a2a9ef"},"type":"TRANSACTION_SEND"}
-{"args":["0xBE5dC54703aA0a2e6e538F338224db56a3302756","0x"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","dependencies":["CurvyVault#CurvyVaultV4","CurvyVault#CurvyVaultV5Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000be5dc54703aa0a2e6e538f338224db56a330275600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":893,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":893,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1035379"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000003"}},"hash":"0x46790c6e3a6ba0d0d4f69fb630731194143f00ce5967cffb2649a3e82f6b7eb3"},"type":"TRANSACTION_SEND"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x223f6da623de2013a3fa4ee093fad3a280cf7d75e535c94b277e121cf7a731f6","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","hash":"0xcbe55f34c867b22ff39e220cafa603bb8246bca279b8111c12f13fc851a2a9ef","networkInteractionId":1,"receipt":{"blockHash":"0x771fd30ac52d18518846d0617757d3477b97f1ee31bfad3446f1f1230ee7e473","blockNumber":10414284,"contractAddress":"0xf511ca174ef4092ecb0a7594C1e307C0AD1cFcBc","logs":[{"address":"0xf511ca174ef4092ecb0a7594C1e307C0AD1cFcBc","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":367,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","result":{"address":"0xf511ca174ef4092ecb0a7594C1e307C0AD1cFcBc","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","hash":"0x46790c6e3a6ba0d0d4f69fb630731194143f00ce5967cffb2649a3e82f6b7eb3","networkInteractionId":1,"receipt":{"blockHash":"0x771fd30ac52d18518846d0617757d3477b97f1ee31bfad3446f1f1230ee7e473","blockNumber":10414284,"logs":[{"address":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","data":"0x","logIndex":368,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000be5dc54703aa0a2e6e538f338224db56a3302756"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xf511ca174ef4092ecb0a7594C1e307C0AD1cFcBc","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000f511ca174ef4092ecb0a7594c1e307c0ad1cfcbc00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteractionId":1,"nonce":894,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteractionId":1,"nonce":894,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1044501"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000003"}},"hash":"0xc6f79ad40a326bdc320743dcac8c1ff3e9ef5b03cd3c06026b5f37c1e0cce385"},"type":"TRANSACTION_SEND"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","hash":"0xc6f79ad40a326bdc320743dcac8c1ff3e9ef5b03cd3c06026b5f37c1e0cce385","networkInteractionId":1,"receipt":{"blockHash":"0x0096c92e5962d4d8c7f73bc687b40d6264b7990b97559fd2797745fd26078905","blockNumber":10414343,"logs":[{"address":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","data":"0x","logIndex":448,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000f511ca174ef4092ecb0a7594c1e307c0ad1cfcbc"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV5","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0x2397B9fC20cea49371Ff96c98ca076E84904975B"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d506100f95f395f8181610f9f01528181610fc8015261110c0152611d505ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f9450732397B9fC20cea49371Ff96c98ca076E84904975B93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122070aa2f391f6aee618a9571b7013a3623027535ec05a436f734f6ae5881dbcb8a64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteractionId":1,"nonce":1026,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteractionId":1,"nonce":1026,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1543425150"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x62e1b14c2697ffa22470f185e901797b1f4264f78ed4507c44007c0e22b4bffd"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","hash":"0x62e1b14c2697ffa22470f185e901797b1f4264f78ed4507c44007c0e22b4bffd","networkInteractionId":1,"receipt":{"blockHash":"0x64b554f5dbd32b1bad40669e6f363b66516d51a7d2c565de36e9eb26a685eb45","blockNumber":10703457,"contractAddress":"0x0f6700276706dA5FA1D4c9a750E3D35781700585","logs":[{"address":"0x0f6700276706dA5FA1D4c9a750E3D35781700585","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":727,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","result":{"address":"0x0f6700276706dA5FA1D4c9a750E3D35781700585","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"args":["0x0f6700276706dA5FA1D4c9a750E3D35781700585","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","contractAddress":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef2860000000000000000000000000f6700276706da5fa1d4c9a750e3d3578170058500000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteractionId":1,"nonce":1027,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteractionId":1,"nonce":1027,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1419927888"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xd0e59cb4b16114abf2323d8642cca5a89a743a87b48686f295b42b14d33dd75b"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","hash":"0xd0e59cb4b16114abf2323d8642cca5a89a743a87b48686f295b42b14d33dd75b","networkInteractionId":1,"receipt":{"blockHash":"0x55194e170ffed685f8bf93d25c5b3d8f83ac9fba3470c1d9a85da4e477348a25","blockNumber":10703465,"logs":[{"address":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","data":"0x","logIndex":1669,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000000f6700276706da5fa1d4c9a750e3d35781700585"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-
+{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV6","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0x2397B9fC20cea49371Ff96c98ca076E84904975B"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611e4b6100f95f395f81816110500152818161107901526111bd0152611e4b5ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f732397B9fC20cea49371Ff96c98ca076E84904975B6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a05b1dc83afabc011ce97116151690542780f0c344be86f6e926583e4a7f743e64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","networkInteractionId":1,"nonce":1028,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","networkInteractionId":1,"nonce":1028,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1112327078"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x9a8a9a5ee29ad9d128d43024e92ba483168381834b58775ba5e251454b0bc7a9"},"type":"TRANSACTION_SEND"}
{"artifactId":"CurvyAggregatorAlpha#withdrawVerifierV3","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlphaV3_2","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b5061149a8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b366004611300565b610054565b604051901515815260200160405180910390f35b5f61005d611127565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600980825261014082019093525f9290918201610120803683370190505090505f5b600981101561013357848160098110610109576101096113e0565b6020020151828281518110610120576101206113e0565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e9190611408565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb5783878281518110610217576102176113e0565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc85608001518460016102859190611408565b81518110610295576102956113e0565b60200260200101518a85815181106102af576102af6113e0565b6020026020010151610a94565b610b28565b91506001016101fb565b506102f38183608001515f815181106102e6576102e66113e0565b6020026020010151610b28565b9050610327610304865f0151610bbf565b8660200151845f015185602001518587604001518b604001518960600151610c5b565b610337576001935050505061033e565b5f93505050505b92915050565b61034c611175565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f05d000ba4551c1fa877c7a46107992624c3d99a3e6bdd57c50698771b613cc298185019081527f1ecc95a1dbdbe4f8cef976bf22affb6de7fa33cb89b48d77bead7102ad139892828401528152835180850185527f21db75587cbe02e9192f9b5f2b763c99648c02dd6b6a4c96c20df72fb841418a81527f2af9f7e11a5a29cdcb4b532c39193095513331f2834798b89072b995ad356a898185015281840152908401528151600a8082526101608201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f2660af19967ed5580208a84497fbdd099f460ed85561c98f23edb4a0384dcf7f81527f210fa1941084636ec27feec1eb19e46b9b48bfa53b306d017ae5963efad52a436020820152905180515f90610659576106596113e0565b602002602001018190525060405180604001604052807f2083fd8b0b70f84ff529e805d135f4a43429faa7993c7722807ae7a190df845581526020017f28811e77761972df5b4960cb74319c488f4edbeddc48333c6d4d1a6bf413ca3481525081608001516001815181106106d0576106d06113e0565b602002602001018190525060405180604001604052807f13dfc5473a9989ab659e0b9a6334f6941bc90555d51e4bca722dae72810e989881526020017f013b58637f2dae5dcc9fc8fbebfc8b1381840813185e0fb647f05168c697540c8152508160800151600281518110610747576107476113e0565b602002602001018190525060405180604001604052807f1c44dcfc07f5f9ae2c637ff60d5a89d2c1713bca6aff265abcb28620a852c34281526020017f19330ccf92e4c27c2b591f021a828cca5edab6049a9d1062686fd796b6d3f52d81525081608001516003815181106107be576107be6113e0565b602002602001018190525060405180604001604052807f23d7191b87dd317ce4294b631c1ce03e454f61c038c5d9c601c8abcc5003816b81526020017f21b455e02d8d7aa7549f9e769915f44c954cbc965220a0c8f61c0c1a367509818152508160800151600481518110610835576108356113e0565b602002602001018190525060405180604001604052807f2226e11fa0ed282b86920337d75253929cdead5afa79adbc98bbf0786a21503081526020017eab0bd68fd9de0ee282bc419521c647a219f5075248f5ebfb2016464f50ba1a81525081608001516005815181106108ab576108ab6113e0565b602002602001018190525060405180604001604052807f21a6f2274e37865052daf09f57ee7d7dafbc1d60cc54e26ab82120b995ed12f481526020017f0b5c832b69ae80552e1d9402009efab37ce39eb97825b4b343f5ea9581b31c1b8152508160800151600681518110610922576109226113e0565b602002602001018190525060405180604001604052807f091ecf7419c3a24ba36564b86a4859fd8f00157103bb0759ea5ba4928bfe460b81526020017f105c38b8731b3cbeed64c9c7e1aa313538e21302828e2f95fb3b05d777a0f7d88152508160800151600781518110610999576109996113e0565b602002602001018190525060405180604001604052807f100d9113bd2a6d16e7682a168a313a92f111d97fa62ab66b9b60339ab7edd8cf81526020017f0db625617d7f1e384b7fd3bfa6625ce178ced385ea8bef33da11938d7ebc389d8152508160800151600881518110610a1057610a106113e0565b602002602001018190525060405180604001604052807ec8fdc7d85d6600498e56ca6e7082bef46e29858708e318188919835ac6878881526020017f0c567e014f5306e60d7e0d42f3e9216db8a9837c77f300ff203b05060360a30a8152508160800151600981518110610a8657610a866113e0565b602002602001018190525090565b604080518082019091525f8082526020820152610aaf6111c5565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610add57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610b436111e3565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610b7c57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c0557506020830151155b15610c24575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610c48919061141b565b610c52908461143a565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610c7557505060408051600480825260a082019092529192505f9190602082015b610cbd611201565b815260200190600190039081610cb55790505090508a825f81518110610ce557610ce56113e0565b60200260200101819052508882600181518110610d0457610d046113e0565b60200260200101819052508682600281518110610d2357610d236113e0565b60200260200101819052508482600381518110610d4257610d426113e0565b602002602001018190525089815f81518110610d6057610d606113e0565b60200260200101819052508781600181518110610d7f57610d7f6113e0565b60200260200101819052508581600281518110610d9e57610d9e6113e0565b60200260200101819052508381600381518110610dbd57610dbd6113e0565b6020026020010181905250610dd28282610de1565b9b9a5050505050505050505050565b5f8151835114610e2c5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610e3a82600661144d565b90505f8167ffffffffffffffff811115610e5657610e5661125d565b604051908082528060200260200182016040528015610e7f578160200160208202803683370190505b5090505f5b838110156110ac57868181518110610e9e57610e9e6113e0565b60200260200101515f015182826006610eb7919061144d565b610ec1905f611408565b81518110610ed157610ed16113e0565b602002602001018181525050868181518110610eef57610eef6113e0565b60200260200101516020015182826006610f09919061144d565b610f14906001611408565b81518110610f2457610f246113e0565b602002602001018181525050858181518110610f4257610f426113e0565b6020908102919091010151515182610f5b83600661144d565b610f66906002611408565b81518110610f7657610f766113e0565b602002602001018181525050858181518110610f9457610f946113e0565b60209081029190910181015151015182610faf83600661144d565b610fba906003611408565b81518110610fca57610fca6113e0565b602002602001018181525050858181518110610fe857610fe86113e0565b6020026020010151602001515f60028110611005576110056113e0565b60200201518261101683600661144d565b611021906004611408565b81518110611031576110316113e0565b60200260200101818152505085818151811061104f5761104f6113e0565b60200260200101516020015160016002811061106d5761106d6113e0565b60200201518261107e83600661144d565b611089906005611408565b81518110611099576110996113e0565b6020908102919091010152600101610e84565b506110b5611221565b5f602082602086026020860160086107d05a03fa905080806110d357fe5b50806111195760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101611150611201565b815260200161117060405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c083019190915281526020810161119e611201565b81526020016111ab611201565b81526020016111b8611201565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061121461123f565b815260200161117061123f565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156112a657634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f8301126112bd575f5ffd5b5f6112c86040611271565b90508060408401858111156112db575f5ffd5b845b818110156112f55780358352602092830192016112dd565b509195945050505050565b5f5f5f5f6102208587031215611314575f5ffd5b61131e86866112ae565b935085605f86011261132e575f5ffd5b604061133981611271565b8060c088018981111561134a575f5ffd5b604089015b81811015611370576113618b826112ae565b8452602090930192840161134f565b5081965061137e8a826112ae565b95505050505061010085015f87601f830112611398575f5ffd5b5f6101206113a581611271565b91508301818a8211156113b6575f5ffd5b5b818510156113cf5784358152602094850194016113b7565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e6113f4565b5f8261143557634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e6113f4565b808202811582820484141761033e5761033e6113f456fea2646970667358221220ee56b55b73586c11a0ad84b93a1c92445f7a65f7be9aeed3d1e4fbaef2220a4364736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteractionId":1,"nonce":897,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteractionId":1,"nonce":897,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1108355"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000003"}},"hash":"0x5fc9853520ddb4410be5136e1bab8cde7cd20f52356539434d281706c850e8c5"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","hash":"0x5fc9853520ddb4410be5136e1bab8cde7cd20f52356539434d281706c850e8c5","networkInteractionId":1,"receipt":{"blockHash":"0xb6b682c54d6b3ed784afb2c81e852b9759236157e1d6dee295b9cd7cc264adbf","blockNumber":10414378,"contractAddress":"0x458C5A6995d514e6f9eaDCEE68Aa47F74E3D0Cfb","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","result":{"address":"0x458C5A6995d514e6f9eaDCEE68Aa47F74E3D0Cfb","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","withdrawVerifier":"0x458C5A6995d514e6f9eaDCEE68Aa47F74E3D0Cfb"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteraction":{"data":"0xcf101a4900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000458c5a6995d514e6f9eadcee68aa47f74e3d0cfb000000000000000000000000c837aaa99a8e5a096f5e6e54e396f027fa106ab50000000000000000000000008ec5dedfd00599a6d820f8d54195ac0a7193d15c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":898,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":898,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1106067"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000003"}},"hash":"0xeb269e85478996c07f866c6ae9a6b3ba8f53342b043125e349550bf3fdaa6e2f"},"type":"TRANSACTION_SEND"}
-{"args":["0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB"],"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","dependencies":["CurvyVault#CurvyVaultV5","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d000000000000000000000000e7c543de96e99fdd9f8435bdeecee4361b98cebb","id":1,"to":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":899,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":899,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1106067"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000003"}},"hash":"0xb8da879b32bd77d27f5d82d149d8f8a13f44c128a17335661c6b1afbf9f6f0e4"},"type":"TRANSACTION_SEND"}
-{"args":["0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","dependencies":["PortalFactory#PortalFactory","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000c837aaa99a8e5a096f5e6e54e396f027fa106ab5000000000000000000000000e7c543de96e99fdd9f8435bdeecee4361b98cebb0000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":900,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":900,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1106067"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000003"}},"hash":"0xaa4461d20ccf8c1e93e04e8a3c5b6a756283d4a215880dd2c6da0872b6daa8ef"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","hash":"0xeb269e85478996c07f866c6ae9a6b3ba8f53342b043125e349550bf3fdaa6e2f","networkInteractionId":1,"receipt":{"blockHash":"0x029a4edb2c6ab8ebd555223b663bd6ba2b5cc735db292e574bf5359952840553","blockNumber":10414383,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","hash":"0xb8da879b32bd77d27f5d82d149d8f8a13f44c128a17335661c6b1afbf9f6f0e4","networkInteractionId":1,"receipt":{"blockHash":"0x029a4edb2c6ab8ebd555223b663bd6ba2b5cc735db292e574bf5359952840553","blockNumber":10414383,"logs":[{"address":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","data":"0x000000000000000000000000e7c543de96e99fdd9f8435bdeecee4361b98cebb","logIndex":525,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xaa4461d20ccf8c1e93e04e8a3c5b6a756283d4a215880dd2c6da0872b6daa8ef","networkInteractionId":1,"receipt":{"blockHash":"0x029a4edb2c6ab8ebd555223b663bd6ba2b5cc735db292e574bf5359952840553","blockNumber":10414383,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","contractName":"CurvyAggregatorAlphaV6","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV6","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xEa16Fb67A4Bb4a90598FDf03e68091ecD33614ae"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611e4b6100f95f395f81816110500152818161107901526111bd0152611e4b5ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73Ea16Fb67A4Bb4a90598FDf03e68091ecD33614ae6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","networkInteractionId":1,"nonce":918,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","networkInteractionId":1,"nonce":918,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000026"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x242d1de78d376a2d3356b51d6ce926a5dbfad56ff1b95cfcd33ec3c8eb5b3fce"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyVault#CurvyVaultV6","contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","contractName":"CurvyVaultV6","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV6","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV6Implementation","constructorArgs":[],"contractName":"CurvyVaultV6","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV6Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220abf4833af5f4eaf00c587d9249e43bdb81105120a948ba55ef3190468959dffb64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","networkInteractionId":1,"nonce":919,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","networkInteractionId":1,"nonce":919,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000026"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x6d0e2c75cdd13ae7b50b86737f2cb36f0ac6921680c20c27a58605ca71f9a535"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","hash":"0x242d1de78d376a2d3356b51d6ce926a5dbfad56ff1b95cfcd33ec3c8eb5b3fce","networkInteractionId":1,"receipt":{"blockHash":"0x23b6963a852c218d2a4d3e297327b008a2948bfd27b6a08bac319828cfcf76ec","blockNumber":10432304,"contractAddress":"0xef717c61b32Dbd3Eb2f3E699C99B37F412380621","logs":[{"address":"0xef717c61b32Dbd3Eb2f3E699C99B37F412380621","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":115,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","result":{"address":"0xef717c61b32Dbd3Eb2f3E699C99B37F412380621","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","hash":"0x6d0e2c75cdd13ae7b50b86737f2cb36f0ac6921680c20c27a58605ca71f9a535","networkInteractionId":1,"receipt":{"blockHash":"0x23b6963a852c218d2a4d3e297327b008a2948bfd27b6a08bac319828cfcf76ec","blockNumber":10432304,"contractAddress":"0xE64a2B55B255E9b55568F777b98d0d897059CA10","logs":[{"address":"0xE64a2B55B255E9b55568F777b98d0d897059CA10","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":116,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","result":{"address":"0xE64a2B55B255E9b55568F777b98d0d897059CA10","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0xef717c61b32Dbd3Eb2f3E699C99B37F412380621","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000ef717c61b32dbd3eb2f3e699c99b37f41238062100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","networkInteractionId":1,"nonce":920,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","networkInteractionId":1,"nonce":920,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000026"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xee1235cac899fd29eb599a6c2a742ae9f3ccf48b3a2a4cb4985584b1f8dd1eb9"},"type":"TRANSACTION_SEND"}
-{"args":["0xE64a2B55B255E9b55568F777b98d0d897059CA10","0x"],"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","dependencies":["CurvyVault#CurvyVaultV5","CurvyVault#CurvyVaultV6Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000e64a2b55b255e9b55568f777b98d0d897059ca1000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","networkInteractionId":1,"nonce":921,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","networkInteractionId":1,"nonce":921,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000026"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x3314a02b48762ce94f194133f1feacd786c53733a24380eefc8ace2759b5efd6"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","hash":"0xee1235cac899fd29eb599a6c2a742ae9f3ccf48b3a2a4cb4985584b1f8dd1eb9","networkInteractionId":1,"receipt":{"blockHash":"0x6a510a044a63f47f4d37b73237b55d160f8696989c36e8d094a1dc57c431835d","blockNumber":10432309,"logs":[{"address":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","data":"0x","logIndex":177,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000ef717c61b32dbd3eb2f3e699c99b37f412380621"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteractionId":1,"nonce":1029,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteractionId":1,"nonce":1029,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1112327078"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x664cb81c7ab4efdbdc328b11a8a53255a6463df39776f5697605c23db694d40a"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","hash":"0x9a8a9a5ee29ad9d128d43024e92ba483168381834b58775ba5e251454b0bc7a9","networkInteractionId":1,"receipt":{"blockHash":"0x7fe729c8e10ebf24e7357d061481e2ff594b1fa730031010d20cef458b19cdcb","blockNumber":10703470,"contractAddress":"0x0B64f5A0C7730D69ec52EE404D338e9B6Cda5a1B","logs":[{"address":"0x0B64f5A0C7730D69ec52EE404D338e9B6Cda5a1B","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":406,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","result":{"address":"0x0B64f5A0C7730D69ec52EE404D338e9B6Cda5a1B","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","hash":"0x664cb81c7ab4efdbdc328b11a8a53255a6463df39776f5697605c23db694d40a","networkInteractionId":1,"receipt":{"blockHash":"0x7fe729c8e10ebf24e7357d061481e2ff594b1fa730031010d20cef458b19cdcb","blockNumber":10703470,"contractAddress":"0x5e86fF8863b765981671984b2453E91f61957733","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","result":{"address":"0x5e86fF8863b765981671984b2453E91f61957733","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"args":["0x0B64f5A0C7730D69ec52EE404D338e9B6Cda5a1B","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef2860000000000000000000000000b64f5a0c7730d69ec52ee404d338e9b6cda5a1b00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","networkInteractionId":1,"nonce":1030,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","networkInteractionId":1,"nonce":1030,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1090395520"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x14b83af3838eab4d2b0a03825c887a3d775739dd245e67da518478b14669773e"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","hash":"0x14b83af3838eab4d2b0a03825c887a3d775739dd245e67da518478b14669773e","networkInteractionId":1,"receipt":{"blockHash":"0xeda96551d3bfd0cdeb26266a3294f1fb2e5340d64a419d40cb4d712f6a06af31","blockNumber":10703475,"logs":[{"address":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","data":"0x","logIndex":640,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000000b64f5a0c7730d69ec52ee404d338e9b6cda5a1b"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","hash":"0x3314a02b48762ce94f194133f1feacd786c53733a24380eefc8ace2759b5efd6","networkInteractionId":1,"receipt":{"blockHash":"0x6a510a044a63f47f4d37b73237b55d160f8696989c36e8d094a1dc57c431835d","blockNumber":10432309,"logs":[{"address":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","data":"0x","logIndex":315,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000e64a2b55b255e9b55568f777b98d0d897059ca10"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","withdrawVerifier":"0x458C5A6995d514e6f9eaDCEE68Aa47F74E3D0Cfb"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteraction":{"data":"0xcf101a4900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000458c5a6995d514e6f9eadcee68aa47f74e3d0cfb000000000000000000000000c837aaa99a8e5a096f5e6e54e396f027fa106ab50000000000000000000000008ec5dedfd00599a6d820f8d54195ac0a7193d15c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":922,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":922,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000024"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x770a36160bf3cc3781fbfdd0ee0c94712511ace711c46cbf7f343d4e580add59"},"type":"TRANSACTION_SEND"}
-{"args":["0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB"],"artifactId":"CurvyVault#CurvyVaultV6","contractAddress":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","dependencies":["CurvyVault#CurvyVaultV6","CurvyAggregatorAlpha#CurvyAggregatorAlphaV6"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d000000000000000000000000e7c543de96e99fdd9f8435bdeecee4361b98cebb","id":1,"to":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":923,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":923,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000024"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xc4505824017efabba0debc93244b16fd439a89307978b0c7ca9fb6b1c4b22369"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","hash":"0x770a36160bf3cc3781fbfdd0ee0c94712511ace711c46cbf7f343d4e580add59","networkInteractionId":1,"receipt":{"blockHash":"0x3a505513cde06025c5881da48a11828d754548e59dc8614a06b70d7cd833e7cc","blockNumber":10432314,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","hash":"0xc4505824017efabba0debc93244b16fd439a89307978b0c7ca9fb6b1c4b22369","networkInteractionId":1,"receipt":{"blockHash":"0x3a505513cde06025c5881da48a11828d754548e59dc8614a06b70d7cd833e7cc","blockNumber":10432314,"logs":[{"address":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","data":"0x000000000000000000000000e7c543de96e99fdd9f8435bdeecee4361b98cebb","logIndex":173,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":927,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":927,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000030"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x386fe88fbbbab6cfa1697c15d0f74df71dfc0a647b77e8012ed2beb02dec9ba7"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x386fe88fbbbab6cfa1697c15d0f74df71dfc0a647b77e8012ed2beb02dec9ba7","networkInteractionId":1,"receipt":{"blockHash":"0xac49c22c1145c4cbdcf3cb65d9efde4e2041a62188c833a414f2d15a6ff5b7f0","blockNumber":10458159,"logs":[{"address":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","data":"0x","logIndex":145,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":146,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000fe02b0a1ebec81faac4c09e3f4eaefe568833718","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x386fe88fbbbab6cfa1697c15d0f74df71dfc0a647b77e8012ed2beb02dec9ba7","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","withdrawVerifier":"0x458C5A6995d514e6f9eaDCEE68Aa47F74E3D0Cfb"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteraction":{"data":"0xcf101a4900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000458c5a6995d514e6f9eadcee68aa47f74e3d0cfb000000000000000000000000c837aaa99a8e5a096f5e6e54e396f027fa106ab5000000000000000000000000fe02b0a1ebec81faac4c09e3f4eaefe568833718000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":928,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":928,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000028"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xc80500e141fcf694cf1ba6de19862eab037c6367dbfa678fb31b3ad3772a281c"},"type":"TRANSACTION_SEND"}
-{"args":["0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5","0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","dependencies":["PortalFactory#PortalFactory","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000c837aaa99a8e5a096f5e6e54e396f027fa106ab5000000000000000000000000e7c543de96e99fdd9f8435bdeecee4361b98cebb0000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":929,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":929,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000028"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x38a92729ade9500c6f2d2a5aa5ce51ed93bdb4f0925f548dd15474689c3cf356"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","hash":"0xc80500e141fcf694cf1ba6de19862eab037c6367dbfa678fb31b3ad3772a281c","networkInteractionId":1,"receipt":{"blockHash":"0x0306fdbdcb572883eef8e27b038c8bba83ab7bcd4c08d785eb33f99197d9284e","blockNumber":10458164,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x38a92729ade9500c6f2d2a5aa5ce51ed93bdb4f0925f548dd15474689c3cf356","networkInteractionId":1,"receipt":{"blockHash":"0x0306fdbdcb572883eef8e27b038c8bba83ab7bcd4c08d785eb33f99197d9284e","blockNumber":10458164,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
{"artifactId":"CurvyAggregatorAlpha#insertionVerifierDepth30","constructorArgs":[],"contractName":"CurvyInsertionVerifierAlpha_2_30","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506106638061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d6565b610054565b604051901515815260200160405180910390f35b5f61055b565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0924b2da45959e3db416d37c294a404744951be16e42f1d992acb2f9b1653c9b85527f1dd38cbdac759717b0ac22a4684a67b9dde133900fd0de04e84649d362c43af260208601525f608086018661018e87357f1b2708ad6d7e6be283e7de6a744c951d2b8e5364548e69df7856c3c97b573e1b7f0974e3e005ff370d47e3fdb7ccdf534091ef1e4a005206d2d1231e67b90511998461008c565b6101de60208801357f2ebb5ab1d89212403b8779a300f9ddc2d940387f8a35748b528e34a8ba9aa8eb7f19eeb6ab376be1165cb0ec80572317e9f5c4518602464a5713c215c980fefb428461008c565b61022e60408801357f057838b481ea687ebdd9e99e7b0a647b9fde53a265abb2ebf10f786977fd745d7f303b63a34f398feec2ee236d526cf0b1152e7c0322e5ff4d253c0a3a8bf17fdc8461008c565b61027e60608801357f19345bce990107cbcf966676e877fb4f5ca5266f5d57adab7678620d605636d87f180b99f92cc59f1eabdbad0ff4a62544fa9bf0cab8f5912f5a847c5640c1d7328461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f0e2bb878054469b448cc0e33dc738b287d43fe65e576af5b3b04e591fdb54f1e60c08201527f1bf275d3700d3f50dca59951ba350ffa3ea2372d0196c425caa92a9e67899ade60e08201527f0c44e70b0815f8e0e28ce0457dc505fe56b05e59d49b5ae4e11b055a806910336101008201527f1232e197aaa7b2d91e891300fac64a73564b798a3db3fa5fb3abf383bf2032606101208201527f28308763f703530f89d2cf0bfa677e8d6cee8f7d9027e414164185b9819db03d6101408201527f1992fd2f54f2bb493054e09c96436be20ea7137974f126e81c09c2b32f70290c6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1d12be17bc61349a2fa4a78986dc0c65250840b18d469b5239a06678fdaffff36102808201527f2b76fd205a71da739792da15aa42bf4e6e549970f2c5d27f19456ed6ef65f9136102a08201527f291ed4e167e08d61ceb08cb301209e3431b16f87170ed88f5265b625d5e194486102c08201527e6370563f1ca56b9f3f3329c4a4724e95130020346360fa7e450ed7315a22e16102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105725f84013561005a565b61057f602084013561005a565b61058c604084013561005a565b610599606084013561005a565b6105a6818486888a6100f2565b9050805f5260205ff35b80604081018310156105c0575f5ffd5b92915050565b80608081018310156105c0575f5ffd5b5f5f5f5f61018085870312156105ea575f5ffd5b6105f486866105b0565b935061060386604087016105c6565b92506106128660c087016105b0565b91506106228661010087016105c6565b90509295919450925056fea26469706673582212205a855661bcf2b5e7a6820e1e0d44203c68c61e39b2b0c99faac2b30e34af037964736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","networkInteractionId":1,"nonce":934,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","networkInteractionId":1,"nonce":934,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000020"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x0ec245f01620a7490cd0ff5f60f45e6d7bed71b2e25f4288b1c7d422abc6c94d"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","hash":"0x0ec245f01620a7490cd0ff5f60f45e6d7bed71b2e25f4288b1c7d422abc6c94d","networkInteractionId":1,"receipt":{"blockHash":"0x5ebf4a62a69dacdee831e9b2f472e7cd9ace66cfba93340b1b395be038bc9f0a","blockNumber":10464602,"contractAddress":"0xa6D3b318da6Fd65930A6d7C55cfA8808949a574D","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","result":{"address":"0xa6D3b318da6Fd65930A6d7C55cfA8808949a574D","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","networkInteractionId":1,"nonce":1031,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","networkInteractionId":1,"nonce":1031,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1037988568"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x4477ee08f93053b9deef6ae5b865f9e654d27e91b89bf1af0938175459e90958"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","hash":"0x4477ee08f93053b9deef6ae5b865f9e654d27e91b89bf1af0938175459e90958","networkInteractionId":1,"receipt":{"blockHash":"0xf7864947af9fd0dc9efc3c1632cda81c192c9cf132db55b133a2337e7ec6e11f","blockNumber":10703480,"contractAddress":"0x3bAb2814aC3748C0f5c1556aDc158353C3b8371F","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","result":{"address":"0x3bAb2814aC3748C0f5c1556aDc158353C3b8371F","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
{"artifactId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","constructorArgs":[],"contractName":"CurvyAggregationVerifierAlpha_2_2_2_30","dependencies":["CurvyAggregatorAlpha#insertionVerifierDepth30"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b50610a0d8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610975565b610054565b604051901515815260200160405180910390f35b5f610882565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f2677d6c999b93ce8836a26f68400342d9206d0042e5bef74384d97668d4fbd7185527f1c6dffd717c92db39b15ffaac7f1ca0896359f64d86ddbde53a9a724d53d687f60208601525f608086018661018e87357f1588203686d2c659beac6e6b6a0696c9a73b43167a1c23dcd156cd423a3486617f2a9a27b4754629f464e15757a6e1795285c772d60b824c8f1dcf721853505b648461008c565b6101de60208801357f0e7ef5047b47aa90a649bd18cea070121bf160cd07d5fb6f059d7f85959093037f0ad8fc97f11c92c12ec509d473fb3a2131cd46398b83b0f6931d5a316885bf4c8461008c565b61022e60408801357f1f360486c53217bd225c170d2c9bff57ce0401a846932d5998b0985302d0d0297f1f0d2c4008add8e5f828066af26a4893d22ede59ce5ed922805bbf72172f926f8461008c565b61027e60608801357f19038ac1aeb7fff5205df6e24fb20b79efc3e47b23ba901c6133a077fd25a41f7f06a8f121ae5a14cd6561c3d301b7a599cd187d66b69ec0dca5b594c90d359db18461008c565b6102ce60808801357f14392ad2a968554f2e9be3192822ee370df3835437d6bdd824f7c02486a799757f1a901b29f21dd86a23814194667419cdb034a8f419cce6f36219ebe12f1d03ce8461008c565b61031e60a08801357f222b41b2066c2e18de2ce8f1b38e21067945bf3a523068d9be283bdeb0b090ca7f260b831c981e5d0edf7c4a1ce05d34b900e8e771b704ff94f52c9945a1227a038461008c565b61036e60c08801357f03ba99acc272296f6b5e8b46fdd80641dc68056bf1f1d058d7b0ae82673e6e0a7f1a49fe52f86e2ce468118842968ef83a85cc11ca735d1707594d03c0fcc5f7a48461008c565b6103be60e08801357f1bb356cda8bd9d21ca448a588e9fe402a48c2c090cc2d9028aabebf7eae7f18f7f2ba484140c7672e35cc296b012b1c06c9d65fa7daf76d898d54502b9dd6e8f298461008c565b61040f6101008801357f158100efe205b2ae041cd2722595c576d8ad554efd549c541c0235ddb95cc70d7f16532b0559581e1c0ff25d04ef22b687551e792d5f5d2134877bffd292114f998461008c565b6104606101208801357f1ecea9cf3060c8c3e065cd2f2f05fe405f4d81a6e4a067c43f65de122d4a8ecc7f0271befe332df95f1520c793b30ab4bbc373b49d736fdf4954fa8129851d9e288461008c565b6104b16101408801357f01886e15dd9ecac1445aca0b7c14420423ce79e0e7b5e5e7ca612fdbbbb0c77f7f17567d5e10acb1c359a4936a01b981b1e6fb9b2bf8746cfa36232c503fd055d18461008c565b6105026101608801357f0fa31e0ed9c1e3ebd3ff073c06bd5ec2056806962a50a4f9490d9d2d3c9125d47f12de630747fad5d0d0b137586691387df79e8a34d3b2968dc56f775ab6b3f4788461008c565b6105536101808801357f0675adf13437ce0b6c1853a85e1ce69404e9b79fc48e04a0757066da7650c6007f25415c817f8b5a1b4b8b1fbaba8a708d3c69f7a1aa35a3834e454b146a0a719a8461008c565b6105a46101a08801357f21c1a157c26e7368b687ff48228bde51af963a5337385f672bf794b1e734c4de7f10d8fd6daf436328532c048653ff83bc1192914754b7a5c907de1869768706848461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f039e6c254fdbfdddb550d7b28587b6e3359a0978a174c832f180238460bf67f660c08201527f05a7b274497c5b63c2aa9486e0610bf9c9fa32e70ac3453f26f181300106533a60e08201527f0e5775bf946735d1ab10bc0fe721dac812003a0756b73371686b39a0c8e0a59a6101008201527f2e63b48c5263b864a5ac08e86eda8c54b609edde10946cdd944dd04bf8f706996101208201527f2a68fdf476b29776ff77059d8292dbdef8bf3835b1d0b8c5e61a8e9f9065804c6101408201527f1b6deed70cfcb89383c60b8d413374d552260ab753beccb04e2077b09a6b69216101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f158d15b191dda264a993425059ebfd021c32c1730e3d254e31fd87de0ab46bac6102808201527f250bca34a48b272729deaec79ae6cc9a702ed03a18a0b5dbd03e9355f52480a56102a08201527f1a999fb6f30f5cc719a772e575a1effffd30eac8e14132c3759716b124d6750b6102c08201527f1db0c59f9dd26d6b1e665961792353cbd44351a6e5108cc13ee1aae16c3734046102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108995f84013561005a565b6108a6602084013561005a565b6108b3604084013561005a565b6108c0606084013561005a565b6108cd608084013561005a565b6108da60a084013561005a565b6108e760c084013561005a565b6108f460e084013561005a565b61090261010084013561005a565b61091061012084013561005a565b61091e61014084013561005a565b61092c61016084013561005a565b61093a61018084013561005a565b6109486101a084013561005a565b610955818486888a6100f2565b9050805f5260205ff35b806040810183101561096f575f5ffd5b92915050565b5f5f5f5f6102c08587031215610989575f5ffd5b610993868661095f565b935060c08501868111156109a5575f5ffd5b6040860193506109b5878261095f565b925050856102c0860111156109c8575f5ffd5b5091949093509091610100019056fea2646970667358221220478778d0335dd646856137a27c3acb70f813b5d21368e81d0f8aa12044b1af5b64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","networkInteractionId":1,"nonce":935,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","networkInteractionId":1,"nonce":935,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000022"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xddeec694eb909c2f89d970848a6027388eda7349f5a028982827359e573cf0c3"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","hash":"0xddeec694eb909c2f89d970848a6027388eda7349f5a028982827359e573cf0c3","networkInteractionId":1,"receipt":{"blockHash":"0xaa7cdb2727cb5dff077e2f0bb001df67b3ac1aa96012b629f5ef1c5fb4292e05","blockNumber":10464607,"contractAddress":"0x08a47629b8D25Cdd27878eFD4FbDF2d32B7b85c3","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","result":{"address":"0x08a47629b8D25Cdd27878eFD4FbDF2d32B7b85c3","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","networkInteractionId":1,"nonce":1032,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","networkInteractionId":1,"nonce":1032,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1014909684"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xb202e7e46af0563a5a48dc4466a7f8e75a535444063472240c685a314cea836f"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","hash":"0xb202e7e46af0563a5a48dc4466a7f8e75a535444063472240c685a314cea836f","networkInteractionId":1,"receipt":{"blockHash":"0xf2f33672e528d357d1d3d14137582feef45b799570bb7389e7d5aafda6de6c8a","blockNumber":10703485,"contractAddress":"0x740f473Af452C8fA32c7B74eAfaAFCcB2f72e5F4","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","result":{"address":"0x740f473Af452C8fA32c7B74eAfaAFCcB2f72e5F4","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
{"artifactId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlpha_2_2_30","dependencies":["CurvyAggregatorAlpha#aggregationVerifierDepth30"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506108328061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b36600461079a565b610054565b604051901515815260200160405180910390f35b5f6106ed565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f03760d22d9f2d34545c9e1914bb1ce7a6044769221030d98d87baf999cce726d85527f156ecf9f5c2610839d6d385378a656c0efd32e94a04ebc9c7089f4fe125b838260208601525f608086018661018e87357f2b2c117485e91a1ea632fe27385f77f9331e1db2672e42e9c86a2f802d6f4a577f022aa120b95ee1b256867106394adb6006f30068c06b3ea2e7a6a5bd396d32b88461008c565b6101de60208801357f190133b406f620e57f93dac97d795ee3e6c1cd5c1380ff8efa9bb5ae36eb6f027f201b5a5bcdd373439d8e242f31c140092f2e5e54fd22a0cd50775e373802199e8461008c565b61022e60408801357f1dacf0b93a0b74bacc711d37c038bc8c83ade754b2ce6b8d14bdab54c5267fcf7f27793f520413175bff070cb1cf2a66e303cb460fc50eae4788cc70e37947189e8461008c565b61027e60608801357f20c614098c5807d4d609bcda798ec95ffb84ea0fc6b97e2383149f4797c4071c7f1fcbb72508f88430df9f833ac15e753e438b391af9ded7d805815264fb92b9a18461008c565b6102ce60808801357f0f412826e324f04afe142e271f643cfd1191362dbd52c4ab1027b6dc5f4505197f251f4cfcfa4754144730a6dc064fe7159ceceaa24682c33fa9ec26df30314a098461008c565b61031e60a08801357f0a87b48bf8cd64b224ef5e524ccc422db4d1a2ddc4c6a52bf1354155dbfaca107f11ba886ae51f5da62f1ef74ebc2d941ffe1c84c0cc86a039eea59d753cf737e58461008c565b61036e60c08801357f0eb0f1a445dc5bdf6debee9f4b65306030a8c1c70c87aa910f111314550ff7ca7f0497eac083a6ae9671da1e9e67b4d81eb1890f772f559945e8db07f731b89b948461008c565b6103be60e08801357f27d71145b77c48dc3f37b04048a4952390eff92adf283803d939a5ef357469fa7f2f1d2ecb7da3238e91f60101a82f95a2a0cf3f18513a3efea2ef960e0f1b05038461008c565b61040f6101008801357f1232a2dd4a7f2a4eb7706e0ef2ac142d17bdd99c74cac407523c83ae2c0b14bf7f3013a3053bd7992674a30da3c9e0d99c8b16d930ea2986caa9428a2b843bcf9e8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1e16c25ab763d8d1477730a7d1ccef12a682cea336a50d06e8fbf5c6179e17d460c08201527f075447418c2d22c69113fa9cdfa0d27ef53317ffdee3259adcd492ba271bc6d460e08201527f2cc1fb86ad7b8be8587556a4b94dc9e84e3b8666d59c51208ee844733934e6696101008201527f27d109e11d2b06dc95900781efaa5ef1fc6dfbdb31e61283628e962fd17fe8c16101208201527f2f8043381982846eac492d6f3a1d39a682c65bfa8dd02e323e7a95df562cf9c96101408201527f29b9eff97456a285bf27898a846691a82071d53474301e1ca6b49892eb4499a56101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f02eed0745f7d7332ae3ac78bd0254d1d2a4f9c1ce849e2228ea68328f9861bab6102808201527f0a53e8207852cc09b290c2038962e161eb338f5b97cb2e1df58d5d4dd059cbdd6102a08201527f251e2c5b50852e3d17871d61fea2a638e7bd6669af35a7a4239e571588856f356102c08201527f1a01f4782436380d4ee0769723d43073f4888b316a973df0e33004b2ded19df76102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107045f84013561005a565b610711602084013561005a565b61071e604084013561005a565b61072b606084013561005a565b610738608084013561005a565b61074560a084013561005a565b61075260c084013561005a565b61075f60e084013561005a565b61076d61010084013561005a565b61077a818486888a6100f2565b9050805f5260205ff35b8060408101831015610794575f5ffd5b92915050565b5f5f5f5f61022085870312156107ae575f5ffd5b6107b88686610784565b935060c08501868111156107ca575f5ffd5b6040860193506107da8782610784565b92505085610220860111156107ed575f5ffd5b5091949093509091610100019056fea2646970667358221220aa1cf904b8465ae86135852d29b474903154ff35037e293a5f977b17164b752c64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","networkInteractionId":1,"nonce":936,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","networkInteractionId":1,"nonce":936,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000022"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x5ebc0295af25243e0fedc18e3bc3ad93de272704ecf7421d257043c56daef071"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","hash":"0x5ebc0295af25243e0fedc18e3bc3ad93de272704ecf7421d257043c56daef071","networkInteractionId":1,"receipt":{"blockHash":"0x494da0f051219b58975d6c7ffae962b2c1e91c09f2708104601b5d0e2b5c6253","blockNumber":10464612,"contractAddress":"0x31f4D0573F445038CeAc254c880F2B2FF1663423","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","result":{"address":"0x31f4D0573F445038CeAc254c880F2B2FF1663423","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x08a47629b8D25Cdd27878eFD4FbDF2d32B7b85c3","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0xa6D3b318da6Fd65930A6d7C55cfA8808949a574D","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x0000000000000000000000000000000000000000","withdrawVerifier":"0x31f4D0573F445038CeAc254c880F2B2FF1663423"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","CurvyAggregatorAlpha#insertionVerifierDepth30","CurvyAggregatorAlpha#aggregationVerifierDepth30","CurvyAggregatorAlpha#withdrawVerifierDepth30"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","networkInteraction":{"data":"0xcf101a49000000000000000000000000a6d3b318da6fd65930a6d7c55cfa8808949a574d00000000000000000000000008a47629b8d25cdd27878efd4fbdf2d32b7b85c300000000000000000000000031f4d0573f445038ceac254c880f2b2ff166342300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","networkInteractionId":1,"nonce":937,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","networkInteractionId":1,"nonce":937,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000022"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x42b1f5949bbd6ecdd5740a5d05670ac0e756806f1bbdb2c179c4c19a219a7a15"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","hash":"0x42b1f5949bbd6ecdd5740a5d05670ac0e756806f1bbdb2c179c4c19a219a7a15","networkInteractionId":1,"receipt":{"blockHash":"0x2dd87ca30af30f06f4953da01c980a442a507b7d9043f883d6c5fd86b83f7d07","blockNumber":10464617,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
+{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","networkInteractionId":1,"nonce":1033,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","networkInteractionId":1,"nonce":1033,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"881496668"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xded7f003c48e329b4d39da1026d66f408c3de7809ccd96dbfa210c282ea1a4b8"},"type":"TRANSACTION_SEND"}
+{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","hash":"0xded7f003c48e329b4d39da1026d66f408c3de7809ccd96dbfa210c282ea1a4b8","networkInteractionId":1,"receipt":{"blockHash":"0xefefb41304766836da519c433c83bc356102373a8b290c81862bf2fe4a5c9b14","blockNumber":10703490,"contractAddress":"0x194c294851c0243e96Ea8Bf3d79B43b8DbFF02eE","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","result":{"address":"0x194c294851c0243e96Ea8Bf3d79B43b8DbFF02eE","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
+{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x0bE0dD9B26b78f96943877bdAEDD573C05A060C2","withdrawVerifier":"0x0000000000000000000000000000000000000000"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteraction":{"data":"0xcf101a49000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ff5a4625fa4d6dffbc6bf88077b0c65a9e2febc40000000000000000000000000be0dd9b26b78f96943877bdaedd573c05a060c2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":1034,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":1034,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"867754764"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x4326e5906e77d8b0f50b743d2e60967041a17eccadcf227e00e94403f311008b"},"type":"TRANSACTION_SEND"}
+{"args":[{"aggregationVerifier":"0x740f473Af452C8fA32c7B74eAfaAFCcB2f72e5F4","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0x3bAb2814aC3748C0f5c1556aDc158353C3b8371F","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x0000000000000000000000000000000000000000","withdrawVerifier":"0x194c294851c0243e96Ea8Bf3d79B43b8DbFF02eE"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","CurvyAggregatorAlpha#insertionVerifierDepth30","CurvyAggregatorAlpha#aggregationVerifierDepth30","CurvyAggregatorAlpha#withdrawVerifierDepth30"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","networkInteraction":{"data":"0xcf101a490000000000000000000000003bab2814ac3748c0f5c1556adc158353c3b8371f000000000000000000000000740f473af452c8fa32c7b74eafaafccb2f72e5f4000000000000000000000000194c294851c0243e96ea8bf3d79b43b8dbff02ee00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","networkInteractionId":1,"nonce":1035,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","networkInteractionId":1,"nonce":1035,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"867754764"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x49fb1a6d96aa58314ca4f9ee5655c53ca4b06f8b10eac78a03883920a36844a2"},"type":"TRANSACTION_SEND"}
+{"args":["0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d"],"artifactId":"CurvyVault#CurvyVaultV6","contractAddress":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","dependencies":["CurvyVault#CurvyVaultV6","CurvyAggregatorAlpha#CurvyAggregatorAlphaV6"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d0000000000000000000000005e2ab179f4fdd1832b6bf491fd3ecc030008348d","id":1,"to":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":1036,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":1036,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"867754764"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x1c6ee9c5343f8d86324c9756b185f34702bcb21affca15fb8ea53c4c5b3bf282"},"type":"TRANSACTION_SEND"}
+{"args":["0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","0x5e2Ab179f4fdD1832B6BF491FD3ecc030008348d","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0bE0dD9B26b78f96943877bdAEDD573C05A060C2","dependencies":["PortalFactory#PortalFactory","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
+{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000ff5a4625fa4d6dffbc6bf88077b0c65a9e2febc40000000000000000000000005e2ab179f4fdd1832b6bf491fd3ecc030008348d0000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x0bE0dD9B26b78f96943877bdAEDD573C05A060C2","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
+{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":1037,"type":"TRANSACTION_PREPARE_SEND"}
+{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":1037,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"867754764"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x14f29283a750dba7e0ec901a4d0f7850d39a01c5468e293d451d8795db214b6f"},"type":"TRANSACTION_SEND"}
+{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","hash":"0x4326e5906e77d8b0f50b743d2e60967041a17eccadcf227e00e94403f311008b","networkInteractionId":1,"receipt":{"blockHash":"0xa2926e7dfae2be007f769083cae36080838783fe674375d7268e01ee5612eb58","blockNumber":10703495,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
+{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","hash":"0x49fb1a6d96aa58314ca4f9ee5655c53ca4b06f8b10eac78a03883920a36844a2","networkInteractionId":1,"receipt":{"blockHash":"0xa2926e7dfae2be007f769083cae36080838783fe674375d7268e01ee5612eb58","blockNumber":10703495,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
+{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","hash":"0x1c6ee9c5343f8d86324c9756b185f34702bcb21affca15fb8ea53c4c5b3bf282","networkInteractionId":1,"receipt":{"blockHash":"0xa2926e7dfae2be007f769083cae36080838783fe674375d7268e01ee5612eb58","blockNumber":10703495,"logs":[{"address":"0xff5a4625FA4D6DffBc6bf88077b0C65A9E2FEBc4","data":"0x0000000000000000000000005e2ab179f4fdd1832b6bf491fd3ecc030008348d","logIndex":449,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
+{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x14f29283a750dba7e0ec901a4d0f7850d39a01c5468e293d451d8795db214b6f","networkInteractionId":1,"receipt":{"blockHash":"0xa2926e7dfae2be007f769083cae36080838783fe674375d7268e01ee5612eb58","blockNumber":10703495,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
+{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json b/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json
deleted file mode 100644
index 108efa0..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json
+++ /dev/null
@@ -1,637 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV1",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c8a1428597d493cbe694c55d3c3140f6d4feec8584d111946bcfbdce984afdd264736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c8a1428597d493cbe694c55d3c3140f6d4feec8584d111946bcfbdce984afdd264736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1487
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1238
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4794
- },
- {
- "length": 32,
- "start": 4835
- },
- {
- "length": 32,
- "start": 5159
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "buildInfoId": "solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json b/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json
deleted file mode 100644
index c563db4..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json
+++ /dev/null
@@ -1,637 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV2",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220203f460927dd492ae23c6a846bacc1b688b31d219b7fe1d56291d876ca96db2b64736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220203f460927dd492ae23c6a846bacc1b688b31d219b7fe1d56291d876ca96db2b64736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1487
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1238
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4796
- },
- {
- "length": 32,
- "start": 4837
- },
- {
- "length": 32,
- "start": 5161
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "buildInfoId": "solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json b/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json
deleted file mode 100644
index c563db4..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json
+++ /dev/null
@@ -1,637 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV2",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220203f460927dd492ae23c6a846bacc1b688b31d219b7fe1d56291d876ca96db2b64736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220203f460927dd492ae23c6a846bacc1b688b31d219b7fe1d56291d876ca96db2b64736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1487
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1238
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4796
- },
- {
- "length": 32,
- "start": 4837
- },
- {
- "length": 32,
- "start": 5161
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "buildInfoId": "solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json b/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json
deleted file mode 100644
index 7473757..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json
+++ /dev/null
@@ -1,691 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV3",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212206ff0d470ab001319b7a6d16084e8db1922e67b75e58813aaec5f4d41b61b48b164736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212206ff0d470ab001319b7a6d16084e8db1922e67b75e58813aaec5f4d41b61b48b164736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1517
- },
- {
- "length": 20,
- "start": 3824
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1268
- },
- {
- "length": 20,
- "start": 3575
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5556
- },
- {
- "length": 32,
- "start": 5597
- },
- {
- "length": 32,
- "start": 5921
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol",
- "buildInfoId": "solc-0_8_28-96b1f146962f0bd5475b352d77ae5331b364780c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.json b/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.json
deleted file mode 100644
index 0355bda..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.json
+++ /dev/null
@@ -1,704 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV4",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516124506100f95f395f818161168a015281816116b301526117f701526124505ff3fe608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1574
- },
- {
- "length": 20,
- "start": 4081
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1325
- },
- {
- "length": 20,
- "start": 3832
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5770
- },
- {
- "length": 32,
- "start": 5811
- },
- {
- "length": 32,
- "start": 6135
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol",
- "buildInfoId": "solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation.json b/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation.json
deleted file mode 100644
index 0355bda..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation.json
+++ /dev/null
@@ -1,704 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV4",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516124506100f95f395f818161168a015281816116b301526117f701526124505ff3fe608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1574
- },
- {
- "length": 20,
- "start": 4081
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1325
- },
- {
- "length": 20,
- "start": 3832
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5770
- },
- {
- "length": 32,
- "start": 5811
- },
- {
- "length": 32,
- "start": 6135
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol",
- "buildInfoId": "solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.json b/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.json
deleted file mode 100644
index e69c420..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.json
+++ /dev/null
@@ -1,668 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV5",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNoteTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNullifierTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidNotesRoot",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidWithdrawProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NoteNotScheduledForDeposit",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "PortalNotRegistered",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "publicInputs",
- "type": "uint256[9]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVaultV2",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifiersTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifierV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d506100f95f395f8181610f9f01528181610fc8015261110c0152611d505ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3290
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3041
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 3999
- },
- {
- "length": 32,
- "start": 4040
- },
- {
- "length": 32,
- "start": 4364
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol",
- "buildInfoId": "solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation.json b/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation.json
deleted file mode 100644
index e69c420..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation.json
+++ /dev/null
@@ -1,668 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV5",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNoteTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNullifierTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidNotesRoot",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidWithdrawProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NoteNotScheduledForDeposit",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "PortalNotRegistered",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "publicInputs",
- "type": "uint256[9]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVaultV2",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifiersTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifierV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d506100f95f395f8181610f9f01528181610fc8015261110c0152611d505ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3290
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3041
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 3999
- },
- {
- "length": 32,
- "start": 4040
- },
- {
- "length": 32,
- "start": 4364
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol",
- "buildInfoId": "solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation.json b/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation.json
deleted file mode 100644
index 18895d9..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation.json
+++ /dev/null
@@ -1,668 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV6",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNoteTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNullifierTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidNotesRoot",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidWithdrawProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NoteNotScheduledForDeposit",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "PortalNotRegistered",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "publicInputs",
- "type": "uint256[9]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVaultV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifiersTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifierV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611e4b6100f95f395f81816110500152818161107901526111bd0152611e4b5ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3406
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3157
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4176
- },
- {
- "length": 32,
- "start": 4217
- },
- {
- "length": 32,
- "start": 4541
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol",
- "buildInfoId": "solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV1.json b/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV1.json
deleted file mode 100644
index 3691ecd..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV1.json
+++ /dev/null
@@ -1,834 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV1",
- "sourceName": "contracts/vault/CurvyVaultV1.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205e1d810006e1c4a45d4280de3a8894a26644a7669555e5011d3a8b7d576e098564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205e1d810006e1c4a45d4280de3a8894a26644a7669555e5011d3a8b7d576e098564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6484
- },
- {
- "length": 32,
- "start": 6525
- },
- {
- "length": 32,
- "start": 6849
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV1.sol",
- "buildInfoId": "solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV1Implementation.json b/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV1Implementation.json
deleted file mode 100644
index 3691ecd..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV1Implementation.json
+++ /dev/null
@@ -1,834 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV1",
- "sourceName": "contracts/vault/CurvyVaultV1.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205e1d810006e1c4a45d4280de3a8894a26644a7669555e5011d3a8b7d576e098564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205e1d810006e1c4a45d4280de3a8894a26644a7669555e5011d3a8b7d576e098564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6484
- },
- {
- "length": 32,
- "start": 6525
- },
- {
- "length": 32,
- "start": 6849
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV1.sol",
- "buildInfoId": "solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV2.json b/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV2.json
deleted file mode 100644
index 847920a..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV2.json
+++ /dev/null
@@ -1,885 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV2",
- "sourceName": "contracts/vault/CurvyVaultV2.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212200dd8f4b1ff65d8eaec14efc8498c5839e04bb38b2557e57ab8719387851cfb9064736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212200dd8f4b1ff65d8eaec14efc8498c5839e04bb38b2557e57ab8719387851cfb9064736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5829
- },
- {
- "length": 32,
- "start": 5870
- },
- {
- "length": 32,
- "start": 6194
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV2.sol",
- "buildInfoId": "solc-0_8_28-3a19216336357ee9e58c9163cd4bbaea062085e2"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV2Implementation.json b/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV2Implementation.json
deleted file mode 100644
index 847920a..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV2Implementation.json
+++ /dev/null
@@ -1,885 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV2",
- "sourceName": "contracts/vault/CurvyVaultV2.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212200dd8f4b1ff65d8eaec14efc8498c5839e04bb38b2557e57ab8719387851cfb9064736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212200dd8f4b1ff65d8eaec14efc8498c5839e04bb38b2557e57ab8719387851cfb9064736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5829
- },
- {
- "length": 32,
- "start": 5870
- },
- {
- "length": 32,
- "start": 6194
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV2.sol",
- "buildInfoId": "solc-0_8_28-3a19216336357ee9e58c9163cd4bbaea062085e2"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV3.json b/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV3.json
deleted file mode 100644
index 5545902..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV3.json
+++ /dev/null
@@ -1,911 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV3",
- "sourceName": "contracts/vault/CurvyVaultV3.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5f6100f95f395f81816117f20152818161181b015261195f0152612d5f5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6130
- },
- {
- "length": 32,
- "start": 6171
- },
- {
- "length": 32,
- "start": 6495
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV3.sol",
- "buildInfoId": "solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV3Implementation.json b/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV3Implementation.json
deleted file mode 100644
index 5545902..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV3Implementation.json
+++ /dev/null
@@ -1,911 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV3",
- "sourceName": "contracts/vault/CurvyVaultV3.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5f6100f95f395f81816117f20152818161181b015261195f0152612d5f5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6130
- },
- {
- "length": 32,
- "start": 6171
- },
- {
- "length": 32,
- "start": 6495
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV3.sol",
- "buildInfoId": "solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV4Implementation.json b/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV4Implementation.json
deleted file mode 100644
index 8c91cae..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/CurvyVault#CurvyVaultV4Implementation.json
+++ /dev/null
@@ -1,911 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV4",
- "sourceName": "contracts/vault/CurvyVaultV4.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5c6100f95f395f81816117ef01528181611818015261195c0152612d5c5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6127
- },
- {
- "length": 32,
- "start": 6168
- },
- {
- "length": 32,
- "start": 6492
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV4.sol",
- "buildInfoId": "solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/PortalFactory#CreateX.json b/ignition/deployments/production_arbitrum/artifacts/PortalFactory#CreateX.json
deleted file mode 100644
index 5d6f263..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/PortalFactory#CreateX.json
+++ /dev/null
@@ -1,906 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "FailedContractCreation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedContractInitialisation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedEtherTransfer",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidNonceValue",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidSalt",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "Create3ProxyContractCreation",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreateClone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "bytecode": "0x",
- "deployedBytecode": "0x",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/production_arbitrum/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/PortalFactoryAggregatorModule#PortalFactory.json b/ignition/deployments/production_arbitrum/artifacts/PortalFactoryAggregatorModule#PortalFactory.json
deleted file mode 100644
index a44b495..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/PortalFactoryAggregatorModule#PortalFactory.json
+++ /dev/null
@@ -1,255 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "initializeConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateLifiDiamondAddress",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516113b93803806113b983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611277806101425f395ff3fe608060405260043610610084575f3560e01c8063715018a611610057578063715018a614610133578063735f399d146101475780637377bbb41461015a5780638da5cb5b14610186578063f2fde38b146101a2575f5ffd5b80631d29b183146100885780633290c33b146100a95780633942b0ad146100e557806352982f3b14610114575b5f5ffd5b348015610093575f5ffd5b506100a76100a236600461074a565b6101c1565b005b3480156100b4575f5ffd5b506100c86100c33660046107d9565b61031f565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100f0575f5ffd5b506101046100ff3660046107f0565b61038d565b60405190151581526020016100dc565b34801561011f575f5ffd5b5061010461012e366004610810565b6103ba565b34801561013e575f5ffd5b506100a7610406565b6100a7610155366004610850565b610419565b348015610165575f5ffd5b506101796101743660046107d9565b6105a1565b6040516100dc919061086a565b348015610191575f5ffd5b505f546001600160a01b03166100c8565b3480156101ad575f5ffd5b506100a76101bc3660046107f0565b61060c565b6004546001600160a01b031661023a5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084015b60405180910390fd5b5f610247835f01516105a1565b90505f5f60015490508083516020850134f591506001600160a01b0382166102b15760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610231565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936102e9939216918c918c918c918c910161089f565b5f604051808303815f87803b158015610300575f5ffd5b505af1158015610312573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f61032a836105a1565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff19166021820152603581019390935260558084019290925280518084039092018252607590920190915280519101209392505050565b5f610396610649565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b5f6103c3610649565b50600280546001600160a01b039485166001600160a01b031991821617909155600380549385169382169390931790925560048054919093169116179055600190565b61040e610649565b6104175f610675565b565b6002546001600160a01b0316158061043a57506003546001600160a01b0316155b156104a45760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b6064820152608401610231565b5f6104b1825f01516105a1565b90505f5f60015490508083516020850134f591506001600160a01b03821661051b5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610231565b60035460025460408051631329a1a760e31b815287516004820152602088015160248201529087015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610585575f5ffd5b505af1158015610597573d5f5f3e3d5ffd5b5050505050505050565b60605f604051806020016105b4906106c4565b601f1982820381018352601f9091011660408181526020808301879052815180840390910181528183019091529192506105f4908390839060600161092b565b60405160208183030381529060405292505050919050565b610614610649565b6001600160a01b03811661063d57604051631e4fbdf760e01b81525f6004820152602401610231565b61064681610675565b50565b5f546001600160a01b031633146104175760405163118cdaa760e01b8152336004820152602401610231565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6108fa8061094883390190565b5f606082840312156106e1575f5ffd5b6040516060810181811067ffffffffffffffff8211171561071057634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b80356001600160a01b03811681146103b5575f5ffd5b5f5f5f5f60a0858703121561075d575f5ffd5b843567ffffffffffffffff811115610773575f5ffd5b8501601f81018713610783575f5ffd5b803567ffffffffffffffff811115610799575f5ffd5b8760208284010111156107aa575f5ffd5b6020918201955093506107c090879087016106d1565b91506107ce60808601610734565b905092959194509250565b5f602082840312156107e9575f5ffd5b5035919050565b5f60208284031215610800575f5ffd5b61080982610734565b9392505050565b5f5f5f60608486031215610822575f5ffd5b61082b84610734565b925061083960208501610734565b915061084760408501610734565b90509250925092565b5f60608284031215610860575f5ffd5b61080983836106d1565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506108f960408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b5f81518060208401855e5f93019283525090919050565b5f61093f6109398386610914565b84610914565b94935050505056fe6080604052348015600e575f5ffd5b506040516108fa3803806108fa833981016040819052602b916032565b6001556048565b5f602082840312156041575f5ffd5b5051919050565b6108a5806100555f395ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c80633fb070271461004e5780635dc24ee31461007d578063994d0d3814610090578063bcd6c474146100a5575b5f5ffd5b600354610061906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610061906001600160a01b031681565b6100a361009e366004610751565b6100b8565b005b6100a36100b3366004610798565b610357565b5f5460ff16156101095760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b60448201526064015b60405180910390fd5b60015483511461015b5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610100565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf38916101b5919060040190815260200190565b602060405180830381865afa1580156101d0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101f4919061083e565b90506001600160a01b0381161580159061022b57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156102ca576002546040850151610250916001600160a01b0384811692911690610569565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b1580156102af575f5ffd5b505af11580156102c1573d5f5f3e3d5ffd5b50505050610345565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561032d575f5ffd5b505af115801561033f573d5f5f3e3d5ffd5b50505050505b50505f805460ff191660011790555050565b5f5460ff16156103a35760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610100565b6001600160a01b0385166103f95760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610100565b60015482511461044b5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610100565b60408201516001600160a01b0382161580159061048557506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104a85760408301516104a5906001600160a01b038416908890610569565b505f5b5f866001600160a01b03168287876040516104c4929190610860565b5f6040518083038185875af1925050503d805f81146104fe576040519150601f19603f3d011682016040523d82523d5f602084013e610503565b606091505b50509050806105545760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610100565b50505f805460ff191660011790555050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526105ba8482610622565b61061c57604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261061290859061066b565b61061c848261066b565b50505050565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610661575081156106535780600114610661565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af18061068a576040513d5f823e3d81fd5b50505f513d915081156106a15780600114156106ae565b6001600160a01b0384163b155b1561061c57604051635274afe760e01b81526001600160a01b0385166004820152602401610100565b5f606082840312156106e7575f5ffd5b6040516060810181811067ffffffffffffffff8211171561071657634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b6001600160a01b038116811461074e575f5ffd5b50565b5f5f5f60a08486031215610763575f5ffd5b61076d85856106d7565b9250606084013561077d8161073a565b9150608084013561078d8161073a565b809150509250925092565b5f5f5f5f5f60c086880312156107ac575f5ffd5b85356107b78161073a565b9450602086013567ffffffffffffffff8111156107d2575f5ffd5b8601601f810188136107e2575f5ffd5b803567ffffffffffffffff8111156107f8575f5ffd5b886020828401011115610809575f5ffd5b6020919091019450925061082087604088016106d7565b915060a08601356108308161073a565b809150509295509295909350565b5f6020828403121561084e575f5ffd5b81516108598161073a565b9392505050565b818382375f910190815291905056fea26469706673582212207321f439bbd3f41116bfe31e9272a655e2c52c61a59b8ad1f4caa1331dc20b6564736f6c634300081c0033a2646970667358221220469cc9ebb0be860583ce6271c5714b696f7f83bd5dc7df0218cf81b332b6577364736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610084575f3560e01c8063715018a611610057578063715018a614610133578063735f399d146101475780637377bbb41461015a5780638da5cb5b14610186578063f2fde38b146101a2575f5ffd5b80631d29b183146100885780633290c33b146100a95780633942b0ad146100e557806352982f3b14610114575b5f5ffd5b348015610093575f5ffd5b506100a76100a236600461074a565b6101c1565b005b3480156100b4575f5ffd5b506100c86100c33660046107d9565b61031f565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100f0575f5ffd5b506101046100ff3660046107f0565b61038d565b60405190151581526020016100dc565b34801561011f575f5ffd5b5061010461012e366004610810565b6103ba565b34801561013e575f5ffd5b506100a7610406565b6100a7610155366004610850565b610419565b348015610165575f5ffd5b506101796101743660046107d9565b6105a1565b6040516100dc919061086a565b348015610191575f5ffd5b505f546001600160a01b03166100c8565b3480156101ad575f5ffd5b506100a76101bc3660046107f0565b61060c565b6004546001600160a01b031661023a5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084015b60405180910390fd5b5f610247835f01516105a1565b90505f5f60015490508083516020850134f591506001600160a01b0382166102b15760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610231565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936102e9939216918c918c918c918c910161089f565b5f604051808303815f87803b158015610300575f5ffd5b505af1158015610312573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f61032a836105a1565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff19166021820152603581019390935260558084019290925280518084039092018252607590920190915280519101209392505050565b5f610396610649565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b5f6103c3610649565b50600280546001600160a01b039485166001600160a01b031991821617909155600380549385169382169390931790925560048054919093169116179055600190565b61040e610649565b6104175f610675565b565b6002546001600160a01b0316158061043a57506003546001600160a01b0316155b156104a45760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b6064820152608401610231565b5f6104b1825f01516105a1565b90505f5f60015490508083516020850134f591506001600160a01b03821661051b5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610231565b60035460025460408051631329a1a760e31b815287516004820152602088015160248201529087015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610585575f5ffd5b505af1158015610597573d5f5f3e3d5ffd5b5050505050505050565b60605f604051806020016105b4906106c4565b601f1982820381018352601f9091011660408181526020808301879052815180840390910181528183019091529192506105f4908390839060600161092b565b60405160208183030381529060405292505050919050565b610614610649565b6001600160a01b03811661063d57604051631e4fbdf760e01b81525f6004820152602401610231565b61064681610675565b50565b5f546001600160a01b031633146104175760405163118cdaa760e01b8152336004820152602401610231565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6108fa8061094883390190565b5f606082840312156106e1575f5ffd5b6040516060810181811067ffffffffffffffff8211171561071057634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b80356001600160a01b03811681146103b5575f5ffd5b5f5f5f5f60a0858703121561075d575f5ffd5b843567ffffffffffffffff811115610773575f5ffd5b8501601f81018713610783575f5ffd5b803567ffffffffffffffff811115610799575f5ffd5b8760208284010111156107aa575f5ffd5b6020918201955093506107c090879087016106d1565b91506107ce60808601610734565b905092959194509250565b5f602082840312156107e9575f5ffd5b5035919050565b5f60208284031215610800575f5ffd5b61080982610734565b9392505050565b5f5f5f60608486031215610822575f5ffd5b61082b84610734565b925061083960208501610734565b915061084760408501610734565b90509250925092565b5f60608284031215610860575f5ffd5b61080983836106d1565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506108f960408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b5f81518060208401855e5f93019283525090919050565b5f61093f6109398386610914565b84610914565b94935050505056fe6080604052348015600e575f5ffd5b506040516108fa3803806108fa833981016040819052602b916032565b6001556048565b5f602082840312156041575f5ffd5b5051919050565b6108a5806100555f395ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c80633fb070271461004e5780635dc24ee31461007d578063994d0d3814610090578063bcd6c474146100a5575b5f5ffd5b600354610061906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610061906001600160a01b031681565b6100a361009e366004610751565b6100b8565b005b6100a36100b3366004610798565b610357565b5f5460ff16156101095760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b60448201526064015b60405180910390fd5b60015483511461015b5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610100565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf38916101b5919060040190815260200190565b602060405180830381865afa1580156101d0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101f4919061083e565b90506001600160a01b0381161580159061022b57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156102ca576002546040850151610250916001600160a01b0384811692911690610569565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b1580156102af575f5ffd5b505af11580156102c1573d5f5f3e3d5ffd5b50505050610345565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561032d575f5ffd5b505af115801561033f573d5f5f3e3d5ffd5b50505050505b50505f805460ff191660011790555050565b5f5460ff16156103a35760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610100565b6001600160a01b0385166103f95760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610100565b60015482511461044b5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610100565b60408201516001600160a01b0382161580159061048557506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104a85760408301516104a5906001600160a01b038416908890610569565b505f5b5f866001600160a01b03168287876040516104c4929190610860565b5f6040518083038185875af1925050503d805f81146104fe576040519150601f19603f3d011682016040523d82523d5f602084013e610503565b606091505b50509050806105545760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610100565b50505f805460ff191660011790555050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526105ba8482610622565b61061c57604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261061290859061066b565b61061c848261066b565b50505050565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610661575081156106535780600114610661565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af18061068a576040513d5f823e3d81fd5b50505f513d915081156106a15780600114156106ae565b6001600160a01b0384163b155b1561061c57604051635274afe760e01b81526001600160a01b0385166004820152602401610100565b5f606082840312156106e7575f5ffd5b6040516060810181811067ffffffffffffffff8211171561071657634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b6001600160a01b038116811461074e575f5ffd5b50565b5f5f5f60a08486031215610763575f5ffd5b61076d85856106d7565b9250606084013561077d8161073a565b9150608084013561078d8161073a565b809150509250925092565b5f5f5f5f5f60c086880312156107ac575f5ffd5b85356107b78161073a565b9450602086013567ffffffffffffffff8111156107d2575f5ffd5b8601601f810188136107e2575f5ffd5b803567ffffffffffffffff8111156107f8575f5ffd5b886020828401011115610809575f5ffd5b6020919091019450925061082087604088016106d7565b915060a08601356108308161073a565b809150509295509295909350565b5f6020828403121561084e575f5ffd5b81516108598161073a565b9392505050565b818382375f910190815291905056fea26469706673582212207321f439bbd3f41116bfe31e9272a655e2c52c61a59b8ad1f4caa1331dc20b6564736f6c634300081c0033a2646970667358221220469cc9ebb0be860583ce6271c5714b696f7f83bd5dc7df0218cf81b332b6577364736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-9ae30e9ac1e187cf29a0e8d910ce4e4b4fbc63a7"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/PortalFactoryModule#PortalFactory.json b/ignition/deployments/production_arbitrum/artifacts/PortalFactoryModule#PortalFactory.json
deleted file mode 100644
index 467c840..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/PortalFactoryModule#PortalFactory.json
+++ /dev/null
@@ -1,256 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/artifacts/TokenBridgeModule#TokenBridge.json b/ignition/deployments/production_arbitrum/artifacts/TokenBridgeModule#TokenBridge.json
deleted file mode 100644
index 0ca6446..0000000
--- a/ignition/deployments/production_arbitrum/artifacts/TokenBridgeModule#TokenBridge.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "TokenBridge",
- "sourceName": "contracts/smart-account/TokenBridge.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "_lifiDiamondAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- }
- ],
- "name": "bridgeFullBalance",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405234801561000f575f5ffd5b5060405161068f38038061068f83398101604081905261002e9161003f565b6001600160a01b031660805261006c565b5f6020828403121561004f575f5ffd5b81516001600160a01b0381168114610065575f5ffd5b9392505050565b6080516105f161009e5f395f8181603d015281816092015281816101d1015281816101f901526102d301526105f15ff3fe608060405234801561000f575f5ffd5b5060043610610034575f3560e01c80632b8c45ca14610038578063bfe24a741461007b575b5f5ffd5b61005f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b61008e61008936600461050a565b610090565b005b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166101165760405162461bcd60e51b815260206004820152602260248201527f546f6b656e4272696467653a20496e76616c6964204c492e4649206164647265604482015261737360f01b60648201526084015b60405180910390fd5b6001600160a01b0383161580159061014b57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156102c9576040516370a0823160e01b815230600482015283905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610196573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101ba9190610595565b905080156102c2576101f66001600160a01b0383167f0000000000000000000000000000000000000000000000000000000000000000836103a2565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031685856040516102319291906105ac565b5f604051808303815f865af19150503d805f811461026a576040519150601f19603f3d011682016040523d82523d5f602084013e61026f565b606091505b50509050806102c05760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b505b5050505050565b47801561039c575f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682858560405161030c9291906105ac565b5f6040518083038185875af1925050503d805f8114610346576040519150601f19603f3d011682016040523d82523d5f602084013e61034b565b606091505b50509050806102c25760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526103f38482610455565b61039c57604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261044b90859061049e565b61039c848261049e565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610494575081156104865780600114610494565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af1806104bd576040513d5f823e3d81fd5b50505f513d915081156104d45780600114156104e1565b6001600160a01b0384163b155b1561039c57604051635274afe760e01b81526001600160a01b038516600482015260240161010d565b5f5f5f6040848603121561051c575f5ffd5b83356001600160a01b0381168114610532575f5ffd5b9250602084013567ffffffffffffffff81111561054d575f5ffd5b8401601f8101861361055d575f5ffd5b803567ffffffffffffffff811115610573575f5ffd5b866020828401011115610584575f5ffd5b939660209190910195509293505050565b5f602082840312156105a5575f5ffd5b5051919050565b818382375f910190815291905056fea264697066735822122024b79e0e8ad787a3d9372fa489b74bacaa38a30e0b87794cfbd941ed4010f11664736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610034575f3560e01c80632b8c45ca14610038578063bfe24a741461007b575b5f5ffd5b61005f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b61008e61008936600461050a565b610090565b005b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166101165760405162461bcd60e51b815260206004820152602260248201527f546f6b656e4272696467653a20496e76616c6964204c492e4649206164647265604482015261737360f01b60648201526084015b60405180910390fd5b6001600160a01b0383161580159061014b57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156102c9576040516370a0823160e01b815230600482015283905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610196573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101ba9190610595565b905080156102c2576101f66001600160a01b0383167f0000000000000000000000000000000000000000000000000000000000000000836103a2565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031685856040516102319291906105ac565b5f604051808303815f865af19150503d805f811461026a576040519150601f19603f3d011682016040523d82523d5f602084013e61026f565b606091505b50509050806102c05760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b505b5050505050565b47801561039c575f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682858560405161030c9291906105ac565b5f6040518083038185875af1925050503d805f8114610346576040519150601f19603f3d011682016040523d82523d5f602084013e61034b565b606091505b50509050806102c25760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526103f38482610455565b61039c57604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261044b90859061049e565b61039c848261049e565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610494575081156104865780600114610494565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af1806104bd576040513d5f823e3d81fd5b50505f513d915081156104d45780600114156104e1565b6001600160a01b0384163b155b1561039c57604051635274afe760e01b81526001600160a01b038516600482015260240161010d565b5f5f5f6040848603121561051c575f5ffd5b83356001600160a01b0381168114610532575f5ffd5b9250602084013567ffffffffffffffff81111561054d575f5ffd5b8401601f8101861361055d575f5ffd5b803567ffffffffffffffff811115610573575f5ffd5b866020828401011115610584575f5ffd5b939660209190910195509293505050565b5f602082840312156105a5575f5ffd5b5051919050565b818382375f910190815291905056fea264697066735822122024b79e0e8ad787a3d9372fa489b74bacaa38a30e0b87794cfbd941ed4010f11664736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "657": [
- {
- "length": 32,
- "start": 61
- },
- {
- "length": 32,
- "start": 146
- },
- {
- "length": 32,
- "start": 465
- },
- {
- "length": 32,
- "start": 505
- },
- {
- "length": 32,
- "start": 723
- }
- ]
- },
- "inputSourceName": "project/contracts/smart-account/TokenBridge.sol",
- "buildInfoId": "solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03.json b/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03.json
deleted file mode 100644
index d5575ec..0000000
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03.json
+++ /dev/null
@@ -1,134 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV1.sol": "project/contracts/vault/CurvyVaultV1.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/ECDSA.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.20;\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 }\n\n /**\n * @dev The signature derives the `address(0)`.\n */\n error ECDSAInvalidSignature();\n\n /**\n * @dev The signature has an invalid length.\n */\n error ECDSAInvalidSignatureLength(uint256 length);\n\n /**\n * @dev The signature has an S value that is in the upper half order.\n */\n error ECDSAInvalidSignatureS(bytes32 s);\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\n * and a bytes32 providing additional information about the error.\n *\n * If no error is returned, then the address can be used for verification purposes.\n *\n * The `ecrecover` EVM precompile 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 {MessageHashUtils-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 function tryRecover(\n bytes32 hash,\n bytes memory signature\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 (\"memory-safe\") {\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 {\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\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 precompile 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 {MessageHashUtils-toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\n _throwError(error, errorArg);\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[ERC-2098 short signatures]\n */\n function tryRecover(\n bytes32 hash,\n bytes32 r,\n bytes32 vs\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\n unchecked {\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n // We do not check for an overflow here since the shift operation results in 0 or 1.\n uint8 v = uint8((uint256(vs) >> 255) + 27);\n return tryRecover(hash, v, r, s);\n }\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n */\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\n _throwError(error, errorArg);\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 function tryRecover(\n bytes32 hash,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 ÷ 2 + 1, and for v in (302): v ∈ {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, s);\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, bytes32(0));\n }\n\n return (signer, RecoverError.NoError, bytes32(0));\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `v`,\n * `r` and `s` signature fields separately.\n */\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\n _throwError(error, errorArg);\n return recovered;\n }\n\n /**\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\n */\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\n if (error == RecoverError.NoError) {\n return; // no error: do nothing\n } else if (error == RecoverError.InvalidSignature) {\n revert ECDSAInvalidSignature();\n } else if (error == RecoverError.InvalidSignatureLength) {\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\n } else if (error == RecoverError.InvalidSignatureS) {\n revert ECDSAInvalidSignatureS(errorArg);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {Withdraw, Transfer, Deposit}\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV1.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { EIP712Upgradeable } from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { ECDSA } from \"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\";\nimport \"./ICurvyVault.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract CurvyVaultV1 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 constant private ETH_ID = 0x1;\n address constant private ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 constant private FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH = keccak256(\"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\");\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"1.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Private functions\n\n function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {\n bytes32 structHash = keccak256(\n abi.encode(\n CURVY_META_TRANSACTION_TYPE_HASH,\n _nonces[metaTransaction.from],\n metaTransaction.from,\n metaTransaction.to,\n metaTransaction.tokenId,\n metaTransaction.amount,\n metaTransaction.gasFee,\n metaTransaction.metaTransactionType\n )\n );\n\n // Add domain data to the hash\n bytes32 hash = _hashTypedDataV4(structHash);\n\n // Check that the metaTransaction is signed by metaTransaction.from\n address signer = ECDSA.recover(hash, signature);\n require(signer == metaTransaction.from, \"CurvyVault#_validateSignature: Invalid signature!\");\n\n // Increment nonce\n _nonces[signer]++;\n emit NonceChange(signer, _nonces[signer]);\n }\n\n function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_transfer: Invalid recipient for transfer!\");\n require(metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Transfer, \"CurvyVault#transfer: Wrong type for meta transaction!\");\n\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.to][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (transferFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);\n }\n\n function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_withdraw: Invalid withdraw recipient!\");\n require(metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw, \"CurvyVault#withdraw: Wrong type for meta transaction!\");\n\n // Burn wrapped tokens\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (withdrawalFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n // Withdraw\n if (metaTransaction.tokenId != ETH_ID) { // We are withdrawing ERC20s\n address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];\n IERC20(tokenAddress).safeTransfer(metaTransaction.to, metaTransaction.amount);\n } else { // We are withdrawing ETH\n (bool success,) = metaTransaction.to.call{value: metaTransaction.amount}(\"\");\n require(success, \"CurvyVault#_withdraw: ETH withdrawal failed!\");\n }\n\n emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);\n }\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n require(_tokenAddressToTokenId[tokenAddress] == 0, \"CurvyVault#registerToken: Token already registered!\");\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {\n if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {\n depositFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {\n transferFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {\n withdrawalFee = fee;\n } else {\n revert(\"CurvyVault#setFeeAmount: Unknown fee type!\");\n }\n\n emit FeeChange(metaTransactionType, fee);\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n require(to != address(0x0), \"CurvyVault#deposit: Invalid recipient for deposit!\");\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) { // We are depositing ERC20\n require(msg.value == 0, \"CurvyVault#deposit: Don't send ETH with ERC20 deposit!\");\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault#deposit: Token address not registered!\");\n } else { // We are depositing ETH\n require(amount == msg.value, \"CurvyVault#deposit: Incorrect deposit value!\");\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)\n if (gasSponsorshipAmount != 0) {\n _balances[to][tokenId] -= gasSponsorshipAmount;\n _balances[owner()][tokenId] += gasSponsorshipAmount;\n }\n\n emit Transfer(address(0x0), to, tokenId, amount);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n require(msg.sender == metaTransaction.from, \"CurvyVault#transfer: Invalid msg.sender!\");\n require(metaTransaction.gasFee == 0, \"CurvyVault#transfer: gasFee must be 0 when not relaying metaTransaction for others!\");\n\n _transfer(metaTransaction);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _transfer(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n require(msg.sender == metaTransaction.from, \"CurvyVault#withdraw: Invalid msg.sender!\");\n require(metaTransaction.gasFee == 0, \"CurvyVault#withdraw: gasFee must be 0 when not relaying metaTransaction for others!\");\n\n _withdraw(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _withdraw(metaTransaction);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n require(tokenAddress != address(0x0), \"CurvyVault:#getIdAddress: Unregistered token!\");\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault:#getTokenID: Unregistered token!\");\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n function balanceOfBatch(address[] memory owners, uint256[] memory tokenIds) external view returns (uint256[] memory) {\n require(owners.length == tokenIds.length, \"CurvyVault#balanceOfBatch: Invalid array length!\");\n\n // Variables\n uint256[] memory batchBalances = new uint256[](owners.length);\n\n // Iterate over each owner and token ID\n for (uint256 i = 0; i < owners.length; i++) {\n batchBalances[i] = _balances[owners[i]][tokenIds[i]];\n }\n\n return batchBalances;\n }\n\n function getNonce(address _signer) external view returns (uint256 nonce)\n {\n return _nonces[_signer];\n }\n\n //#endregion\n}"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe.json b/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe.json
deleted file mode 100644
index 78d979b..0000000
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe.json
+++ /dev/null
@@ -1,134 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV3.sol": "project/contracts/vault/CurvyVaultV3.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/ECDSA.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.20;\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 }\n\n /**\n * @dev The signature derives the `address(0)`.\n */\n error ECDSAInvalidSignature();\n\n /**\n * @dev The signature has an invalid length.\n */\n error ECDSAInvalidSignatureLength(uint256 length);\n\n /**\n * @dev The signature has an S value that is in the upper half order.\n */\n error ECDSAInvalidSignatureS(bytes32 s);\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\n * and a bytes32 providing additional information about the error.\n *\n * If no error is returned, then the address can be used for verification purposes.\n *\n * The `ecrecover` EVM precompile 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 {MessageHashUtils-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 function tryRecover(\n bytes32 hash,\n bytes memory signature\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 (\"memory-safe\") {\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 {\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\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 precompile 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 {MessageHashUtils-toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\n _throwError(error, errorArg);\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[ERC-2098 short signatures]\n */\n function tryRecover(\n bytes32 hash,\n bytes32 r,\n bytes32 vs\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\n unchecked {\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n // We do not check for an overflow here since the shift operation results in 0 or 1.\n uint8 v = uint8((uint256(vs) >> 255) + 27);\n return tryRecover(hash, v, r, s);\n }\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n */\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\n _throwError(error, errorArg);\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 function tryRecover(\n bytes32 hash,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 ÷ 2 + 1, and for v in (302): v ∈ {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, s);\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, bytes32(0));\n }\n\n return (signer, RecoverError.NoError, bytes32(0));\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `v`,\n * `r` and `s` signature fields separately.\n */\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\n _throwError(error, errorArg);\n return recovered;\n }\n\n /**\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\n */\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\n if (error == RecoverError.NoError) {\n return; // no error: do nothing\n } else if (error == RecoverError.InvalidSignature) {\n revert ECDSAInvalidSignature();\n } else if (error == RecoverError.InvalidSignatureLength) {\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\n } else if (error == RecoverError.InvalidSignatureS) {\n revert ECDSAInvalidSignatureS(errorArg);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV3.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { EIP712Upgradeable } from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { ECDSA } from \"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\";\nimport \"./ICurvyVault.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract CurvyVaultV3 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH =\n keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"2.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Private functions\n\n function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {\n bytes32 structHash = keccak256(\n abi.encode(\n CURVY_META_TRANSACTION_TYPE_HASH,\n _nonces[metaTransaction.from],\n metaTransaction.from,\n metaTransaction.to,\n metaTransaction.tokenId,\n metaTransaction.amount,\n metaTransaction.gasFee,\n metaTransaction.metaTransactionType\n )\n );\n\n // Add domain data to the hash\n bytes32 hash = _hashTypedDataV4(structHash);\n\n // Check that the metaTransaction is signed by metaTransaction.from\n address signer = ECDSA.recover(hash, signature);\n require(signer == metaTransaction.from, \"CurvyVault#_validateSignature: Invalid signature!\");\n\n // Increment nonce\n _nonces[signer]++;\n emit NonceChange(signer, _nonces[signer]);\n }\n\n function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n if (metaTransaction.to == address(0)) revert InvalidRecipient();\n if (metaTransaction.metaTransactionType != CurvyTypes.MetaTransactionType.Transfer)\n revert InvalidTransactionType();\n\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.to][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (transferFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);\n }\n\n function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_withdraw: Invalid withdraw recipient!\");\n require(\n metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,\n \"CurvyVault#withdraw: Wrong type for meta transaction!\"\n );\n\n // Burn wrapped tokens\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n\n uint256 amountAfterFees = metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n amountAfterFees -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (withdrawalFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;\n amountAfterFees -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n // Withdraw\n if (metaTransaction.tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];\n IERC20(tokenAddress).safeTransfer(metaTransaction.to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success, ) = metaTransaction.to.call{ value: amountAfterFees }(\"\");\n require(success, \"CurvyVault#_withdraw: ETH withdrawal failed!\");\n }\n\n emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);\n }\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n require(_tokenAddressToTokenId[tokenAddress] == 0, \"CurvyVault#registerToken: Token already registered!\");\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {\n if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {\n depositFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {\n transferFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {\n withdrawalFee = fee;\n } else {\n revert(\"CurvyVault#setFeeAmount: Unknown fee type!\");\n }\n\n emit FeeChange(metaTransactionType, fee);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n\n require(msg.sender == _curvyAggregator, \"Only CurvyAggregator can do vault deposits through portal autoShield\");\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n require(msg.value == 0, \"CurvyVault#deposit: Don't send ETH with ERC20 deposit!\");\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n } else {\n // We are depositing ETH\n require(amount == msg.value, \"CurvyVault#deposit: Incorrect deposit value!\");\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)\n if (gasSponsorshipAmount != 0) {\n _balances[to][tokenId] -= gasSponsorshipAmount;\n _balances[owner()][tokenId] += gasSponsorshipAmount;\n }\n\n emit Transfer(address(0x0), to, tokenId, amount);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _transfer(metaTransaction);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _transfer(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _withdraw(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _withdraw(metaTransaction);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n require(tokenAddress != address(0x0), \"CurvyVault:#getIdAddress: Unregistered token!\");\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault:#getTokenID: Unregistered token!\");\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n function balanceOfBatch(\n address[] memory owners,\n uint256[] memory tokenIds\n ) external view returns (uint256[] memory) {\n require(owners.length == tokenIds.length, \"CurvyVault#balanceOfBatch: Invalid array length!\");\n\n // Variables\n uint256[] memory batchBalances = new uint256[](owners.length);\n\n // Iterate over each owner and token ID\n for (uint256 i = 0; i < owners.length; i++) {\n batchBalances[i] = _balances[owners[i]][tokenIds[i]];\n }\n\n return batchBalances;\n }\n\n function getNonce(address _signer) external view returns (uint256 nonce) {\n return _nonces[_signer];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-3a19216336357ee9e58c9163cd4bbaea062085e2.json b/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-3a19216336357ee9e58c9163cd4bbaea062085e2.json
deleted file mode 100644
index fcb6798..0000000
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-3a19216336357ee9e58c9163cd4bbaea062085e2.json
+++ /dev/null
@@ -1,134 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-3a19216336357ee9e58c9163cd4bbaea062085e2",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV2.sol": "project/contracts/vault/CurvyVaultV2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/ECDSA.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.20;\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 }\n\n /**\n * @dev The signature derives the `address(0)`.\n */\n error ECDSAInvalidSignature();\n\n /**\n * @dev The signature has an invalid length.\n */\n error ECDSAInvalidSignatureLength(uint256 length);\n\n /**\n * @dev The signature has an S value that is in the upper half order.\n */\n error ECDSAInvalidSignatureS(bytes32 s);\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\n * and a bytes32 providing additional information about the error.\n *\n * If no error is returned, then the address can be used for verification purposes.\n *\n * The `ecrecover` EVM precompile 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 {MessageHashUtils-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 function tryRecover(\n bytes32 hash,\n bytes memory signature\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 (\"memory-safe\") {\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 {\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\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 precompile 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 {MessageHashUtils-toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\n _throwError(error, errorArg);\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[ERC-2098 short signatures]\n */\n function tryRecover(\n bytes32 hash,\n bytes32 r,\n bytes32 vs\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\n unchecked {\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n // We do not check for an overflow here since the shift operation results in 0 or 1.\n uint8 v = uint8((uint256(vs) >> 255) + 27);\n return tryRecover(hash, v, r, s);\n }\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n */\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\n _throwError(error, errorArg);\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 function tryRecover(\n bytes32 hash,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 ÷ 2 + 1, and for v in (302): v ∈ {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, s);\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, bytes32(0));\n }\n\n return (signer, RecoverError.NoError, bytes32(0));\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `v`,\n * `r` and `s` signature fields separately.\n */\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\n _throwError(error, errorArg);\n return recovered;\n }\n\n /**\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\n */\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\n if (error == RecoverError.NoError) {\n return; // no error: do nothing\n } else if (error == RecoverError.InvalidSignature) {\n revert ECDSAInvalidSignature();\n } else if (error == RecoverError.InvalidSignatureLength) {\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\n } else if (error == RecoverError.InvalidSignatureS) {\n revert ECDSAInvalidSignatureS(errorArg);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { EIP712Upgradeable } from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { ECDSA } from \"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\";\nimport \"./ICurvyVault.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract CurvyVaultV2 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH =\n keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"2.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Private functions\n\n function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {\n bytes32 structHash = keccak256(\n abi.encode(\n CURVY_META_TRANSACTION_TYPE_HASH,\n _nonces[metaTransaction.from],\n metaTransaction.from,\n metaTransaction.to,\n metaTransaction.tokenId,\n metaTransaction.amount,\n metaTransaction.gasFee,\n metaTransaction.metaTransactionType\n )\n );\n\n // Add domain data to the hash\n bytes32 hash = _hashTypedDataV4(structHash);\n\n // Check that the metaTransaction is signed by metaTransaction.from\n address signer = ECDSA.recover(hash, signature);\n require(signer == metaTransaction.from, \"CurvyVault#_validateSignature: Invalid signature!\");\n\n // Increment nonce\n _nonces[signer]++;\n emit NonceChange(signer, _nonces[signer]);\n }\n\n function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n if (metaTransaction.to == address(0)) revert InvalidRecipient();\n if (metaTransaction.metaTransactionType != CurvyTypes.MetaTransactionType.Transfer)\n revert InvalidTransactionType();\n\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.to][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (transferFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);\n }\n\n function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_withdraw: Invalid withdraw recipient!\");\n require(\n metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,\n \"CurvyVault#withdraw: Wrong type for meta transaction!\"\n );\n\n // Burn wrapped tokens\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n\n uint256 amountAfterFees = metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n amountAfterFees -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (withdrawalFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;\n amountAfterFees -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n // Withdraw\n if (metaTransaction.tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];\n IERC20(tokenAddress).safeTransfer(metaTransaction.to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success, ) = metaTransaction.to.call{ value: amountAfterFees }(\"\");\n require(success, \"CurvyVault#_withdraw: ETH withdrawal failed!\");\n }\n\n emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);\n }\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n require(_tokenAddressToTokenId[tokenAddress] == 0, \"CurvyVault#registerToken: Token already registered!\");\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {\n if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {\n depositFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {\n transferFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {\n withdrawalFee = fee;\n } else {\n revert(\"CurvyVault#setFeeAmount: Unknown fee type!\");\n }\n\n emit FeeChange(metaTransactionType, fee);\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n require(msg.value == 0, \"CurvyVault#deposit: Don't send ETH with ERC20 deposit!\");\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n } else {\n // We are depositing ETH\n require(amount == msg.value, \"CurvyVault#deposit: Incorrect deposit value!\");\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)\n if (gasSponsorshipAmount != 0) {\n _balances[to][tokenId] -= gasSponsorshipAmount;\n _balances[owner()][tokenId] += gasSponsorshipAmount;\n }\n\n emit Transfer(address(0x0), to, tokenId, amount);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _transfer(metaTransaction);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _transfer(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _withdraw(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _withdraw(metaTransaction);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n require(tokenAddress != address(0x0), \"CurvyVault:#getIdAddress: Unregistered token!\");\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault:#getTokenID: Unregistered token!\");\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n function balanceOfBatch(\n address[] memory owners,\n uint256[] memory tokenIds\n ) external view returns (uint256[] memory) {\n require(owners.length == tokenIds.length, \"CurvyVault#balanceOfBatch: Invalid array length!\");\n\n // Variables\n uint256[] memory batchBalances = new uint256[](owners.length);\n\n // Iterate over each owner and token ID\n for (uint256 i = 0; i < owners.length; i++) {\n batchBalances[i] = _balances[owners[i]][tokenIds[i]];\n }\n\n return batchBalances;\n }\n\n function getNonce(address _signer) external view returns (uint256 nonce) {\n return _nonces[_signer];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json b/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
deleted file mode 100644
index 272c9d5..0000000
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-4a46905cb0ef27b38c7e0fb5d602c4ea92ab12b2.json b/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-4a46905cb0ef27b38c7e0fb5d602c4ea92ab12b2.json
deleted file mode 100644
index 07838c7..0000000
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-4a46905cb0ef27b38c7e0fb5d602c4ea92ab12b2.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4a46905cb0ef27b38c7e0fb5d602c4ea92ab12b2",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n constructor(uint256 ownerHash) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress = curvyVault.getTokenAddress(note.token);\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function initializeConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function updateLifiDiamondAddress(address lifiDiamondAddress) external onlyOwner returns (bool) {\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function getCreationCode(uint256 ownerHash) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(bytes calldata bridgeData, CurvyTypes.Note memory note, address tokenAddress) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
deleted file mode 100644
index 4b57fc4..0000000
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/devenv/ICreateX.sol": {
- "content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10.json b/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10.json
deleted file mode 100644
index e1581a6..0000000
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { PoseidonT4} from \"./utils/PoseidonT4.sol\";\n\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { ICurvyInsertionVerifier, ICurvyAggregationVerifier, ICurvyWithdrawVerifier } from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV1 is Initializable, UUPSUpgradeable, OwnableUpgradeable {\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner, address curvyVaultProxyAddress) public initializer {\n maxDeposits = 2;\n maxWithdrawals = 2;\n maxAggregations = 2;\n\n __Ownable_init(initialOwner);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdate memory _update) external onlyOwner returns (bool)\n {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);\n }\n // TODO: We probably don't need this.\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVault(_update.curvyVault);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function depositNote(\n address from,\n CurvyTypes.Note memory note,\n bytes memory signature\n ) public {\n // TODO: Gas fee\n curvyVault.transfer(CurvyTypes.MetaTransaction(from, address(this), note.token, note.amount, 0, CurvyTypes.MetaTransactionType.Transfer), signature);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n require(_pendingIdsQueue[noteId], \"CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!\");\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n require(\n _notesTreeRoot == publicInputs[numPublicInputs - 2],\n \"CurvyAggregator#commitDepositBatch: Invalid notes root!\"\n );\n\n require(\n insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitDepositBatch: Invalid proof!\"\n );\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n require(_notesTreeRoot == oldNotesTreeRoot, \"CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!\");\n require(_nullifiersTreeRoot == oldNullifiersTreeRoot, \"CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!\");\n\n require(\n aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitAggregationBatch: Invalid proof!\"\n );\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[10] memory publicInputs\n ) public returns (bool) {\n\n require(publicInputs[3] == _nullifiersTreeRoot, \"CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!\");\n require(publicInputs[2] == _notesTreeRoot, \"CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!\");\n\n require(\n withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!\"\n );\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[4 + i];\n address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n destinationAddress,\n publicInputs[numPublicInputs - 1],\n amount,\n 0,\n CurvyTypes.MetaTransactionType.Withdraw\n )\n );\n }\n }\n\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n owner(),\n publicInputs[numPublicInputs - 1],\n publicInputs[1],\n 0,\n CurvyTypes.MetaTransactionType.Withdraw\n )\n );\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {Withdraw, Transfer, Deposit}\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e.json b/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e.json
deleted file mode 100644
index 6e1588a..0000000
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport \"../portal/IPortalFactory.sol\";\nimport {\nICurvyInsertionVerifier,\nICurvyAggregationVerifier,\nICurvyWithdrawVerifier,\nICurvyWithdrawVerifierV3\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"./ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVaultV3} from \"../vault/ICurvyVaultV3.sol\";\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {PoseidonT4} from \"./utils/PoseidonT4.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV6 is ICurvyAggregatorAlphaV2, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations in one aggregation batch proof\n uint256 public maxAggregations;\n // Maximum number of withdrawals in one withdrawal batch proof\n uint256 public maxWithdrawals;\n\n // Queue of commited note ids waiting for proof verification and deposit batch commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVaultV3 public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifierV3 public withdrawVerifier;\n\n // Curvy's portal factory contract;\n IPortalFactory public portalFactory;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n __Ownable_init(initialOwner);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdateV2 memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifierV3(_update.withdrawVerifier);\n }\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVaultV3(_update.curvyVault);\n }\n if (_update.portalFactory != address(0)) {\n portalFactory = IPortalFactory(_update.portalFactory);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n /*\n * @dev This function allows the owner to reset the roots of the notes and nullifiers trees to a known state.\n * @notice Only to be used in emergency cases where the contract is in a bad state and cannot be recovered\n * through normal operation (i.e. proof verification and batch commitments).\n */\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable {\n // Only allow auto shielding of portals that were deployed through the portalFactory\n if (!portalFactory.portalIsRegistered(msg.sender)) revert PortalNotRegistered();\n\n // This will revert if tokenId is not found.\n address tokenAddress = curvyVault.getTokenAddress(note.token);\n\n if (tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);\n IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);\n }\n\n curvyVault.deposit{value: msg.value}(tokenAddress, address(this), note.amount);\n\n uint256 feeAmount = note.amount * curvyVault.depositFee() / 10000;\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount - feeAmount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n if (!_pendingIdsQueue[noteId]) revert NoteNotScheduledForDeposit();\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n if (_notesTreeRoot != publicInputs[numPublicInputs - 2]) revert InvalidNotesRoot();\n\n if (!insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n if (_notesTreeRoot != oldNotesTreeRoot) revert CurrentNoteTreeRootMismatch();\n if (_nullifiersTreeRoot != oldNullifiersTreeRoot) revert CurrentNullifierTreeRootMismatch();\n\n if (!aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[9] memory publicInputs\n ) public {\n if (publicInputs[2] != _nullifiersTreeRoot) {\n revert CurrentNullifierTreeRootMismatch();\n }\n if (publicInputs[1] != _notesTreeRoot) revert CurrentNoteTreeRootMismatch();\n\n if (!withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[3 + i];\n address destinationAddress = address(uint160(publicInputs[3 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.withdraw(\n publicInputs[numPublicInputs - 1], // tokenId\n destinationAddress,\n amount\n );\n }\n }\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifiersTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\ninterface ICurvyWithdrawVerifierV3 {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[9] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV3.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV3 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenDeregistered(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAlreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount) external payable;\n function deregisterToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n function depositFee() external view returns (uint96);\n function withdrawalFee() external view returns (uint96);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json b/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
deleted file mode 100644
index 156f127..0000000
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n // TODO: Emit shielding failed and if that event is detected in the simulation, then we will mark the shielding as failed.\n return; // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
deleted file mode 100644
index 6ea1fae..0000000
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c.json b/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c.json
deleted file mode 100644
index af16376..0000000
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/smart-account/TokenBridge.sol": "project/contracts/smart-account/TokenBridge.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/smart-account/TokenBridge.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\ncontract TokenBridge {\n using SafeERC20 for IERC20;\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n address public immutable _lifiDiamondAddress;\n\n constructor(address lifiDiamondAddress) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n function bridgeFullBalance(address tokenAddress, bytes calldata bridgeData) external {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"TokenBridge: Invalid LI.FI address\");\n }\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20 token = IERC20(tokenAddress);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance > 0) {\n token.forceApprove(_lifiDiamondAddress, balance);\n (bool success, ) = _lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert(\"TokenBridge: Bridge call failed\");\n }\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance > 0) {\n (bool success, ) = _lifiDiamondAddress.call{ value: balance }(bridgeData);\n\n if (!success) {\n revert(\"TokenBridge: Bridge call failed\");\n }\n }\n }\n }\n}"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-96b1f146962f0bd5475b352d77ae5331b364780c.json b/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-96b1f146962f0bd5475b352d77ae5331b364780c.json
deleted file mode 100644
index 193e30d..0000000
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-96b1f146962f0bd5475b352d77ae5331b364780c.json
+++ /dev/null
@@ -1,112 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-96b1f146962f0bd5475b352d77ae5331b364780c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { PoseidonT4 } from \"./utils/PoseidonT4.sol\";\n\nimport { ICurvyAggregatorAlpha } from \"./ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport {\n ICurvyInsertionVerifier,\n ICurvyAggregationVerifier,\n ICurvyWithdrawVerifier\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV3 is ICurvyAggregatorAlpha, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner, address curvyVaultProxyAddress) public initializer {\n maxDeposits = 2;\n maxWithdrawals = 2;\n maxAggregations = 2;\n\n __Ownable_init(initialOwner);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdate memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);\n }\n // TODO: We probably don't need this.\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVault(_update.curvyVault);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable {\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);\n IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);\n }\n\n curvyVault.deposit{ value: msg.value }(tokenAddress, address(this), note.amount, 0);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function depositNote(address from, CurvyTypes.Note memory note, bytes memory signature) public {\n // TODO: Gas fee\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n from,\n address(this),\n note.token,\n note.amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n ),\n signature\n );\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n require(\n _pendingIdsQueue[noteId],\n \"CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!\"\n );\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n require(\n _notesTreeRoot == publicInputs[numPublicInputs - 2],\n \"CurvyAggregator#commitDepositBatch: Invalid notes root!\"\n );\n\n require(\n insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitDepositBatch: Invalid proof!\"\n );\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n require(\n _notesTreeRoot == oldNotesTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!\"\n );\n require(\n _nullifiersTreeRoot == oldNullifiersTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!\"\n );\n\n require(\n aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitAggregationBatch: Invalid proof!\"\n );\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[10] memory publicInputs\n ) public returns (bool) {\n require(\n publicInputs[3] == _nullifiersTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!\"\n );\n require(\n publicInputs[2] == _notesTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!\"\n );\n\n require(\n withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!\"\n );\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[4 + i];\n address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n destinationAddress,\n publicInputs[numPublicInputs - 1],\n amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n }\n }\n\n // Fee collection\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n owner(),\n publicInputs[numPublicInputs - 1],\n publicInputs[1],\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-9ae30e9ac1e187cf29a0e8d910ce4e4b4fbc63a7.json b/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-9ae30e9ac1e187cf29a0e8d910ce4e4b4fbc63a7.json
deleted file mode 100644
index a0d7679..0000000
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-9ae30e9ac1e187cf29a0e8d910ce4e4b4fbc63a7.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-9ae30e9ac1e187cf29a0e8d910ce4e4b4fbc63a7",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n constructor(uint256 ownerHash) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress = curvyVault.getTokenAddress(note.token);\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function initializeConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function updateLifiDiamondAddress(address lifiDiamondAddress) external onlyOwner returns (bool) {\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function getCreationCode(uint256 ownerHash) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(bytes calldata bridgeData, CurvyTypes.Note memory note, address tokenAddress) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c.json b/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c.json
deleted file mode 100644
index acd3a77..0000000
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c.json
+++ /dev/null
@@ -1,134 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV4.sol": "project/contracts/vault/CurvyVaultV4.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/ECDSA.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.20;\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 }\n\n /**\n * @dev The signature derives the `address(0)`.\n */\n error ECDSAInvalidSignature();\n\n /**\n * @dev The signature has an invalid length.\n */\n error ECDSAInvalidSignatureLength(uint256 length);\n\n /**\n * @dev The signature has an S value that is in the upper half order.\n */\n error ECDSAInvalidSignatureS(bytes32 s);\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\n * and a bytes32 providing additional information about the error.\n *\n * If no error is returned, then the address can be used for verification purposes.\n *\n * The `ecrecover` EVM precompile 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 {MessageHashUtils-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 function tryRecover(\n bytes32 hash,\n bytes memory signature\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 (\"memory-safe\") {\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 {\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\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 precompile 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 {MessageHashUtils-toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\n _throwError(error, errorArg);\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[ERC-2098 short signatures]\n */\n function tryRecover(\n bytes32 hash,\n bytes32 r,\n bytes32 vs\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\n unchecked {\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n // We do not check for an overflow here since the shift operation results in 0 or 1.\n uint8 v = uint8((uint256(vs) >> 255) + 27);\n return tryRecover(hash, v, r, s);\n }\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n */\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\n _throwError(error, errorArg);\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 function tryRecover(\n bytes32 hash,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 ÷ 2 + 1, and for v in (302): v ∈ {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, s);\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, bytes32(0));\n }\n\n return (signer, RecoverError.NoError, bytes32(0));\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `v`,\n * `r` and `s` signature fields separately.\n */\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\n _throwError(error, errorArg);\n return recovered;\n }\n\n /**\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\n */\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\n if (error == RecoverError.NoError) {\n return; // no error: do nothing\n } else if (error == RecoverError.InvalidSignature) {\n revert ECDSAInvalidSignature();\n } else if (error == RecoverError.InvalidSignatureLength) {\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\n } else if (error == RecoverError.InvalidSignatureS) {\n revert ECDSAInvalidSignatureS(errorArg);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV4.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {EIP712Upgradeable} from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {ECDSA} from \"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\";\nimport \"./ICurvyVault.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ncontract CurvyVaultV4 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH = keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"2.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Private functions\n\n function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {\n bytes32 structHash = keccak256(\n abi.encode(\n CURVY_META_TRANSACTION_TYPE_HASH,\n _nonces[metaTransaction.from],\n metaTransaction.from,\n metaTransaction.to,\n metaTransaction.tokenId,\n metaTransaction.amount,\n metaTransaction.gasFee,\n metaTransaction.metaTransactionType\n )\n );\n\n // Add domain data to the hash\n bytes32 hash = _hashTypedDataV4(structHash);\n\n // Check that the metaTransaction is signed by metaTransaction.from\n address signer = ECDSA.recover(hash, signature);\n require(signer == metaTransaction.from, \"CurvyVault#_validateSignature: Invalid signature!\");\n\n // Increment nonce\n _nonces[signer]++;\n emit NonceChange(signer, _nonces[signer]);\n }\n\n function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n if (metaTransaction.to == address(0)) revert InvalidRecipient();\n if (metaTransaction.metaTransactionType != CurvyTypes.MetaTransactionType.Transfer) {\n revert InvalidTransactionType();\n }\n\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (transferFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);\n }\n\n function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_withdraw: Invalid withdraw recipient!\");\n require(\n metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,\n \"CurvyVault#withdraw: Wrong type for meta transaction!\"\n );\n\n // Burn wrapped tokens\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n\n uint256 amountAfterFees = metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n amountAfterFees -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (withdrawalFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;\n amountAfterFees -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n // Withdraw\n if (metaTransaction.tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];\n IERC20(tokenAddress).safeTransfer(metaTransaction.to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success,) = metaTransaction.to.call{value: amountAfterFees}(\"\");\n require(success, \"CurvyVault#_withdraw: ETH withdrawal failed!\");\n }\n\n emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);\n }\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n require(_tokenAddressToTokenId[tokenAddress] == 0, \"CurvyVault#registerToken: Token already registered!\");\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {\n if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {\n depositFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {\n transferFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {\n withdrawalFee = fee;\n } else {\n revert(\"CurvyVault#setFeeAmount: Unknown fee type!\");\n }\n\n emit FeeChange(metaTransactionType, fee);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n require(msg.sender == _curvyAggregator, \"Only CurvyAggregator can do vault deposits through portal autoShield\");\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n require(msg.value == 0, \"CurvyVault#deposit: Don't send ETH with ERC20 deposit!\");\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n } else {\n // We are depositing ETH\n require(amount == msg.value, \"CurvyVault#deposit: Incorrect deposit value!\");\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)\n if (gasSponsorshipAmount != 0) {\n _balances[to][tokenId] -= gasSponsorshipAmount;\n _balances[owner()][tokenId] += gasSponsorshipAmount;\n }\n\n emit Transfer(address(0x0), to, tokenId, amount);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _transfer(metaTransaction);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _transfer(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _withdraw(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _withdraw(metaTransaction);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n require(tokenAddress != address(0x0), \"CurvyVault:#getIdAddress: Unregistered token!\");\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault:#getTokenID: Unregistered token!\");\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n function balanceOfBatch(address[] memory owners, uint256[] memory tokenIds)\n external\n view\n returns (uint256[] memory)\n {\n require(owners.length == tokenIds.length, \"CurvyVault#balanceOfBatch: Invalid array length!\");\n\n // Variables\n uint256[] memory batchBalances = new uint256[](owners.length);\n\n // Iterate over each owner and token ID\n for (uint256 i = 0; i < owners.length; i++) {\n batchBalances[i] = _balances[owners[i]][tokenIds[i]];\n }\n\n return batchBalances;\n }\n\n function getNonce(address _signer) external view returns (uint256 nonce) {\n return _nonces[_signer];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json b/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
deleted file mode 100644
index e4ce59c..0000000
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8.json b/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8.json
deleted file mode 100644
index 1f0ad7e..0000000
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { PoseidonT4} from \"./utils/PoseidonT4.sol\";\n\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { ICurvyInsertionVerifier, ICurvyAggregationVerifier, ICurvyWithdrawVerifier } from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV2 is Initializable, UUPSUpgradeable, OwnableUpgradeable {\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner, address curvyVaultProxyAddress) public initializer {\n maxDeposits = 2;\n maxWithdrawals = 2;\n maxAggregations = 2;\n\n __Ownable_init(initialOwner);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdate memory _update) external onlyOwner returns (bool)\n {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);\n }\n // TODO: We probably don't need this.\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVault(_update.curvyVault);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function depositNote(\n address from,\n CurvyTypes.Note memory note,\n bytes memory signature\n ) public {\n // TODO: Gas fee\n curvyVault.transfer(CurvyTypes.MetaTransaction(from, address(this), note.token, note.amount, 0, CurvyTypes.MetaTransactionType.Transfer), signature);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n require(_pendingIdsQueue[noteId], \"CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!\");\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n require(\n _notesTreeRoot == publicInputs[numPublicInputs - 2],\n \"CurvyAggregator#commitDepositBatch: Invalid notes root!\"\n );\n\n require(\n insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitDepositBatch: Invalid proof!\"\n );\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n require(_notesTreeRoot == oldNotesTreeRoot, \"CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!\");\n require(_nullifiersTreeRoot == oldNullifiersTreeRoot, \"CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!\");\n\n require(\n aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitAggregationBatch: Invalid proof!\"\n );\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[10] memory publicInputs\n ) public returns (bool) {\n\n require(publicInputs[3] == _nullifiersTreeRoot, \"CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!\");\n require(publicInputs[2] == _notesTreeRoot, \"CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!\");\n\n require(\n withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!\"\n );\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[4 + i];\n address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n destinationAddress,\n publicInputs[numPublicInputs - 1],\n amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n }\n }\n\n // Fee collection\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n owner(),\n publicInputs[numPublicInputs - 1],\n publicInputs[1],\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {Withdraw, Transfer, Deposit}\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd.json b/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd.json
deleted file mode 100644
index 74d5a07..0000000
--- a/ignition/deployments/production_arbitrum/build-info/solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport \"../portal/IPortalFactory.sol\";\nimport {\nICurvyInsertionVerifier,\nICurvyAggregationVerifier,\nICurvyWithdrawVerifier\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"./ICurvyAggregatorAlpha.sol\";\n\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {PoseidonT4} from \"./utils/PoseidonT4.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV4 is ICurvyAggregatorAlpha, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n // Curvy's portal factory contract;\n IPortalFactory public portalFactory;\n\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n __Ownable_init(initialOwner);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdateV2 memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);\n }\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVault(_update.curvyVault);\n }\n if (_update.portalFactory != address(0)) {\n portalFactory = IPortalFactory(_update.portalFactory);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable {\n // Only allow auto shielding of portals that were deployed through the portalFactory\n require(portalFactory.portalIsRegistered(msg.sender), \"CurvyAggregator: portal is not registered\");\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);\n IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);\n }\n\n curvyVault.deposit{ value: msg.value }(tokenAddress, address(this), note.amount, 0);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function depositNote(address from, CurvyTypes.Note memory note, bytes memory signature) public {\n // TODO: Gas fee\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n from,\n address(this),\n note.token,\n note.amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n ),\n signature\n );\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n require(\n _pendingIdsQueue[noteId],\n \"CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!\"\n );\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n require(\n _notesTreeRoot == publicInputs[numPublicInputs - 2],\n \"CurvyAggregator#commitDepositBatch: Invalid notes root!\"\n );\n\n require(\n insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitDepositBatch: Invalid proof!\"\n );\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n require(\n _notesTreeRoot == oldNotesTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!\"\n );\n require(\n _nullifiersTreeRoot == oldNullifiersTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!\"\n );\n\n require(\n aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitAggregationBatch: Invalid proof!\"\n );\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[10] memory publicInputs\n ) public returns (bool) {\n require(\n publicInputs[3] == _nullifiersTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!\"\n );\n require(\n publicInputs[2] == _notesTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!\"\n );\n\n require(\n withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!\"\n );\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[4 + i];\n address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n destinationAddress,\n publicInputs[numPublicInputs - 1],\n amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n }\n }\n\n // Fee collection\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n owner(),\n publicInputs[numPublicInputs - 1],\n publicInputs[1],\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address recovery) external pure returns (bytes memory);\n\n function getPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) external;\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/deployed_addresses.json b/ignition/deployments/production_arbitrum/deployed_addresses.json
deleted file mode 100644
index cba51bf..0000000
--- a/ignition/deployments/production_arbitrum/deployed_addresses.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2": "0xCCC9f64Cc517369770AdB91fa6aC2A51219863e5",
- "CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2": "0xF4336fB0F060446090F0366f298D5a9134959bE6",
- "CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2": "0xA20f049D76009EC792524EE87a46D20088418Ff5",
- "CurvyAggregatorAlpha#PoseidonT4": "0xe5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb",
- "CurvyVault#CurvyVaultV1Implementation": "0x7a993b1ba44E2339d210a5f77edFeEBb3615509d",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation": "0xE3A856Ede4a9AbB40792Ea02F871689162Fd1892",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation": "0xF90c85193FEECeB4591357cEbE6F1f767132196C",
- "CurvyVault#ERC1967Proxy": "0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5",
- "CurvyVault#CurvyVaultV1": "0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5",
- "CurvyAggregatorAlpha#ERC1967Proxy": "0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV1": "0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV2": "0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224",
- "CurvyVault#CurvyVaultV2": "0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5",
- "CurvyVault#CurvyVaultV2Implementation": "0xaB67F776fC1D4b87EFfa60a75e95758c5ec60640",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV3": "0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation": "0x8c7C072fe3550027271d969A4b7Ce331062e9739",
- "PortalFactoryAggregatorModule#PortalFactory": "0x10aA4c497Fbb880AEa10F8258D7fECb6A2da297F",
- "PortalFactoryModule#PortalFactory": "0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16",
- "CurvyAggregatorAlpha#NewInsertionVerifier_v2": "0xb9AfF2366995bbc304fc361D23F7b4E06CA11efc",
- "CurvyAggregatorAlpha#NewAggregationVerifier_v2": "0x17a305e298bd3C5108F9Dc97B363B33DAEcFD29f",
- "CurvyAggregatorAlpha#NewWithdrawVerifier_v2": "0x5f2caFDB348D16b1F4DFb62CFCfd44a41043C9F0",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV4": "0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224",
- "CurvyVault#CurvyVaultV3": "0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation": "0x5CFA880Cd3230e417097fB29d9A78e9E582A15c9",
- "CurvyVault#CurvyVaultV3Implementation": "0x18104Dd209fa5C048DF820C82a9975dA5f920a34",
- "PortalFactory#CreateX": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
- "TokenBridgeModule#TokenBridge": "0x2a31476E13FEFFfcb3702349045cE53a634CcA23",
- "PortalFactory#PortalFactory": "0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718",
- "CurvyVault#CurvyVaultV4": "0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5",
- "CurvyVault#CurvyVaultV4Implementation": "0x5d5dB00C1587E50535F3b1886877F866f1600862",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV5": "0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224",
- "CurvyVault#CurvyVaultV5": "0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation": "0xC37EB9Ac77F71a4670Ac5cafa6727B78D23c8342",
- "CurvyVault#CurvyVaultV5Implementation": "0xf08036eC4fB844c611bB7826B8502B6aCB44E09f",
- "CurvyAggregatorAlpha#withdrawVerifierV3": "0x1CD03F77627850fc2f0691bC8711FD24bA49Cb4b",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV6": "0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224",
- "CurvyVault#CurvyVaultV6": "0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation": "0x03B8C266064E9397fE036e5FAF94DCBA0e16faA4",
- "CurvyVault#CurvyVaultV6Implementation": "0xc0C5983B6518B5e2559887b7BB79CdCA286BccC1",
- "CurvyAggregatorAlpha#insertionVerifierDepth30": "0x0c349EF637ceb9EaF93374F68Ca84A21a042f478",
- "CurvyAggregatorAlpha#aggregationVerifierDepth30": "0x0dEA7dEBB1475B56f621D20Ae3B5b6D2C46C9A75",
- "CurvyAggregatorAlpha#withdrawVerifierDepth30": "0x8Fdfd7c92A873C2C5fE31D552C732dDdaa045C98"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_arbitrum/journal.jsonl b/ignition/deployments/production_arbitrum/journal.jsonl
deleted file mode 100644
index 8562ee9..0000000
--- a/ignition/deployments/production_arbitrum/journal.jsonl
+++ /dev/null
@@ -1,496 +0,0 @@
-
-{"chainId":42161,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","constructorArgs":[],"contractName":"CurvyAggregationVerifierAlpha_2_2_2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b50610a0c8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610974565b610054565b604051901515815260200160405180910390f35b5f610881565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7e10acd6d4ce082a72b623deeac4b4c1c526b8ab76ab54f82d13b63a6f23e2cd85527f282cd953fc7bc024a80710dd645d4cd8e4ef6d10eb7403a76618f96eddb5336e60208601525f608086018661018d87357f21626e5f52776516ac007ae23e14ca016f4e7623b79f63f4ab59482e4872c52b7f2c8f6445390acb60223f07dcf516fee816534c9940dc8d59595786b35106f0f38461008c565b6101dd60208801357f20d91723fc6a5cff2a4d8bd53db8c7647c86b9245b27d7042634dd317becf0797f1693b6ee023f9ef0c9e7cb1d290717e3df5f6d2154ba30f3a6a833f3171c2ee08461008c565b61022d60408801357f1a9347082efac79b5d64033c95c7f2190984cd2a19884b4ad26162ea47e0ea3b7f27173150520b68cc7844935166da0f68924aeccc8a30ae9ca0768eb597cf2a638461008c565b61027d60608801357f207839c9f296371e642b17ab83a64fca9b9044d10b0f6a5319ae0e2ee2a76c0c7f235a1223ea30a75c93efd51c3abd465c611878ebc52d9830e61978f914d7c8908461008c565b6102cd60808801357f0cefdb3db08f930f2ed5534a797dc304a1189c61a2835aabb6c5831f0ca838f37f15bf6ee50fbb6b6a07695b99fa739330553161a7de0b0380556b61ebe950563f8461008c565b61031d60a08801357f0b50c85999c665bad3101fb618ca967aa4860c1c07f4c54bcf692b7b30b2c11a7f2d4f881288f63fa77f63eaad252bd5efbbbda01e21976fb645aaadd286929c3f8461008c565b61036d60c08801357f15b81a815c06b38295623648d75372799d4755f7a0b74f7bd655f5f64715a03e7f09331bcaac14f8bcf495ed09470e01f3c268f1fdb4e019c19c836e2c8310044a8461008c565b6103bd60e08801357f2a2a8f30efa6592960fa69f190f96c5f0b432948973a9c53269de3e6b8abebb57f297cd48dfb07dc7ad0120ed8151942d511ebca1b71a736b61ac6375e2a51947a8461008c565b61040e6101008801357f0a9c03a1994f221c057f75855cb14a95329dde81e32a7a8660a3828c46e4af7d7f1dc315ae7bd487ac77c690ee6e5d2fe7bbfd5ae36935ffac15114a4f2748dc5b8461008c565b61045f6101208801357f0280bc41f56d2038589161b139f5c3704eeb19e9da2f170a5b4e977678a727697f063f6dc839c18a58049574763b3de59bc2c20609b01907e66dcfe264b091cd858461008c565b6104b06101408801357f1f96dc322de85ba0a31ce878d61f5047eba9ad25489230b888ede7739aeb36f57f0d58db0890c2f6ee0bda8261a76d6ad9da96e539d0df7046cd0799f0176a53fb8461008c565b6105016101608801357f246ef5979ae9aea616e30dbab411c28406510a656ddd2043a5b9211d31edd1647f24d8db926da6b7c4a17804818d83058eb0f5dfa6163c3922aa9a7edeb4b85ede8461008c565b6105526101808801357f1011fe6c75f7c6cf1a8a62ff71387fef8a19e46d0af37193380a7c603f7529497f12b2d70c94e401c6f3822578fb27c67f97bf1827a1b9e0cc1c2fb34a68a6521d8461008c565b6105a36101a08801357f082d86555b48de36b698d5bc0cb44148b3a0eb1d3b992638453070deb120b15d7f26b43cf48f595a8e3e2a3b8515b7df9db6ffebecbc968995b4071e0f2dad32dc8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1f7f9f69ea5e04a56ee102635a0fcdbefd57b4c7f37a1e0d903ba69281a5f0d36102808201527f2a49c1e717e044ad7bc38e0b841e28e08eebe51b906016be33a2ff2d74f10c586102a08201527f027a67b0798b9350cd04c5ce09117b7e660dbe3e1449f667ea13c3c43255f84c6102c08201527f19725ce00771a3c317cb70a3c5856f91c6ac2313426f5863fcd93969d2384de06102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108985f84013561005a565b6108a5602084013561005a565b6108b2604084013561005a565b6108bf606084013561005a565b6108cc608084013561005a565b6108d960a084013561005a565b6108e660c084013561005a565b6108f360e084013561005a565b61090161010084013561005a565b61090f61012084013561005a565b61091d61014084013561005a565b61092b61016084013561005a565b61093961018084013561005a565b6109476101a084013561005a565b610954818486888a6100f2565b9050805f5260205ff35b806040810183101561096e575f5ffd5b92915050565b5f5f5f5f6102c08587031215610988575f5ffd5b610992868661095e565b935060c08501868111156109a4575f5ffd5b6040860193506109b4878261095e565b925050856102c0860111156109c7575f5ffd5b5091949093509091610100019056fea2646970667358221220c5df5a746d614b72f69595bc69601e5559fe5a1a70d66d8b1723b65d65e2b55c64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","networkInteractionId":1,"nonce":38,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","networkInteractionId":1,"nonce":38,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"22590000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xad74907fd8e590b5dea63cb4541982a9739bef2251da5dc33ca6708f519ce747"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","constructorArgs":[],"contractName":"CurvyInsertionVerifierAlpha_2_2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506106648061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d7565b610054565b604051901515815260200160405180910390f35b5f61055c565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0f3cc497f7f2ad2db9f9a01e1d1e237e7bd547ee48d3698641bae08ce37c187485527f2a2f300a2bc9b5576e8d348d9542dedfce1dd7566c9f7ad0c7936e9508f2d13f60208601525f608086018661018e87357f152cd78e51c23961af90e069fcceb20b0358a4c13f4d05ad78f5554803410ec47f068d0161c738b8256d8f80c113a6f2adc60bf92724e5ba844434551f353109bb8461008c565b6101de60208801357f28aeb7fafb1d5864b489fac2ac75795429a84564ed301367b95bdbbda22e41cc7f01fb82a3a457b9782065bddb3961e014b8602fe337a83a253a4edbe7f9eca5de8461008c565b61022e60408801357f10e505cabab95d2954811e50e0c907e6e27d3ea37df4576cb85d2b024b758e5e7f132ffdaaa0e5fbd39240ae81be15c78f27d1a5e9f0b046bc50a19ebd0e1f50be8461008c565b61027e60608801357f061f18bbab38fe7f8eca85f2017b25f057fb908ca68d0965746884ca8b0b2e027f0323511d8b4f23d71a970779314d464e5993156eaed0970a246cd2a43da830c88461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f2ce5cf088183ccc73bfeb1244cdee7ae92ceb0e007194b0bf6c6e9819a863ca960c08201527f0b549a9abb46bc0c3ed48341aa21baa4532bca1fb1ff7a8ef409d3384eb73d3660e08201527f270e5ddc8a3d6e364fae6b353c6deedc579e522582d3d1d60036e9c43428bb8e6101008201527f2d9ef7723573eb05565ba62424d4b2f2d5a0e68d542f8c45daadb2f10a5cde376101208201527f1f542545a1550702631817615d0eac929e73ccc384d92ac156c7d3577e01d5226101408201527f08cd2dbefe01d914cd9826b6a1309de1d3c645a028b69cc3c690a05c183a9fa36101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f126779f2434a76e4e37da855f43a1df5648908e4e91eebf1e086544970eed7b86102808201527f12624c6dbae3875cc0583ab185cb81fc69d606519eef4d6140b7ac67aa6e26e76102a08201527f116d7e6cfc0480d16acdcebb03bef4a46abe3cff28a3aa60d1bf691b43679d866102c08201527f1bbda14ad6f8f4d5d33363f1d50fd72bf4b3b25d615b896c9e050098f5016f7d6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105735f84013561005a565b610580602084013561005a565b61058d604084013561005a565b61059a606084013561005a565b6105a7818486888a6100f2565b9050805f5260205ff35b80604081018310156105c1575f5ffd5b92915050565b80608081018310156105c1575f5ffd5b5f5f5f5f61018085870312156105eb575f5ffd5b6105f586866105b1565b935061060486604087016105c7565b92506106138660c087016105b1565b91506106238661010087016105c7565b90509295919450925056fea26469706673582212206f782de436746e389d2f3f8eeac94b985e369b9a2c08f0f7a2167fc9a1fa233d64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","networkInteractionId":1,"nonce":39,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","networkInteractionId":1,"nonce":39,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"23120000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xb0c428064cd619645ea47631a766895b58eaf8ea042a86d6eec67116008c0ffe"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlpha_2_2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506108918061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b3660046107f9565b610054565b604051901515815260200160405180910390f35b5f61073e565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f1a75f14b8b1faa4b851f07b25985339af1f9563cb229396803fd379fead2bd7385527f0b5b03df8219c60d5be03ad52394f3d6330cf3e7cea9e656bc22982dd15cbadc60208601525f608086018661018e87357f05f00c0d109f87a8cf18b9d3052caae6027871b0d6fea2f54ca225891e16b0607f0d35ddf8253fb232d095057744ccb6f9d5887bee97ea61f885d511934169bcf08461008c565b6101de60208801357f2a60d3a69ccee567e2b57a0a42bcf19ba0d2335ceb81a2dcb71439314fea13857f2f70a47844f43803cbb4ce9a69cd5b3db4647da90f325d2ef456abea72d0bfe08461008c565b61022e60408801357f0f18cbcd1cbf7d154a35393c17382058e4b30517ab8be123af7d1951c671d4697f26cfb6e0961b50d6d1f534baef948730bec2a603ebf189eaaf72036e2a4d2fe68461008c565b61027e60608801357f033ae488254843311cd5bb9676251b2c80852d467355d37f443e17d049a503267f27e5a68de42fcbcbadd940c39e2013830c75dbb9ad6714cb768ba7d14af9421a8461008c565b6102ce60808801357f28120958d688c8a0d58372b242df5ec1c75aa124ab6f19c90c4b76b81057fd297f11c4be0f98ac33b680d4607a898dc72cdfc6d9946943b3e9f0080fe825263a5d8461008c565b61031e60a08801357f037d488c8ba35a919f4cfd44b1a9be07a0ca1ea689695c6b238ad364c47bbf7a7f2dd63748d624fd0124f265891b52eeb7d5565727b674658be4378d6e5b46be308461008c565b61036e60c08801357f2297bda45459480a6a488bd3386537b38ae11ffecb6beaec43e291d33dd2f8947f1d7c255c5e9cfa6d8457dc20e4af90332c6550fa6bea6ac80b2fcae91e31fb658461008c565b6103be60e08801357f1c564b05c0c5fc1db338de776a71a9b6408e0f1062ee5eec1ead8fe1fb68f0317f085c76b320e78e8fc1c30cd9a86ee083c737af478c344a985ff23109398c4e768461008c565b61040f6101008801357f0f6d3858a35815b73d414424416d4e35babb3e0141641fb6f11c5899b96ff6ce7f0678620b35e9ade6b5807cf7ccd5210ae099894132f0bff6345ba129e944dd3d8461008c565b6104606101208801357f2ef17308df02f12bcd04a63c4f9642e6a21bbfecd79bc266d9278cba32c0b7f47f1e5b526c2f7dbd765611c3117d2aa8924597b68d5b8d3654c375174d6affa8998461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f044bacd3d9b251fa2cdcb89c1e71c78d2d0ff824d43403d616a47c804c0469696102808201527f297536676d7cec34d41955f24cc5034a5b79d92b20c48c6d8073bc32016612396102a08201527f0281d22ffce2cf0ca8b4109517cf30ceed20be4d2ed307fda036ad8ef5e12df26102c08201527f1ffe72c016746c242459c1973b77d50d6415bb22ce31c61ee504c42c65b3d33c6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107555f84013561005a565b610762602084013561005a565b61076f604084013561005a565b61077c606084013561005a565b610789608084013561005a565b61079660a084013561005a565b6107a360c084013561005a565b6107b060e084013561005a565b6107be61010084013561005a565b6107cc61012084013561005a565b6107d9818486888a6100f2565b9050805f5260205ff35b80604081018310156107f3575f5ffd5b92915050565b5f5f5f5f610240858703121561080d575f5ffd5b61081786866107e3565b935060c0850186811115610829575f5ffd5b60408601935061083987826107e3565b925050856102408601111561084c575f5ffd5b5091949093509091610100019056fea2646970667358221220703faca2770b9c9f7e9a23c6d18d7c741c60c3262a4a3449160cfe04d5d9618164736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","networkInteractionId":1,"nonce":40,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","networkInteractionId":1,"nonce":40,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"23868000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x2f4583612b74c329f96970977f4035a57b0ada4e93216f1c7e098738bab179c4"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","hash":"0x2f4583612b74c329f96970977f4035a57b0ada4e93216f1c7e098738bab179c4","networkInteractionId":1,"receipt":{"blockHash":"0x703c41b6303736ac152c3539d6c91239add74447adb6e56155c3fb862d0338a9","blockNumber":396728850,"contractAddress":"0xCCC9f64Cc517369770AdB91fa6aC2A51219863e5","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","result":{"address":"0xCCC9f64Cc517369770AdB91fa6aC2A51219863e5","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#PoseidonT4","constructorArgs":[],"contractName":"PoseidonT4","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#PoseidonT4","futureType":"NAMED_ARTIFACT_LIBRARY_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","networkInteraction":{"data":"0x6130c0610034600b8282823980515f1a607314602857634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe7300000000000000000000000000000000000000003014608060405260043610610034575f3560e01c806320cf0a3714610038575b5f5ffd5b61004b610046366004612f90565b61005d565b60405190815260200160405180910390f35b5f610793565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f52838409099450505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f528384090994505f51602061302b5f395f51905f5284850990505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528384090993505f51602061302b5f395f51905f5283840990505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528384090992505f51602061302b5f395f51905f5282830990505f51602061302b5f395f51905f52825f51602061302b5f395f51905f52838409099150505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b5f7f265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d65f51602061302b5f395f51905f5260805106017f199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa5f51602061302b5f395f51905f5260a05106017f157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf85f51602061302b5f395f51905f5260c05106015f51602061302b5f395f51905f5283840993505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528687090992505f51602061302b5f395f51905f5282830993505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528687090991505f51602061302b5f395f51905f5281820993505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528687090990505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287097f211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87097f19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87097f21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87097f26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be30101010660a052505050610c167f13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e7f251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b9967f0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e7f2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac949026103aa565b610ca27f04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b7f0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f3675497f011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca067f0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd47386103aa565b610d2e7f0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd69414324477f28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a17f259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f7f0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e86103aa565b610dba7f1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c57f26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee757f123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf8117f0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf610063565b610e467f2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a57f2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c7f011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e55747f1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0610063565b610ed27f179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb7f1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d857f192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b7f0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d610063565b610f5e7f10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b877f064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd597f225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e087f29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c610063565b610fea7f2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db7f1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b7f1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb7f0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c610063565b6110767f20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d7f0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b7f062100eb485db06269655cf186a68532985275428450359adc99cec6960711b87f2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926610063565b6111027f26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce57f22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e07f23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b7f25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a610063565b61118e7f1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa7f248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d7297f12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da7f070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9610063565b6112197f2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde1877f04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d657e94975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e7f28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf610063565b6112a47f159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a7eb7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b647f03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b07f2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3610063565b6113307f0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb1737f2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f7f1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d7f1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f610063565b6113bc7f22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea97f0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a7f0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed7057f02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16610063565b6114487f2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d835057f2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e57f1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d07f25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16610063565b6114d47f0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac7f02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a68003557f227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a53190257f044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d610063565b6115607f25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f7f1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c7f0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e57f1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38610063565b6115ec7f21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f9597f2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce7f13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a967f0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a610063565b6116787f09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f14557f0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf7f0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a47f05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b610063565b6117047f176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c4047f1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df7f2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b7f0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335610063565b6117907f2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c77f14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def7f226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a7f2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db610063565b61181c7f0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c7f03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f37f0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c297f2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7610063565b6118a77e780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef3631821857f0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa7f1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa91467f203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78610063565b6119327f222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c7e544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac167f10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e87f10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5610063565b6119be7f04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d7f06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf047467f062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b7f2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5610063565b611a4a7f14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f13647f0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae7f011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f17f13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a610063565b611ad67f2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a7f16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d582597f278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b6077f1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106610063565b611b627f02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe67692500420257f16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf7f15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c9847f29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8610063565b611bee7f1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec7f0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de89907f1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a427f05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119610063565b611c7a7f0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf7f2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d07f09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb96507f25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d610063565b611d067f24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d00567f1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f835297f2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f627f25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2610063565b611d927f2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f639257f06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f57f23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d7f25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74610063565b611e1e7f17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd7f13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be7f265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e7f15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5610063565b611eaa7f2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e7f2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e887f18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c7f21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d610063565b611f367f11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f57f0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c7f0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe57f277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7610063565b611fc27f30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad47f221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f4217f0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb8247f224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6610063565b61204e7f1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b317f0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc7f2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b7f23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0610063565b6120da7f1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b877f174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d77f22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d27f26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3610063565b6121667f2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c8755267f29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e7f0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade4577f1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1610063565b6121f27f0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad7257f1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f7f2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac7063641137f12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2610063565b61227e7f1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a7f2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e7f08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a37f07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492610063565b61230a7f265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e7f2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff7f2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d197f18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb610063565b6123967f01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf57f2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b87f094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf604177f2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c610063565b6124227f2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd8064617f27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d0287727f154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc747f0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb610063565b6124ae7f0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c7377f1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa957f298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc7f301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71610063565b61253a7f01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b7f1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d7f0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee7f0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279610063565b6125c67f2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe597f19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d7f23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c47f2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32610063565b6126527f0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c87f19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb07f0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b357f2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267610063565b6126de7f2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d7f0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af7f240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b7f16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca610063565b61276a7f242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d17f089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c377027f18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f7f166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6610063565b6127f67f0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e9617f1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b27f17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b7f174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b610063565b6128817eccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d1587f292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e7f12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec67f2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f610063565b61290d7f1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e87f0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e7f14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f7f185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b610063565b6129997f29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c0087f05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c0146047f2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c87f0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024610063565b612a257f1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f7f1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b7f1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc7f2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314610063565b612ab07f0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d7e6e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b7f191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c7f1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5610063565b612b3c7f0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc7f16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae7f12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a7f25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d610063565b612bc87f13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc8247f11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde547f03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b767f1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089610063565b612c547f2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec7f2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e7f1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db47f0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b6103aa565b612ce07f1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b7f2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd6073687f065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc33947f2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb3876103aa565b612d6b7eb4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd790787f0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f7f2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb7f027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd6103aa565b7f1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd55f51017f12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6602051017f13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db608051017f163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d560a051015f51602061302b5f395f51905f5284850994505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528788090993505f51602061302b5f395f51905f5283840994505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528788090992505f51602061302b5f395f51905f5282830994505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528788090991505f51602061302b5f395f51905f5281820994505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528788090990505f51602061302b5f395f51905f52805f51602061302b5f395f51905f525f51602061300b5f395f51905f5284095f51602061302b5f395f51905f525f51602061306b5f395f51905f5286095f51602061302b5f395f51905f525f51602061304b5f395f51905f5288095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8a0901010106065f5260205ff35b634e487b7160e01b5f52604160045260245ffd5b5f60608284031215612fa0575f5ffd5b82601f830112612fae575f5ffd5b6040516060810181811067ffffffffffffffff82111715612fd157612fd1612f7c565b604052806060840185811115612fe5575f5ffd5b845b81811015612fff578035835260209283019201612fe7565b50919594505050505056fe1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c130644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62a2646970667358221220f6d5cfe9ef56c84b95ece8760d16164e8a9649e1f378cc0d39152a9bac67d08e64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","networkInteractionId":1,"nonce":41,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","networkInteractionId":1,"nonce":41,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"24124000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x0e93dce714e213c76f7e9eae6b1ae6ddccd7fe30d28956616123457c435a581e"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyVault#CurvyVaultV1Implementation","constructorArgs":[],"contractName":"CurvyVaultV1","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV1Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205e1d810006e1c4a45d4280de3a8894a26644a7669555e5011d3a8b7d576e098564736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteractionId":1,"nonce":42,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteractionId":1,"nonce":42,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"24150000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x3279ceecba8338903d57ba74c9107b4e29a1bb6f95c8ba9e67718f602125de39"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","hash":"0xad74907fd8e590b5dea63cb4541982a9739bef2251da5dc33ca6708f519ce747","networkInteractionId":1,"receipt":{"blockHash":"0xa3373997b45ec49239d42f6a26b9179e2a78c7eb40934fe4f7f3d0f07f7e20a9","blockNumber":396728840,"contractAddress":"0xF4336fB0F060446090F0366f298D5a9134959bE6","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","result":{"address":"0xF4336fB0F060446090F0366f298D5a9134959bE6","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","hash":"0xb0c428064cd619645ea47631a766895b58eaf8ea042a86d6eec67116008c0ffe","networkInteractionId":1,"receipt":{"blockHash":"0x2c4a80f5bb293f0bb44dd603e0f456086cc2bba623497f211f7aabcbc7f7dcac","blockNumber":396728845,"contractAddress":"0xA20f049D76009EC792524EE87a46D20088418Ff5","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","result":{"address":"0xA20f049D76009EC792524EE87a46D20088418Ff5","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","hash":"0x0e93dce714e213c76f7e9eae6b1ae6ddccd7fe30d28956616123457c435a581e","networkInteractionId":1,"receipt":{"blockHash":"0xd480b42521e582c1603377be1ab52a5f268f6f0c3744ac6fbb4f8ad942d3b936","blockNumber":396728859,"contractAddress":"0xe5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","result":{"address":"0xe5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","hash":"0x3279ceecba8338903d57ba74c9107b4e29a1bb6f95c8ba9e67718f602125de39","networkInteractionId":1,"receipt":{"blockHash":"0xe23ff6d3814bc4e170bd939fd65f425815aa8bfa5a6715d28c0ab4184b5a5650","blockNumber":396728865,"contractAddress":"0x7a993b1ba44E2339d210a5f77edFeEBb3615509d","logs":[{"address":"0x7a993b1ba44E2339d210a5f77edFeEBb3615509d","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":0,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","result":{"address":"0x7a993b1ba44E2339d210a5f77edFeEBb3615509d","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV1","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xe5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073e5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c8a1428597d493cbe694c55d3c3140f6d4feec8584d111946bcfbdce984afdd264736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteractionId":1,"nonce":43,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteractionId":1,"nonce":43,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"25730000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x88faabc065916c08fe78e9491b634e32acaf57ca38c6433f0dbee15967d9933a"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV2","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xe5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073e5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220203f460927dd492ae23c6a846bacc1b688b31d219b7fe1d56291d876ca96db2b64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteractionId":1,"nonce":44,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteractionId":1,"nonce":44,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"25952000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x8742905f7acd86ae03a915d9a98e17d341b484e9ab8bfd914c073d49bd76c5c8"},"type":"TRANSACTION_SEND"}
-{"args":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"CurvyVault#CurvyVaultV1Implementation","dependencies":["CurvyVault#CurvyVaultV1Implementation"],"functionName":"initialize","futureId":"CurvyVault#encodeFunctionCall(CurvyVault#CurvyVaultV1Implementation.initialize)","result":"0xc4d66de800000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","strategy":"basic","strategyConfig":{},"type":"ENCODE_FUNCTION_CALL_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","hash":"0x88faabc065916c08fe78e9491b634e32acaf57ca38c6433f0dbee15967d9933a","networkInteractionId":1,"receipt":{"blockHash":"0xe6071759b6018450786d10dc2f391fe77f7c3742691898f967e21fb24c01ad19","blockNumber":396728877,"contractAddress":"0xE3A856Ede4a9AbB40792Ea02F871689162Fd1892","logs":[{"address":"0xE3A856Ede4a9AbB40792Ea02F871689162Fd1892","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":38,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","result":{"address":"0xE3A856Ede4a9AbB40792Ea02F871689162Fd1892","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","hash":"0x8742905f7acd86ae03a915d9a98e17d341b484e9ab8bfd914c073d49bd76c5c8","networkInteractionId":1,"receipt":{"blockHash":"0x90c3ace4f08d7422a9e46ce45f230e7d4bfda92e5ef10ae6ea5b5876a760e9ac","blockNumber":396728882,"contractAddress":"0xF90c85193FEECeB4591357cEbE6F1f767132196C","logs":[{"address":"0xF90c85193FEECeB4591357cEbE6F1f767132196C","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":43,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","result":{"address":"0xF90c85193FEECeB4591357cEbE6F1f767132196C","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyVault#ERC1967Proxy","constructorArgs":["0x7a993b1ba44E2339d210a5f77edFeEBb3615509d","0xc4d66de800000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"ERC1967Proxy","dependencies":["CurvyVault#CurvyVaultV1Implementation","CurvyVault#encodeFunctionCall(CurvyVault#CurvyVaultV1Implementation.initialize)"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#ERC1967Proxy","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#ERC1967Proxy","networkInteraction":{"data":"0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c00330000000000000000000000007a993b1ba44e2339d210a5f77edfeebb3615509d00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000024c4d66de800000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000000000000000000000000000000000000000000000","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#ERC1967Proxy","networkInteractionId":1,"nonce":45,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#ERC1967Proxy","networkInteractionId":1,"nonce":45,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"26096000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x4de30e36e96edac61d016af338f47748bcacbdac47d61dcdbc00f940c16e17bb"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#ERC1967Proxy","hash":"0x4de30e36e96edac61d016af338f47748bcacbdac47d61dcdbc00f940c16e17bb","networkInteractionId":1,"receipt":{"blockHash":"0x5878aec517294faad971103fd186f7c265f147be293e2c32b45a478d4093f9e9","blockNumber":396728892,"contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x","logIndex":5,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000007a993b1ba44e2339d210a5f77edfeebb3615509d"]},{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x","logIndex":6,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x0000000000000000000000000000000000000000000000000000000000000001","logIndex":7,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#ERC1967Proxy","result":{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","contractName":"CurvyVaultV1","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV1","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x61826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000000000000000000000"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","CurvyVault#CurvyVaultV1"],"functionName":"initialize","futureId":"CurvyAggregatorAlpha#encodeFunctionCall(CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.initialize)","result":"0x485cc95500000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6000000000000000000000000b4ba872fba00bc4268067d5de4223240cec4b6d5","strategy":"basic","strategyConfig":{},"type":"ENCODE_FUNCTION_CALL_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#ERC1967Proxy","constructorArgs":["0xE3A856Ede4a9AbB40792Ea02F871689162Fd1892","0x485cc95500000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6000000000000000000000000b4ba872fba00bc4268067d5de4223240cec4b6d5"],"contractName":"ERC1967Proxy","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","CurvyAggregatorAlpha#encodeFunctionCall(CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.initialize)"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#ERC1967Proxy","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteraction":{"data":"0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033000000000000000000000000e3a856ede4a9abb40792ea02f871689162fd189200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000044485cc95500000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6000000000000000000000000b4ba872fba00bc4268067d5de4223240cec4b6d500000000000000000000000000000000000000000000000000000000","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteractionId":1,"nonce":46,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteractionId":1,"nonce":46,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"25976000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x6b272872dd37b25a3a17d62a7b87bd22385c12502dd68bc5c905a4dd1a786b1c"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","hash":"0x6b272872dd37b25a3a17d62a7b87bd22385c12502dd68bc5c905a4dd1a786b1c","networkInteractionId":1,"receipt":{"blockHash":"0xacbc47aea122a18645ad6fe1a93abd8aa099eecadb5ff092bfe0370cc26dccfe","blockNumber":396728902,"contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","logs":[{"address":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","data":"0x","logIndex":20,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000e3a856ede4a9abb40792ea02f871689162fd1892"]},{"address":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","data":"0x","logIndex":21,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","data":"0x0000000000000000000000000000000000000000000000000000000000000001","logIndex":22,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","result":{"address":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","contractName":"CurvyAggregatorAlphaV1","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","contractName":"CurvyAggregatorAlphaV2","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0xF4336fB0F060446090F0366f298D5a9134959bE6","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0xA20f049D76009EC792524EE87a46D20088418Ff5","maxAggregations":2,"maxDeposits":2,"maxWithdrawals":2,"withdrawVerifier":"0xCCC9f64Cc517369770AdB91fa6aC2A51219863e5"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteraction":{"data":"0xb4da7173000000000000000000000000a20f049d76009ec792524ee87a46d20088418ff5000000000000000000000000f4336fb0f060446090f0366f298d5a9134959be6000000000000000000000000ccc9f64cc517369770adb91fa6ac2a51219863e50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002","id":1,"to":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteractionId":1,"nonce":47,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteractionId":1,"nonce":47,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"25874000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x1a7cda7b488e3799d65b6fa3a12f49ffbfd97d4023a629ce8d7130a61862093e"},"type":"TRANSACTION_SEND"}
-{"args":["0xF90c85193FEECeB4591357cEbE6F1f767132196C","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000f90c85193feeceb4591357cebe6f1f767132196c00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteractionId":1,"nonce":48,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteractionId":1,"nonce":48,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"26264000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xb63f78b1f915b95a4e960c68e40d6a2e7940dd1e84963bcbaa89b19a292d865e"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","hash":"0xb63f78b1f915b95a4e960c68e40d6a2e7940dd1e84963bcbaa89b19a292d865e","networkInteractionId":1,"receipt":{"blockHash":"0xe8ce03313a37a4de296cd85883fd807bfa1162d708fdc5d2fb96691adf3e5314","blockNumber":396728916,"logs":[{"address":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","data":"0x","logIndex":16,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000f90c85193feeceb4591357cebe6f1f767132196c"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","hash":"0x1a7cda7b488e3799d65b6fa3a12f49ffbfd97d4023a629ce8d7130a61862093e","networkInteractionId":1,"receipt":{"blockHash":"0x10b14ab2a07406a031e1d77feb1f8914431c178b2cc24561f3da198827c59e45","blockNumber":396728912,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xba5DdD1f9d7F570dc94a51479a000E3BCE967196"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_0","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_0","networkInteraction":{"data":"0x09824a80000000000000000000000000ba5ddd1f9d7f570dc94a51479a000e3bce967196","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_0","networkInteractionId":1,"nonce":49,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_0","networkInteractionId":1,"nonce":49,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"27122000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xa86b8cfa5309f1501d3bd35ad0a9cb0353d5dc2cbc1302e9b8718e3e7b1ef41b"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_0","hash":"0xa86b8cfa5309f1501d3bd35ad0a9cb0353d5dc2cbc1302e9b8718e3e7b1ef41b","networkInteractionId":1,"receipt":{"blockHash":"0x8eceee36172e337820cbc1394c182aa82ea9e00d82a5007a8474287887618a8a","blockNumber":396729443,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x000000000000000000000000ba5ddd1f9d7f570dc94a51479a000e3bce9671960000000000000000000000000000000000000000000000000000000000000002","logIndex":10,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_0","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x912CE59144191C1204E64559FE8253a0e49E6548"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_0"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_1","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_1","networkInteraction":{"data":"0x09824a80000000000000000000000000912ce59144191c1204e64559fe8253a0e49e6548","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_1","networkInteractionId":1,"nonce":50,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_1","networkInteractionId":1,"nonce":50,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"27062000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x299235ef37c4fbafdac2a4ac16c8dd1458f4eaec5f8a287866bde8aeefd17d77"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_1","hash":"0x299235ef37c4fbafdac2a4ac16c8dd1458f4eaec5f8a287866bde8aeefd17d77","networkInteractionId":1,"receipt":{"blockHash":"0x64d2558888742fbb6cc05b2dd6d1dd57c4065f3bc9ec7b91f65cd0ec0768d1e3","blockNumber":396729453,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x000000000000000000000000912ce59144191c1204e64559fe8253a0e49e65480000000000000000000000000000000000000000000000000000000000000003","logIndex":1,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_1","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xf97f4df75117a78c1a5a0dbb814af92458539fb4"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_1"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_2","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_2","networkInteraction":{"data":"0x09824a80000000000000000000000000f97f4df75117a78c1a5a0dbb814af92458539fb4","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_2","networkInteractionId":1,"nonce":51,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_2","networkInteractionId":1,"nonce":51,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"26828000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xafd88cd3efd53f5c216adef82886a7e302100e8e32dd57f8cd6a9b4581ab1644"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_2","hash":"0xafd88cd3efd53f5c216adef82886a7e302100e8e32dd57f8cd6a9b4581ab1644","networkInteractionId":1,"receipt":{"blockHash":"0xcda6b08a856fb0cf257082fcbdcce4d972489687b7e3529ecc7c2adfd40873e3","blockNumber":396729463,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x000000000000000000000000f97f4df75117a78c1a5a0dbb814af92458539fb40000000000000000000000000000000000000000000000000000000000000004","logIndex":32,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_2","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x354A6dA3fcde098F8389cad84b0182725c6C91dE"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_3","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_3","networkInteraction":{"data":"0x09824a80000000000000000000000000354a6da3fcde098f8389cad84b0182725c6c91de","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_3","networkInteractionId":1,"nonce":52,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_3","networkInteractionId":1,"nonce":52,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"26830000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x43c58e2d720f8b44f3e0c134f0238716419f3e846a074a48f993894462004920"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_3","hash":"0x43c58e2d720f8b44f3e0c134f0238716419f3e846a074a48f993894462004920","networkInteractionId":1,"receipt":{"blockHash":"0xe11b6f1655361c92bcb14a37c5b3f35209474740a93e0ed89152fcbbf66377d4","blockNumber":396729473,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x000000000000000000000000354a6da3fcde098f8389cad84b0182725c6c91de0000000000000000000000000000000000000000000000000000000000000005","logIndex":6,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_3","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xcb8b5CD20BdCaea9a010aC1F8d835824F5C87A04"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_4","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_4","networkInteraction":{"data":"0x09824a80000000000000000000000000cb8b5cd20bdcaea9a010ac1f8d835824f5c87a04","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_4","networkInteractionId":1,"nonce":53,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_4","networkInteractionId":1,"nonce":53,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"26804000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x40f05a7f780dcfae793897e2b341d85c68ed3b18976f8d3d0b1b8acf9a675c3c"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_4","hash":"0x40f05a7f780dcfae793897e2b341d85c68ed3b18976f8d3d0b1b8acf9a675c3c","networkInteractionId":1,"receipt":{"blockHash":"0x93f9d0cf9151cd86a9c964858db8155b4f9cf58266775de7581526be90c5bc61","blockNumber":396729483,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x000000000000000000000000cb8b5cd20bdcaea9a010ac1f8d835824f5c87a040000000000000000000000000000000000000000000000000000000000000006","logIndex":0,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_4","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x11cDb42B0EB46D95f990BeDD4695A6e3fA034978"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_5","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_5","networkInteraction":{"data":"0x09824a8000000000000000000000000011cdb42b0eb46d95f990bedd4695a6e3fa034978","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_5","networkInteractionId":1,"nonce":54,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_5","networkInteractionId":1,"nonce":54,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"27488000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x891f3272065ca1cfce439a9db18968f081ec6549c3397c36b8fd6d8f93ed02db"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_5","hash":"0x891f3272065ca1cfce439a9db18968f081ec6549c3397c36b8fd6d8f93ed02db","networkInteractionId":1,"receipt":{"blockHash":"0x1f0eb3bf9607be1b15140f31cd3586aabbec30f98cea4dfc679e37920355b01c","blockNumber":396729493,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x00000000000000000000000011cdb42b0eb46d95f990bedd4695a6e3fa0349780000000000000000000000000000000000000000000000000000000000000007","logIndex":11,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_5","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_5"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_6","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_6","networkInteraction":{"data":"0x09824a80000000000000000000000000da10009cbd5d07dd0cecc66161fc93d7c9000da1","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_6","networkInteractionId":1,"nonce":55,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_6","networkInteractionId":1,"nonce":55,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"28026000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xc0a6a74dc35f8695374d378f27792460dce46853cea919175337d829953a691e"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_6","hash":"0xc0a6a74dc35f8695374d378f27792460dce46853cea919175337d829953a691e","networkInteractionId":1,"receipt":{"blockHash":"0x7e2d97f4a8a88c8de6262bfd1da76e253ef487ebd1f366020dc200efbaa9c6f2","blockNumber":396729503,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x000000000000000000000000da10009cbd5d07dd0cecc66161fc93d7c9000da10000000000000000000000000000000000000000000000000000000000000008","logIndex":27,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_6","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x6985884C4392D348587B19cb9eAAf157F13271cd"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_6"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_7","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_7","networkInteraction":{"data":"0x09824a800000000000000000000000006985884c4392d348587b19cb9eaaf157f13271cd","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_7","networkInteractionId":1,"nonce":56,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_7","networkInteractionId":1,"nonce":56,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"27770000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xc0953db51d1865f9c1c0a4b129aba843457c93830c7252aad59f8dc8f195ef9d"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_7","hash":"0xc0953db51d1865f9c1c0a4b129aba843457c93830c7252aad59f8dc8f195ef9d","networkInteractionId":1,"receipt":{"blockHash":"0x89491ce17bdcfadb3ded674c0cb055e61aa8d2472fec03e2036dfc82a1e543fb","blockNumber":396729513,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x0000000000000000000000006985884c4392d348587b19cb9eaaf157f13271cd0000000000000000000000000000000000000000000000000000000000000009","logIndex":5,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_7","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x13Ad51ed4F1B7e9Dc168d8a00cB3f4dDD85EfA60"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_7"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_8","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_8","networkInteraction":{"data":"0x09824a8000000000000000000000000013ad51ed4f1b7e9dc168d8a00cb3f4ddd85efa60","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_8","networkInteractionId":1,"nonce":57,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_8","networkInteractionId":1,"nonce":57,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"27502000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x33a0df97cb1ef9dd11dc3524e53f6121d16e140f899ccccb1dfa355099a670f0"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_8","hash":"0x33a0df97cb1ef9dd11dc3524e53f6121d16e140f899ccccb1dfa355099a670f0","networkInteractionId":1,"receipt":{"blockHash":"0xeb6a31d00ffb7967ae17ac6b86417edd570c45c334a402c4c46de08e590ca36d","blockNumber":396729523,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x00000000000000000000000013ad51ed4f1b7e9dc168d8a00cb3f4ddd85efa60000000000000000000000000000000000000000000000000000000000000000a","logIndex":22,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_8","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0c880f6761F1af8d9Aa9C466984b80DAb9a8c9e8"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_8"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_9","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_9","networkInteraction":{"data":"0x09824a800000000000000000000000000c880f6761f1af8d9aa9c466984b80dab9a8c9e8","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_9","networkInteractionId":1,"nonce":58,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_9","networkInteractionId":1,"nonce":58,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"27720000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x3b1279f0685f9c858a680dbe0a9db33624255415a69569cb21d3b5ae5910a55e"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_9","hash":"0x3b1279f0685f9c858a680dbe0a9db33624255415a69569cb21d3b5ae5910a55e","networkInteractionId":1,"receipt":{"blockHash":"0xa526f89337992bb4416172fea0151289c3aecfc2e956a0201d95cdf9a0385787","blockNumber":396729532,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x0000000000000000000000000c880f6761f1af8d9aa9c466984b80dab9a8c9e8000000000000000000000000000000000000000000000000000000000000000b","logIndex":1,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_9","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xd4d42F0b6DEF4CE0383636770eF773390d85c61A"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_9"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_10","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_10","networkInteraction":{"data":"0x09824a80000000000000000000000000d4d42f0b6def4ce0383636770ef773390d85c61a","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_10","networkInteractionId":1,"nonce":59,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_10","networkInteractionId":1,"nonce":59,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"27408000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x6c5b7a04dc3f09b1558bebb31e8f83fdff102b7f2f693f7384fdb4b6e0beaf06"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_10","hash":"0x6c5b7a04dc3f09b1558bebb31e8f83fdff102b7f2f693f7384fdb4b6e0beaf06","networkInteractionId":1,"receipt":{"blockHash":"0x7eebf93a20de128a7c10379b35eba804ec3eea6461702262b0f6f9685236dc57","blockNumber":396729542,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x000000000000000000000000d4d42f0b6def4ce0383636770ef773390d85c61a000000000000000000000000000000000000000000000000000000000000000c","logIndex":0,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_10","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_10"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_11","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_11","networkInteraction":{"data":"0x09824a80000000000000000000000000fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_11","networkInteractionId":1,"nonce":60,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_11","networkInteractionId":1,"nonce":60,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"27472000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xff25876828c1b63e2ca14579476e3ba54424bfd85b37c2c71ce52114852ce9ac"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_11","hash":"0xff25876828c1b63e2ca14579476e3ba54424bfd85b37c2c71ce52114852ce9ac","networkInteractionId":1,"receipt":{"blockHash":"0xee6076dc558feb86ed52a7ffc8ef242503617576c3d92a2e2a62c2ea696fd0e1","blockNumber":396729552,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x000000000000000000000000fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9000000000000000000000000000000000000000000000000000000000000000d","logIndex":3,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_11","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x9623063377AD1B27544C965cCd7342f7EA7e88C7"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_11"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_12","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_12","networkInteraction":{"data":"0x09824a800000000000000000000000009623063377ad1b27544c965ccd7342f7ea7e88c7","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_12","networkInteractionId":1,"nonce":61,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_12","networkInteractionId":1,"nonce":61,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"26886000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x46c5e03ba3d84222ac55575f0445fab529af5967145bf469a81432def6592a4c"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_12","hash":"0x46c5e03ba3d84222ac55575f0445fab529af5967145bf469a81432def6592a4c","networkInteractionId":1,"receipt":{"blockHash":"0x98649055c48cbf5ab20849b508112a933415f7becee09149a079a1f6d6793908","blockNumber":396729561,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x0000000000000000000000009623063377ad1b27544c965ccd7342f7ea7e88c7000000000000000000000000000000000000000000000000000000000000000e","logIndex":18,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_12","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xfa7f8980b0f1e64a2062791cc3b0871572f1f7f0"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_12"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_13","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_13","networkInteraction":{"data":"0x09824a80000000000000000000000000fa7f8980b0f1e64a2062791cc3b0871572f1f7f0","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_13","networkInteractionId":1,"nonce":62,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_13","networkInteractionId":1,"nonce":62,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"26662000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x95e39b381f1d5daaf0fcbedccbb92ffa8df765618c8d63f9a6b83534ddaecc5a"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_13","hash":"0x95e39b381f1d5daaf0fcbedccbb92ffa8df765618c8d63f9a6b83534ddaecc5a","networkInteractionId":1,"receipt":{"blockHash":"0x99c27b7268f907707d4553e51383f3da76532c036ef31b146f1736a8b3d9a8f7","blockNumber":396729571,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x000000000000000000000000fa7f8980b0f1e64a2062791cc3b0871572f1f7f0000000000000000000000000000000000000000000000000000000000000000f","logIndex":0,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_13","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_13"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_14","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_14","networkInteraction":{"data":"0x09824a80000000000000000000000000ff970a61a04b1ca14834a43f5de4533ebddb5cc8","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_14","networkInteractionId":1,"nonce":63,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_14","networkInteractionId":1,"nonce":63,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"26180000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x40f85565dd8b8d0603c425989658fdc6f4ff0df623a3a19c22a48debafbcfad2"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_14","hash":"0x40f85565dd8b8d0603c425989658fdc6f4ff0df623a3a19c22a48debafbcfad2","networkInteractionId":1,"receipt":{"blockHash":"0x922ad023a957a545fff7f0cc5a8ba5c2c71cc76a3ebdf85d7f485811487d4be5","blockNumber":396729581,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x000000000000000000000000ff970a61a04b1ca14834a43f5de4533ebddb5cc80000000000000000000000000000000000000000000000000000000000000010","logIndex":80,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_14","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x6491c05A82219b8D1479057361ff1654749b876b"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_14"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_15","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_15","networkInteraction":{"data":"0x09824a800000000000000000000000006491c05a82219b8d1479057361ff1654749b876b","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_15","networkInteractionId":1,"nonce":64,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_15","networkInteractionId":1,"nonce":64,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"26476000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xa794a4c2c79e6d35050cd43acca31ac8a4669face0ff55e659bfca3dd2035f57"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_15","hash":"0xa794a4c2c79e6d35050cd43acca31ac8a4669face0ff55e659bfca3dd2035f57","networkInteractionId":1,"receipt":{"blockHash":"0x846c8cc08e91e9bc15d3e99ca6ab635c5c93db92f3b7d0a458b0ee79234d8fd0","blockNumber":396729592,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x0000000000000000000000006491c05a82219b8d1479057361ff1654749b876b0000000000000000000000000000000000000000000000000000000000000011","logIndex":10,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_15","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_15"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_16","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_16","networkInteraction":{"data":"0x09824a800000000000000000000000002f2a2543b76a4166549f7aab2e75bef0aefc5b0f","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_16","networkInteractionId":1,"nonce":65,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_16","networkInteractionId":1,"nonce":65,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"26090000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x1b741f8f6ef409f02a57ec1a2cc1616bcd8fb419694421c00461792b66dc772a"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_16","hash":"0x1b741f8f6ef409f02a57ec1a2cc1616bcd8fb419694421c00461792b66dc772a","networkInteractionId":1,"receipt":{"blockHash":"0xdfdbb76f88e1995fb80a3a9868d70d5fb0835442744cf816de470f2d92fd8d37","blockNumber":396729601,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x0000000000000000000000002f2a2543b76a4166549f7aab2e75bef0aefc5b0f0000000000000000000000000000000000000000000000000000000000000012","logIndex":29,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_16","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xaf88d065e77c8cC2239327C5EDb3A432268e5831"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_16"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_17","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_17","networkInteraction":{"data":"0x09824a80000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_17","networkInteractionId":1,"nonce":121,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_17","networkInteractionId":1,"nonce":121,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"20000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xa8320980b3d9c3ff8b6047339718706bbd5008e5248e02171bb9205b81930af4"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_17","hash":"0xa8320980b3d9c3ff8b6047339718706bbd5008e5248e02171bb9205b81930af4","networkInteractionId":1,"receipt":{"blockHash":"0x28c86897e1a8234d30360bc7a5deaa342290eba7bff4b558ced075f1574338b0","blockNumber":397385513,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58310000000000000000000000000000000000000000000000000000000000000013","logIndex":0,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_17","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyVault#CurvyVaultV2","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","contractName":"CurvyVaultV2","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV2Implementation","constructorArgs":[],"contractName":"CurvyVaultV2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV2Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212200dd8f4b1ff65d8eaec14efc8498c5839e04bb38b2557e57ab8719387851cfb9064736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteractionId":1,"nonce":248,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteractionId":1,"nonce":248,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"20000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x1dbf165cb239687b0895a3025cef70c2193d33e62ea4d869c3140df6320981d2"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","hash":"0x1dbf165cb239687b0895a3025cef70c2193d33e62ea4d869c3140df6320981d2","networkInteractionId":1,"receipt":{"blockHash":"0x40024dffe234e702d6bf426cdca2b5f7208242feb6ed9ebe71c3a6b79f221310","blockNumber":411207870,"contractAddress":"0xaB67F776fC1D4b87EFfa60a75e95758c5ec60640","logs":[{"address":"0xaB67F776fC1D4b87EFfa60a75e95758c5ec60640","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":11,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","result":{"address":"0xaB67F776fC1D4b87EFfa60a75e95758c5ec60640","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0xaB67F776fC1D4b87EFfa60a75e95758c5ec60640","0x"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#CurvyVaultV2Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000ab67f776fc1d4b87effa60a75e95758c5ec6064000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteractionId":1,"nonce":249,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteractionId":1,"nonce":249,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"20000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x4ed9d03da7dc4b6e680f1ae60bd8cd21b1e75bb8e85c75ea7bb2cd8047950ec8"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","hash":"0x4ed9d03da7dc4b6e680f1ae60bd8cd21b1e75bb8e85c75ea7bb2cd8047950ec8","networkInteractionId":1,"receipt":{"blockHash":"0x4a5eec6a5e920b70bfbd0574c4b2724ebca6978485ffef36f5cc84dc967dbc46","blockNumber":411207880,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x","logIndex":10,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000ab67f776fc1d4b87effa60a75e95758c5ec60640"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","contractName":"CurvyAggregatorAlphaV3","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV3","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xe5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073e5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073e5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212206ff0d470ab001319b7a6d16084e8db1922e67b75e58813aaec5f4d41b61b48b164736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteractionId":1,"nonce":250,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteractionId":1,"nonce":250,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"20000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xef7f0f023f309ee4f7d22241cdefccedd2153466a3d3ba91e57ddcde532b8785"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","hash":"0xef7f0f023f309ee4f7d22241cdefccedd2153466a3d3ba91e57ddcde532b8785","networkInteractionId":1,"receipt":{"blockHash":"0x1f3c8809232df36772acc502fd2f4177d649890437acb8665a6589d37ca97303","blockNumber":411208281,"contractAddress":"0x8c7C072fe3550027271d969A4b7Ce331062e9739","logs":[{"address":"0x8c7C072fe3550027271d969A4b7Ce331062e9739","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":1,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","result":{"address":"0x8c7C072fe3550027271d969A4b7Ce331062e9739","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x8c7C072fe3550027271d969A4b7Ce331062e9739","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef2860000000000000000000000008c7c072fe3550027271d969a4b7ce331062e973900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteractionId":1,"nonce":251,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteractionId":1,"nonce":251,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"20000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xf35e38e29884b8ff2dcd6a401e8cb848260b14f4c98836cc1a6ff5fc1297701e"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","hash":"0xf35e38e29884b8ff2dcd6a401e8cb848260b14f4c98836cc1a6ff5fc1297701e","networkInteractionId":1,"receipt":{"blockHash":"0xc5e1cd4fd8aa44a644dcdf725d691e2d866fd87b6319b771f094f36609733e95","blockNumber":411208290,"logs":[{"address":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","data":"0x","logIndex":12,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000008c7c072fe3550027271d969a4b7ce331062e9739"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-
-{"artifactId":"PortalFactoryAggregatorModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryAggregatorModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory","networkInteraction":{"data":"0x263076686d696861696c6f20616e642076616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000013d97f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516113b93803806113b983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611277806101425f395ff3fe608060405260043610610084575f3560e01c8063715018a611610057578063715018a614610133578063735f399d146101475780637377bbb41461015a5780638da5cb5b14610186578063f2fde38b146101a2575f5ffd5b80631d29b183146100885780633290c33b146100a95780633942b0ad146100e557806352982f3b14610114575b5f5ffd5b348015610093575f5ffd5b506100a76100a236600461074a565b6101c1565b005b3480156100b4575f5ffd5b506100c86100c33660046107d9565b61031f565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100f0575f5ffd5b506101046100ff3660046107f0565b61038d565b60405190151581526020016100dc565b34801561011f575f5ffd5b5061010461012e366004610810565b6103ba565b34801561013e575f5ffd5b506100a7610406565b6100a7610155366004610850565b610419565b348015610165575f5ffd5b506101796101743660046107d9565b6105a1565b6040516100dc919061086a565b348015610191575f5ffd5b505f546001600160a01b03166100c8565b3480156101ad575f5ffd5b506100a76101bc3660046107f0565b61060c565b6004546001600160a01b031661023a5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084015b60405180910390fd5b5f610247835f01516105a1565b90505f5f60015490508083516020850134f591506001600160a01b0382166102b15760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610231565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936102e9939216918c918c918c918c910161089f565b5f604051808303815f87803b158015610300575f5ffd5b505af1158015610312573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f61032a836105a1565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff19166021820152603581019390935260558084019290925280518084039092018252607590920190915280519101209392505050565b5f610396610649565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b5f6103c3610649565b50600280546001600160a01b039485166001600160a01b031991821617909155600380549385169382169390931790925560048054919093169116179055600190565b61040e610649565b6104175f610675565b565b6002546001600160a01b0316158061043a57506003546001600160a01b0316155b156104a45760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b6064820152608401610231565b5f6104b1825f01516105a1565b90505f5f60015490508083516020850134f591506001600160a01b03821661051b5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610231565b60035460025460408051631329a1a760e31b815287516004820152602088015160248201529087015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610585575f5ffd5b505af1158015610597573d5f5f3e3d5ffd5b5050505050505050565b60605f604051806020016105b4906106c4565b601f1982820381018352601f9091011660408181526020808301879052815180840390910181528183019091529192506105f4908390839060600161092b565b60405160208183030381529060405292505050919050565b610614610649565b6001600160a01b03811661063d57604051631e4fbdf760e01b81525f6004820152602401610231565b61064681610675565b50565b5f546001600160a01b031633146104175760405163118cdaa760e01b8152336004820152602401610231565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6108fa8061094883390190565b5f606082840312156106e1575f5ffd5b6040516060810181811067ffffffffffffffff8211171561071057634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b80356001600160a01b03811681146103b5575f5ffd5b5f5f5f5f60a0858703121561075d575f5ffd5b843567ffffffffffffffff811115610773575f5ffd5b8501601f81018713610783575f5ffd5b803567ffffffffffffffff811115610799575f5ffd5b8760208284010111156107aa575f5ffd5b6020918201955093506107c090879087016106d1565b91506107ce60808601610734565b905092959194509250565b5f602082840312156107e9575f5ffd5b5035919050565b5f60208284031215610800575f5ffd5b61080982610734565b9392505050565b5f5f5f60608486031215610822575f5ffd5b61082b84610734565b925061083960208501610734565b915061084760408501610734565b90509250925092565b5f60608284031215610860575f5ffd5b61080983836106d1565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506108f960408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b5f81518060208401855e5f93019283525090919050565b5f61093f6109398386610914565b84610914565b94935050505056fe6080604052348015600e575f5ffd5b506040516108fa3803806108fa833981016040819052602b916032565b6001556048565b5f602082840312156041575f5ffd5b5051919050565b6108a5806100555f395ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c80633fb070271461004e5780635dc24ee31461007d578063994d0d3814610090578063bcd6c474146100a5575b5f5ffd5b600354610061906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610061906001600160a01b031681565b6100a361009e366004610751565b6100b8565b005b6100a36100b3366004610798565b610357565b5f5460ff16156101095760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b60448201526064015b60405180910390fd5b60015483511461015b5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610100565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf38916101b5919060040190815260200190565b602060405180830381865afa1580156101d0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101f4919061083e565b90506001600160a01b0381161580159061022b57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156102ca576002546040850151610250916001600160a01b0384811692911690610569565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b1580156102af575f5ffd5b505af11580156102c1573d5f5f3e3d5ffd5b50505050610345565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561032d575f5ffd5b505af115801561033f573d5f5f3e3d5ffd5b50505050505b50505f805460ff191660011790555050565b5f5460ff16156103a35760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610100565b6001600160a01b0385166103f95760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610100565b60015482511461044b5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610100565b60408201516001600160a01b0382161580159061048557506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104a85760408301516104a5906001600160a01b038416908890610569565b505f5b5f866001600160a01b03168287876040516104c4929190610860565b5f6040518083038185875af1925050503d805f81146104fe576040519150601f19603f3d011682016040523d82523d5f602084013e610503565b606091505b50509050806105545760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610100565b50505f805460ff191660011790555050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526105ba8482610622565b61061c57604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261061290859061066b565b61061c848261066b565b50505050565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610661575081156106535780600114610661565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af18061068a576040513d5f823e3d81fd5b50505f513d915081156106a15780600114156106ae565b6001600160a01b0384163b155b1561061c57604051635274afe760e01b81526001600160a01b0385166004820152602401610100565b5f606082840312156106e7575f5ffd5b6040516060810181811067ffffffffffffffff8211171561071657634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b6001600160a01b038116811461074e575f5ffd5b50565b5f5f5f60a08486031215610763575f5ffd5b61076d85856106d7565b9250606084013561077d8161073a565b9150608084013561078d8161073a565b809150509250925092565b5f5f5f5f5f60c086880312156107ac575f5ffd5b85356107b78161073a565b9450602086013567ffffffffffffffff8111156107d2575f5ffd5b8601601f810188136107e2575f5ffd5b803567ffffffffffffffff8111156107f8575f5ffd5b886020828401011115610809575f5ffd5b6020919091019450925061082087604088016106d7565b915060a08601356108308161073a565b809150509295509295909350565b5f6020828403121561084e575f5ffd5b81516108598161073a565b9392505050565b818382375f910190815291905056fea26469706673582212207321f439bbd3f41116bfe31e9272a655e2c52c61a59b8ad1f4caa1331dc20b6564736f6c634300081c0033a2646970667358221220469cc9ebb0be860583ce6271c5714b696f7f83bd5dc7df0218cf81b332b6577364736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory","networkInteractionId":1,"nonce":328,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory","networkInteractionId":1,"nonce":328,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40128000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x9a18bbfc0614b4c0eb271496b23aab8f4c557072dda9ad2bbba77ff85db4e53e"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory","hash":"0x9a18bbfc0614b4c0eb271496b23aab8f4c557072dda9ad2bbba77ff85db4e53e","networkInteractionId":1,"receipt":{"blockHash":"0x5667d8896c489aff75d15431b12f7f8896696757e7b82d3fda17f89ecefec922","blockNumber":421297816,"logs":[{"address":"0x10aA4c497Fbb880AEa10F8258D7fECb6A2da297F","data":"0x","logIndex":84,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":85,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x00000000000000000000000010aa4c497fbb880aea10f8258d7fecb6a2da297f","0xb1479d7f5dfd9da0029a798b27f617354f0aeca1c622cb19c1f7fe6bd9fc5bc1"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory","result":{"address":"0x10aA4c497Fbb880AEa10F8258D7fECb6A2da297F","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactoryAggregatorModule#PortalFactory","contractAddress":"0x10aA4c497Fbb880AEa10F8258D7fECb6A2da297F","dependencies":["PortalFactoryAggregatorModule#PortalFactory","CurvyVault#CurvyVaultV2","CurvyAggregatorAlpha#CurvyAggregatorAlphaV3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"initializeConfig","futureId":"PortalFactoryAggregatorModule#PortalFactory.initializeConfig","strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory.initializeConfig","networkInteraction":{"data":"0x52982f3b000000000000000000000000b4ba872fba00bc4268067d5de4223240cec4b6d50000000000000000000000009c07e1ff4f1b96ae609331bac327fcc2d85632240000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x10aA4c497Fbb880AEa10F8258D7fECb6A2da297F","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":329,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":329,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40244000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x1f3b8feb9f4e4eab82b0884e7fcb55354c63cc7ef03056c00ab77e3845bf3c34"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory.initializeConfig","hash":"0x1f3b8feb9f4e4eab82b0884e7fcb55354c63cc7ef03056c00ab77e3845bf3c34","networkInteractionId":1,"receipt":{"blockHash":"0x552131a8d3a94f8c7e6add5473d62a492a1263a26bbae95d5e8226a894787cd0","blockNumber":421297829,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory.initializeConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016bc7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":407,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":407,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40112000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x4e63796479e6ab5c294ad91465f5ee70915e3f92e68b5993704bddedaf1f0560"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x4e63796479e6ab5c294ad91465f5ee70915e3f92e68b5993704bddedaf1f0560","networkInteractionId":1,"receipt":{"blockHash":"0xcb8c92a8900e71a044bef0f0d10deb5a7259cf2a9c2ba5b85a12c765990c20c0","blockNumber":426105949,"logs":[{"address":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","data":"0x","logIndex":0,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000ff84acbae0c126506b250b0c7d17bcc8367c1d16","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"PortalFactoryModule#PortalFactory.updateConfig","strategy":"create2","strategyConfig":{"salt":"0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000b4ba872fba00bc4268067d5de4223240cec4b6d50000000000000000000000009c07e1ff4f1b96ae609331bac327fcc2d85632240000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":408,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":408,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40252000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xda05a4d95cc73f557f20f5d04edbf99b22d7647c6f5f1cd5472848945033eea6"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","hash":"0xda05a4d95cc73f557f20f5d04edbf99b22d7647c6f5f1cd5472848945033eea6","networkInteractionId":1,"receipt":{"blockHash":"0x52fada87eeb844ee167b6b8fdbe73887cf5bf4be8f6b80b20b09438d63ea3121","blockNumber":426105959,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","constructorArgs":[],"contractName":"CurvyInsertionVerifierAlpha_2","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b5061124e8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046110b1565b610054565b604051901515815260200160405180910390f35b5f61005d610ed8565b60408051808201825287518152602080890151818301529083528151608080820184528851518285019081528951840151606084015282528351808501855289840180515182525184015181850152828401528483019190915282518084018452875181528783015181840152848401528251600480825260a082019094525f939092909190830190803683370190505090505f5b60048110156101375784816004811061010d5761010d611194565b602002015182828151811061012457610124611194565b60209081029190910101526001016100f2565b506101428183610161565b5f0361015357600192505050610159565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018161018c610348565b9050806080015151855160016101a291906111bc565b146101e95760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cf578387828151811061021b5761021b611194565b6020026020010151106102705760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101e0565b6102c5826102c0856080015184600161028991906111bc565b8151811061029957610299611194565b60200260200101518a85815181106102b3576102b3611194565b6020026020010151610845565b6108d9565b91506001016101ff565b506102f78183608001515f815181106102ea576102ea611194565b60200260200101516108d9565b905061032b610308865f0151610970565b8660200151845f015185602001518587604001518b604001518960600151610a0c565b61033b5760019350505050610342565b5f93505050505b92915050565b610350610f26565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f2933c663723e3630bea92f14ce272046739c1de9ac0de5108d9f97504796bcdd8185019081527f2d9d46b72cb758726c5730268fdedefe18f1b55f5b935a82ecf821c05b252da1828401528152835180850185527f0d673c337136dbf082c467ce378ee3bce333a36c5f27cc01edf54179d6e7dc6081527f0c907c5922e46c3cadc99de46a7b8d01770eded5cef85379f58252ab65cb80ad8185015281840152908401528151600580825260c08201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105cb57505060808201908152604080518082019091527f0cdbf7f6fb2cf15ec81a44a104d6490ebeeeea7bf9a0cbf4d695c2a5e7ef7d8481527e5eff6d3e9efe8e7e1fc61c474ed76a4e42f9233e0e5c1054caa772f3b03c396020820152905180515f9061065b5761065b611194565b602002602001018190525060405180604001604052807f24aa7ee61e4ad8e6faf43e12eeb8b33081498ee103385743f2f357bf8b0c6af181526020017f22d171354b9d3a5d983212b596739d62f1cc42aff5df6db8475e4b887902146581525081608001516001815181106106d2576106d2611194565b602002602001018190525060405180604001604052807f3037fd725c311a8a59dc660d0fa266e188928bef08015840cf45d7998b747a1881526020017f20918eb8f6b9ca00d9004f42b7bd61a3703ea034983fa552ba34fcbde0d59bc2815250816080015160028151811061074957610749611194565b602002602001018190525060405180604001604052807f1b5c870d21c274d5bdf96cd309bdbda13661a47c01ce8483bd3682fcc1d58a3081526020017f2f4600674aa2b704715e8f62433edcae3bae85557d27e74af090ebcdbc0b195e81525081608001516003815181106107c0576107c0611194565b602002602001018190525060405180604001604052807f199fcda69c0bfd4d6f2db0f385bd0fcf78f0074be4d5eeb7f75f32963269d8d981526020017f1638a9aa5129a8fa9964966f9545941fbceb843dd14aa0f40531c6197da17578815250816080015160048151811061083757610837611194565b602002602001018190525090565b604080518082019091525f8082526020820152610860610f76565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa9050808061088e57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101e0565b505092915050565b604080518082019091525f80825260208201526108f4610f94565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa9050808061092d57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101e0565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47901580156109b657506020830151155b156109d5575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f015181526020018285602001516109f991906111cf565b610a0390846111ee565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610a2657505060408051600480825260a082019092529192505f9190602082015b610a6e610fb2565b815260200190600190039081610a665790505090508a825f81518110610a9657610a96611194565b60200260200101819052508882600181518110610ab557610ab5611194565b60200260200101819052508682600281518110610ad457610ad4611194565b60200260200101819052508482600381518110610af357610af3611194565b602002602001018190525089815f81518110610b1157610b11611194565b60200260200101819052508781600181518110610b3057610b30611194565b60200260200101819052508581600281518110610b4f57610b4f611194565b60200260200101819052508381600381518110610b6e57610b6e611194565b6020026020010181905250610b838282610b92565b9b9a5050505050505050505050565b5f8151835114610bdd5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101e0565b82515f610beb826006611201565b90505f8167ffffffffffffffff811115610c0757610c0761100e565b604051908082528060200260200182016040528015610c30578160200160208202803683370190505b5090505f5b83811015610e5d57868181518110610c4f57610c4f611194565b60200260200101515f015182826006610c689190611201565b610c72905f6111bc565b81518110610c8257610c82611194565b602002602001018181525050868181518110610ca057610ca0611194565b60200260200101516020015182826006610cba9190611201565b610cc59060016111bc565b81518110610cd557610cd5611194565b602002602001018181525050858181518110610cf357610cf3611194565b6020908102919091010151515182610d0c836006611201565b610d179060026111bc565b81518110610d2757610d27611194565b602002602001018181525050858181518110610d4557610d45611194565b60209081029190910181015151015182610d60836006611201565b610d6b9060036111bc565b81518110610d7b57610d7b611194565b602002602001018181525050858181518110610d9957610d99611194565b6020026020010151602001515f60028110610db657610db6611194565b602002015182610dc7836006611201565b610dd29060046111bc565b81518110610de257610de2611194565b602002602001018181525050858181518110610e0057610e00611194565b602002602001015160200151600160028110610e1e57610e1e611194565b602002015182610e2f836006611201565b610e3a9060056111bc565b81518110610e4a57610e4a611194565b6020908102919091010152600101610c35565b50610e66610fd2565b5f602082602086026020860160086107d05a03fa90508080610e8457fe5b5080610eca5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101e0565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101610f01610fb2565b8152602001610f2160405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101610f4f610fb2565b8152602001610f5c610fb2565b8152602001610f69610fb2565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280610fc5610ff0565b8152602001610f21610ff0565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561105757634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f83011261106e575f5ffd5b5f6110796040611022565b905080604084018581111561108c575f5ffd5b845b818110156110a657803583526020928301920161108e565b509195945050505050565b5f5f5f5f61018085870312156110c5575f5ffd5b6110cf868661105f565b935085605f8601126110df575f5ffd5b60406110ea81611022565b8060c08801898111156110fb575f5ffd5b604089015b81811015611121576111128b8261105f565b84526020909301928401611100565b5081965061112f8a8261105f565b95505050505061010085015f87601f830112611149575f5ffd5b5f6111546080611022565b905080608084018a811115611167575f5ffd5b5b80851015611183578435825260209485019490910190611168565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610342576103426111a8565b5f826111e957634e487b7160e01b5f52601260045260245ffd5b500690565b81810381811115610342576103426111a8565b8082028115828204841417610342576103426111a856fea264697066735822122052b8c89d46e40ccc60f13c59a59ab39c0a5084d1333d84af2fe13436741f62ef64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","networkInteractionId":1,"nonce":409,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","networkInteractionId":1,"nonce":409,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40280000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x78b5f9838d27416b734111c9877660853dfdee4a4686ec201575913c8aebf4d5"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","hash":"0x78b5f9838d27416b734111c9877660853dfdee4a4686ec201575913c8aebf4d5","networkInteractionId":1,"receipt":{"blockHash":"0xe04abaf314a7fa25e2488d92965c2ceb480a39da346a3d0183510f4ef5d3ac3b","blockNumber":426130750,"contractAddress":"0xb9AfF2366995bbc304fc361D23F7b4E06CA11efc","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","result":{"address":"0xb9AfF2366995bbc304fc361D23F7b4E06CA11efc","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","constructorArgs":[],"contractName":"CurvyAggregationVerifierAlpha_2","dependencies":["CurvyAggregatorAlpha#NewInsertionVerifier_v2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506116ed8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004611553565b610054565b604051901515815260200160405180910390f35b5f61005d61137a565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600e8082526101e082019093525f92909182016101c0803683370190505090505f5b600e811015610133578481600e811061010957610109611633565b602002015182828151811061012057610120611633565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061165b565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611633565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061165b565b8151811061029557610295611633565b60200260200101518a85815181106102af576102af611633565b6020026020010151610ce7565b610d7b565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611633565b6020026020010151610d7b565b9050610327610304865f0151610e12565b8660200151845f015185602001518587604001518b604001518960600151610eae565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6113c8565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f040960ae7a0345676e57477fe153547dac4996ccff6cd8bdbfab68194176ebfe8185019081527f09f390a54aa2c22bc7ab1273ccbfba2d124f277c4b7858b7e6b2b215264b2524828401528152835180850185527f069489b61aadf82d080f5b031e40c78265091ce5230bde1c6b129bd6ee8f929a81527f11d4a92da28cae8798f897d046ec7d2b818431d18ca7d7b30c720a5a4320777f8185015281840152908401528151600f8082526102008201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f18c30badf97bca79e0290e1e2709c180d796014d89846a50fdf83edb9a5f126081527ec6ff8cc32c2c88d6a18abf5d8474acb27c8174ed0969d8641896bb65bc14c46020820152905180515f9061065857610658611633565b602002602001018190525060405180604001604052807f26be249a1394d006fdb707e50aafdbfae0abcdd8424b6e9ecfaad5546f97f78881526020017f1d61635959d20e223664b32f4564dc44e3b7b360b37d388f9f7f51585800155581525081608001516001815181106106cf576106cf611633565b602002602001018190525060405180604001604052807f2506541fa33baf46747051d8ebe51a91b929a728a707a75f0cdeafd7f739fd3181526020017f0d08b60cf224252ab06e146a2272e4c007567054b6e83778161343ae31deb5ac815250816080015160028151811061074657610746611633565b602002602001018190525060405180604001604052807f1f3bdf1e50dc24be846513f7f74068a55438ca5acb4f64c3d3921bde7468a2d681526020017f2e5e1a4837097500979c5d1cf152f067e70c896ac860ba29651b02f6e79edae281525081608001516003815181106107bd576107bd611633565b602002602001018190525060405180604001604052807f203c139f09bbb742c8d4c51234494498c24d56884f24f6545086e2238e763a5881526020017f028e6932f3bc2561b30d7fe76c6de6bebf4c8ea0621bbb6ad41882df5eb7264b815250816080015160048151811061083457610834611633565b602002602001018190525060405180604001604052807f204223f3717fb8cd7ebd1a98a872f75b82e0ef94fa940335abd65568db85649f81526020017f0d2ccb01844a345701f9b1f27c633fdb9ad135aeaa0fae0fd831d08edcdc323b81525081608001516005815181106108ab576108ab611633565b602002602001018190525060405180604001604052807f2ca96167b9316ee5855a83bb4a92112653444fffa0bf5725ae9b090bb288152e81526020017f1d6d5440897b2ec044f2aaecdab5e507c4d69f8c7ca8813db13ce819e79129d4815250816080015160068151811061092257610922611633565b602002602001018190525060405180604001604052807f1cba19de78b5c7c47d2407121e7e86d0d70c63aaee0ce04ca5fecaee97ab75d481526020017f059319895b38a350849d8c25b406b951743ab1c6237a63b648f07c5f3e7e19dd815250816080015160078151811061099957610999611633565b602002602001018190525060405180604001604052807f016cc32364e0c0823d4b34edc52852c6665a421cd8867fbd190170fab867bea681526020017f0734df7485b401e47cbd1c3ab7024be0250f9fa13ab7ec9b3b40d83178eb2b468152508160800151600881518110610a1057610a10611633565b602002602001018190525060405180604001604052807f29286c62d871cffa08e84997e6180455e1edca20d681ef29656ef4d6d45b001781526020017f2e71a4c29421434de9ed5e921a2b6a23816a740d99b6f135fd01cad64bd288ac8152508160800151600981518110610a8757610a87611633565b602002602001018190525060405180604001604052807f2492df9b4d0ad2639c6f34096692d29d2f9ed9ee57d9e9c3ba303e9dbcdae43081526020017f2e497c91b7e5e3a2a9b9f7fe9cdfe78c9e72037bb7552e29d54813a4566c6fbd8152508160800151600a81518110610afe57610afe611633565b602002602001018190525060405180604001604052807f1476e8d331c072345e564de7e0c1b051b0b0b18531bdd1e7441e0257090a0c1781526020017f110b09db70453d4ec6bed001ab95fcb5ce4b8e21a0c4f4c26b91dc8059aa1dce8152508160800151600b81518110610b7557610b75611633565b602002602001018190525060405180604001604052807e6e2fbcfe989d63aea84d90addc8537a921948b213ef36ec5fa0cbb5b68670381526020017f06f6a502b00b2945dd9841eca5ab5f69654f4992777102c600ca5402c35d6c288152508160800151600c81518110610beb57610beb611633565b602002602001018190525060405180604001604052807f01a330e578c215a80aaf5fc3208956611670affa4560f2dd1f7892698b50c35881526020017f0a9ccad9b2edacd7bbb8a5c460a47d7a114166eace7c8cfe32c7a4243c30e0f28152508160800151600d81518110610c6257610c62611633565b602002602001018190525060405180604001604052807f0aa436490c317254e1444ad76cac634937ea2fa0d0730983455fed54f43c9ff981526020017f12228d15b01f07e1d77acd2c2c609c7e4c9a70503e071ec4963191e6d4d13d598152508160800151600e81518110610cd957610cd9611633565b602002602001018190525090565b604080518082019091525f8082526020820152610d02611418565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610d3057fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610d96611436565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610dcf57fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610e5857506020830151155b15610e77575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610e9b919061166e565b610ea5908461168d565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610ec857505060408051600480825260a082019092529192505f9190602082015b610f10611454565b815260200190600190039081610f085790505090508a825f81518110610f3857610f38611633565b60200260200101819052508882600181518110610f5757610f57611633565b60200260200101819052508682600281518110610f7657610f76611633565b60200260200101819052508482600381518110610f9557610f95611633565b602002602001018190525089815f81518110610fb357610fb3611633565b60200260200101819052508781600181518110610fd257610fd2611633565b60200260200101819052508581600281518110610ff157610ff1611633565b6020026020010181905250838160038151811061101057611010611633565b60200260200101819052506110258282611034565b9b9a5050505050505050505050565b5f815183511461107f5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f61108d8260066116a0565b90505f8167ffffffffffffffff8111156110a9576110a96114b0565b6040519080825280602002602001820160405280156110d2578160200160208202803683370190505b5090505f5b838110156112ff578681815181106110f1576110f1611633565b60200260200101515f01518282600661110a91906116a0565b611114905f61165b565b8151811061112457611124611633565b60200260200101818152505086818151811061114257611142611633565b6020026020010151602001518282600661115c91906116a0565b61116790600161165b565b8151811061117757611177611633565b60200260200101818152505085818151811061119557611195611633565b60209081029190910101515151826111ae8360066116a0565b6111b990600261165b565b815181106111c9576111c9611633565b6020026020010181815250508581815181106111e7576111e7611633565b602090810291909101810151510151826112028360066116a0565b61120d90600361165b565b8151811061121d5761121d611633565b60200260200101818152505085818151811061123b5761123b611633565b6020026020010151602001515f6002811061125857611258611633565b6020020151826112698360066116a0565b61127490600461165b565b8151811061128457611284611633565b6020026020010181815250508581815181106112a2576112a2611633565b6020026020010151602001516001600281106112c0576112c0611633565b6020020151826112d18360066116a0565b6112dc90600561165b565b815181106112ec576112ec611633565b60209081029190910101526001016110d7565b50611308611474565b5f602082602086026020860160086107d05a03fa9050808061132657fe5b508061136c5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016113a3611454565b81526020016113c360405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c08301919091528152602081016113f1611454565b81526020016113fe611454565b815260200161140b611454565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280611467611492565b81526020016113c3611492565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156114f957634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611510575f5ffd5b5f61151b60406114c4565b905080604084018581111561152e575f5ffd5b845b81811015611548578035835260209283019201611530565b509195945050505050565b5f5f5f5f6102c08587031215611567575f5ffd5b6115718686611501565b935085605f860112611581575f5ffd5b604061158c816114c4565b8060c088018981111561159d575f5ffd5b604089015b818110156115c3576115b48b82611501565b845260209093019284016115a2565b508196506115d18a82611501565b95505050505061010085015f87601f8301126115eb575f5ffd5b5f6101c06115f8816114c4565b91508301818a821115611609575f5ffd5b5b8185101561162257843581526020948501940161160a565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e611647565b5f8261168857634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e611647565b808202811582820484141761033e5761033e61164756fea26469706673582212208ecec3b58f8c69288c925191a76554c85a5d679e9a34b2047785e1439c8c3d1d64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","networkInteractionId":1,"nonce":410,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","networkInteractionId":1,"nonce":410,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40060000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x33c036902169342e9802c818d84210984e1503e2e1c277ea2cc9904c830e6478"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","hash":"0x33c036902169342e9802c818d84210984e1503e2e1c277ea2cc9904c830e6478","networkInteractionId":1,"receipt":{"blockHash":"0x55414eda57e40d60ee00eadef3ab54fa00ea9837d4b179ff19b545e8cce16d78","blockNumber":426130760,"contractAddress":"0x17a305e298bd3C5108F9Dc97B363B33DAEcFD29f","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","result":{"address":"0x17a305e298bd3C5108F9Dc97B363B33DAEcFD29f","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlpha_2","dependencies":["CurvyAggregatorAlpha#NewAggregationVerifier_v2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506115118061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b366004611377565b610054565b604051901515815260200160405180910390f35b5f61005d61119e565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600a80825261016082019093525f9290918201610140803683370190505090505f5b600a811015610133578481600a811061010957610109611457565b602002015182828151811061012057610120611457565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061147f565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611457565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061147f565b8151811061029557610295611457565b60200260200101518a85815181106102af576102af611457565b6020026020010151610b0b565b610b9f565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611457565b6020026020010151610b9f565b9050610327610304865f0151610c36565b8660200151845f015185602001518587604001518b604001518960600151610cd2565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6111ec565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f0b5a45bbb3d9f21c42579fd5a810f82f25e696fb3b00ef64b8ca2d17d89fe4ed8185019081527f0f79b405819a9900f7edb3f309c9b73a45673c17366eeb72361c23f957680a89828401528152835180850185527f23b107da251eb5c5dd3c157a900388d73f64a4394faf6a12ae2077766d720b0881527f2188bf40a163dba1ba12fc061d0a6fc9d7246af5e912fcbb23b59a53823b7c048185015281840152908401528151600b8082526101808201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f118592ce705cf3d21e870156a4dc6cff3b2a01fca2c8e60a402fc01dd47341de81527f1fe6c8cb2c02b9ddf7ed360fd3ba99867e54e590d7ca62b57d839ef26d549f0c6020820152905180515f9061065957610659611457565b602002602001018190525060405180604001604052807f154574f61b1a23d66f35533910d332b8ab9bffc6274ce4ffb0bf3b7f1210090781526020017f1ac6f7f35d927f760afe3efc726d0d1ab8ab6514d018630e92a11b5079108b9a81525081608001516001815181106106d0576106d0611457565b602002602001018190525060405180604001604052807f102a84a54eb42169d68f30c781aabd282a341b2b4c25cd55fdae5e3479b4182a81526020017f1b8113a1108e05880a85ae50fdaa0f86926095751a6c3f0130cee222578c7911815250816080015160028151811061074757610747611457565b602002602001018190525060405180604001604052807f25504b6ec89efe8110a42f0ffda2f64b4c0b63b83a776f2146c23ddb2b9c346081526020017e1bd1b27eb32e5c1ecc7f9b08d87e6c7eff72e21014bd87c5badb37e82d50c781525081608001516003815181106107bd576107bd611457565b602002602001018190525060405180604001604052807f2955cc92eefc93c0bb8f2a726fbcbadbedd59c2f68b3701defa2ac66e1c1643f81526020017f1a8bfc29eefca9fd267806f814daf245aa0fb67048fbc16761d5fc39282f7336815250816080015160048151811061083457610834611457565b602002602001018190525060405180604001604052807f0acefb487079ce3764bf9e0af6b69a939b8f43cb3cce80262ebd68167a86afa881526020017f2500ee5fc51d1ed187adfe4cb25ef69610207eefc41a868d14a519b58c99286081525081608001516005815181106108ab576108ab611457565b602002602001018190525060405180604001604052807f1eca69b2e86127c29cd324a9b13cf89c0e657596c9e37dc05eec008c8fa84fdb81526020017f2f11a966ac185bf5d584d386b3e8a555d66e51913d8801fb9189542b4bcd3624815250816080015160068151811061092257610922611457565b602002602001018190525060405180604001604052807ee8670dd1e30ffd6e6d42b6f98d3cd5ebb1a6c2a726f4024e6c27b555683cf881526020017f152894c1731fbedba470963903d414e8c210a8b846aedba229071fa832e882fa815250816080015160078151811061099857610998611457565b602002602001018190525060405180604001604052807f2354fe17a8632ee331a1459f6df0806153f19ed6c1645906895e966cea47cab981526020017f27700ede44b18910d2a31045a1d448bb930ba1c39cc918aa3f4b093a610e45b58152508160800151600881518110610a0f57610a0f611457565b602002602001018190525060405180604001604052807f2f583f76ad789e51575f9168446813e1e5655c1f444ed4f8bd2c38c8c438a52e81526020017f21e4aa608b395b9eaf98de7f2c77baac96da672aedab46f36e4a732fbefdaa328152508160800151600981518110610a8657610a86611457565b602002602001018190525060405180604001604052807f29b71cd418de446ac259b14d47ccbc6c7bf3021aa56d6d3ab3fc80becde42ba281526020017f1671437c4af2a055de0faf52bad6da5b1c1f37d53e279ef8d7a04b401b8f00b18152508160800151600a81518110610afd57610afd611457565b602002602001018190525090565b604080518082019091525f8082526020820152610b2661123c565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610b5457fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610bba61125a565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610bf357fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c7c57506020830151155b15610c9b575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610cbf9190611492565b610cc990846114b1565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610cec57505060408051600480825260a082019092529192505f9190602082015b610d34611278565b815260200190600190039081610d2c5790505090508a825f81518110610d5c57610d5c611457565b60200260200101819052508882600181518110610d7b57610d7b611457565b60200260200101819052508682600281518110610d9a57610d9a611457565b60200260200101819052508482600381518110610db957610db9611457565b602002602001018190525089815f81518110610dd757610dd7611457565b60200260200101819052508781600181518110610df657610df6611457565b60200260200101819052508581600281518110610e1557610e15611457565b60200260200101819052508381600381518110610e3457610e34611457565b6020026020010181905250610e498282610e58565b9b9a5050505050505050505050565b5f8151835114610ea35760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610eb18260066114c4565b90505f8167ffffffffffffffff811115610ecd57610ecd6112d4565b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b5090505f5b8381101561112357868181518110610f1557610f15611457565b60200260200101515f015182826006610f2e91906114c4565b610f38905f61147f565b81518110610f4857610f48611457565b602002602001018181525050868181518110610f6657610f66611457565b60200260200101516020015182826006610f8091906114c4565b610f8b90600161147f565b81518110610f9b57610f9b611457565b602002602001018181525050858181518110610fb957610fb9611457565b6020908102919091010151515182610fd28360066114c4565b610fdd90600261147f565b81518110610fed57610fed611457565b60200260200101818152505085818151811061100b5761100b611457565b602090810291909101810151510151826110268360066114c4565b61103190600361147f565b8151811061104157611041611457565b60200260200101818152505085818151811061105f5761105f611457565b6020026020010151602001515f6002811061107c5761107c611457565b60200201518261108d8360066114c4565b61109890600461147f565b815181106110a8576110a8611457565b6020026020010181815250508581815181106110c6576110c6611457565b6020026020010151602001516001600281106110e4576110e4611457565b6020020151826110f58360066114c4565b61110090600561147f565b8151811061111057611110611457565b6020908102919091010152600101610efb565b5061112c611298565b5f602082602086026020860160086107d05a03fa9050808061114a57fe5b50806111905760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016111c7611278565b81526020016111e760405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101611215611278565b8152602001611222611278565b815260200161122f611278565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061128b6112b6565b81526020016111e76112b6565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561131d57634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611334575f5ffd5b5f61133f60406112e8565b9050806040840185811115611352575f5ffd5b845b8181101561136c578035835260209283019201611354565b509195945050505050565b5f5f5f5f610240858703121561138b575f5ffd5b6113958686611325565b935085605f8601126113a5575f5ffd5b60406113b0816112e8565b8060c08801898111156113c1575f5ffd5b604089015b818110156113e7576113d88b82611325565b845260209093019284016113c6565b508196506113f58a82611325565b95505050505061010085015f87601f83011261140f575f5ffd5b5f61014061141c816112e8565b91508301818a82111561142d575f5ffd5b5b8185101561144657843581526020948501940161142e565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e61146b565b5f826114ac57634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e61146b565b808202811582820484141761033e5761033e61146b56fea2646970667358221220dcff813b86dd38808694958c9a737d51423f91e9af2ee777888630650f47d44264736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","networkInteractionId":1,"nonce":411,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","networkInteractionId":1,"nonce":411,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40192000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x50d20ec222ee39bc73faf896a2d98a5d6b84c5e460a12177195519f261cc55eb"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","hash":"0x50d20ec222ee39bc73faf896a2d98a5d6b84c5e460a12177195519f261cc55eb","networkInteractionId":1,"receipt":{"blockHash":"0xd13f4dad98aeb96254c3accea5e85fb1ab32ec8d7e74cc0f45538baaaa82b026","blockNumber":426130769,"contractAddress":"0x5f2caFDB348D16b1F4DFb62CFCfd44a41043C9F0","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","result":{"address":"0x5f2caFDB348D16b1F4DFb62CFCfd44a41043C9F0","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x17a305e298bd3C5108F9Dc97B363B33DAEcFD29f","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0xb9AfF2366995bbc304fc361D23F7b4E06CA11efc","maxAggregations":0,"maxDeposits":0,"maxWithdrawals":0,"withdrawVerifier":"0x5f2caFDB348D16b1F4DFb62CFCfd44a41043C9F0"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","CurvyAggregatorAlpha#NewInsertionVerifier_v2","CurvyAggregatorAlpha#NewAggregationVerifier_v2","CurvyAggregatorAlpha#NewWithdrawVerifier_v2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteraction":{"data":"0xb4da7173000000000000000000000000b9aff2366995bbc304fc361d23f7b4e06ca11efc00000000000000000000000017a305e298bd3c5108f9dc97b363b33daecfd29f0000000000000000000000005f2cafdb348d16b1f4dfb62cfcfd44a41043c9f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteractionId":1,"nonce":412,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteractionId":1,"nonce":412,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xdf7940d85944443ed171a12b873e5ed45b0c762d2cffa672c072243edd066f5b"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","hash":"0xdf7940d85944443ed171a12b873e5ed45b0c762d2cffa672c072243edd066f5b","networkInteractionId":1,"receipt":{"blockHash":"0xdfc4b62281e7ae31eb90f0601fd80d96db8d5aa0cf2ff107ee54e177ca98f3e2","blockNumber":426130779,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","contractName":"CurvyAggregatorAlphaV4","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV4","dependencies":["CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xe5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516124506100f95f395f818161168a015281816116b301526117f701526124505ff3fe608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073e5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073e5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","networkInteractionId":1,"nonce":593,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","networkInteractionId":1,"nonce":593,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40236000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x061a4517dcae4f27c277edad8383fedb3fb08437cf1996368b3424b67a4c50a7"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyVault#CurvyVaultV3","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","contractName":"CurvyVaultV3","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV3Implementation","constructorArgs":[],"contractName":"CurvyVaultV3","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV3Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5f6100f95f395f81816117f20152818161181b015261195f0152612d5f5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","hash":"0x061a4517dcae4f27c277edad8383fedb3fb08437cf1996368b3424b67a4c50a7","networkInteractionId":1,"receipt":{"blockHash":"0xf906356b274f967971a211c72f955e7eee9d0cd9f66a04e70b43a383606f4311","blockNumber":429602153,"contractAddress":"0x5CFA880Cd3230e417097fB29d9A78e9E582A15c9","logs":[{"address":"0x5CFA880Cd3230e417097fB29d9A78e9E582A15c9","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":8,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","result":{"address":"0x5CFA880Cd3230e417097fB29d9A78e9E582A15c9","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","networkInteractionId":1,"nonce":594,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","networkInteractionId":1,"nonce":594,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x63c89065ff97aba20a01c13a23914738a91d318cd585651933fd2dedf1c84ebd"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","hash":"0x63c89065ff97aba20a01c13a23914738a91d318cd585651933fd2dedf1c84ebd","networkInteractionId":1,"receipt":{"blockHash":"0x7c8c0e7253f487c41c9915c391f1ed33e320ceb5a55b02c8bcb52de9a70c3487","blockNumber":429602222,"contractAddress":"0x18104Dd209fa5C048DF820C82a9975dA5f920a34","logs":[{"address":"0x18104Dd209fa5C048DF820C82a9975dA5f920a34","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":0,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","result":{"address":"0x18104Dd209fa5C048DF820C82a9975dA5f920a34","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"TokenBridgeModule#TokenBridge","constructorArgs":["0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"contractName":"TokenBridge","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"TokenBridgeModule#TokenBridge","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"TokenBridgeModule#TokenBridge","networkInteraction":{"data":"0x60a060405234801561000f575f5ffd5b5060405161068f38038061068f83398101604081905261002e9161003f565b6001600160a01b031660805261006c565b5f6020828403121561004f575f5ffd5b81516001600160a01b0381168114610065575f5ffd5b9392505050565b6080516105f161009e5f395f8181603d015281816092015281816101d1015281816101f901526102d301526105f15ff3fe608060405234801561000f575f5ffd5b5060043610610034575f3560e01c80632b8c45ca14610038578063bfe24a741461007b575b5f5ffd5b61005f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b61008e61008936600461050a565b610090565b005b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166101165760405162461bcd60e51b815260206004820152602260248201527f546f6b656e4272696467653a20496e76616c6964204c492e4649206164647265604482015261737360f01b60648201526084015b60405180910390fd5b6001600160a01b0383161580159061014b57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156102c9576040516370a0823160e01b815230600482015283905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610196573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101ba9190610595565b905080156102c2576101f66001600160a01b0383167f0000000000000000000000000000000000000000000000000000000000000000836103a2565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031685856040516102319291906105ac565b5f604051808303815f865af19150503d805f811461026a576040519150601f19603f3d011682016040523d82523d5f602084013e61026f565b606091505b50509050806102c05760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b505b5050505050565b47801561039c575f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682858560405161030c9291906105ac565b5f6040518083038185875af1925050503d805f8114610346576040519150601f19603f3d011682016040523d82523d5f602084013e61034b565b606091505b50509050806102c25760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526103f38482610455565b61039c57604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261044b90859061049e565b61039c848261049e565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610494575081156104865780600114610494565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af1806104bd576040513d5f823e3d81fd5b50505f513d915081156104d45780600114156104e1565b6001600160a01b0384163b155b1561039c57604051635274afe760e01b81526001600160a01b038516600482015260240161010d565b5f5f5f6040848603121561051c575f5ffd5b83356001600160a01b0381168114610532575f5ffd5b9250602084013567ffffffffffffffff81111561054d575f5ffd5b8401601f8101861361055d575f5ffd5b803567ffffffffffffffff811115610573575f5ffd5b866020828401011115610584575f5ffd5b939660209190910195509293505050565b5f602082840312156105a5575f5ffd5b5051919050565b818382375f910190815291905056fea264697066735822122024b79e0e8ad787a3d9372fa489b74bacaa38a30e0b87794cfbd941ed4010f11664736f6c634300081c00330000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"TokenBridgeModule#TokenBridge","networkInteractionId":1,"nonce":595,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"TokenBridgeModule#TokenBridge","networkInteractionId":1,"nonce":595,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40212000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x08490cbfef01a3d88b23ab020c0fe915d25a701977ad1294f09a5b1c4c1f7916"},"type":"TRANSACTION_SEND"}
-{"futureId":"TokenBridgeModule#TokenBridge","hash":"0x08490cbfef01a3d88b23ab020c0fe915d25a701977ad1294f09a5b1c4c1f7916","networkInteractionId":1,"receipt":{"blockHash":"0x9f9c37da53641aec3079cee2544bba9c9a167720ab55747937d3f0856895130c","blockNumber":429602231,"contractAddress":"0x2a31476E13FEFFfcb3702349045cE53a634CcA23","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"TokenBridgeModule#TokenBridge","result":{"address":"0x2a31476E13FEFFfcb3702349045cE53a634CcA23","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x5CFA880Cd3230e417097fB29d9A78e9E582A15c9","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef2860000000000000000000000005cfa880cd3230e417097fb29d9a78e9e582a15c900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","networkInteractionId":1,"nonce":596,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","networkInteractionId":1,"nonce":596,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x00021235380cb248bdb4945c4e254a6da832bb20f6d073ce21549ea64f710b50"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","hash":"0x00021235380cb248bdb4945c4e254a6da832bb20f6d073ce21549ea64f710b50","networkInteractionId":1,"receipt":{"blockHash":"0xb43a54db2323ca202cb4eed55fbea0f986689927c2e4d7ee743e95403b8dba9f","blockNumber":429602240,"logs":[{"address":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","data":"0x","logIndex":20,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000005cfa880cd3230e417097fb29d9a78e9e582a15c9"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x18104Dd209fa5C048DF820C82a9975dA5f920a34","0x"],"artifactId":"CurvyVault#CurvyVaultV2","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV2","CurvyVault#CurvyVaultV3Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef28600000000000000000000000018104dd209fa5c048df820c82a9975da5f920a3400000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","networkInteractionId":1,"nonce":597,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","networkInteractionId":1,"nonce":597,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40040000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x462bc5c3441403fa204d9e714497ba0f26aed87c118788baf098a987a2f83fac"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","hash":"0x462bc5c3441403fa204d9e714497ba0f26aed87c118788baf098a987a2f83fac","networkInteractionId":1,"receipt":{"blockHash":"0x14fbe264aba3035c6540f5c5860207bae065cf479b3163b30a3047f832d16a3e","blockNumber":429602249,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x","logIndex":0,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000018104dd209fa5c048df820c82a9975da5f920a34"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":598,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":598,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40132000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x20e75486083440c2233d5718bdfd329df2d409cab167f581ec03e7f03eac5b25"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","hash":"0x20e75486083440c2233d5718bdfd329df2d409cab167f581ec03e7f03eac5b25","networkInteractionId":1,"receipt":{"blockHash":"0x7010818387668ff179e26686f6cb227f3f4d5948303b6827f2be545c022f614a","blockNumber":429602258,"logs":[{"address":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","data":"0x","logIndex":8,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":9,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000341d1571998c937e5f3cb3e640805c8b457e7124","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224"],"artifactId":"CurvyVault#CurvyVaultV3","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV3","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d0000000000000000000000009c07e1ff4f1b96ae609331bac327fcc2d8563224","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":599,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":599,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40400000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x7443d45de1a5173337011f652bef8bac53363577b0a092f7c76be1a8e5afa504"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","hash":"0x7443d45de1a5173337011f652bef8bac53363577b0a092f7c76be1a8e5afa504","networkInteractionId":1,"receipt":{"blockHash":"0xc5751e5e47de9861b87e94acaa11a29ad68acfb92ecd3c69adb3cc75fdf1db0d","blockNumber":429602267,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x0000000000000000000000009c07e1ff4f1b96ae609331bac327fcc2d8563224","logIndex":31,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0","nameOrIndex":"newContract","result":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x20e75486083440c2233d5718bdfd329df2d409cab167f581ec03e7f03eac5b25","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x82Af49447D8A07E3Bd95bd0d56F35241523FBaB2"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV3","CurvyVault#RegisterVaultToken_17"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_18","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_18","networkInteraction":{"data":"0x09824a8000000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab2","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_18","networkInteractionId":1,"nonce":600,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_18","networkInteractionId":1,"nonce":600,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40640000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xa9b8d0b7306bda17f7f4c94dffddb9a9318ab309183a7f0d14331db0363bba5d"},"type":"TRANSACTION_SEND"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"CurvyVault#RegisterVaultToken_18","hash":"0xa9b8d0b7306bda17f7f4c94dffddb9a9318ab309183a7f0d14331db0363bba5d","networkInteractionId":1,"receipt":{"blockHash":"0x2f61c1a3f68a6bad0694e8aa71987bcd68a259d537057a47921decf59ac2159b","blockNumber":429602699,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab20000000000000000000000000000000000000000000000000000000000000015","logIndex":4,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_18","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","withdrawVerifier":"0x0000000000000000000000000000000000000000"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","CurvyVault#CurvyVaultV3","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","networkInteraction":{"data":"0xcf101a49000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b4ba872fba00bc4268067d5de4223240cec4b6d5000000000000000000000000341d1571998c937e5f3cb3e640805c8b457e7124000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","networkInteractionId":1,"nonce":601,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","networkInteractionId":1,"nonce":601,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40376000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x9bf69830aa5e3ee6abdd1923b084853d89fda6cc7c0e9d8689273632e0dbc3f1"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","hash":"0x9bf69830aa5e3ee6abdd1923b084853d89fda6cc7c0e9d8689273632e0dbc3f1","networkInteractionId":1,"receipt":{"blockHash":"0x6c467710cad71f697df9e24cdea936784029e8187aa885ef687296d4391b5b0f","blockNumber":429602708,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","dependencies":["PortalFactory#PortalFactory","CurvyVault#CurvyVaultV3","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000b4ba872fba00bc4268067d5de4223240cec4b6d50000000000000000000000009c07e1ff4f1b96ae609331bac327fcc2d85632240000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":602,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":602,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40464000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x8bf05b278cd43aeecff3a2feffedd29e4e6c79013e7fadb9ed698421254df73e"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x8bf05b278cd43aeecff3a2feffedd29e4e6c79013e7fadb9ed698421254df73e","networkInteractionId":1,"receipt":{"blockHash":"0xe494858ad3ece47e0b406dcbd0b79c34827fa9fbd6bfd30047b893c1864e2a50","blockNumber":429602717,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","contractName":"CurvyVaultV4","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV4Implementation","constructorArgs":[],"contractName":"CurvyVaultV4","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV4Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5c6100f95f395f81816117ef01528181611818015261195c0152612d5c5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","networkInteractionId":1,"nonce":662,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","networkInteractionId":1,"nonce":662,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x11bf27f467e6a1ab3f0f106587e0eef6a726212c0b9b345817d24120b99e04e5"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","hash":"0x11bf27f467e6a1ab3f0f106587e0eef6a726212c0b9b345817d24120b99e04e5","networkInteractionId":1,"receipt":{"blockHash":"0xbbafc07084ecb319cd1cd69bafee9d3258bcb8891b644647fc6056c5f7c584a9","blockNumber":434526301,"contractAddress":"0x5d5dB00C1587E50535F3b1886877F866f1600862","logs":[{"address":"0x5d5dB00C1587E50535F3b1886877F866f1600862","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":0,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","result":{"address":"0x5d5dB00C1587E50535F3b1886877F866f1600862","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x5d5dB00C1587E50535F3b1886877F866f1600862","0x"],"artifactId":"CurvyVault#CurvyVaultV3","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV3","CurvyVault#CurvyVaultV4Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef2860000000000000000000000005d5db00c1587e50535f3b1886877f866f160086200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","networkInteractionId":1,"nonce":663,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","networkInteractionId":1,"nonce":663,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40172000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x0949322fb40ebf5327b03eb4a11d654ef3848ff60573899156c0f9ace84d7fb7"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","hash":"0x0949322fb40ebf5327b03eb4a11d654ef3848ff60573899156c0f9ace84d7fb7","networkInteractionId":1,"receipt":{"blockHash":"0x7421be5b8cc178956454d60516ea968669a2732f51698bac2b16aaa12b5071ee","blockNumber":434526310,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x","logIndex":0,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000005d5db00c1587e50535f3b1886877f866f1600862"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV4","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d0000000000000000000000009c07e1ff4f1b96ae609331bac327fcc2d8563224","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":664,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":664,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x8771e42905e5c350f3cd3e4e187355e6c4bd4c11271f1f6c49af0cf68d74888f"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","hash":"0x8771e42905e5c350f3cd3e4e187355e6c4bd4c11271f1f6c49af0cf68d74888f","networkInteractionId":1,"receipt":{"blockHash":"0xe0331f22578b20c0f2213672853896b371e7de2e6399161f990ad411b075387e","blockNumber":434526318,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x0000000000000000000000009c07e1ff4f1b96ae609331bac327fcc2d8563224","logIndex":2,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x5CFA880Cd3230e417097fB29d9A78e9E582A15c9","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","networkInteraction":{"data":"0x4f1ef2860000000000000000000000005cfa880cd3230e417097fb29d9a78e9e582a15c900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","networkInteractionId":1,"nonce":821,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","networkInteractionId":1,"nonce":821,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x8b01787e1cace35af667bfa817e0111499e3fb3180c54f988d9238717742f816"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","contractName":"CurvyAggregatorAlphaV5","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","contractName":"CurvyVaultV5","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV5","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV5Implementation","constructorArgs":[],"contractName":"CurvyVaultV5","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV5Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fd491bda775b94cc947797bcd0ac41b752963a10eb8562367f9c41712eda766664736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","hash":"0x8b01787e1cace35af667bfa817e0111499e3fb3180c54f988d9238717742f816","networkInteractionId":1,"receipt":{"blockHash":"0x20df645a91d9be73ea5273c11fa07fd03f38b47098d64a442a9122fe7af8db96","blockNumber":439970172,"logs":[{"address":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","data":"0x","logIndex":1,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000005cfa880cd3230e417097fb29d9a78e9e582a15c9"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV5","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xe5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d506100f95f395f8181610f9f01528181610fc8015261110c0152611d505ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073e5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteractionId":1,"nonce":824,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteractionId":1,"nonce":824,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40048000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x82b65c376791fa6f4afe12fe5486f16cef902059a8b11dd40e822e7308d4d150"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","hash":"0x82b65c376791fa6f4afe12fe5486f16cef902059a8b11dd40e822e7308d4d150","networkInteractionId":1,"receipt":{"blockHash":"0x2dccfee90fda4004a0937041f3cd433ff04769b8c439fb7dc75e45406c5ac9c3","blockNumber":439970705,"contractAddress":"0xC37EB9Ac77F71a4670Ac5cafa6727B78D23c8342","logs":[{"address":"0xC37EB9Ac77F71a4670Ac5cafa6727B78D23c8342","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":3,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","result":{"address":"0xC37EB9Ac77F71a4670Ac5cafa6727B78D23c8342","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":825,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":825,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40092000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x32c5db460cced774f8e24fbd6744756d2190daacb9f6199665d968e51d963a0b"},"type":"TRANSACTION_SEND"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","hash":"0x32c5db460cced774f8e24fbd6744756d2190daacb9f6199665d968e51d963a0b","networkInteractionId":1,"receipt":{"blockHash":"0xc9f06d58a72e10549e81adbdbe8c24ac51a0806c6e3a4981c221dd2f32d5634e","blockNumber":439970800,"contractAddress":"0xf08036eC4fB844c611bB7826B8502B6aCB44E09f","logs":[{"address":"0xf08036eC4fB844c611bB7826B8502B6aCB44E09f","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":0,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","result":{"address":"0xf08036eC4fB844c611bB7826B8502B6aCB44E09f","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0xC37EB9Ac77F71a4670Ac5cafa6727B78D23c8342","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000c37eb9ac77f71a4670ac5cafa6727b78d23c834200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteractionId":1,"nonce":826,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteractionId":1,"nonce":826,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40200000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x98908d14d22a3852e7b510056e9062474e769b21b4c191163c139e3e3aba7d76"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","hash":"0x98908d14d22a3852e7b510056e9062474e769b21b4c191163c139e3e3aba7d76","networkInteractionId":1,"receipt":{"blockHash":"0x9c54798724db18a9bce9b77057a51eccb31124cb04058b2f5ab595975c71a91f","blockNumber":439970864,"logs":[{"address":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","data":"0x","logIndex":0,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000c37eb9ac77f71a4670ac5cafa6727b78d23c8342"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xf08036eC4fB844c611bB7826B8502B6aCB44E09f","0x"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV4","CurvyVault#CurvyVaultV5Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000f08036ec4fb844c611bb7826b8502b6acb44e09f00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":827,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":827,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x73e6b732a4c199d1de29647b932addbac7c9072a6c484862a9e0079a5f620218"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","hash":"0x73e6b732a4c199d1de29647b932addbac7c9072a6c484862a9e0079a5f620218","networkInteractionId":1,"receipt":{"blockHash":"0x96365304c56abe843e52f68513fc5ac183f40f0bdbe416db246edd5b802bf1e9","blockNumber":439970934,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x","logIndex":6,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000f08036ec4fb844c611bb7826b8502b6acb44e09f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#withdrawVerifierV3","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlphaV3_2","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b5061149a8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b366004611300565b610054565b604051901515815260200160405180910390f35b5f61005d611127565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600980825261014082019093525f9290918201610120803683370190505090505f5b600981101561013357848160098110610109576101096113e0565b6020020151828281518110610120576101206113e0565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e9190611408565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb5783878281518110610217576102176113e0565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc85608001518460016102859190611408565b81518110610295576102956113e0565b60200260200101518a85815181106102af576102af6113e0565b6020026020010151610a94565b610b28565b91506001016101fb565b506102f38183608001515f815181106102e6576102e66113e0565b6020026020010151610b28565b9050610327610304865f0151610bbf565b8660200151845f015185602001518587604001518b604001518960600151610c5b565b610337576001935050505061033e565b5f93505050505b92915050565b61034c611175565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f05d000ba4551c1fa877c7a46107992624c3d99a3e6bdd57c50698771b613cc298185019081527f1ecc95a1dbdbe4f8cef976bf22affb6de7fa33cb89b48d77bead7102ad139892828401528152835180850185527f21db75587cbe02e9192f9b5f2b763c99648c02dd6b6a4c96c20df72fb841418a81527f2af9f7e11a5a29cdcb4b532c39193095513331f2834798b89072b995ad356a898185015281840152908401528151600a8082526101608201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f2660af19967ed5580208a84497fbdd099f460ed85561c98f23edb4a0384dcf7f81527f210fa1941084636ec27feec1eb19e46b9b48bfa53b306d017ae5963efad52a436020820152905180515f90610659576106596113e0565b602002602001018190525060405180604001604052807f2083fd8b0b70f84ff529e805d135f4a43429faa7993c7722807ae7a190df845581526020017f28811e77761972df5b4960cb74319c488f4edbeddc48333c6d4d1a6bf413ca3481525081608001516001815181106106d0576106d06113e0565b602002602001018190525060405180604001604052807f13dfc5473a9989ab659e0b9a6334f6941bc90555d51e4bca722dae72810e989881526020017f013b58637f2dae5dcc9fc8fbebfc8b1381840813185e0fb647f05168c697540c8152508160800151600281518110610747576107476113e0565b602002602001018190525060405180604001604052807f1c44dcfc07f5f9ae2c637ff60d5a89d2c1713bca6aff265abcb28620a852c34281526020017f19330ccf92e4c27c2b591f021a828cca5edab6049a9d1062686fd796b6d3f52d81525081608001516003815181106107be576107be6113e0565b602002602001018190525060405180604001604052807f23d7191b87dd317ce4294b631c1ce03e454f61c038c5d9c601c8abcc5003816b81526020017f21b455e02d8d7aa7549f9e769915f44c954cbc965220a0c8f61c0c1a367509818152508160800151600481518110610835576108356113e0565b602002602001018190525060405180604001604052807f2226e11fa0ed282b86920337d75253929cdead5afa79adbc98bbf0786a21503081526020017eab0bd68fd9de0ee282bc419521c647a219f5075248f5ebfb2016464f50ba1a81525081608001516005815181106108ab576108ab6113e0565b602002602001018190525060405180604001604052807f21a6f2274e37865052daf09f57ee7d7dafbc1d60cc54e26ab82120b995ed12f481526020017f0b5c832b69ae80552e1d9402009efab37ce39eb97825b4b343f5ea9581b31c1b8152508160800151600681518110610922576109226113e0565b602002602001018190525060405180604001604052807f091ecf7419c3a24ba36564b86a4859fd8f00157103bb0759ea5ba4928bfe460b81526020017f105c38b8731b3cbeed64c9c7e1aa313538e21302828e2f95fb3b05d777a0f7d88152508160800151600781518110610999576109996113e0565b602002602001018190525060405180604001604052807f100d9113bd2a6d16e7682a168a313a92f111d97fa62ab66b9b60339ab7edd8cf81526020017f0db625617d7f1e384b7fd3bfa6625ce178ced385ea8bef33da11938d7ebc389d8152508160800151600881518110610a1057610a106113e0565b602002602001018190525060405180604001604052807ec8fdc7d85d6600498e56ca6e7082bef46e29858708e318188919835ac6878881526020017f0c567e014f5306e60d7e0d42f3e9216db8a9837c77f300ff203b05060360a30a8152508160800151600981518110610a8657610a866113e0565b602002602001018190525090565b604080518082019091525f8082526020820152610aaf6111c5565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610add57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610b436111e3565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610b7c57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c0557506020830151155b15610c24575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610c48919061141b565b610c52908461143a565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610c7557505060408051600480825260a082019092529192505f9190602082015b610cbd611201565b815260200190600190039081610cb55790505090508a825f81518110610ce557610ce56113e0565b60200260200101819052508882600181518110610d0457610d046113e0565b60200260200101819052508682600281518110610d2357610d236113e0565b60200260200101819052508482600381518110610d4257610d426113e0565b602002602001018190525089815f81518110610d6057610d606113e0565b60200260200101819052508781600181518110610d7f57610d7f6113e0565b60200260200101819052508581600281518110610d9e57610d9e6113e0565b60200260200101819052508381600381518110610dbd57610dbd6113e0565b6020026020010181905250610dd28282610de1565b9b9a5050505050505050505050565b5f8151835114610e2c5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610e3a82600661144d565b90505f8167ffffffffffffffff811115610e5657610e5661125d565b604051908082528060200260200182016040528015610e7f578160200160208202803683370190505b5090505f5b838110156110ac57868181518110610e9e57610e9e6113e0565b60200260200101515f015182826006610eb7919061144d565b610ec1905f611408565b81518110610ed157610ed16113e0565b602002602001018181525050868181518110610eef57610eef6113e0565b60200260200101516020015182826006610f09919061144d565b610f14906001611408565b81518110610f2457610f246113e0565b602002602001018181525050858181518110610f4257610f426113e0565b6020908102919091010151515182610f5b83600661144d565b610f66906002611408565b81518110610f7657610f766113e0565b602002602001018181525050858181518110610f9457610f946113e0565b60209081029190910181015151015182610faf83600661144d565b610fba906003611408565b81518110610fca57610fca6113e0565b602002602001018181525050858181518110610fe857610fe86113e0565b6020026020010151602001515f60028110611005576110056113e0565b60200201518261101683600661144d565b611021906004611408565b81518110611031576110316113e0565b60200260200101818152505085818151811061104f5761104f6113e0565b60200260200101516020015160016002811061106d5761106d6113e0565b60200201518261107e83600661144d565b611089906005611408565b81518110611099576110996113e0565b6020908102919091010152600101610e84565b506110b5611221565b5f602082602086026020860160086107d05a03fa905080806110d357fe5b50806111195760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101611150611201565b815260200161117060405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c083019190915281526020810161119e611201565b81526020016111ab611201565b81526020016111b8611201565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061121461123f565b815260200161117061123f565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156112a657634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f8301126112bd575f5ffd5b5f6112c86040611271565b90508060408401858111156112db575f5ffd5b845b818110156112f55780358352602092830192016112dd565b509195945050505050565b5f5f5f5f6102208587031215611314575f5ffd5b61131e86866112ae565b935085605f86011261132e575f5ffd5b604061133981611271565b8060c088018981111561134a575f5ffd5b604089015b81811015611370576113618b826112ae565b8452602090930192840161134f565b5081965061137e8a826112ae565b95505050505061010085015f87601f830112611398575f5ffd5b5f6101206113a581611271565b91508301818a8211156113b6575f5ffd5b5b818510156113cf5784358152602094850194016113b7565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e6113f4565b5f8261143557634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e6113f4565b808202811582820484141761033e5761033e6113f456fea2646970667358221220ee56b55b73586c11a0ad84b93a1c92445f7a65f7be9aeed3d1e4fbaef2220a4364736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteractionId":1,"nonce":828,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteractionId":1,"nonce":828,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40188000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x29126e90225ae79bb53ac050f42e9bdaa90aa73196d403283decc4e4f4670ae5"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","hash":"0x29126e90225ae79bb53ac050f42e9bdaa90aa73196d403283decc4e4f4670ae5","networkInteractionId":1,"receipt":{"blockHash":"0x8429df1d533a151a5a8ac2c71b7f61365367f525be978a11fcb5e834b14d8cf4","blockNumber":439970992,"contractAddress":"0x1CD03F77627850fc2f0691bC8711FD24bA49Cb4b","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","result":{"address":"0x1CD03F77627850fc2f0691bC8711FD24bA49Cb4b","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":829,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":829,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xbaa7294fb90d70054897275946a6581f08e3a4fd85be268669eacb3e7eeb1b8a"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xbaa7294fb90d70054897275946a6581f08e3a4fd85be268669eacb3e7eeb1b8a","networkInteractionId":1,"receipt":{"blockHash":"0xdc5781d0321ef519e519c03f93a3e6e07c1d3f825353307ad248c9119c3d48e7","blockNumber":439971050,"logs":[{"address":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","data":"0x","logIndex":27,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":28,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000008ec5dedfd00599a6d820f8d54195ac0a7193d15c","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224"],"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV5","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d0000000000000000000000009c07e1ff4f1b96ae609331bac327fcc2d8563224","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":830,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":830,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40460000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x36e5647b02686efa247e716f6e7e84007be292e4f2ebf7c1edf947700acfcbc3"},"type":"TRANSACTION_SEND"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xbaa7294fb90d70054897275946a6581f08e3a4fd85be268669eacb3e7eeb1b8a","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","hash":"0x36e5647b02686efa247e716f6e7e84007be292e4f2ebf7c1edf947700acfcbc3","networkInteractionId":1,"receipt":{"blockHash":"0x210d68333eb58ba4144786372a14a0e9dd102d5c2e7b9857726084ab8de9587a","blockNumber":439971060,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x0000000000000000000000009c07e1ff4f1b96ae609331bac327fcc2d8563224","logIndex":0,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","withdrawVerifier":"0x1CD03F77627850fc2f0691bC8711FD24bA49Cb4b"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteraction":{"data":"0xcf101a49000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001cd03f77627850fc2f0691bc8711fd24ba49cb4b000000000000000000000000b4ba872fba00bc4268067d5de4223240cec4b6d50000000000000000000000008ec5dedfd00599a6d820f8d54195ac0a7193d15c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":831,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":831,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x1f4b5b621257048fdd1e41a511fa9eb7f81c1b74e26c97d1c89ded8446e32b9a"},"type":"TRANSACTION_SEND"}
-{"args":["0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","dependencies":["PortalFactory#PortalFactory","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000b4ba872fba00bc4268067d5de4223240cec4b6d50000000000000000000000009c07e1ff4f1b96ae609331bac327fcc2d85632240000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","hash":"0x1f4b5b621257048fdd1e41a511fa9eb7f81c1b74e26c97d1c89ded8446e32b9a","networkInteractionId":1,"receipt":{"blockHash":"0x6ed48228bf5f02b834396e92a4f4aa4aed31050aa6a266fdd044238aadc8e957","blockNumber":439971073,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":832,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":832,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40488000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x1494e56235e59baf3253b5a21ce081daff81b501ea4f74393834428f83a1c3de"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x1494e56235e59baf3253b5a21ce081daff81b501ea4f74393834428f83a1c3de","networkInteractionId":1,"receipt":{"blockHash":"0x89b5200315a25d81789d890d37ead43b1128cf415ad03e57262039ddfde25a4d","blockNumber":439971140,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","contractName":"CurvyAggregatorAlphaV6","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV6","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xe5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611e4b6100f95f395f81816110500152818161107901526111bd0152611e4b5ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73e5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","networkInteractionId":1,"nonce":1012,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","networkInteractionId":1,"nonce":1012,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40064000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xa72f169d7653354f6874a7b4d8bd9592d31b8c0f026228edfa580cdb0615c13f"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyVault#CurvyVaultV6","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","contractName":"CurvyVaultV6","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV6","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV6Implementation","constructorArgs":[],"contractName":"CurvyVaultV6","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV6Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220abf4833af5f4eaf00c587d9249e43bdb81105120a948ba55ef3190468959dffb64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","networkInteractionId":1,"nonce":1013,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","networkInteractionId":1,"nonce":1013,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40112000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x80e4b8f4c8dd29d6b29d0060f90154a3fec18d6cfbc974bf1f02f6da3f5a405e"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","hash":"0xa72f169d7653354f6874a7b4d8bd9592d31b8c0f026228edfa580cdb0615c13f","networkInteractionId":1,"receipt":{"blockHash":"0xe9790f49622fa8f121d81cf4d6dffc92a209da62def168d98b2172ed93716c6b","blockNumber":440981547,"contractAddress":"0x03B8C266064E9397fE036e5FAF94DCBA0e16faA4","logs":[{"address":"0x03B8C266064E9397fE036e5FAF94DCBA0e16faA4","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":1,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","result":{"address":"0x03B8C266064E9397fE036e5FAF94DCBA0e16faA4","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","hash":"0x80e4b8f4c8dd29d6b29d0060f90154a3fec18d6cfbc974bf1f02f6da3f5a405e","networkInteractionId":1,"receipt":{"blockHash":"0x7607c00046ba4da21a981b99912d6bbf9ab33b3928677676ef81ec3e34cef9e3","blockNumber":440981559,"contractAddress":"0xc0C5983B6518B5e2559887b7BB79CdCA286BccC1","logs":[{"address":"0xc0C5983B6518B5e2559887b7BB79CdCA286BccC1","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":9,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","result":{"address":"0xc0C5983B6518B5e2559887b7BB79CdCA286BccC1","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x03B8C266064E9397fE036e5FAF94DCBA0e16faA4","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef28600000000000000000000000003b8c266064e9397fe036e5faf94dcba0e16faa400000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","networkInteractionId":1,"nonce":1014,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","networkInteractionId":1,"nonce":1014,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40028000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xc3072ab09867040ef0dddc79294cdf59eb3b511141c53330a0aef648dbc29d70"},"type":"TRANSACTION_SEND"}
-{"args":["0xc0C5983B6518B5e2559887b7BB79CdCA286BccC1","0x"],"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV5","CurvyVault#CurvyVaultV6Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000c0c5983b6518b5e2559887b7bb79cdca286bccc100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","networkInteractionId":1,"nonce":1015,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","networkInteractionId":1,"nonce":1015,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40192000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x5cd82741a3f9c525a2d864de59db12ac50135a4f72a78ebe8af0cc03b7316e22"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","hash":"0xc3072ab09867040ef0dddc79294cdf59eb3b511141c53330a0aef648dbc29d70","networkInteractionId":1,"receipt":{"blockHash":"0x061f5251933439d671f111f9fcaa2ba269497abff6f7e0ef6fc55e996b1e987b","blockNumber":440981578,"logs":[{"address":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","data":"0x","logIndex":63,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000003b8c266064e9397fe036e5faf94dcba0e16faa4"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","hash":"0x5cd82741a3f9c525a2d864de59db12ac50135a4f72a78ebe8af0cc03b7316e22","networkInteractionId":1,"receipt":{"blockHash":"0x80073a07dfb07b9a1451a37241f7f9d71fc1bace713e6a9d14e8502d5cd75742","blockNumber":440981589,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x","logIndex":2,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000c0c5983b6518b5e2559887b7bb79cdca286bccc1"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","withdrawVerifier":"0x1CD03F77627850fc2f0691bC8711FD24bA49Cb4b"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteraction":{"data":"0xcf101a49000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001cd03f77627850fc2f0691bc8711fd24ba49cb4b000000000000000000000000b4ba872fba00bc4268067d5de4223240cec4b6d50000000000000000000000008ec5dedfd00599a6d820f8d54195ac0a7193d15c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":1016,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":1016,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xda84e18cc96ce02e7f4c1aa235cab04bd9f8bb904f76e1f11c735c60683cc301"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","hash":"0xda84e18cc96ce02e7f4c1aa235cab04bd9f8bb904f76e1f11c735c60683cc301","networkInteractionId":1,"receipt":{"blockHash":"0xe42679a8dbd4ea0183dcd6ea7b9061f02f802e205fde73c9799152dfc61940b2","blockNumber":440981609,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224"],"artifactId":"CurvyVault#CurvyVaultV6","contractAddress":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","dependencies":["CurvyVault#CurvyVaultV6","CurvyAggregatorAlpha#CurvyAggregatorAlphaV6"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d0000000000000000000000009c07e1ff4f1b96ae609331bac327fcc2d8563224","id":1,"to":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":1017,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":1017,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x36e4d1eb5174605977694c98121fbbc85dd915b58ddf93f05a5f8c883ad2b422"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","hash":"0x36e4d1eb5174605977694c98121fbbc85dd915b58ddf93f05a5f8c883ad2b422","networkInteractionId":1,"receipt":{"blockHash":"0xa58a699718721ac1248a19ea668a69c2a85fc620c67d6d163cd61a66584a502f","blockNumber":440981621,"logs":[{"address":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","data":"0x0000000000000000000000009c07e1ff4f1b96ae609331bac327fcc2d8563224","logIndex":1,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":1107,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":1107,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40680000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x8f2e838179835b3ff895c75305cb3f647d7a7033f6574e3075b48f7407195a4f"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x8f2e838179835b3ff895c75305cb3f647d7a7033f6574e3075b48f7407195a4f","networkInteractionId":1,"receipt":{"blockHash":"0x53094f5867abe477b8213694b1050748639e7f8c050faf3f2890c2175b163e3e","blockNumber":442422295,"logs":[{"address":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","data":"0x","logIndex":0,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000fe02b0a1ebec81faac4c09e3f4eaefe568833718","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x8f2e838179835b3ff895c75305cb3f647d7a7033f6574e3075b48f7407195a4f","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","withdrawVerifier":"0x1CD03F77627850fc2f0691bC8711FD24bA49Cb4b"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteraction":{"data":"0xcf101a49000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001cd03f77627850fc2f0691bc8711fd24ba49cb4b000000000000000000000000b4ba872fba00bc4268067d5de4223240cec4b6d5000000000000000000000000fe02b0a1ebec81faac4c09e3f4eaefe568833718000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":1108,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":1108,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x6873935cb0fb738f6aad646a11aa2a65cfe6e3526ef8cb5f0d9ae702df81ea51"},"type":"TRANSACTION_SEND"}
-{"args":["0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5","0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","dependencies":["PortalFactory#PortalFactory","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000b4ba872fba00bc4268067d5de4223240cec4b6d50000000000000000000000009c07e1ff4f1b96ae609331bac327fcc2d85632240000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":1109,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":1109,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40116000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x55a16d31d291c9769f4e1d1b96b6f0148f3a4dce679aec839acbf939b20f0e5a"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","hash":"0x6873935cb0fb738f6aad646a11aa2a65cfe6e3526ef8cb5f0d9ae702df81ea51","networkInteractionId":1,"receipt":{"blockHash":"0x18dd73c2ed1130a7b794966ea75071aeb0e20c557490cb107332495309d94554","blockNumber":442422316,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x55a16d31d291c9769f4e1d1b96b6f0148f3a4dce679aec839acbf939b20f0e5a","networkInteractionId":1,"receipt":{"blockHash":"0xec10ed6cb1075c36371512dfbebb3e834c9b411087f0f9d44d08573d6b6c9318","blockNumber":442422325,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#insertionVerifierDepth30","constructorArgs":[],"contractName":"CurvyInsertionVerifierAlpha_2_30","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506106638061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d6565b610054565b604051901515815260200160405180910390f35b5f61055b565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0924b2da45959e3db416d37c294a404744951be16e42f1d992acb2f9b1653c9b85527f1dd38cbdac759717b0ac22a4684a67b9dde133900fd0de04e84649d362c43af260208601525f608086018661018e87357f1b2708ad6d7e6be283e7de6a744c951d2b8e5364548e69df7856c3c97b573e1b7f0974e3e005ff370d47e3fdb7ccdf534091ef1e4a005206d2d1231e67b90511998461008c565b6101de60208801357f2ebb5ab1d89212403b8779a300f9ddc2d940387f8a35748b528e34a8ba9aa8eb7f19eeb6ab376be1165cb0ec80572317e9f5c4518602464a5713c215c980fefb428461008c565b61022e60408801357f057838b481ea687ebdd9e99e7b0a647b9fde53a265abb2ebf10f786977fd745d7f303b63a34f398feec2ee236d526cf0b1152e7c0322e5ff4d253c0a3a8bf17fdc8461008c565b61027e60608801357f19345bce990107cbcf966676e877fb4f5ca5266f5d57adab7678620d605636d87f180b99f92cc59f1eabdbad0ff4a62544fa9bf0cab8f5912f5a847c5640c1d7328461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f0e2bb878054469b448cc0e33dc738b287d43fe65e576af5b3b04e591fdb54f1e60c08201527f1bf275d3700d3f50dca59951ba350ffa3ea2372d0196c425caa92a9e67899ade60e08201527f0c44e70b0815f8e0e28ce0457dc505fe56b05e59d49b5ae4e11b055a806910336101008201527f1232e197aaa7b2d91e891300fac64a73564b798a3db3fa5fb3abf383bf2032606101208201527f28308763f703530f89d2cf0bfa677e8d6cee8f7d9027e414164185b9819db03d6101408201527f1992fd2f54f2bb493054e09c96436be20ea7137974f126e81c09c2b32f70290c6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1d12be17bc61349a2fa4a78986dc0c65250840b18d469b5239a06678fdaffff36102808201527f2b76fd205a71da739792da15aa42bf4e6e549970f2c5d27f19456ed6ef65f9136102a08201527f291ed4e167e08d61ceb08cb301209e3431b16f87170ed88f5265b625d5e194486102c08201527e6370563f1ca56b9f3f3329c4a4724e95130020346360fa7e450ed7315a22e16102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105725f84013561005a565b61057f602084013561005a565b61058c604084013561005a565b610599606084013561005a565b6105a6818486888a6100f2565b9050805f5260205ff35b80604081018310156105c0575f5ffd5b92915050565b80608081018310156105c0575f5ffd5b5f5f5f5f61018085870312156105ea575f5ffd5b6105f486866105b0565b935061060386604087016105c6565b92506106128660c087016105b0565b91506106228661010087016105c6565b90509295919450925056fea26469706673582212205a855661bcf2b5e7a6820e1e0d44203c68c61e39b2b0c99faac2b30e34af037964736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","networkInteractionId":1,"nonce":1128,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","networkInteractionId":1,"nonce":1128,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xe0d15336f983cd9208d0cc0c35678f813181c414d24d4ce77e1efddc6d927467"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","hash":"0xe0d15336f983cd9208d0cc0c35678f813181c414d24d4ce77e1efddc6d927467","networkInteractionId":1,"receipt":{"blockHash":"0x40df93df4b836e26f3b90558b4513e6566ffcecfbd6656dfb0ee28c09c51786e","blockNumber":442784495,"contractAddress":"0x0c349EF637ceb9EaF93374F68Ca84A21a042f478","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","result":{"address":"0x0c349EF637ceb9EaF93374F68Ca84A21a042f478","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","constructorArgs":[],"contractName":"CurvyAggregationVerifierAlpha_2_2_2_30","dependencies":["CurvyAggregatorAlpha#insertionVerifierDepth30"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b50610a0d8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610975565b610054565b604051901515815260200160405180910390f35b5f610882565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f2677d6c999b93ce8836a26f68400342d9206d0042e5bef74384d97668d4fbd7185527f1c6dffd717c92db39b15ffaac7f1ca0896359f64d86ddbde53a9a724d53d687f60208601525f608086018661018e87357f1588203686d2c659beac6e6b6a0696c9a73b43167a1c23dcd156cd423a3486617f2a9a27b4754629f464e15757a6e1795285c772d60b824c8f1dcf721853505b648461008c565b6101de60208801357f0e7ef5047b47aa90a649bd18cea070121bf160cd07d5fb6f059d7f85959093037f0ad8fc97f11c92c12ec509d473fb3a2131cd46398b83b0f6931d5a316885bf4c8461008c565b61022e60408801357f1f360486c53217bd225c170d2c9bff57ce0401a846932d5998b0985302d0d0297f1f0d2c4008add8e5f828066af26a4893d22ede59ce5ed922805bbf72172f926f8461008c565b61027e60608801357f19038ac1aeb7fff5205df6e24fb20b79efc3e47b23ba901c6133a077fd25a41f7f06a8f121ae5a14cd6561c3d301b7a599cd187d66b69ec0dca5b594c90d359db18461008c565b6102ce60808801357f14392ad2a968554f2e9be3192822ee370df3835437d6bdd824f7c02486a799757f1a901b29f21dd86a23814194667419cdb034a8f419cce6f36219ebe12f1d03ce8461008c565b61031e60a08801357f222b41b2066c2e18de2ce8f1b38e21067945bf3a523068d9be283bdeb0b090ca7f260b831c981e5d0edf7c4a1ce05d34b900e8e771b704ff94f52c9945a1227a038461008c565b61036e60c08801357f03ba99acc272296f6b5e8b46fdd80641dc68056bf1f1d058d7b0ae82673e6e0a7f1a49fe52f86e2ce468118842968ef83a85cc11ca735d1707594d03c0fcc5f7a48461008c565b6103be60e08801357f1bb356cda8bd9d21ca448a588e9fe402a48c2c090cc2d9028aabebf7eae7f18f7f2ba484140c7672e35cc296b012b1c06c9d65fa7daf76d898d54502b9dd6e8f298461008c565b61040f6101008801357f158100efe205b2ae041cd2722595c576d8ad554efd549c541c0235ddb95cc70d7f16532b0559581e1c0ff25d04ef22b687551e792d5f5d2134877bffd292114f998461008c565b6104606101208801357f1ecea9cf3060c8c3e065cd2f2f05fe405f4d81a6e4a067c43f65de122d4a8ecc7f0271befe332df95f1520c793b30ab4bbc373b49d736fdf4954fa8129851d9e288461008c565b6104b16101408801357f01886e15dd9ecac1445aca0b7c14420423ce79e0e7b5e5e7ca612fdbbbb0c77f7f17567d5e10acb1c359a4936a01b981b1e6fb9b2bf8746cfa36232c503fd055d18461008c565b6105026101608801357f0fa31e0ed9c1e3ebd3ff073c06bd5ec2056806962a50a4f9490d9d2d3c9125d47f12de630747fad5d0d0b137586691387df79e8a34d3b2968dc56f775ab6b3f4788461008c565b6105536101808801357f0675adf13437ce0b6c1853a85e1ce69404e9b79fc48e04a0757066da7650c6007f25415c817f8b5a1b4b8b1fbaba8a708d3c69f7a1aa35a3834e454b146a0a719a8461008c565b6105a46101a08801357f21c1a157c26e7368b687ff48228bde51af963a5337385f672bf794b1e734c4de7f10d8fd6daf436328532c048653ff83bc1192914754b7a5c907de1869768706848461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f039e6c254fdbfdddb550d7b28587b6e3359a0978a174c832f180238460bf67f660c08201527f05a7b274497c5b63c2aa9486e0610bf9c9fa32e70ac3453f26f181300106533a60e08201527f0e5775bf946735d1ab10bc0fe721dac812003a0756b73371686b39a0c8e0a59a6101008201527f2e63b48c5263b864a5ac08e86eda8c54b609edde10946cdd944dd04bf8f706996101208201527f2a68fdf476b29776ff77059d8292dbdef8bf3835b1d0b8c5e61a8e9f9065804c6101408201527f1b6deed70cfcb89383c60b8d413374d552260ab753beccb04e2077b09a6b69216101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f158d15b191dda264a993425059ebfd021c32c1730e3d254e31fd87de0ab46bac6102808201527f250bca34a48b272729deaec79ae6cc9a702ed03a18a0b5dbd03e9355f52480a56102a08201527f1a999fb6f30f5cc719a772e575a1effffd30eac8e14132c3759716b124d6750b6102c08201527f1db0c59f9dd26d6b1e665961792353cbd44351a6e5108cc13ee1aae16c3734046102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108995f84013561005a565b6108a6602084013561005a565b6108b3604084013561005a565b6108c0606084013561005a565b6108cd608084013561005a565b6108da60a084013561005a565b6108e760c084013561005a565b6108f460e084013561005a565b61090261010084013561005a565b61091061012084013561005a565b61091e61014084013561005a565b61092c61016084013561005a565b61093a61018084013561005a565b6109486101a084013561005a565b610955818486888a6100f2565b9050805f5260205ff35b806040810183101561096f575f5ffd5b92915050565b5f5f5f5f6102c08587031215610989575f5ffd5b610993868661095f565b935060c08501868111156109a5575f5ffd5b6040860193506109b5878261095f565b925050856102c0860111156109c8575f5ffd5b5091949093509091610100019056fea2646970667358221220478778d0335dd646856137a27c3acb70f813b5d21368e81d0f8aa12044b1af5b64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","networkInteractionId":1,"nonce":1129,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","networkInteractionId":1,"nonce":1129,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40912000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x32f661672c06f9868a78d2a4fe8a0f5a74486bfa9ef3c4e94c50798d63437cfc"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","hash":"0x32f661672c06f9868a78d2a4fe8a0f5a74486bfa9ef3c4e94c50798d63437cfc","networkInteractionId":1,"receipt":{"blockHash":"0xe636d5439ff27c879b82de25f13720b9acc6daac1de03f522347f529ba5f9b01","blockNumber":442784509,"contractAddress":"0x0dEA7dEBB1475B56f621D20Ae3B5b6D2C46C9A75","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","result":{"address":"0x0dEA7dEBB1475B56f621D20Ae3B5b6D2C46C9A75","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlpha_2_2_30","dependencies":["CurvyAggregatorAlpha#aggregationVerifierDepth30"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506108328061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b36600461079a565b610054565b604051901515815260200160405180910390f35b5f6106ed565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f03760d22d9f2d34545c9e1914bb1ce7a6044769221030d98d87baf999cce726d85527f156ecf9f5c2610839d6d385378a656c0efd32e94a04ebc9c7089f4fe125b838260208601525f608086018661018e87357f2b2c117485e91a1ea632fe27385f77f9331e1db2672e42e9c86a2f802d6f4a577f022aa120b95ee1b256867106394adb6006f30068c06b3ea2e7a6a5bd396d32b88461008c565b6101de60208801357f190133b406f620e57f93dac97d795ee3e6c1cd5c1380ff8efa9bb5ae36eb6f027f201b5a5bcdd373439d8e242f31c140092f2e5e54fd22a0cd50775e373802199e8461008c565b61022e60408801357f1dacf0b93a0b74bacc711d37c038bc8c83ade754b2ce6b8d14bdab54c5267fcf7f27793f520413175bff070cb1cf2a66e303cb460fc50eae4788cc70e37947189e8461008c565b61027e60608801357f20c614098c5807d4d609bcda798ec95ffb84ea0fc6b97e2383149f4797c4071c7f1fcbb72508f88430df9f833ac15e753e438b391af9ded7d805815264fb92b9a18461008c565b6102ce60808801357f0f412826e324f04afe142e271f643cfd1191362dbd52c4ab1027b6dc5f4505197f251f4cfcfa4754144730a6dc064fe7159ceceaa24682c33fa9ec26df30314a098461008c565b61031e60a08801357f0a87b48bf8cd64b224ef5e524ccc422db4d1a2ddc4c6a52bf1354155dbfaca107f11ba886ae51f5da62f1ef74ebc2d941ffe1c84c0cc86a039eea59d753cf737e58461008c565b61036e60c08801357f0eb0f1a445dc5bdf6debee9f4b65306030a8c1c70c87aa910f111314550ff7ca7f0497eac083a6ae9671da1e9e67b4d81eb1890f772f559945e8db07f731b89b948461008c565b6103be60e08801357f27d71145b77c48dc3f37b04048a4952390eff92adf283803d939a5ef357469fa7f2f1d2ecb7da3238e91f60101a82f95a2a0cf3f18513a3efea2ef960e0f1b05038461008c565b61040f6101008801357f1232a2dd4a7f2a4eb7706e0ef2ac142d17bdd99c74cac407523c83ae2c0b14bf7f3013a3053bd7992674a30da3c9e0d99c8b16d930ea2986caa9428a2b843bcf9e8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1e16c25ab763d8d1477730a7d1ccef12a682cea336a50d06e8fbf5c6179e17d460c08201527f075447418c2d22c69113fa9cdfa0d27ef53317ffdee3259adcd492ba271bc6d460e08201527f2cc1fb86ad7b8be8587556a4b94dc9e84e3b8666d59c51208ee844733934e6696101008201527f27d109e11d2b06dc95900781efaa5ef1fc6dfbdb31e61283628e962fd17fe8c16101208201527f2f8043381982846eac492d6f3a1d39a682c65bfa8dd02e323e7a95df562cf9c96101408201527f29b9eff97456a285bf27898a846691a82071d53474301e1ca6b49892eb4499a56101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f02eed0745f7d7332ae3ac78bd0254d1d2a4f9c1ce849e2228ea68328f9861bab6102808201527f0a53e8207852cc09b290c2038962e161eb338f5b97cb2e1df58d5d4dd059cbdd6102a08201527f251e2c5b50852e3d17871d61fea2a638e7bd6669af35a7a4239e571588856f356102c08201527f1a01f4782436380d4ee0769723d43073f4888b316a973df0e33004b2ded19df76102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107045f84013561005a565b610711602084013561005a565b61071e604084013561005a565b61072b606084013561005a565b610738608084013561005a565b61074560a084013561005a565b61075260c084013561005a565b61075f60e084013561005a565b61076d61010084013561005a565b61077a818486888a6100f2565b9050805f5260205ff35b8060408101831015610794575f5ffd5b92915050565b5f5f5f5f61022085870312156107ae575f5ffd5b6107b88686610784565b935060c08501868111156107ca575f5ffd5b6040860193506107da8782610784565b92505085610220860111156107ed575f5ffd5b5091949093509091610100019056fea2646970667358221220aa1cf904b8465ae86135852d29b474903154ff35037e293a5f977b17164b752c64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","networkInteractionId":1,"nonce":1130,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","networkInteractionId":1,"nonce":1130,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xb425dc718c4a8d8470bb48526bb7164ca908c03b0adbd9f32def31cdc158a97a"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","hash":"0xb425dc718c4a8d8470bb48526bb7164ca908c03b0adbd9f32def31cdc158a97a","networkInteractionId":1,"receipt":{"blockHash":"0xecbd46e957a73ab4acd299afa032d41ff1c01c09314392f2fc56af415af6f8bc","blockNumber":442784521,"contractAddress":"0x8Fdfd7c92A873C2C5fE31D552C732dDdaa045C98","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","result":{"address":"0x8Fdfd7c92A873C2C5fE31D552C732dDdaa045C98","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x0dEA7dEBB1475B56f621D20Ae3B5b6D2C46C9A75","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0x0c349EF637ceb9EaF93374F68Ca84A21a042f478","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x0000000000000000000000000000000000000000","withdrawVerifier":"0x8Fdfd7c92A873C2C5fE31D552C732dDdaa045C98"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","CurvyAggregatorAlpha#insertionVerifierDepth30","CurvyAggregatorAlpha#aggregationVerifierDepth30","CurvyAggregatorAlpha#withdrawVerifierDepth30"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","networkInteraction":{"data":"0xcf101a490000000000000000000000000c349ef637ceb9eaf93374f68ca84a21a042f4780000000000000000000000000dea7debb1475b56f621d20ae3b5b6d2c46c9a750000000000000000000000008fdfd7c92a873c2c5fe31d552c732dddaa045c9800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","networkInteractionId":1,"nonce":1131,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","networkInteractionId":1,"nonce":1131,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40208000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x2fd6a27fbe99045a015e81c71076d8ec38a0215bc967aae02b1a04b258c3ede6"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","hash":"0x2fd6a27fbe99045a015e81c71076d8ec38a0215bc967aae02b1a04b258c3ede6","networkInteractionId":1,"receipt":{"blockHash":"0x6f01a1de6a52dbb21ce62c7534a6388df0a5e75822ca63398baca00237ed6e24","blockNumber":442784534,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/production_base/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/production_base/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/production_base/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_base/artifacts/PortalFactoryModule#PortalFactory.json b/ignition/deployments/production_base/artifacts/PortalFactoryModule#PortalFactory.json
deleted file mode 100644
index 467c840..0000000
--- a/ignition/deployments/production_base/artifacts/PortalFactoryModule#PortalFactory.json
+++ /dev/null
@@ -1,256 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_base/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json b/ignition/deployments/production_base/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
deleted file mode 100644
index 272c9d5..0000000
--- a/ignition/deployments/production_base/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_base/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json b/ignition/deployments/production_base/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
deleted file mode 100644
index 156f127..0000000
--- a/ignition/deployments/production_base/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n // TODO: Emit shielding failed and if that event is detected in the simulation, then we will mark the shielding as failed.\n return; // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_base/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json b/ignition/deployments/production_base/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
deleted file mode 100644
index e4ce59c..0000000
--- a/ignition/deployments/production_base/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_base/deployed_addresses.json b/ignition/deployments/production_base/deployed_addresses.json
deleted file mode 100644
index 8254adf..0000000
--- a/ignition/deployments/production_base/deployed_addresses.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "PortalFactoryModule#PortalFactory": "0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16",
- "PortalFactory#CreateX": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
- "PortalFactory#PortalFactory": "0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_base/journal.jsonl b/ignition/deployments/production_base/journal.jsonl
deleted file mode 100644
index e790e18..0000000
--- a/ignition/deployments/production_base/journal.jsonl
+++ /dev/null
@@ -1,63 +0,0 @@
-
-{"chainId":8453,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016bc7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":10,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":10,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"7507988"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x3faa2723feda5203707579f25c245330d0fa16715ed28d1a187ea0e80360f61f"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x3faa2723feda5203707579f25c245330d0fa16715ed28d1a187ea0e80360f61f","networkInteractionId":1,"receipt":{"blockHash":"0x436c27f7df7d3403ffa69856fe53ff6d91985f45909892e9634184d2fb791ad2","blockNumber":41407303,"logs":[{"address":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","data":"0x","logIndex":194,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":195,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000ff84acbae0c126506b250b0c7d17bcc8367c1d16","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"PortalFactoryModule#PortalFactory.updateConfig","strategy":"create2","strategyConfig":{"salt":"0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":11,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":11,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"7415058"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xe9ee3521dd293ae0aee58444770136516cf357afcc8b4b60465470e7605a6478"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","hash":"0xe9ee3521dd293ae0aee58444770136516cf357afcc8b4b60465470e7605a6478","networkInteractionId":1,"receipt":{"blockHash":"0x15ac6aa429efa8d6c0905af22cd56c62e6f9fb7027cffba21ed5f20e246a9252","blockNumber":41407308,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":17,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":17,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"10092188"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xe8590abc9020f3ad26cae863453196c0e505ea4e9af169830cdb6cd875f13877"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","hash":"0xe8590abc9020f3ad26cae863453196c0e505ea4e9af169830cdb6cd875f13877","networkInteractionId":1,"receipt":{"blockHash":"0x79d5843ba00a6a7233dc4ce6b4d2000ec816724c9bc79542dd191257c0c2f75a","blockNumber":41842021,"logs":[{"address":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","data":"0x","logIndex":979,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":980,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000341d1571998c937e5f3cb3e640805c8b457e7124","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0","nameOrIndex":"newContract","result":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xe8590abc9020f3ad26cae863453196c0e505ea4e9af169830cdb6cd875f13877","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":18,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":18,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"10044242"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xa4a05144eecb7b8b5b72fff560d1e053f325c0272a7e14ab72df3f954b6253dc"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xa4a05144eecb7b8b5b72fff560d1e053f325c0272a7e14ab72df3f954b6253dc","networkInteractionId":1,"receipt":{"blockHash":"0x4daad37a20dc927232f3ff9d3968ca716a02ccaf62acb8bdc4028ea5a54e9d8b","blockNumber":41842027,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":31,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":31,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"11000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x353909a837b1b4d10b3706e3fe5af7ad20957399768cf3024d3910c603edd6de"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x353909a837b1b4d10b3706e3fe5af7ad20957399768cf3024d3910c603edd6de","networkInteractionId":1,"receipt":{"blockHash":"0x0794d9063f47f9256e78dee24fcf540fdf1f79d620d685f77aaeb356737ce7fc","blockNumber":43134653,"logs":[{"address":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","data":"0x","logIndex":692,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":693,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000008ec5dedfd00599a6d820f8d54195ac0a7193d15c","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x353909a837b1b4d10b3706e3fe5af7ad20957399768cf3024d3910c603edd6de","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":32,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":32,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"11000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xabff2f5aaa1c3a694689313c833cf5c8e432f2ed3d8a67d67f809dae566b9319"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xabff2f5aaa1c3a694689313c833cf5c8e432f2ed3d8a67d67f809dae566b9319","networkInteractionId":1,"receipt":{"blockHash":"0x7637f084f16de0a56feda931f40cf353a21fe164b94c77f89c268ddeea02206e","blockNumber":43134658,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":45,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":45,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"15960234"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x3bf4237afdc812860eb1f9f47c31dabf631a3187b8f0a22bcf11aceadb236f32"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x3bf4237afdc812860eb1f9f47c31dabf631a3187b8f0a22bcf11aceadb236f32","networkInteractionId":1,"receipt":{"blockHash":"0x7e100352a207b6d1fd773bc0c779e093e51604dd666e3c07d0ac9bfd393388ba","blockNumber":43441650,"logs":[{"address":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","data":"0x","logIndex":625,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":626,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000fe02b0a1ebec81faac4c09e3f4eaefe568833718","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x3bf4237afdc812860eb1f9f47c31dabf631a3187b8f0a22bcf11aceadb236f32","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":46,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":46,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"16003562"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x53fbfa48e9e50a71f8cce7aba3b3446f2484a5f6a3debc35a1173fc6ba4f444d"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x53fbfa48e9e50a71f8cce7aba3b3446f2484a5f6a3debc35a1173fc6ba4f444d","networkInteractionId":1,"receipt":{"blockHash":"0x53e4c31dec0f5093a798325266aab9b721db189c685de777deb45a2110eb9b00","blockNumber":43441657,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/production_bsc/artifacts/PortalFactory#CreateX.json b/ignition/deployments/production_bsc/artifacts/PortalFactory#CreateX.json
deleted file mode 100644
index 5d6f263..0000000
--- a/ignition/deployments/production_bsc/artifacts/PortalFactory#CreateX.json
+++ /dev/null
@@ -1,906 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "FailedContractCreation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedContractInitialisation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedEtherTransfer",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidNonceValue",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidSalt",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "Create3ProxyContractCreation",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreateClone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "bytecode": "0x",
- "deployedBytecode": "0x",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_bsc/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/production_bsc/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/production_bsc/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_bsc/artifacts/PortalFactoryModule#PortalFactory.json b/ignition/deployments/production_bsc/artifacts/PortalFactoryModule#PortalFactory.json
deleted file mode 100644
index 467c840..0000000
--- a/ignition/deployments/production_bsc/artifacts/PortalFactoryModule#PortalFactory.json
+++ /dev/null
@@ -1,256 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_bsc/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json b/ignition/deployments/production_bsc/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
deleted file mode 100644
index 272c9d5..0000000
--- a/ignition/deployments/production_bsc/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_bsc/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/production_bsc/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
deleted file mode 100644
index 4b57fc4..0000000
--- a/ignition/deployments/production_bsc/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/devenv/ICreateX.sol": {
- "content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_bsc/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json b/ignition/deployments/production_bsc/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
deleted file mode 100644
index 156f127..0000000
--- a/ignition/deployments/production_bsc/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n // TODO: Emit shielding failed and if that event is detected in the simulation, then we will mark the shielding as failed.\n return; // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_bsc/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/production_bsc/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
deleted file mode 100644
index 6ea1fae..0000000
--- a/ignition/deployments/production_bsc/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_bsc/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json b/ignition/deployments/production_bsc/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
deleted file mode 100644
index e4ce59c..0000000
--- a/ignition/deployments/production_bsc/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_bsc/deployed_addresses.json b/ignition/deployments/production_bsc/deployed_addresses.json
deleted file mode 100644
index 8254adf..0000000
--- a/ignition/deployments/production_bsc/deployed_addresses.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "PortalFactoryModule#PortalFactory": "0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16",
- "PortalFactory#CreateX": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
- "PortalFactory#PortalFactory": "0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_bsc/journal.jsonl b/ignition/deployments/production_bsc/journal.jsonl
deleted file mode 100644
index 1508705..0000000
--- a/ignition/deployments/production_bsc/journal.jsonl
+++ /dev/null
@@ -1,63 +0,0 @@
-
-{"chainId":56,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016bc7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":10,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":10,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0xe1ca9f4374202a717dbd49e1f2d341d711d20a87479ec21a9137b08d60b235e4"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0xe1ca9f4374202a717dbd49e1f2d341d711d20a87479ec21a9137b08d60b235e4","networkInteractionId":1,"receipt":{"blockHash":"0xfc65f222409c2f7158c8830b2bbc737912397ab8075b65467ccf6fc9f3263068","blockNumber":77908641,"logs":[{"address":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","data":"0x","logIndex":343,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":344,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000ff84acbae0c126506b250b0c7d17bcc8367c1d16","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"PortalFactoryModule#PortalFactory.updateConfig","strategy":"create2","strategyConfig":{"salt":"0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":11,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":11,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x573ccadd619b771c068fd68a7c15be586db3f07deb7175f4adf57a92da87db1d"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","hash":"0x573ccadd619b771c068fd68a7c15be586db3f07deb7175f4adf57a92da87db1d","networkInteractionId":1,"receipt":{"blockHash":"0x6edd73ccda8ce231773f8c78965d26b721f1ec971a86e157dd2316b2fb52fa04","blockNumber":77908648,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":17,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":17,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x86940221a2e12839e451be3116ef261458c6f2fa7285bbb439332a098d93c562"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","hash":"0x86940221a2e12839e451be3116ef261458c6f2fa7285bbb439332a098d93c562","networkInteractionId":1,"receipt":{"blockHash":"0x9d34ccb3c6b200782098be18724dd8ef4801360c1502445723ec7b1938a0a972","blockNumber":79839940,"logs":[{"address":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","data":"0x","logIndex":296,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":297,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000341d1571998c937e5f3cb3e640805c8b457e7124","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0","nameOrIndex":"newContract","result":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x86940221a2e12839e451be3116ef261458c6f2fa7285bbb439332a098d93c562","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":18,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":18,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x9f4c5f102cc6d2e102f5ce1a40cae74e166f7f84f7c6fd2bc6be03c919ed8b8e"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x9f4c5f102cc6d2e102f5ce1a40cae74e166f7f84f7c6fd2bc6be03c919ed8b8e","networkInteractionId":1,"receipt":{"blockHash":"0xb8111bed61f684754df942cd6187190b5449253aef95219a70355b215b05c4d9","blockNumber":79839947,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":31,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":31,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x07aaed1b8ffaf8da80d93780964d18228e9b6ff8b52dd1d0934ca0c105647089"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x07aaed1b8ffaf8da80d93780964d18228e9b6ff8b52dd1d0934ca0c105647089","networkInteractionId":1,"receipt":{"blockHash":"0x7cf71d78a98c0fbddb2577be2c318bda80ed4fc1b037502c7cd634b073a1fcea","blockNumber":85584229,"logs":[{"address":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","data":"0x","logIndex":212,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":213,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000008ec5dedfd00599a6d820f8d54195ac0a7193d15c","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x07aaed1b8ffaf8da80d93780964d18228e9b6ff8b52dd1d0934ca0c105647089","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":32,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":32,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x880d60f754470684b922c299fab0dff99697a98148105107286d76baaa0f2f90"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x880d60f754470684b922c299fab0dff99697a98148105107286d76baaa0f2f90","networkInteractionId":1,"receipt":{"blockHash":"0x12724cbb1e9c76200c04bad8fec9ea83899ed6beef177e05a301c54f555d9d77","blockNumber":85584238,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":43,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":43,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0xd15d828cd6e363590d5f3c48781d729aa0b8edfc9b0c93a131a0725223045e8d"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xd15d828cd6e363590d5f3c48781d729aa0b8edfc9b0c93a131a0725223045e8d","networkInteractionId":1,"receipt":{"blockHash":"0xe4e5852563c2bd48e9cdf3da02ec53153c30baf753e210f7c16e6901f7c884a0","blockNumber":86948172,"logs":[{"address":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","data":"0x","logIndex":612,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":613,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000fe02b0a1ebec81faac4c09e3f4eaefe568833718","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xd15d828cd6e363590d5f3c48781d729aa0b8edfc9b0c93a131a0725223045e8d","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":44,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":44,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x497f348af0219fad2e3d67ff0dfac04e6888cf82319195a2908048944d239ff5"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x497f348af0219fad2e3d67ff0dfac04e6888cf82319195a2908048944d239ff5","networkInteractionId":1,"receipt":{"blockHash":"0x7a70f629c33dae50ddd8ebe8dfe47fa55ef35f0b3d24e57aa25b35efc596c587","blockNumber":86948191,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2.json
deleted file mode 100644
index 8536a77..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregationVerifierAlpha_2_2_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "_pubSignals",
- "type": "uint256[14]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b50610a0c8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610974565b610054565b604051901515815260200160405180910390f35b5f610881565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7e10acd6d4ce082a72b623deeac4b4c1c526b8ab76ab54f82d13b63a6f23e2cd85527f282cd953fc7bc024a80710dd645d4cd8e4ef6d10eb7403a76618f96eddb5336e60208601525f608086018661018d87357f21626e5f52776516ac007ae23e14ca016f4e7623b79f63f4ab59482e4872c52b7f2c8f6445390acb60223f07dcf516fee816534c9940dc8d59595786b35106f0f38461008c565b6101dd60208801357f20d91723fc6a5cff2a4d8bd53db8c7647c86b9245b27d7042634dd317becf0797f1693b6ee023f9ef0c9e7cb1d290717e3df5f6d2154ba30f3a6a833f3171c2ee08461008c565b61022d60408801357f1a9347082efac79b5d64033c95c7f2190984cd2a19884b4ad26162ea47e0ea3b7f27173150520b68cc7844935166da0f68924aeccc8a30ae9ca0768eb597cf2a638461008c565b61027d60608801357f207839c9f296371e642b17ab83a64fca9b9044d10b0f6a5319ae0e2ee2a76c0c7f235a1223ea30a75c93efd51c3abd465c611878ebc52d9830e61978f914d7c8908461008c565b6102cd60808801357f0cefdb3db08f930f2ed5534a797dc304a1189c61a2835aabb6c5831f0ca838f37f15bf6ee50fbb6b6a07695b99fa739330553161a7de0b0380556b61ebe950563f8461008c565b61031d60a08801357f0b50c85999c665bad3101fb618ca967aa4860c1c07f4c54bcf692b7b30b2c11a7f2d4f881288f63fa77f63eaad252bd5efbbbda01e21976fb645aaadd286929c3f8461008c565b61036d60c08801357f15b81a815c06b38295623648d75372799d4755f7a0b74f7bd655f5f64715a03e7f09331bcaac14f8bcf495ed09470e01f3c268f1fdb4e019c19c836e2c8310044a8461008c565b6103bd60e08801357f2a2a8f30efa6592960fa69f190f96c5f0b432948973a9c53269de3e6b8abebb57f297cd48dfb07dc7ad0120ed8151942d511ebca1b71a736b61ac6375e2a51947a8461008c565b61040e6101008801357f0a9c03a1994f221c057f75855cb14a95329dde81e32a7a8660a3828c46e4af7d7f1dc315ae7bd487ac77c690ee6e5d2fe7bbfd5ae36935ffac15114a4f2748dc5b8461008c565b61045f6101208801357f0280bc41f56d2038589161b139f5c3704eeb19e9da2f170a5b4e977678a727697f063f6dc839c18a58049574763b3de59bc2c20609b01907e66dcfe264b091cd858461008c565b6104b06101408801357f1f96dc322de85ba0a31ce878d61f5047eba9ad25489230b888ede7739aeb36f57f0d58db0890c2f6ee0bda8261a76d6ad9da96e539d0df7046cd0799f0176a53fb8461008c565b6105016101608801357f246ef5979ae9aea616e30dbab411c28406510a656ddd2043a5b9211d31edd1647f24d8db926da6b7c4a17804818d83058eb0f5dfa6163c3922aa9a7edeb4b85ede8461008c565b6105526101808801357f1011fe6c75f7c6cf1a8a62ff71387fef8a19e46d0af37193380a7c603f7529497f12b2d70c94e401c6f3822578fb27c67f97bf1827a1b9e0cc1c2fb34a68a6521d8461008c565b6105a36101a08801357f082d86555b48de36b698d5bc0cb44148b3a0eb1d3b992638453070deb120b15d7f26b43cf48f595a8e3e2a3b8515b7df9db6ffebecbc968995b4071e0f2dad32dc8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1f7f9f69ea5e04a56ee102635a0fcdbefd57b4c7f37a1e0d903ba69281a5f0d36102808201527f2a49c1e717e044ad7bc38e0b841e28e08eebe51b906016be33a2ff2d74f10c586102a08201527f027a67b0798b9350cd04c5ce09117b7e660dbe3e1449f667ea13c3c43255f84c6102c08201527f19725ce00771a3c317cb70a3c5856f91c6ac2313426f5863fcd93969d2384de06102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108985f84013561005a565b6108a5602084013561005a565b6108b2604084013561005a565b6108bf606084013561005a565b6108cc608084013561005a565b6108d960a084013561005a565b6108e660c084013561005a565b6108f360e084013561005a565b61090161010084013561005a565b61090f61012084013561005a565b61091d61014084013561005a565b61092b61016084013561005a565b61093961018084013561005a565b6109476101a084013561005a565b610954818486888a6100f2565b9050805f5260205ff35b806040810183101561096e575f5ffd5b92915050565b5f5f5f5f6102c08587031215610988575f5ffd5b610992868661095e565b935060c08501868111156109a4575f5ffd5b6040860193506109b4878261095e565b925050856102c0860111156109c7575f5ffd5b5091949093509091610100019056fea2646970667358221220c5df5a746d614b72f69595bc69601e5559fe5a1a70d66d8b1723b65d65e2b55c64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610974565b610054565b604051901515815260200160405180910390f35b5f610881565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7e10acd6d4ce082a72b623deeac4b4c1c526b8ab76ab54f82d13b63a6f23e2cd85527f282cd953fc7bc024a80710dd645d4cd8e4ef6d10eb7403a76618f96eddb5336e60208601525f608086018661018d87357f21626e5f52776516ac007ae23e14ca016f4e7623b79f63f4ab59482e4872c52b7f2c8f6445390acb60223f07dcf516fee816534c9940dc8d59595786b35106f0f38461008c565b6101dd60208801357f20d91723fc6a5cff2a4d8bd53db8c7647c86b9245b27d7042634dd317becf0797f1693b6ee023f9ef0c9e7cb1d290717e3df5f6d2154ba30f3a6a833f3171c2ee08461008c565b61022d60408801357f1a9347082efac79b5d64033c95c7f2190984cd2a19884b4ad26162ea47e0ea3b7f27173150520b68cc7844935166da0f68924aeccc8a30ae9ca0768eb597cf2a638461008c565b61027d60608801357f207839c9f296371e642b17ab83a64fca9b9044d10b0f6a5319ae0e2ee2a76c0c7f235a1223ea30a75c93efd51c3abd465c611878ebc52d9830e61978f914d7c8908461008c565b6102cd60808801357f0cefdb3db08f930f2ed5534a797dc304a1189c61a2835aabb6c5831f0ca838f37f15bf6ee50fbb6b6a07695b99fa739330553161a7de0b0380556b61ebe950563f8461008c565b61031d60a08801357f0b50c85999c665bad3101fb618ca967aa4860c1c07f4c54bcf692b7b30b2c11a7f2d4f881288f63fa77f63eaad252bd5efbbbda01e21976fb645aaadd286929c3f8461008c565b61036d60c08801357f15b81a815c06b38295623648d75372799d4755f7a0b74f7bd655f5f64715a03e7f09331bcaac14f8bcf495ed09470e01f3c268f1fdb4e019c19c836e2c8310044a8461008c565b6103bd60e08801357f2a2a8f30efa6592960fa69f190f96c5f0b432948973a9c53269de3e6b8abebb57f297cd48dfb07dc7ad0120ed8151942d511ebca1b71a736b61ac6375e2a51947a8461008c565b61040e6101008801357f0a9c03a1994f221c057f75855cb14a95329dde81e32a7a8660a3828c46e4af7d7f1dc315ae7bd487ac77c690ee6e5d2fe7bbfd5ae36935ffac15114a4f2748dc5b8461008c565b61045f6101208801357f0280bc41f56d2038589161b139f5c3704eeb19e9da2f170a5b4e977678a727697f063f6dc839c18a58049574763b3de59bc2c20609b01907e66dcfe264b091cd858461008c565b6104b06101408801357f1f96dc322de85ba0a31ce878d61f5047eba9ad25489230b888ede7739aeb36f57f0d58db0890c2f6ee0bda8261a76d6ad9da96e539d0df7046cd0799f0176a53fb8461008c565b6105016101608801357f246ef5979ae9aea616e30dbab411c28406510a656ddd2043a5b9211d31edd1647f24d8db926da6b7c4a17804818d83058eb0f5dfa6163c3922aa9a7edeb4b85ede8461008c565b6105526101808801357f1011fe6c75f7c6cf1a8a62ff71387fef8a19e46d0af37193380a7c603f7529497f12b2d70c94e401c6f3822578fb27c67f97bf1827a1b9e0cc1c2fb34a68a6521d8461008c565b6105a36101a08801357f082d86555b48de36b698d5bc0cb44148b3a0eb1d3b992638453070deb120b15d7f26b43cf48f595a8e3e2a3b8515b7df9db6ffebecbc968995b4071e0f2dad32dc8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1f7f9f69ea5e04a56ee102635a0fcdbefd57b4c7f37a1e0d903ba69281a5f0d36102808201527f2a49c1e717e044ad7bc38e0b841e28e08eebe51b906016be33a2ff2d74f10c586102a08201527f027a67b0798b9350cd04c5ce09117b7e660dbe3e1449f667ea13c3c43255f84c6102c08201527f19725ce00771a3c317cb70a3c5856f91c6ac2313426f5863fcd93969d2384de06102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108985f84013561005a565b6108a5602084013561005a565b6108b2604084013561005a565b6108bf606084013561005a565b6108cc608084013561005a565b6108d960a084013561005a565b6108e660c084013561005a565b6108f360e084013561005a565b61090161010084013561005a565b61090f61012084013561005a565b61091d61014084013561005a565b61092b61016084013561005a565b61093961018084013561005a565b6109476101a084013561005a565b610954818486888a6100f2565b9050805f5260205ff35b806040810183101561096e575f5ffd5b92915050565b5f5f5f5f6102c08587031215610988575f5ffd5b610992868661095e565b935060c08501868111156109a4575f5ffd5b6040860193506109b4878261095e565b925050856102c0860111156109c7575f5ffd5b5091949093509091610100019056fea2646970667358221220c5df5a746d614b72f69595bc69601e5559fe5a1a70d66d8b1723b65d65e2b55c64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol",
- "buildInfoId": "solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json
deleted file mode 100644
index 108efa0..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json
+++ /dev/null
@@ -1,637 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV1",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c8a1428597d493cbe694c55d3c3140f6d4feec8584d111946bcfbdce984afdd264736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c8a1428597d493cbe694c55d3c3140f6d4feec8584d111946bcfbdce984afdd264736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1487
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1238
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4794
- },
- {
- "length": 32,
- "start": 4835
- },
- {
- "length": 32,
- "start": 5159
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "buildInfoId": "solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json
deleted file mode 100644
index 108efa0..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json
+++ /dev/null
@@ -1,637 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV1",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c8a1428597d493cbe694c55d3c3140f6d4feec8584d111946bcfbdce984afdd264736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c8a1428597d493cbe694c55d3c3140f6d4feec8584d111946bcfbdce984afdd264736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1487
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1238
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4794
- },
- {
- "length": 32,
- "start": 4835
- },
- {
- "length": 32,
- "start": 5159
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "buildInfoId": "solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json
deleted file mode 100644
index c563db4..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json
+++ /dev/null
@@ -1,637 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV2",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220203f460927dd492ae23c6a846bacc1b688b31d219b7fe1d56291d876ca96db2b64736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220203f460927dd492ae23c6a846bacc1b688b31d219b7fe1d56291d876ca96db2b64736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1487
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1238
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4796
- },
- {
- "length": 32,
- "start": 4837
- },
- {
- "length": 32,
- "start": 5161
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "buildInfoId": "solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json
deleted file mode 100644
index 7473757..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json
+++ /dev/null
@@ -1,691 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV3",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212206ff0d470ab001319b7a6d16084e8db1922e67b75e58813aaec5f4d41b61b48b164736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212206ff0d470ab001319b7a6d16084e8db1922e67b75e58813aaec5f4d41b61b48b164736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1517
- },
- {
- "length": 20,
- "start": 3824
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1268
- },
- {
- "length": 20,
- "start": 3575
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5556
- },
- {
- "length": 32,
- "start": 5597
- },
- {
- "length": 32,
- "start": 5921
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol",
- "buildInfoId": "solc-0_8_28-96b1f146962f0bd5475b352d77ae5331b364780c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json
deleted file mode 100644
index 7473757..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json
+++ /dev/null
@@ -1,691 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV3",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212206ff0d470ab001319b7a6d16084e8db1922e67b75e58813aaec5f4d41b61b48b164736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212206ff0d470ab001319b7a6d16084e8db1922e67b75e58813aaec5f4d41b61b48b164736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1517
- },
- {
- "length": 20,
- "start": 3824
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1268
- },
- {
- "length": 20,
- "start": 3575
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5556
- },
- {
- "length": 32,
- "start": 5597
- },
- {
- "length": 32,
- "start": 5921
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol",
- "buildInfoId": "solc-0_8_28-96b1f146962f0bd5475b352d77ae5331b364780c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2.json
deleted file mode 100644
index 74a22ca..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyInsertionVerifierAlpha_2_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "_pubSignals",
- "type": "uint256[4]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506106648061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d7565b610054565b604051901515815260200160405180910390f35b5f61055c565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0f3cc497f7f2ad2db9f9a01e1d1e237e7bd547ee48d3698641bae08ce37c187485527f2a2f300a2bc9b5576e8d348d9542dedfce1dd7566c9f7ad0c7936e9508f2d13f60208601525f608086018661018e87357f152cd78e51c23961af90e069fcceb20b0358a4c13f4d05ad78f5554803410ec47f068d0161c738b8256d8f80c113a6f2adc60bf92724e5ba844434551f353109bb8461008c565b6101de60208801357f28aeb7fafb1d5864b489fac2ac75795429a84564ed301367b95bdbbda22e41cc7f01fb82a3a457b9782065bddb3961e014b8602fe337a83a253a4edbe7f9eca5de8461008c565b61022e60408801357f10e505cabab95d2954811e50e0c907e6e27d3ea37df4576cb85d2b024b758e5e7f132ffdaaa0e5fbd39240ae81be15c78f27d1a5e9f0b046bc50a19ebd0e1f50be8461008c565b61027e60608801357f061f18bbab38fe7f8eca85f2017b25f057fb908ca68d0965746884ca8b0b2e027f0323511d8b4f23d71a970779314d464e5993156eaed0970a246cd2a43da830c88461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f2ce5cf088183ccc73bfeb1244cdee7ae92ceb0e007194b0bf6c6e9819a863ca960c08201527f0b549a9abb46bc0c3ed48341aa21baa4532bca1fb1ff7a8ef409d3384eb73d3660e08201527f270e5ddc8a3d6e364fae6b353c6deedc579e522582d3d1d60036e9c43428bb8e6101008201527f2d9ef7723573eb05565ba62424d4b2f2d5a0e68d542f8c45daadb2f10a5cde376101208201527f1f542545a1550702631817615d0eac929e73ccc384d92ac156c7d3577e01d5226101408201527f08cd2dbefe01d914cd9826b6a1309de1d3c645a028b69cc3c690a05c183a9fa36101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f126779f2434a76e4e37da855f43a1df5648908e4e91eebf1e086544970eed7b86102808201527f12624c6dbae3875cc0583ab185cb81fc69d606519eef4d6140b7ac67aa6e26e76102a08201527f116d7e6cfc0480d16acdcebb03bef4a46abe3cff28a3aa60d1bf691b43679d866102c08201527f1bbda14ad6f8f4d5d33363f1d50fd72bf4b3b25d615b896c9e050098f5016f7d6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105735f84013561005a565b610580602084013561005a565b61058d604084013561005a565b61059a606084013561005a565b6105a7818486888a6100f2565b9050805f5260205ff35b80604081018310156105c1575f5ffd5b92915050565b80608081018310156105c1575f5ffd5b5f5f5f5f61018085870312156105eb575f5ffd5b6105f586866105b1565b935061060486604087016105c7565b92506106138660c087016105b1565b91506106238661010087016105c7565b90509295919450925056fea26469706673582212206f782de436746e389d2f3f8eeac94b985e369b9a2c08f0f7a2167fc9a1fa233d64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d7565b610054565b604051901515815260200160405180910390f35b5f61055c565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0f3cc497f7f2ad2db9f9a01e1d1e237e7bd547ee48d3698641bae08ce37c187485527f2a2f300a2bc9b5576e8d348d9542dedfce1dd7566c9f7ad0c7936e9508f2d13f60208601525f608086018661018e87357f152cd78e51c23961af90e069fcceb20b0358a4c13f4d05ad78f5554803410ec47f068d0161c738b8256d8f80c113a6f2adc60bf92724e5ba844434551f353109bb8461008c565b6101de60208801357f28aeb7fafb1d5864b489fac2ac75795429a84564ed301367b95bdbbda22e41cc7f01fb82a3a457b9782065bddb3961e014b8602fe337a83a253a4edbe7f9eca5de8461008c565b61022e60408801357f10e505cabab95d2954811e50e0c907e6e27d3ea37df4576cb85d2b024b758e5e7f132ffdaaa0e5fbd39240ae81be15c78f27d1a5e9f0b046bc50a19ebd0e1f50be8461008c565b61027e60608801357f061f18bbab38fe7f8eca85f2017b25f057fb908ca68d0965746884ca8b0b2e027f0323511d8b4f23d71a970779314d464e5993156eaed0970a246cd2a43da830c88461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f2ce5cf088183ccc73bfeb1244cdee7ae92ceb0e007194b0bf6c6e9819a863ca960c08201527f0b549a9abb46bc0c3ed48341aa21baa4532bca1fb1ff7a8ef409d3384eb73d3660e08201527f270e5ddc8a3d6e364fae6b353c6deedc579e522582d3d1d60036e9c43428bb8e6101008201527f2d9ef7723573eb05565ba62424d4b2f2d5a0e68d542f8c45daadb2f10a5cde376101208201527f1f542545a1550702631817615d0eac929e73ccc384d92ac156c7d3577e01d5226101408201527f08cd2dbefe01d914cd9826b6a1309de1d3c645a028b69cc3c690a05c183a9fa36101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f126779f2434a76e4e37da855f43a1df5648908e4e91eebf1e086544970eed7b86102808201527f12624c6dbae3875cc0583ab185cb81fc69d606519eef4d6140b7ac67aa6e26e76102a08201527f116d7e6cfc0480d16acdcebb03bef4a46abe3cff28a3aa60d1bf691b43679d866102c08201527f1bbda14ad6f8f4d5d33363f1d50fd72bf4b3b25d615b896c9e050098f5016f7d6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105735f84013561005a565b610580602084013561005a565b61058d604084013561005a565b61059a606084013561005a565b6105a7818486888a6100f2565b9050805f5260205ff35b80604081018310156105c1575f5ffd5b92915050565b80608081018310156105c1575f5ffd5b5f5f5f5f61018085870312156105eb575f5ffd5b6105f586866105b1565b935061060486604087016105c7565b92506106138660c087016105b1565b91506106238661010087016105c7565b90509295919450925056fea26469706673582212206f782de436746e389d2f3f8eeac94b985e369b9a2c08f0f7a2167fc9a1fa233d64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol",
- "buildInfoId": "solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2.json
deleted file mode 100644
index db29871..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyWithdrawVerifierAlpha_2_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "_pubSignals",
- "type": "uint256[10]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506108918061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b3660046107f9565b610054565b604051901515815260200160405180910390f35b5f61073e565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f1a75f14b8b1faa4b851f07b25985339af1f9563cb229396803fd379fead2bd7385527f0b5b03df8219c60d5be03ad52394f3d6330cf3e7cea9e656bc22982dd15cbadc60208601525f608086018661018e87357f05f00c0d109f87a8cf18b9d3052caae6027871b0d6fea2f54ca225891e16b0607f0d35ddf8253fb232d095057744ccb6f9d5887bee97ea61f885d511934169bcf08461008c565b6101de60208801357f2a60d3a69ccee567e2b57a0a42bcf19ba0d2335ceb81a2dcb71439314fea13857f2f70a47844f43803cbb4ce9a69cd5b3db4647da90f325d2ef456abea72d0bfe08461008c565b61022e60408801357f0f18cbcd1cbf7d154a35393c17382058e4b30517ab8be123af7d1951c671d4697f26cfb6e0961b50d6d1f534baef948730bec2a603ebf189eaaf72036e2a4d2fe68461008c565b61027e60608801357f033ae488254843311cd5bb9676251b2c80852d467355d37f443e17d049a503267f27e5a68de42fcbcbadd940c39e2013830c75dbb9ad6714cb768ba7d14af9421a8461008c565b6102ce60808801357f28120958d688c8a0d58372b242df5ec1c75aa124ab6f19c90c4b76b81057fd297f11c4be0f98ac33b680d4607a898dc72cdfc6d9946943b3e9f0080fe825263a5d8461008c565b61031e60a08801357f037d488c8ba35a919f4cfd44b1a9be07a0ca1ea689695c6b238ad364c47bbf7a7f2dd63748d624fd0124f265891b52eeb7d5565727b674658be4378d6e5b46be308461008c565b61036e60c08801357f2297bda45459480a6a488bd3386537b38ae11ffecb6beaec43e291d33dd2f8947f1d7c255c5e9cfa6d8457dc20e4af90332c6550fa6bea6ac80b2fcae91e31fb658461008c565b6103be60e08801357f1c564b05c0c5fc1db338de776a71a9b6408e0f1062ee5eec1ead8fe1fb68f0317f085c76b320e78e8fc1c30cd9a86ee083c737af478c344a985ff23109398c4e768461008c565b61040f6101008801357f0f6d3858a35815b73d414424416d4e35babb3e0141641fb6f11c5899b96ff6ce7f0678620b35e9ade6b5807cf7ccd5210ae099894132f0bff6345ba129e944dd3d8461008c565b6104606101208801357f2ef17308df02f12bcd04a63c4f9642e6a21bbfecd79bc266d9278cba32c0b7f47f1e5b526c2f7dbd765611c3117d2aa8924597b68d5b8d3654c375174d6affa8998461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f044bacd3d9b251fa2cdcb89c1e71c78d2d0ff824d43403d616a47c804c0469696102808201527f297536676d7cec34d41955f24cc5034a5b79d92b20c48c6d8073bc32016612396102a08201527f0281d22ffce2cf0ca8b4109517cf30ceed20be4d2ed307fda036ad8ef5e12df26102c08201527f1ffe72c016746c242459c1973b77d50d6415bb22ce31c61ee504c42c65b3d33c6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107555f84013561005a565b610762602084013561005a565b61076f604084013561005a565b61077c606084013561005a565b610789608084013561005a565b61079660a084013561005a565b6107a360c084013561005a565b6107b060e084013561005a565b6107be61010084013561005a565b6107cc61012084013561005a565b6107d9818486888a6100f2565b9050805f5260205ff35b80604081018310156107f3575f5ffd5b92915050565b5f5f5f5f610240858703121561080d575f5ffd5b61081786866107e3565b935060c0850186811115610829575f5ffd5b60408601935061083987826107e3565b925050856102408601111561084c575f5ffd5b5091949093509091610100019056fea2646970667358221220703faca2770b9c9f7e9a23c6d18d7c741c60c3262a4a3449160cfe04d5d9618164736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b3660046107f9565b610054565b604051901515815260200160405180910390f35b5f61073e565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f1a75f14b8b1faa4b851f07b25985339af1f9563cb229396803fd379fead2bd7385527f0b5b03df8219c60d5be03ad52394f3d6330cf3e7cea9e656bc22982dd15cbadc60208601525f608086018661018e87357f05f00c0d109f87a8cf18b9d3052caae6027871b0d6fea2f54ca225891e16b0607f0d35ddf8253fb232d095057744ccb6f9d5887bee97ea61f885d511934169bcf08461008c565b6101de60208801357f2a60d3a69ccee567e2b57a0a42bcf19ba0d2335ceb81a2dcb71439314fea13857f2f70a47844f43803cbb4ce9a69cd5b3db4647da90f325d2ef456abea72d0bfe08461008c565b61022e60408801357f0f18cbcd1cbf7d154a35393c17382058e4b30517ab8be123af7d1951c671d4697f26cfb6e0961b50d6d1f534baef948730bec2a603ebf189eaaf72036e2a4d2fe68461008c565b61027e60608801357f033ae488254843311cd5bb9676251b2c80852d467355d37f443e17d049a503267f27e5a68de42fcbcbadd940c39e2013830c75dbb9ad6714cb768ba7d14af9421a8461008c565b6102ce60808801357f28120958d688c8a0d58372b242df5ec1c75aa124ab6f19c90c4b76b81057fd297f11c4be0f98ac33b680d4607a898dc72cdfc6d9946943b3e9f0080fe825263a5d8461008c565b61031e60a08801357f037d488c8ba35a919f4cfd44b1a9be07a0ca1ea689695c6b238ad364c47bbf7a7f2dd63748d624fd0124f265891b52eeb7d5565727b674658be4378d6e5b46be308461008c565b61036e60c08801357f2297bda45459480a6a488bd3386537b38ae11ffecb6beaec43e291d33dd2f8947f1d7c255c5e9cfa6d8457dc20e4af90332c6550fa6bea6ac80b2fcae91e31fb658461008c565b6103be60e08801357f1c564b05c0c5fc1db338de776a71a9b6408e0f1062ee5eec1ead8fe1fb68f0317f085c76b320e78e8fc1c30cd9a86ee083c737af478c344a985ff23109398c4e768461008c565b61040f6101008801357f0f6d3858a35815b73d414424416d4e35babb3e0141641fb6f11c5899b96ff6ce7f0678620b35e9ade6b5807cf7ccd5210ae099894132f0bff6345ba129e944dd3d8461008c565b6104606101208801357f2ef17308df02f12bcd04a63c4f9642e6a21bbfecd79bc266d9278cba32c0b7f47f1e5b526c2f7dbd765611c3117d2aa8924597b68d5b8d3654c375174d6affa8998461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f044bacd3d9b251fa2cdcb89c1e71c78d2d0ff824d43403d616a47c804c0469696102808201527f297536676d7cec34d41955f24cc5034a5b79d92b20c48c6d8073bc32016612396102a08201527f0281d22ffce2cf0ca8b4109517cf30ceed20be4d2ed307fda036ad8ef5e12df26102c08201527f1ffe72c016746c242459c1973b77d50d6415bb22ce31c61ee504c42c65b3d33c6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107555f84013561005a565b610762602084013561005a565b61076f604084013561005a565b61077c606084013561005a565b610789608084013561005a565b61079660a084013561005a565b6107a360c084013561005a565b6107b060e084013561005a565b6107be61010084013561005a565b6107cc61012084013561005a565b6107d9818486888a6100f2565b9050805f5260205ff35b80604081018310156107f3575f5ffd5b92915050565b5f5f5f5f610240858703121561080d575f5ffd5b61081786866107e3565b935060c0850186811115610829575f5ffd5b60408601935061083987826107e3565b925050856102408601111561084c575f5ffd5b5091949093509091610100019056fea2646970667358221220703faca2770b9c9f7e9a23c6d18d7c741c60c3262a4a3449160cfe04d5d9618164736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol",
- "buildInfoId": "solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#ERC1967Proxy.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#ERC1967Proxy.json
deleted file mode 100644
index ad99af7..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#ERC1967Proxy.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ERC1967Proxy",
- "sourceName": "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "_data",
- "type": "bytes"
- }
- ],
- "stateMutability": "payable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "stateMutability": "payable",
- "type": "fallback"
- }
- ],
- "bytecode": "0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033",
- "deployedBytecode": "0x6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Proxy.sol",
- "buildInfoId": "solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#NewAggregationVerifier_v2.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#NewAggregationVerifier_v2.json
deleted file mode 100644
index ef94579..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#NewAggregationVerifier_v2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregationVerifierAlpha_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "input",
- "type": "uint256[14]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "r",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506116ed8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004611553565b610054565b604051901515815260200160405180910390f35b5f61005d61137a565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600e8082526101e082019093525f92909182016101c0803683370190505090505f5b600e811015610133578481600e811061010957610109611633565b602002015182828151811061012057610120611633565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061165b565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611633565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061165b565b8151811061029557610295611633565b60200260200101518a85815181106102af576102af611633565b6020026020010151610ce7565b610d7b565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611633565b6020026020010151610d7b565b9050610327610304865f0151610e12565b8660200151845f015185602001518587604001518b604001518960600151610eae565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6113c8565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f040960ae7a0345676e57477fe153547dac4996ccff6cd8bdbfab68194176ebfe8185019081527f09f390a54aa2c22bc7ab1273ccbfba2d124f277c4b7858b7e6b2b215264b2524828401528152835180850185527f069489b61aadf82d080f5b031e40c78265091ce5230bde1c6b129bd6ee8f929a81527f11d4a92da28cae8798f897d046ec7d2b818431d18ca7d7b30c720a5a4320777f8185015281840152908401528151600f8082526102008201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f18c30badf97bca79e0290e1e2709c180d796014d89846a50fdf83edb9a5f126081527ec6ff8cc32c2c88d6a18abf5d8474acb27c8174ed0969d8641896bb65bc14c46020820152905180515f9061065857610658611633565b602002602001018190525060405180604001604052807f26be249a1394d006fdb707e50aafdbfae0abcdd8424b6e9ecfaad5546f97f78881526020017f1d61635959d20e223664b32f4564dc44e3b7b360b37d388f9f7f51585800155581525081608001516001815181106106cf576106cf611633565b602002602001018190525060405180604001604052807f2506541fa33baf46747051d8ebe51a91b929a728a707a75f0cdeafd7f739fd3181526020017f0d08b60cf224252ab06e146a2272e4c007567054b6e83778161343ae31deb5ac815250816080015160028151811061074657610746611633565b602002602001018190525060405180604001604052807f1f3bdf1e50dc24be846513f7f74068a55438ca5acb4f64c3d3921bde7468a2d681526020017f2e5e1a4837097500979c5d1cf152f067e70c896ac860ba29651b02f6e79edae281525081608001516003815181106107bd576107bd611633565b602002602001018190525060405180604001604052807f203c139f09bbb742c8d4c51234494498c24d56884f24f6545086e2238e763a5881526020017f028e6932f3bc2561b30d7fe76c6de6bebf4c8ea0621bbb6ad41882df5eb7264b815250816080015160048151811061083457610834611633565b602002602001018190525060405180604001604052807f204223f3717fb8cd7ebd1a98a872f75b82e0ef94fa940335abd65568db85649f81526020017f0d2ccb01844a345701f9b1f27c633fdb9ad135aeaa0fae0fd831d08edcdc323b81525081608001516005815181106108ab576108ab611633565b602002602001018190525060405180604001604052807f2ca96167b9316ee5855a83bb4a92112653444fffa0bf5725ae9b090bb288152e81526020017f1d6d5440897b2ec044f2aaecdab5e507c4d69f8c7ca8813db13ce819e79129d4815250816080015160068151811061092257610922611633565b602002602001018190525060405180604001604052807f1cba19de78b5c7c47d2407121e7e86d0d70c63aaee0ce04ca5fecaee97ab75d481526020017f059319895b38a350849d8c25b406b951743ab1c6237a63b648f07c5f3e7e19dd815250816080015160078151811061099957610999611633565b602002602001018190525060405180604001604052807f016cc32364e0c0823d4b34edc52852c6665a421cd8867fbd190170fab867bea681526020017f0734df7485b401e47cbd1c3ab7024be0250f9fa13ab7ec9b3b40d83178eb2b468152508160800151600881518110610a1057610a10611633565b602002602001018190525060405180604001604052807f29286c62d871cffa08e84997e6180455e1edca20d681ef29656ef4d6d45b001781526020017f2e71a4c29421434de9ed5e921a2b6a23816a740d99b6f135fd01cad64bd288ac8152508160800151600981518110610a8757610a87611633565b602002602001018190525060405180604001604052807f2492df9b4d0ad2639c6f34096692d29d2f9ed9ee57d9e9c3ba303e9dbcdae43081526020017f2e497c91b7e5e3a2a9b9f7fe9cdfe78c9e72037bb7552e29d54813a4566c6fbd8152508160800151600a81518110610afe57610afe611633565b602002602001018190525060405180604001604052807f1476e8d331c072345e564de7e0c1b051b0b0b18531bdd1e7441e0257090a0c1781526020017f110b09db70453d4ec6bed001ab95fcb5ce4b8e21a0c4f4c26b91dc8059aa1dce8152508160800151600b81518110610b7557610b75611633565b602002602001018190525060405180604001604052807e6e2fbcfe989d63aea84d90addc8537a921948b213ef36ec5fa0cbb5b68670381526020017f06f6a502b00b2945dd9841eca5ab5f69654f4992777102c600ca5402c35d6c288152508160800151600c81518110610beb57610beb611633565b602002602001018190525060405180604001604052807f01a330e578c215a80aaf5fc3208956611670affa4560f2dd1f7892698b50c35881526020017f0a9ccad9b2edacd7bbb8a5c460a47d7a114166eace7c8cfe32c7a4243c30e0f28152508160800151600d81518110610c6257610c62611633565b602002602001018190525060405180604001604052807f0aa436490c317254e1444ad76cac634937ea2fa0d0730983455fed54f43c9ff981526020017f12228d15b01f07e1d77acd2c2c609c7e4c9a70503e071ec4963191e6d4d13d598152508160800151600e81518110610cd957610cd9611633565b602002602001018190525090565b604080518082019091525f8082526020820152610d02611418565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610d3057fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610d96611436565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610dcf57fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610e5857506020830151155b15610e77575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610e9b919061166e565b610ea5908461168d565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610ec857505060408051600480825260a082019092529192505f9190602082015b610f10611454565b815260200190600190039081610f085790505090508a825f81518110610f3857610f38611633565b60200260200101819052508882600181518110610f5757610f57611633565b60200260200101819052508682600281518110610f7657610f76611633565b60200260200101819052508482600381518110610f9557610f95611633565b602002602001018190525089815f81518110610fb357610fb3611633565b60200260200101819052508781600181518110610fd257610fd2611633565b60200260200101819052508581600281518110610ff157610ff1611633565b6020026020010181905250838160038151811061101057611010611633565b60200260200101819052506110258282611034565b9b9a5050505050505050505050565b5f815183511461107f5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f61108d8260066116a0565b90505f8167ffffffffffffffff8111156110a9576110a96114b0565b6040519080825280602002602001820160405280156110d2578160200160208202803683370190505b5090505f5b838110156112ff578681815181106110f1576110f1611633565b60200260200101515f01518282600661110a91906116a0565b611114905f61165b565b8151811061112457611124611633565b60200260200101818152505086818151811061114257611142611633565b6020026020010151602001518282600661115c91906116a0565b61116790600161165b565b8151811061117757611177611633565b60200260200101818152505085818151811061119557611195611633565b60209081029190910101515151826111ae8360066116a0565b6111b990600261165b565b815181106111c9576111c9611633565b6020026020010181815250508581815181106111e7576111e7611633565b602090810291909101810151510151826112028360066116a0565b61120d90600361165b565b8151811061121d5761121d611633565b60200260200101818152505085818151811061123b5761123b611633565b6020026020010151602001515f6002811061125857611258611633565b6020020151826112698360066116a0565b61127490600461165b565b8151811061128457611284611633565b6020026020010181815250508581815181106112a2576112a2611633565b6020026020010151602001516001600281106112c0576112c0611633565b6020020151826112d18360066116a0565b6112dc90600561165b565b815181106112ec576112ec611633565b60209081029190910101526001016110d7565b50611308611474565b5f602082602086026020860160086107d05a03fa9050808061132657fe5b508061136c5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016113a3611454565b81526020016113c360405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c08301919091528152602081016113f1611454565b81526020016113fe611454565b815260200161140b611454565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280611467611492565b81526020016113c3611492565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156114f957634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611510575f5ffd5b5f61151b60406114c4565b905080604084018581111561152e575f5ffd5b845b81811015611548578035835260209283019201611530565b509195945050505050565b5f5f5f5f6102c08587031215611567575f5ffd5b6115718686611501565b935085605f860112611581575f5ffd5b604061158c816114c4565b8060c088018981111561159d575f5ffd5b604089015b818110156115c3576115b48b82611501565b845260209093019284016115a2565b508196506115d18a82611501565b95505050505061010085015f87601f8301126115eb575f5ffd5b5f6101c06115f8816114c4565b91508301818a821115611609575f5ffd5b5b8185101561162257843581526020948501940161160a565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e611647565b5f8261168857634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e611647565b808202811582820484141761033e5761033e61164756fea26469706673582212208ecec3b58f8c69288c925191a76554c85a5d679e9a34b2047785e1439c8c3d1d64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004611553565b610054565b604051901515815260200160405180910390f35b5f61005d61137a565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600e8082526101e082019093525f92909182016101c0803683370190505090505f5b600e811015610133578481600e811061010957610109611633565b602002015182828151811061012057610120611633565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061165b565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611633565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061165b565b8151811061029557610295611633565b60200260200101518a85815181106102af576102af611633565b6020026020010151610ce7565b610d7b565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611633565b6020026020010151610d7b565b9050610327610304865f0151610e12565b8660200151845f015185602001518587604001518b604001518960600151610eae565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6113c8565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f040960ae7a0345676e57477fe153547dac4996ccff6cd8bdbfab68194176ebfe8185019081527f09f390a54aa2c22bc7ab1273ccbfba2d124f277c4b7858b7e6b2b215264b2524828401528152835180850185527f069489b61aadf82d080f5b031e40c78265091ce5230bde1c6b129bd6ee8f929a81527f11d4a92da28cae8798f897d046ec7d2b818431d18ca7d7b30c720a5a4320777f8185015281840152908401528151600f8082526102008201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f18c30badf97bca79e0290e1e2709c180d796014d89846a50fdf83edb9a5f126081527ec6ff8cc32c2c88d6a18abf5d8474acb27c8174ed0969d8641896bb65bc14c46020820152905180515f9061065857610658611633565b602002602001018190525060405180604001604052807f26be249a1394d006fdb707e50aafdbfae0abcdd8424b6e9ecfaad5546f97f78881526020017f1d61635959d20e223664b32f4564dc44e3b7b360b37d388f9f7f51585800155581525081608001516001815181106106cf576106cf611633565b602002602001018190525060405180604001604052807f2506541fa33baf46747051d8ebe51a91b929a728a707a75f0cdeafd7f739fd3181526020017f0d08b60cf224252ab06e146a2272e4c007567054b6e83778161343ae31deb5ac815250816080015160028151811061074657610746611633565b602002602001018190525060405180604001604052807f1f3bdf1e50dc24be846513f7f74068a55438ca5acb4f64c3d3921bde7468a2d681526020017f2e5e1a4837097500979c5d1cf152f067e70c896ac860ba29651b02f6e79edae281525081608001516003815181106107bd576107bd611633565b602002602001018190525060405180604001604052807f203c139f09bbb742c8d4c51234494498c24d56884f24f6545086e2238e763a5881526020017f028e6932f3bc2561b30d7fe76c6de6bebf4c8ea0621bbb6ad41882df5eb7264b815250816080015160048151811061083457610834611633565b602002602001018190525060405180604001604052807f204223f3717fb8cd7ebd1a98a872f75b82e0ef94fa940335abd65568db85649f81526020017f0d2ccb01844a345701f9b1f27c633fdb9ad135aeaa0fae0fd831d08edcdc323b81525081608001516005815181106108ab576108ab611633565b602002602001018190525060405180604001604052807f2ca96167b9316ee5855a83bb4a92112653444fffa0bf5725ae9b090bb288152e81526020017f1d6d5440897b2ec044f2aaecdab5e507c4d69f8c7ca8813db13ce819e79129d4815250816080015160068151811061092257610922611633565b602002602001018190525060405180604001604052807f1cba19de78b5c7c47d2407121e7e86d0d70c63aaee0ce04ca5fecaee97ab75d481526020017f059319895b38a350849d8c25b406b951743ab1c6237a63b648f07c5f3e7e19dd815250816080015160078151811061099957610999611633565b602002602001018190525060405180604001604052807f016cc32364e0c0823d4b34edc52852c6665a421cd8867fbd190170fab867bea681526020017f0734df7485b401e47cbd1c3ab7024be0250f9fa13ab7ec9b3b40d83178eb2b468152508160800151600881518110610a1057610a10611633565b602002602001018190525060405180604001604052807f29286c62d871cffa08e84997e6180455e1edca20d681ef29656ef4d6d45b001781526020017f2e71a4c29421434de9ed5e921a2b6a23816a740d99b6f135fd01cad64bd288ac8152508160800151600981518110610a8757610a87611633565b602002602001018190525060405180604001604052807f2492df9b4d0ad2639c6f34096692d29d2f9ed9ee57d9e9c3ba303e9dbcdae43081526020017f2e497c91b7e5e3a2a9b9f7fe9cdfe78c9e72037bb7552e29d54813a4566c6fbd8152508160800151600a81518110610afe57610afe611633565b602002602001018190525060405180604001604052807f1476e8d331c072345e564de7e0c1b051b0b0b18531bdd1e7441e0257090a0c1781526020017f110b09db70453d4ec6bed001ab95fcb5ce4b8e21a0c4f4c26b91dc8059aa1dce8152508160800151600b81518110610b7557610b75611633565b602002602001018190525060405180604001604052807e6e2fbcfe989d63aea84d90addc8537a921948b213ef36ec5fa0cbb5b68670381526020017f06f6a502b00b2945dd9841eca5ab5f69654f4992777102c600ca5402c35d6c288152508160800151600c81518110610beb57610beb611633565b602002602001018190525060405180604001604052807f01a330e578c215a80aaf5fc3208956611670affa4560f2dd1f7892698b50c35881526020017f0a9ccad9b2edacd7bbb8a5c460a47d7a114166eace7c8cfe32c7a4243c30e0f28152508160800151600d81518110610c6257610c62611633565b602002602001018190525060405180604001604052807f0aa436490c317254e1444ad76cac634937ea2fa0d0730983455fed54f43c9ff981526020017f12228d15b01f07e1d77acd2c2c609c7e4c9a70503e071ec4963191e6d4d13d598152508160800151600e81518110610cd957610cd9611633565b602002602001018190525090565b604080518082019091525f8082526020820152610d02611418565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610d3057fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610d96611436565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610dcf57fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610e5857506020830151155b15610e77575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610e9b919061166e565b610ea5908461168d565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610ec857505060408051600480825260a082019092529192505f9190602082015b610f10611454565b815260200190600190039081610f085790505090508a825f81518110610f3857610f38611633565b60200260200101819052508882600181518110610f5757610f57611633565b60200260200101819052508682600281518110610f7657610f76611633565b60200260200101819052508482600381518110610f9557610f95611633565b602002602001018190525089815f81518110610fb357610fb3611633565b60200260200101819052508781600181518110610fd257610fd2611633565b60200260200101819052508581600281518110610ff157610ff1611633565b6020026020010181905250838160038151811061101057611010611633565b60200260200101819052506110258282611034565b9b9a5050505050505050505050565b5f815183511461107f5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f61108d8260066116a0565b90505f8167ffffffffffffffff8111156110a9576110a96114b0565b6040519080825280602002602001820160405280156110d2578160200160208202803683370190505b5090505f5b838110156112ff578681815181106110f1576110f1611633565b60200260200101515f01518282600661110a91906116a0565b611114905f61165b565b8151811061112457611124611633565b60200260200101818152505086818151811061114257611142611633565b6020026020010151602001518282600661115c91906116a0565b61116790600161165b565b8151811061117757611177611633565b60200260200101818152505085818151811061119557611195611633565b60209081029190910101515151826111ae8360066116a0565b6111b990600261165b565b815181106111c9576111c9611633565b6020026020010181815250508581815181106111e7576111e7611633565b602090810291909101810151510151826112028360066116a0565b61120d90600361165b565b8151811061121d5761121d611633565b60200260200101818152505085818151811061123b5761123b611633565b6020026020010151602001515f6002811061125857611258611633565b6020020151826112698360066116a0565b61127490600461165b565b8151811061128457611284611633565b6020026020010181815250508581815181106112a2576112a2611633565b6020026020010151602001516001600281106112c0576112c0611633565b6020020151826112d18360066116a0565b6112dc90600561165b565b815181106112ec576112ec611633565b60209081029190910101526001016110d7565b50611308611474565b5f602082602086026020860160086107d05a03fa9050808061132657fe5b508061136c5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016113a3611454565b81526020016113c360405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c08301919091528152602081016113f1611454565b81526020016113fe611454565b815260200161140b611454565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280611467611492565b81526020016113c3611492565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156114f957634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611510575f5ffd5b5f61151b60406114c4565b905080604084018581111561152e575f5ffd5b845b81811015611548578035835260209283019201611530565b509195945050505050565b5f5f5f5f6102c08587031215611567575f5ffd5b6115718686611501565b935085605f860112611581575f5ffd5b604061158c816114c4565b8060c088018981111561159d575f5ffd5b604089015b818110156115c3576115b48b82611501565b845260209093019284016115a2565b508196506115d18a82611501565b95505050505061010085015f87601f8301126115eb575f5ffd5b5f6101c06115f8816114c4565b91508301818a821115611609575f5ffd5b5b8185101561162257843581526020948501940161160a565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e611647565b5f8261168857634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e611647565b808202811582820484141761033e5761033e61164756fea26469706673582212208ecec3b58f8c69288c925191a76554c85a5d679e9a34b2047785e1439c8c3d1d64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol",
- "buildInfoId": "solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#NewInsertionVerifier_v2.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#NewInsertionVerifier_v2.json
deleted file mode 100644
index a6fa56e..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#NewInsertionVerifier_v2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyInsertionVerifierAlpha_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "input",
- "type": "uint256[4]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "r",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b5061124e8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046110b1565b610054565b604051901515815260200160405180910390f35b5f61005d610ed8565b60408051808201825287518152602080890151818301529083528151608080820184528851518285019081528951840151606084015282528351808501855289840180515182525184015181850152828401528483019190915282518084018452875181528783015181840152848401528251600480825260a082019094525f939092909190830190803683370190505090505f5b60048110156101375784816004811061010d5761010d611194565b602002015182828151811061012457610124611194565b60209081029190910101526001016100f2565b506101428183610161565b5f0361015357600192505050610159565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018161018c610348565b9050806080015151855160016101a291906111bc565b146101e95760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cf578387828151811061021b5761021b611194565b6020026020010151106102705760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101e0565b6102c5826102c0856080015184600161028991906111bc565b8151811061029957610299611194565b60200260200101518a85815181106102b3576102b3611194565b6020026020010151610845565b6108d9565b91506001016101ff565b506102f78183608001515f815181106102ea576102ea611194565b60200260200101516108d9565b905061032b610308865f0151610970565b8660200151845f015185602001518587604001518b604001518960600151610a0c565b61033b5760019350505050610342565b5f93505050505b92915050565b610350610f26565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f2933c663723e3630bea92f14ce272046739c1de9ac0de5108d9f97504796bcdd8185019081527f2d9d46b72cb758726c5730268fdedefe18f1b55f5b935a82ecf821c05b252da1828401528152835180850185527f0d673c337136dbf082c467ce378ee3bce333a36c5f27cc01edf54179d6e7dc6081527f0c907c5922e46c3cadc99de46a7b8d01770eded5cef85379f58252ab65cb80ad8185015281840152908401528151600580825260c08201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105cb57505060808201908152604080518082019091527f0cdbf7f6fb2cf15ec81a44a104d6490ebeeeea7bf9a0cbf4d695c2a5e7ef7d8481527e5eff6d3e9efe8e7e1fc61c474ed76a4e42f9233e0e5c1054caa772f3b03c396020820152905180515f9061065b5761065b611194565b602002602001018190525060405180604001604052807f24aa7ee61e4ad8e6faf43e12eeb8b33081498ee103385743f2f357bf8b0c6af181526020017f22d171354b9d3a5d983212b596739d62f1cc42aff5df6db8475e4b887902146581525081608001516001815181106106d2576106d2611194565b602002602001018190525060405180604001604052807f3037fd725c311a8a59dc660d0fa266e188928bef08015840cf45d7998b747a1881526020017f20918eb8f6b9ca00d9004f42b7bd61a3703ea034983fa552ba34fcbde0d59bc2815250816080015160028151811061074957610749611194565b602002602001018190525060405180604001604052807f1b5c870d21c274d5bdf96cd309bdbda13661a47c01ce8483bd3682fcc1d58a3081526020017f2f4600674aa2b704715e8f62433edcae3bae85557d27e74af090ebcdbc0b195e81525081608001516003815181106107c0576107c0611194565b602002602001018190525060405180604001604052807f199fcda69c0bfd4d6f2db0f385bd0fcf78f0074be4d5eeb7f75f32963269d8d981526020017f1638a9aa5129a8fa9964966f9545941fbceb843dd14aa0f40531c6197da17578815250816080015160048151811061083757610837611194565b602002602001018190525090565b604080518082019091525f8082526020820152610860610f76565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa9050808061088e57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101e0565b505092915050565b604080518082019091525f80825260208201526108f4610f94565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa9050808061092d57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101e0565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47901580156109b657506020830151155b156109d5575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f015181526020018285602001516109f991906111cf565b610a0390846111ee565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610a2657505060408051600480825260a082019092529192505f9190602082015b610a6e610fb2565b815260200190600190039081610a665790505090508a825f81518110610a9657610a96611194565b60200260200101819052508882600181518110610ab557610ab5611194565b60200260200101819052508682600281518110610ad457610ad4611194565b60200260200101819052508482600381518110610af357610af3611194565b602002602001018190525089815f81518110610b1157610b11611194565b60200260200101819052508781600181518110610b3057610b30611194565b60200260200101819052508581600281518110610b4f57610b4f611194565b60200260200101819052508381600381518110610b6e57610b6e611194565b6020026020010181905250610b838282610b92565b9b9a5050505050505050505050565b5f8151835114610bdd5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101e0565b82515f610beb826006611201565b90505f8167ffffffffffffffff811115610c0757610c0761100e565b604051908082528060200260200182016040528015610c30578160200160208202803683370190505b5090505f5b83811015610e5d57868181518110610c4f57610c4f611194565b60200260200101515f015182826006610c689190611201565b610c72905f6111bc565b81518110610c8257610c82611194565b602002602001018181525050868181518110610ca057610ca0611194565b60200260200101516020015182826006610cba9190611201565b610cc59060016111bc565b81518110610cd557610cd5611194565b602002602001018181525050858181518110610cf357610cf3611194565b6020908102919091010151515182610d0c836006611201565b610d179060026111bc565b81518110610d2757610d27611194565b602002602001018181525050858181518110610d4557610d45611194565b60209081029190910181015151015182610d60836006611201565b610d6b9060036111bc565b81518110610d7b57610d7b611194565b602002602001018181525050858181518110610d9957610d99611194565b6020026020010151602001515f60028110610db657610db6611194565b602002015182610dc7836006611201565b610dd29060046111bc565b81518110610de257610de2611194565b602002602001018181525050858181518110610e0057610e00611194565b602002602001015160200151600160028110610e1e57610e1e611194565b602002015182610e2f836006611201565b610e3a9060056111bc565b81518110610e4a57610e4a611194565b6020908102919091010152600101610c35565b50610e66610fd2565b5f602082602086026020860160086107d05a03fa90508080610e8457fe5b5080610eca5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101e0565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101610f01610fb2565b8152602001610f2160405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101610f4f610fb2565b8152602001610f5c610fb2565b8152602001610f69610fb2565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280610fc5610ff0565b8152602001610f21610ff0565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561105757634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f83011261106e575f5ffd5b5f6110796040611022565b905080604084018581111561108c575f5ffd5b845b818110156110a657803583526020928301920161108e565b509195945050505050565b5f5f5f5f61018085870312156110c5575f5ffd5b6110cf868661105f565b935085605f8601126110df575f5ffd5b60406110ea81611022565b8060c08801898111156110fb575f5ffd5b604089015b81811015611121576111128b8261105f565b84526020909301928401611100565b5081965061112f8a8261105f565b95505050505061010085015f87601f830112611149575f5ffd5b5f6111546080611022565b905080608084018a811115611167575f5ffd5b5b80851015611183578435825260209485019490910190611168565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610342576103426111a8565b5f826111e957634e487b7160e01b5f52601260045260245ffd5b500690565b81810381811115610342576103426111a8565b8082028115828204841417610342576103426111a856fea264697066735822122052b8c89d46e40ccc60f13c59a59ab39c0a5084d1333d84af2fe13436741f62ef64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046110b1565b610054565b604051901515815260200160405180910390f35b5f61005d610ed8565b60408051808201825287518152602080890151818301529083528151608080820184528851518285019081528951840151606084015282528351808501855289840180515182525184015181850152828401528483019190915282518084018452875181528783015181840152848401528251600480825260a082019094525f939092909190830190803683370190505090505f5b60048110156101375784816004811061010d5761010d611194565b602002015182828151811061012457610124611194565b60209081029190910101526001016100f2565b506101428183610161565b5f0361015357600192505050610159565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018161018c610348565b9050806080015151855160016101a291906111bc565b146101e95760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cf578387828151811061021b5761021b611194565b6020026020010151106102705760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101e0565b6102c5826102c0856080015184600161028991906111bc565b8151811061029957610299611194565b60200260200101518a85815181106102b3576102b3611194565b6020026020010151610845565b6108d9565b91506001016101ff565b506102f78183608001515f815181106102ea576102ea611194565b60200260200101516108d9565b905061032b610308865f0151610970565b8660200151845f015185602001518587604001518b604001518960600151610a0c565b61033b5760019350505050610342565b5f93505050505b92915050565b610350610f26565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f2933c663723e3630bea92f14ce272046739c1de9ac0de5108d9f97504796bcdd8185019081527f2d9d46b72cb758726c5730268fdedefe18f1b55f5b935a82ecf821c05b252da1828401528152835180850185527f0d673c337136dbf082c467ce378ee3bce333a36c5f27cc01edf54179d6e7dc6081527f0c907c5922e46c3cadc99de46a7b8d01770eded5cef85379f58252ab65cb80ad8185015281840152908401528151600580825260c08201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105cb57505060808201908152604080518082019091527f0cdbf7f6fb2cf15ec81a44a104d6490ebeeeea7bf9a0cbf4d695c2a5e7ef7d8481527e5eff6d3e9efe8e7e1fc61c474ed76a4e42f9233e0e5c1054caa772f3b03c396020820152905180515f9061065b5761065b611194565b602002602001018190525060405180604001604052807f24aa7ee61e4ad8e6faf43e12eeb8b33081498ee103385743f2f357bf8b0c6af181526020017f22d171354b9d3a5d983212b596739d62f1cc42aff5df6db8475e4b887902146581525081608001516001815181106106d2576106d2611194565b602002602001018190525060405180604001604052807f3037fd725c311a8a59dc660d0fa266e188928bef08015840cf45d7998b747a1881526020017f20918eb8f6b9ca00d9004f42b7bd61a3703ea034983fa552ba34fcbde0d59bc2815250816080015160028151811061074957610749611194565b602002602001018190525060405180604001604052807f1b5c870d21c274d5bdf96cd309bdbda13661a47c01ce8483bd3682fcc1d58a3081526020017f2f4600674aa2b704715e8f62433edcae3bae85557d27e74af090ebcdbc0b195e81525081608001516003815181106107c0576107c0611194565b602002602001018190525060405180604001604052807f199fcda69c0bfd4d6f2db0f385bd0fcf78f0074be4d5eeb7f75f32963269d8d981526020017f1638a9aa5129a8fa9964966f9545941fbceb843dd14aa0f40531c6197da17578815250816080015160048151811061083757610837611194565b602002602001018190525090565b604080518082019091525f8082526020820152610860610f76565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa9050808061088e57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101e0565b505092915050565b604080518082019091525f80825260208201526108f4610f94565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa9050808061092d57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101e0565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47901580156109b657506020830151155b156109d5575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f015181526020018285602001516109f991906111cf565b610a0390846111ee565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610a2657505060408051600480825260a082019092529192505f9190602082015b610a6e610fb2565b815260200190600190039081610a665790505090508a825f81518110610a9657610a96611194565b60200260200101819052508882600181518110610ab557610ab5611194565b60200260200101819052508682600281518110610ad457610ad4611194565b60200260200101819052508482600381518110610af357610af3611194565b602002602001018190525089815f81518110610b1157610b11611194565b60200260200101819052508781600181518110610b3057610b30611194565b60200260200101819052508581600281518110610b4f57610b4f611194565b60200260200101819052508381600381518110610b6e57610b6e611194565b6020026020010181905250610b838282610b92565b9b9a5050505050505050505050565b5f8151835114610bdd5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101e0565b82515f610beb826006611201565b90505f8167ffffffffffffffff811115610c0757610c0761100e565b604051908082528060200260200182016040528015610c30578160200160208202803683370190505b5090505f5b83811015610e5d57868181518110610c4f57610c4f611194565b60200260200101515f015182826006610c689190611201565b610c72905f6111bc565b81518110610c8257610c82611194565b602002602001018181525050868181518110610ca057610ca0611194565b60200260200101516020015182826006610cba9190611201565b610cc59060016111bc565b81518110610cd557610cd5611194565b602002602001018181525050858181518110610cf357610cf3611194565b6020908102919091010151515182610d0c836006611201565b610d179060026111bc565b81518110610d2757610d27611194565b602002602001018181525050858181518110610d4557610d45611194565b60209081029190910181015151015182610d60836006611201565b610d6b9060036111bc565b81518110610d7b57610d7b611194565b602002602001018181525050858181518110610d9957610d99611194565b6020026020010151602001515f60028110610db657610db6611194565b602002015182610dc7836006611201565b610dd29060046111bc565b81518110610de257610de2611194565b602002602001018181525050858181518110610e0057610e00611194565b602002602001015160200151600160028110610e1e57610e1e611194565b602002015182610e2f836006611201565b610e3a9060056111bc565b81518110610e4a57610e4a611194565b6020908102919091010152600101610c35565b50610e66610fd2565b5f602082602086026020860160086107d05a03fa90508080610e8457fe5b5080610eca5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101e0565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101610f01610fb2565b8152602001610f2160405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101610f4f610fb2565b8152602001610f5c610fb2565b8152602001610f69610fb2565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280610fc5610ff0565b8152602001610f21610ff0565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561105757634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f83011261106e575f5ffd5b5f6110796040611022565b905080604084018581111561108c575f5ffd5b845b818110156110a657803583526020928301920161108e565b509195945050505050565b5f5f5f5f61018085870312156110c5575f5ffd5b6110cf868661105f565b935085605f8601126110df575f5ffd5b60406110ea81611022565b8060c08801898111156110fb575f5ffd5b604089015b81811015611121576111128b8261105f565b84526020909301928401611100565b5081965061112f8a8261105f565b95505050505061010085015f87601f830112611149575f5ffd5b5f6111546080611022565b905080608084018a811115611167575f5ffd5b5b80851015611183578435825260209485019490910190611168565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610342576103426111a8565b5f826111e957634e487b7160e01b5f52601260045260245ffd5b500690565b81810381811115610342576103426111a8565b8082028115828204841417610342576103426111a856fea264697066735822122052b8c89d46e40ccc60f13c59a59ab39c0a5084d1333d84af2fe13436741f62ef64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol",
- "buildInfoId": "solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#NewWithdrawVerifier_v2.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#NewWithdrawVerifier_v2.json
deleted file mode 100644
index 56dc797..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#NewWithdrawVerifier_v2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyWithdrawVerifierAlpha_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "input",
- "type": "uint256[10]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "r",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506115118061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b366004611377565b610054565b604051901515815260200160405180910390f35b5f61005d61119e565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600a80825261016082019093525f9290918201610140803683370190505090505f5b600a811015610133578481600a811061010957610109611457565b602002015182828151811061012057610120611457565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061147f565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611457565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061147f565b8151811061029557610295611457565b60200260200101518a85815181106102af576102af611457565b6020026020010151610b0b565b610b9f565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611457565b6020026020010151610b9f565b9050610327610304865f0151610c36565b8660200151845f015185602001518587604001518b604001518960600151610cd2565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6111ec565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f0b5a45bbb3d9f21c42579fd5a810f82f25e696fb3b00ef64b8ca2d17d89fe4ed8185019081527f0f79b405819a9900f7edb3f309c9b73a45673c17366eeb72361c23f957680a89828401528152835180850185527f23b107da251eb5c5dd3c157a900388d73f64a4394faf6a12ae2077766d720b0881527f2188bf40a163dba1ba12fc061d0a6fc9d7246af5e912fcbb23b59a53823b7c048185015281840152908401528151600b8082526101808201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f118592ce705cf3d21e870156a4dc6cff3b2a01fca2c8e60a402fc01dd47341de81527f1fe6c8cb2c02b9ddf7ed360fd3ba99867e54e590d7ca62b57d839ef26d549f0c6020820152905180515f9061065957610659611457565b602002602001018190525060405180604001604052807f154574f61b1a23d66f35533910d332b8ab9bffc6274ce4ffb0bf3b7f1210090781526020017f1ac6f7f35d927f760afe3efc726d0d1ab8ab6514d018630e92a11b5079108b9a81525081608001516001815181106106d0576106d0611457565b602002602001018190525060405180604001604052807f102a84a54eb42169d68f30c781aabd282a341b2b4c25cd55fdae5e3479b4182a81526020017f1b8113a1108e05880a85ae50fdaa0f86926095751a6c3f0130cee222578c7911815250816080015160028151811061074757610747611457565b602002602001018190525060405180604001604052807f25504b6ec89efe8110a42f0ffda2f64b4c0b63b83a776f2146c23ddb2b9c346081526020017e1bd1b27eb32e5c1ecc7f9b08d87e6c7eff72e21014bd87c5badb37e82d50c781525081608001516003815181106107bd576107bd611457565b602002602001018190525060405180604001604052807f2955cc92eefc93c0bb8f2a726fbcbadbedd59c2f68b3701defa2ac66e1c1643f81526020017f1a8bfc29eefca9fd267806f814daf245aa0fb67048fbc16761d5fc39282f7336815250816080015160048151811061083457610834611457565b602002602001018190525060405180604001604052807f0acefb487079ce3764bf9e0af6b69a939b8f43cb3cce80262ebd68167a86afa881526020017f2500ee5fc51d1ed187adfe4cb25ef69610207eefc41a868d14a519b58c99286081525081608001516005815181106108ab576108ab611457565b602002602001018190525060405180604001604052807f1eca69b2e86127c29cd324a9b13cf89c0e657596c9e37dc05eec008c8fa84fdb81526020017f2f11a966ac185bf5d584d386b3e8a555d66e51913d8801fb9189542b4bcd3624815250816080015160068151811061092257610922611457565b602002602001018190525060405180604001604052807ee8670dd1e30ffd6e6d42b6f98d3cd5ebb1a6c2a726f4024e6c27b555683cf881526020017f152894c1731fbedba470963903d414e8c210a8b846aedba229071fa832e882fa815250816080015160078151811061099857610998611457565b602002602001018190525060405180604001604052807f2354fe17a8632ee331a1459f6df0806153f19ed6c1645906895e966cea47cab981526020017f27700ede44b18910d2a31045a1d448bb930ba1c39cc918aa3f4b093a610e45b58152508160800151600881518110610a0f57610a0f611457565b602002602001018190525060405180604001604052807f2f583f76ad789e51575f9168446813e1e5655c1f444ed4f8bd2c38c8c438a52e81526020017f21e4aa608b395b9eaf98de7f2c77baac96da672aedab46f36e4a732fbefdaa328152508160800151600981518110610a8657610a86611457565b602002602001018190525060405180604001604052807f29b71cd418de446ac259b14d47ccbc6c7bf3021aa56d6d3ab3fc80becde42ba281526020017f1671437c4af2a055de0faf52bad6da5b1c1f37d53e279ef8d7a04b401b8f00b18152508160800151600a81518110610afd57610afd611457565b602002602001018190525090565b604080518082019091525f8082526020820152610b2661123c565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610b5457fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610bba61125a565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610bf357fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c7c57506020830151155b15610c9b575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610cbf9190611492565b610cc990846114b1565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610cec57505060408051600480825260a082019092529192505f9190602082015b610d34611278565b815260200190600190039081610d2c5790505090508a825f81518110610d5c57610d5c611457565b60200260200101819052508882600181518110610d7b57610d7b611457565b60200260200101819052508682600281518110610d9a57610d9a611457565b60200260200101819052508482600381518110610db957610db9611457565b602002602001018190525089815f81518110610dd757610dd7611457565b60200260200101819052508781600181518110610df657610df6611457565b60200260200101819052508581600281518110610e1557610e15611457565b60200260200101819052508381600381518110610e3457610e34611457565b6020026020010181905250610e498282610e58565b9b9a5050505050505050505050565b5f8151835114610ea35760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610eb18260066114c4565b90505f8167ffffffffffffffff811115610ecd57610ecd6112d4565b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b5090505f5b8381101561112357868181518110610f1557610f15611457565b60200260200101515f015182826006610f2e91906114c4565b610f38905f61147f565b81518110610f4857610f48611457565b602002602001018181525050868181518110610f6657610f66611457565b60200260200101516020015182826006610f8091906114c4565b610f8b90600161147f565b81518110610f9b57610f9b611457565b602002602001018181525050858181518110610fb957610fb9611457565b6020908102919091010151515182610fd28360066114c4565b610fdd90600261147f565b81518110610fed57610fed611457565b60200260200101818152505085818151811061100b5761100b611457565b602090810291909101810151510151826110268360066114c4565b61103190600361147f565b8151811061104157611041611457565b60200260200101818152505085818151811061105f5761105f611457565b6020026020010151602001515f6002811061107c5761107c611457565b60200201518261108d8360066114c4565b61109890600461147f565b815181106110a8576110a8611457565b6020026020010181815250508581815181106110c6576110c6611457565b6020026020010151602001516001600281106110e4576110e4611457565b6020020151826110f58360066114c4565b61110090600561147f565b8151811061111057611110611457565b6020908102919091010152600101610efb565b5061112c611298565b5f602082602086026020860160086107d05a03fa9050808061114a57fe5b50806111905760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016111c7611278565b81526020016111e760405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101611215611278565b8152602001611222611278565b815260200161122f611278565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061128b6112b6565b81526020016111e76112b6565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561131d57634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611334575f5ffd5b5f61133f60406112e8565b9050806040840185811115611352575f5ffd5b845b8181101561136c578035835260209283019201611354565b509195945050505050565b5f5f5f5f610240858703121561138b575f5ffd5b6113958686611325565b935085605f8601126113a5575f5ffd5b60406113b0816112e8565b8060c08801898111156113c1575f5ffd5b604089015b818110156113e7576113d88b82611325565b845260209093019284016113c6565b508196506113f58a82611325565b95505050505061010085015f87601f83011261140f575f5ffd5b5f61014061141c816112e8565b91508301818a82111561142d575f5ffd5b5b8185101561144657843581526020948501940161142e565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e61146b565b5f826114ac57634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e61146b565b808202811582820484141761033e5761033e61146b56fea2646970667358221220dcff813b86dd38808694958c9a737d51423f91e9af2ee777888630650f47d44264736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b366004611377565b610054565b604051901515815260200160405180910390f35b5f61005d61119e565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600a80825261016082019093525f9290918201610140803683370190505090505f5b600a811015610133578481600a811061010957610109611457565b602002015182828151811061012057610120611457565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061147f565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611457565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061147f565b8151811061029557610295611457565b60200260200101518a85815181106102af576102af611457565b6020026020010151610b0b565b610b9f565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611457565b6020026020010151610b9f565b9050610327610304865f0151610c36565b8660200151845f015185602001518587604001518b604001518960600151610cd2565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6111ec565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f0b5a45bbb3d9f21c42579fd5a810f82f25e696fb3b00ef64b8ca2d17d89fe4ed8185019081527f0f79b405819a9900f7edb3f309c9b73a45673c17366eeb72361c23f957680a89828401528152835180850185527f23b107da251eb5c5dd3c157a900388d73f64a4394faf6a12ae2077766d720b0881527f2188bf40a163dba1ba12fc061d0a6fc9d7246af5e912fcbb23b59a53823b7c048185015281840152908401528151600b8082526101808201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f118592ce705cf3d21e870156a4dc6cff3b2a01fca2c8e60a402fc01dd47341de81527f1fe6c8cb2c02b9ddf7ed360fd3ba99867e54e590d7ca62b57d839ef26d549f0c6020820152905180515f9061065957610659611457565b602002602001018190525060405180604001604052807f154574f61b1a23d66f35533910d332b8ab9bffc6274ce4ffb0bf3b7f1210090781526020017f1ac6f7f35d927f760afe3efc726d0d1ab8ab6514d018630e92a11b5079108b9a81525081608001516001815181106106d0576106d0611457565b602002602001018190525060405180604001604052807f102a84a54eb42169d68f30c781aabd282a341b2b4c25cd55fdae5e3479b4182a81526020017f1b8113a1108e05880a85ae50fdaa0f86926095751a6c3f0130cee222578c7911815250816080015160028151811061074757610747611457565b602002602001018190525060405180604001604052807f25504b6ec89efe8110a42f0ffda2f64b4c0b63b83a776f2146c23ddb2b9c346081526020017e1bd1b27eb32e5c1ecc7f9b08d87e6c7eff72e21014bd87c5badb37e82d50c781525081608001516003815181106107bd576107bd611457565b602002602001018190525060405180604001604052807f2955cc92eefc93c0bb8f2a726fbcbadbedd59c2f68b3701defa2ac66e1c1643f81526020017f1a8bfc29eefca9fd267806f814daf245aa0fb67048fbc16761d5fc39282f7336815250816080015160048151811061083457610834611457565b602002602001018190525060405180604001604052807f0acefb487079ce3764bf9e0af6b69a939b8f43cb3cce80262ebd68167a86afa881526020017f2500ee5fc51d1ed187adfe4cb25ef69610207eefc41a868d14a519b58c99286081525081608001516005815181106108ab576108ab611457565b602002602001018190525060405180604001604052807f1eca69b2e86127c29cd324a9b13cf89c0e657596c9e37dc05eec008c8fa84fdb81526020017f2f11a966ac185bf5d584d386b3e8a555d66e51913d8801fb9189542b4bcd3624815250816080015160068151811061092257610922611457565b602002602001018190525060405180604001604052807ee8670dd1e30ffd6e6d42b6f98d3cd5ebb1a6c2a726f4024e6c27b555683cf881526020017f152894c1731fbedba470963903d414e8c210a8b846aedba229071fa832e882fa815250816080015160078151811061099857610998611457565b602002602001018190525060405180604001604052807f2354fe17a8632ee331a1459f6df0806153f19ed6c1645906895e966cea47cab981526020017f27700ede44b18910d2a31045a1d448bb930ba1c39cc918aa3f4b093a610e45b58152508160800151600881518110610a0f57610a0f611457565b602002602001018190525060405180604001604052807f2f583f76ad789e51575f9168446813e1e5655c1f444ed4f8bd2c38c8c438a52e81526020017f21e4aa608b395b9eaf98de7f2c77baac96da672aedab46f36e4a732fbefdaa328152508160800151600981518110610a8657610a86611457565b602002602001018190525060405180604001604052807f29b71cd418de446ac259b14d47ccbc6c7bf3021aa56d6d3ab3fc80becde42ba281526020017f1671437c4af2a055de0faf52bad6da5b1c1f37d53e279ef8d7a04b401b8f00b18152508160800151600a81518110610afd57610afd611457565b602002602001018190525090565b604080518082019091525f8082526020820152610b2661123c565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610b5457fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610bba61125a565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610bf357fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c7c57506020830151155b15610c9b575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610cbf9190611492565b610cc990846114b1565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610cec57505060408051600480825260a082019092529192505f9190602082015b610d34611278565b815260200190600190039081610d2c5790505090508a825f81518110610d5c57610d5c611457565b60200260200101819052508882600181518110610d7b57610d7b611457565b60200260200101819052508682600281518110610d9a57610d9a611457565b60200260200101819052508482600381518110610db957610db9611457565b602002602001018190525089815f81518110610dd757610dd7611457565b60200260200101819052508781600181518110610df657610df6611457565b60200260200101819052508581600281518110610e1557610e15611457565b60200260200101819052508381600381518110610e3457610e34611457565b6020026020010181905250610e498282610e58565b9b9a5050505050505050505050565b5f8151835114610ea35760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610eb18260066114c4565b90505f8167ffffffffffffffff811115610ecd57610ecd6112d4565b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b5090505f5b8381101561112357868181518110610f1557610f15611457565b60200260200101515f015182826006610f2e91906114c4565b610f38905f61147f565b81518110610f4857610f48611457565b602002602001018181525050868181518110610f6657610f66611457565b60200260200101516020015182826006610f8091906114c4565b610f8b90600161147f565b81518110610f9b57610f9b611457565b602002602001018181525050858181518110610fb957610fb9611457565b6020908102919091010151515182610fd28360066114c4565b610fdd90600261147f565b81518110610fed57610fed611457565b60200260200101818152505085818151811061100b5761100b611457565b602090810291909101810151510151826110268360066114c4565b61103190600361147f565b8151811061104157611041611457565b60200260200101818152505085818151811061105f5761105f611457565b6020026020010151602001515f6002811061107c5761107c611457565b60200201518261108d8360066114c4565b61109890600461147f565b815181106110a8576110a8611457565b6020026020010181815250508581815181106110c6576110c6611457565b6020026020010151602001516001600281106110e4576110e4611457565b6020020151826110f58360066114c4565b61110090600561147f565b8151811061111057611110611457565b6020908102919091010152600101610efb565b5061112c611298565b5f602082602086026020860160086107d05a03fa9050808061114a57fe5b50806111905760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016111c7611278565b81526020016111e760405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101611215611278565b8152602001611222611278565b815260200161122f611278565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061128b6112b6565b81526020016111e76112b6565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561131d57634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611334575f5ffd5b5f61133f60406112e8565b9050806040840185811115611352575f5ffd5b845b8181101561136c578035835260209283019201611354565b509195945050505050565b5f5f5f5f610240858703121561138b575f5ffd5b6113958686611325565b935085605f8601126113a5575f5ffd5b60406113b0816112e8565b8060c08801898111156113c1575f5ffd5b604089015b818110156113e7576113d88b82611325565b845260209093019284016113c6565b508196506113f58a82611325565b95505050505061010085015f87601f83011261140f575f5ffd5b5f61014061141c816112e8565b91508301818a82111561142d575f5ffd5b5b8185101561144657843581526020948501940161142e565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e61146b565b5f826114ac57634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e61146b565b808202811582820484141761033e5761033e61146b56fea2646970667358221220dcff813b86dd38808694958c9a737d51423f91e9af2ee777888630650f47d44264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol",
- "buildInfoId": "solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#PoseidonT4.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#PoseidonT4.json
deleted file mode 100644
index 6767884..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyAggregatorAlpha#PoseidonT4.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PoseidonT4",
- "sourceName": "contracts/aggregator-alpha/utils/PoseidonT4.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[3]",
- "name": "",
- "type": "uint256[3]"
- }
- ],
- "name": "hash",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- }
- ],
- "bytecode": "0x6130c0610034600b8282823980515f1a607314602857634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe7300000000000000000000000000000000000000003014608060405260043610610034575f3560e01c806320cf0a3714610038575b5f5ffd5b61004b610046366004612f90565b61005d565b60405190815260200160405180910390f35b5f610793565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f52838409099450505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f528384090994505f51602061302b5f395f51905f5284850990505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528384090993505f51602061302b5f395f51905f5283840990505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528384090992505f51602061302b5f395f51905f5282830990505f51602061302b5f395f51905f52825f51602061302b5f395f51905f52838409099150505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b5f7f265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d65f51602061302b5f395f51905f5260805106017f199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa5f51602061302b5f395f51905f5260a05106017f157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf85f51602061302b5f395f51905f5260c05106015f51602061302b5f395f51905f5283840993505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528687090992505f51602061302b5f395f51905f5282830993505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528687090991505f51602061302b5f395f51905f5281820993505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528687090990505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287097f211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87097f19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87097f21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87097f26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be30101010660a052505050610c167f13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e7f251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b9967f0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e7f2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac949026103aa565b610ca27f04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b7f0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f3675497f011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca067f0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd47386103aa565b610d2e7f0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd69414324477f28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a17f259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f7f0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e86103aa565b610dba7f1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c57f26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee757f123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf8117f0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf610063565b610e467f2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a57f2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c7f011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e55747f1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0610063565b610ed27f179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb7f1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d857f192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b7f0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d610063565b610f5e7f10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b877f064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd597f225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e087f29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c610063565b610fea7f2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db7f1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b7f1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb7f0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c610063565b6110767f20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d7f0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b7f062100eb485db06269655cf186a68532985275428450359adc99cec6960711b87f2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926610063565b6111027f26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce57f22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e07f23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b7f25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a610063565b61118e7f1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa7f248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d7297f12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da7f070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9610063565b6112197f2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde1877f04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d657e94975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e7f28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf610063565b6112a47f159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a7eb7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b647f03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b07f2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3610063565b6113307f0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb1737f2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f7f1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d7f1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f610063565b6113bc7f22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea97f0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a7f0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed7057f02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16610063565b6114487f2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d835057f2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e57f1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d07f25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16610063565b6114d47f0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac7f02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a68003557f227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a53190257f044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d610063565b6115607f25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f7f1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c7f0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e57f1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38610063565b6115ec7f21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f9597f2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce7f13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a967f0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a610063565b6116787f09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f14557f0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf7f0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a47f05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b610063565b6117047f176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c4047f1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df7f2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b7f0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335610063565b6117907f2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c77f14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def7f226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a7f2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db610063565b61181c7f0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c7f03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f37f0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c297f2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7610063565b6118a77e780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef3631821857f0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa7f1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa91467f203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78610063565b6119327f222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c7e544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac167f10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e87f10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5610063565b6119be7f04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d7f06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf047467f062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b7f2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5610063565b611a4a7f14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f13647f0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae7f011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f17f13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a610063565b611ad67f2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a7f16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d582597f278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b6077f1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106610063565b611b627f02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe67692500420257f16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf7f15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c9847f29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8610063565b611bee7f1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec7f0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de89907f1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a427f05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119610063565b611c7a7f0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf7f2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d07f09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb96507f25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d610063565b611d067f24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d00567f1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f835297f2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f627f25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2610063565b611d927f2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f639257f06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f57f23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d7f25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74610063565b611e1e7f17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd7f13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be7f265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e7f15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5610063565b611eaa7f2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e7f2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e887f18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c7f21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d610063565b611f367f11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f57f0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c7f0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe57f277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7610063565b611fc27f30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad47f221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f4217f0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb8247f224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6610063565b61204e7f1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b317f0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc7f2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b7f23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0610063565b6120da7f1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b877f174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d77f22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d27f26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3610063565b6121667f2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c8755267f29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e7f0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade4577f1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1610063565b6121f27f0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad7257f1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f7f2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac7063641137f12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2610063565b61227e7f1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a7f2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e7f08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a37f07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492610063565b61230a7f265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e7f2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff7f2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d197f18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb610063565b6123967f01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf57f2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b87f094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf604177f2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c610063565b6124227f2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd8064617f27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d0287727f154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc747f0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb610063565b6124ae7f0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c7377f1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa957f298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc7f301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71610063565b61253a7f01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b7f1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d7f0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee7f0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279610063565b6125c67f2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe597f19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d7f23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c47f2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32610063565b6126527f0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c87f19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb07f0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b357f2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267610063565b6126de7f2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d7f0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af7f240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b7f16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca610063565b61276a7f242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d17f089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c377027f18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f7f166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6610063565b6127f67f0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e9617f1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b27f17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b7f174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b610063565b6128817eccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d1587f292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e7f12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec67f2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f610063565b61290d7f1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e87f0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e7f14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f7f185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b610063565b6129997f29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c0087f05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c0146047f2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c87f0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024610063565b612a257f1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f7f1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b7f1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc7f2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314610063565b612ab07f0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d7e6e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b7f191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c7f1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5610063565b612b3c7f0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc7f16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae7f12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a7f25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d610063565b612bc87f13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc8247f11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde547f03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b767f1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089610063565b612c547f2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec7f2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e7f1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db47f0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b6103aa565b612ce07f1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b7f2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd6073687f065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc33947f2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb3876103aa565b612d6b7eb4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd790787f0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f7f2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb7f027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd6103aa565b7f1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd55f51017f12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6602051017f13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db608051017f163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d560a051015f51602061302b5f395f51905f5284850994505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528788090993505f51602061302b5f395f51905f5283840994505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528788090992505f51602061302b5f395f51905f5282830994505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528788090991505f51602061302b5f395f51905f5281820994505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528788090990505f51602061302b5f395f51905f52805f51602061302b5f395f51905f525f51602061300b5f395f51905f5284095f51602061302b5f395f51905f525f51602061306b5f395f51905f5286095f51602061302b5f395f51905f525f51602061304b5f395f51905f5288095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8a0901010106065f5260205ff35b634e487b7160e01b5f52604160045260245ffd5b5f60608284031215612fa0575f5ffd5b82601f830112612fae575f5ffd5b6040516060810181811067ffffffffffffffff82111715612fd157612fd1612f7c565b604052806060840185811115612fe5575f5ffd5b845b81811015612fff578035835260209283019201612fe7565b50919594505050505056fe1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c130644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62a2646970667358221220f6d5cfe9ef56c84b95ece8760d16164e8a9649e1f378cc0d39152a9bac67d08e64736f6c634300081c0033",
- "deployedBytecode": "0x7300000000000000000000000000000000000000003014608060405260043610610034575f3560e01c806320cf0a3714610038575b5f5ffd5b61004b610046366004612f90565b61005d565b60405190815260200160405180910390f35b5f610793565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f52838409099450505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f528384090994505f51602061302b5f395f51905f5284850990505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528384090993505f51602061302b5f395f51905f5283840990505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528384090992505f51602061302b5f395f51905f5282830990505f51602061302b5f395f51905f52825f51602061302b5f395f51905f52838409099150505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b5f7f265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d65f51602061302b5f395f51905f5260805106017f199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa5f51602061302b5f395f51905f5260a05106017f157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf85f51602061302b5f395f51905f5260c05106015f51602061302b5f395f51905f5283840993505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528687090992505f51602061302b5f395f51905f5282830993505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528687090991505f51602061302b5f395f51905f5281820993505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528687090990505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287097f211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87097f19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87097f21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87097f26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be30101010660a052505050610c167f13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e7f251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b9967f0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e7f2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac949026103aa565b610ca27f04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b7f0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f3675497f011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca067f0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd47386103aa565b610d2e7f0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd69414324477f28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a17f259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f7f0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e86103aa565b610dba7f1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c57f26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee757f123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf8117f0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf610063565b610e467f2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a57f2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c7f011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e55747f1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0610063565b610ed27f179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb7f1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d857f192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b7f0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d610063565b610f5e7f10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b877f064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd597f225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e087f29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c610063565b610fea7f2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db7f1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b7f1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb7f0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c610063565b6110767f20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d7f0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b7f062100eb485db06269655cf186a68532985275428450359adc99cec6960711b87f2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926610063565b6111027f26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce57f22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e07f23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b7f25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a610063565b61118e7f1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa7f248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d7297f12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da7f070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9610063565b6112197f2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde1877f04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d657e94975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e7f28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf610063565b6112a47f159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a7eb7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b647f03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b07f2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3610063565b6113307f0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb1737f2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f7f1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d7f1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f610063565b6113bc7f22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea97f0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a7f0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed7057f02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16610063565b6114487f2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d835057f2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e57f1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d07f25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16610063565b6114d47f0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac7f02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a68003557f227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a53190257f044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d610063565b6115607f25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f7f1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c7f0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e57f1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38610063565b6115ec7f21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f9597f2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce7f13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a967f0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a610063565b6116787f09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f14557f0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf7f0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a47f05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b610063565b6117047f176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c4047f1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df7f2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b7f0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335610063565b6117907f2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c77f14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def7f226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a7f2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db610063565b61181c7f0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c7f03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f37f0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c297f2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7610063565b6118a77e780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef3631821857f0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa7f1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa91467f203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78610063565b6119327f222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c7e544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac167f10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e87f10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5610063565b6119be7f04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d7f06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf047467f062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b7f2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5610063565b611a4a7f14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f13647f0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae7f011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f17f13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a610063565b611ad67f2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a7f16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d582597f278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b6077f1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106610063565b611b627f02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe67692500420257f16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf7f15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c9847f29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8610063565b611bee7f1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec7f0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de89907f1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a427f05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119610063565b611c7a7f0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf7f2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d07f09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb96507f25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d610063565b611d067f24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d00567f1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f835297f2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f627f25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2610063565b611d927f2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f639257f06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f57f23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d7f25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74610063565b611e1e7f17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd7f13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be7f265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e7f15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5610063565b611eaa7f2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e7f2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e887f18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c7f21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d610063565b611f367f11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f57f0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c7f0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe57f277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7610063565b611fc27f30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad47f221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f4217f0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb8247f224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6610063565b61204e7f1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b317f0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc7f2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b7f23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0610063565b6120da7f1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b877f174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d77f22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d27f26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3610063565b6121667f2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c8755267f29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e7f0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade4577f1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1610063565b6121f27f0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad7257f1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f7f2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac7063641137f12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2610063565b61227e7f1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a7f2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e7f08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a37f07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492610063565b61230a7f265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e7f2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff7f2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d197f18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb610063565b6123967f01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf57f2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b87f094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf604177f2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c610063565b6124227f2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd8064617f27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d0287727f154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc747f0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb610063565b6124ae7f0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c7377f1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa957f298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc7f301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71610063565b61253a7f01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b7f1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d7f0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee7f0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279610063565b6125c67f2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe597f19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d7f23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c47f2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32610063565b6126527f0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c87f19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb07f0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b357f2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267610063565b6126de7f2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d7f0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af7f240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b7f16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca610063565b61276a7f242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d17f089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c377027f18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f7f166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6610063565b6127f67f0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e9617f1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b27f17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b7f174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b610063565b6128817eccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d1587f292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e7f12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec67f2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f610063565b61290d7f1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e87f0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e7f14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f7f185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b610063565b6129997f29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c0087f05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c0146047f2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c87f0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024610063565b612a257f1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f7f1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b7f1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc7f2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314610063565b612ab07f0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d7e6e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b7f191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c7f1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5610063565b612b3c7f0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc7f16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae7f12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a7f25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d610063565b612bc87f13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc8247f11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde547f03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b767f1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089610063565b612c547f2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec7f2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e7f1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db47f0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b6103aa565b612ce07f1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b7f2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd6073687f065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc33947f2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb3876103aa565b612d6b7eb4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd790787f0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f7f2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb7f027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd6103aa565b7f1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd55f51017f12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6602051017f13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db608051017f163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d560a051015f51602061302b5f395f51905f5284850994505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528788090993505f51602061302b5f395f51905f5283840994505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528788090992505f51602061302b5f395f51905f5282830994505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528788090991505f51602061302b5f395f51905f5281820994505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528788090990505f51602061302b5f395f51905f52805f51602061302b5f395f51905f525f51602061300b5f395f51905f5284095f51602061302b5f395f51905f525f51602061306b5f395f51905f5286095f51602061302b5f395f51905f525f51602061304b5f395f51905f5288095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8a0901010106065f5260205ff35b634e487b7160e01b5f52604160045260245ffd5b5f60608284031215612fa0575f5ffd5b82601f830112612fae575f5ffd5b6040516060810181811067ffffffffffffffff82111715612fd157612fd1612f7c565b604052806060840185811115612fe5575f5ffd5b845b81811015612fff578035835260209283019201612fe7565b50919594505050505056fe1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c130644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62a2646970667358221220f6d5cfe9ef56c84b95ece8760d16164e8a9649e1f378cc0d39152a9bac67d08e64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/utils/PoseidonT4.sol",
- "buildInfoId": "solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyVault#CurvyVaultV1.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyVault#CurvyVaultV1.json
deleted file mode 100644
index 3691ecd..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyVault#CurvyVaultV1.json
+++ /dev/null
@@ -1,834 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV1",
- "sourceName": "contracts/vault/CurvyVaultV1.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205e1d810006e1c4a45d4280de3a8894a26644a7669555e5011d3a8b7d576e098564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205e1d810006e1c4a45d4280de3a8894a26644a7669555e5011d3a8b7d576e098564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6484
- },
- {
- "length": 32,
- "start": 6525
- },
- {
- "length": 32,
- "start": 6849
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV1.sol",
- "buildInfoId": "solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyVault#CurvyVaultV1Implementation.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyVault#CurvyVaultV1Implementation.json
deleted file mode 100644
index 3691ecd..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyVault#CurvyVaultV1Implementation.json
+++ /dev/null
@@ -1,834 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV1",
- "sourceName": "contracts/vault/CurvyVaultV1.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205e1d810006e1c4a45d4280de3a8894a26644a7669555e5011d3a8b7d576e098564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205e1d810006e1c4a45d4280de3a8894a26644a7669555e5011d3a8b7d576e098564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6484
- },
- {
- "length": 32,
- "start": 6525
- },
- {
- "length": 32,
- "start": 6849
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV1.sol",
- "buildInfoId": "solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyVault#CurvyVaultV2.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyVault#CurvyVaultV2.json
deleted file mode 100644
index 847920a..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyVault#CurvyVaultV2.json
+++ /dev/null
@@ -1,885 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV2",
- "sourceName": "contracts/vault/CurvyVaultV2.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212200dd8f4b1ff65d8eaec14efc8498c5839e04bb38b2557e57ab8719387851cfb9064736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212200dd8f4b1ff65d8eaec14efc8498c5839e04bb38b2557e57ab8719387851cfb9064736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5829
- },
- {
- "length": 32,
- "start": 5870
- },
- {
- "length": 32,
- "start": 6194
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV2.sol",
- "buildInfoId": "solc-0_8_28-3a19216336357ee9e58c9163cd4bbaea062085e2"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyVault#CurvyVaultV2Implementation.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyVault#CurvyVaultV2Implementation.json
deleted file mode 100644
index 847920a..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyVault#CurvyVaultV2Implementation.json
+++ /dev/null
@@ -1,885 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV2",
- "sourceName": "contracts/vault/CurvyVaultV2.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212200dd8f4b1ff65d8eaec14efc8498c5839e04bb38b2557e57ab8719387851cfb9064736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212200dd8f4b1ff65d8eaec14efc8498c5839e04bb38b2557e57ab8719387851cfb9064736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5829
- },
- {
- "length": 32,
- "start": 5870
- },
- {
- "length": 32,
- "start": 6194
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV2.sol",
- "buildInfoId": "solc-0_8_28-3a19216336357ee9e58c9163cd4bbaea062085e2"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyVault#ERC1967Proxy.json b/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyVault#ERC1967Proxy.json
deleted file mode 100644
index ad99af7..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/CurvyVault#ERC1967Proxy.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ERC1967Proxy",
- "sourceName": "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "_data",
- "type": "bytes"
- }
- ],
- "stateMutability": "payable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "stateMutability": "payable",
- "type": "fallback"
- }
- ],
- "bytecode": "0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033",
- "deployedBytecode": "0x6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Proxy.sol",
- "buildInfoId": "solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/PortalFactoryAggregatorModule#PortalFactory.json b/ignition/deployments/production_ethereum-sepolia/artifacts/PortalFactoryAggregatorModule#PortalFactory.json
deleted file mode 100644
index c6d2f31..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/PortalFactoryAggregatorModule#PortalFactory.json
+++ /dev/null
@@ -1,255 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "initializeConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateLifiDiamondAddress",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161130038038061130083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6111be806101425f395ff3fe608060405260043610610084575f3560e01c8063715018a611610057578063715018a614610133578063735f399d146101475780637377bbb41461015a5780638da5cb5b14610186578063f2fde38b146101a2575f5ffd5b80631d29b183146100885780633290c33b146100a95780633942b0ad146100e557806352982f3b14610114575b5f5ffd5b348015610093575f5ffd5b506100a76100a236600461074a565b6101c1565b005b3480156100b4575f5ffd5b506100c86100c33660046107d9565b61031f565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100f0575f5ffd5b506101046100ff3660046107f0565b61038d565b60405190151581526020016100dc565b34801561011f575f5ffd5b5061010461012e366004610810565b6103ba565b34801561013e575f5ffd5b506100a7610406565b6100a7610155366004610850565b610419565b348015610165575f5ffd5b506101796101743660046107d9565b6105a1565b6040516100dc919061086a565b348015610191575f5ffd5b505f546001600160a01b03166100c8565b3480156101ad575f5ffd5b506100a76101bc3660046107f0565b61060c565b6004546001600160a01b031661023a5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084015b60405180910390fd5b5f610247835f01516105a1565b90505f5f60015490508083516020850134f591506001600160a01b0382166102b15760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610231565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936102e9939216918c918c918c918c910161089f565b5f604051808303815f87803b158015610300575f5ffd5b505af1158015610312573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f61032a836105a1565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff19166021820152603581019390935260558084019290925280518084039092018252607590920190915280519101209392505050565b5f610396610649565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b5f6103c3610649565b50600280546001600160a01b039485166001600160a01b031991821617909155600380549385169382169390931790925560048054919093169116179055600190565b61040e610649565b6104175f610675565b565b6002546001600160a01b0316158061043a57506003546001600160a01b0316155b156104a45760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b6064820152608401610231565b5f6104b1825f01516105a1565b90505f5f60015490508083516020850134f591506001600160a01b03821661051b5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610231565b60035460025460408051631329a1a760e31b815287516004820152602088015160248201529087015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610585575f5ffd5b505af1158015610597573d5f5f3e3d5ffd5b5050505050505050565b60605f604051806020016105b4906106c4565b601f1982820381018352601f9091011660408181526020808301879052815180840390910181528183019091529192506105f4908390839060600161092b565b60405160208183030381529060405292505050919050565b610614610649565b6001600160a01b03811661063d57604051631e4fbdf760e01b81525f6004820152602401610231565b61064681610675565b50565b5f546001600160a01b031633146104175760405163118cdaa760e01b8152336004820152602401610231565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6108418061094883390190565b5f606082840312156106e1575f5ffd5b6040516060810181811067ffffffffffffffff8211171561071057634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b80356001600160a01b03811681146103b5575f5ffd5b5f5f5f5f60a0858703121561075d575f5ffd5b843567ffffffffffffffff811115610773575f5ffd5b8501601f81018713610783575f5ffd5b803567ffffffffffffffff811115610799575f5ffd5b8760208284010111156107aa575f5ffd5b6020918201955093506107c090879087016106d1565b91506107ce60808601610734565b905092959194509250565b5f602082840312156107e9575f5ffd5b5035919050565b5f60208284031215610800575f5ffd5b61080982610734565b9392505050565b5f5f5f60608486031215610822575f5ffd5b61082b84610734565b925061083960208501610734565b915061084760408501610734565b90509250925092565b5f60608284031215610860575f5ffd5b61080983836106d1565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506108f960408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b5f81518060208401855e5f93019283525090919050565b5f61093f6109398386610914565b84610914565b94935050505056fe6080604052348015600e575f5ffd5b50604051610841380380610841833981016040819052602b916031565b5f556047565b5f602082840312156040575f5ffd5b5051919050565b6107ed806100545f395ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c80633fb070271461004e5780635dc24ee31461007d578063994d0d3814610090578063bcd6c474146100a5575b5f5ffd5b600254610061906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600154610061906001600160a01b031681565b6100a361009e366004610699565b6100b8565b005b6100a36100b33660046106e0565b6102fe565b5f5483511461010e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e6572206861736800000000000060448201526064015b60405180910390fd5b600180546001600160a01b038085166001600160a01b0319928316179092556002805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610168919060040190815260200190565b602060405180830381865afa158015610183573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101a79190610786565b90506001600160a01b038116158015906101de57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561027d576001546040850151610203916001600160a01b03848116929116906104b7565b600154604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610262575f5ffd5b505af1158015610274573d5f5f3e3d5ffd5b505050506102f8565b6001546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b1580156102e0575f5ffd5b505af11580156102f2573d5f5f3e3d5ffd5b50505050505b50505050565b6001600160a01b0385166103545760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610105565b5f548251146103a55760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610105565b60408201516001600160a01b038216158015906103df57506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104025760408301516103ff906001600160a01b0384169088906104b7565b505f5b5f866001600160a01b031682878760405161041e9291906107a8565b5f6040518083038185875af1925050503d805f8114610458576040519150601f19603f3d011682016040523d82523d5f602084013e61045d565b606091505b50509050806104ae5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610105565b50505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610508848261056a565b6102f857604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526105609085906105b3565b6102f884826105b3565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156105a95750811561059b57806001146105a9565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af1806105d2576040513d5f823e3d81fd5b50505f513d915081156105e95780600114156105f6565b6001600160a01b0384163b155b156102f857604051635274afe760e01b81526001600160a01b0385166004820152602401610105565b5f6060828403121561062f575f5ffd5b6040516060810181811067ffffffffffffffff8211171561065e57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b6001600160a01b0381168114610696575f5ffd5b50565b5f5f5f60a084860312156106ab575f5ffd5b6106b5858561061f565b925060608401356106c581610682565b915060808401356106d581610682565b809150509250925092565b5f5f5f5f5f60c086880312156106f4575f5ffd5b85356106ff81610682565b9450602086013567ffffffffffffffff81111561071a575f5ffd5b8601601f8101881361072a575f5ffd5b803567ffffffffffffffff811115610740575f5ffd5b886020828401011115610751575f5ffd5b60209190910194509250610768876040880161061f565b915060a086013561077881610682565b809150509295509295909350565b5f60208284031215610796575f5ffd5b81516107a181610682565b9392505050565b818382375f910190815291905056fea2646970667358221220ed47eea68502cf373fdbda712862cf4f84f1126296768b873fd1525506411ede64736f6c634300081c0033a26469706673582212207842c4286a64fa19dd38d2db119f8c0dd935b6cd9e3defe5d08030d599ec887664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610084575f3560e01c8063715018a611610057578063715018a614610133578063735f399d146101475780637377bbb41461015a5780638da5cb5b14610186578063f2fde38b146101a2575f5ffd5b80631d29b183146100885780633290c33b146100a95780633942b0ad146100e557806352982f3b14610114575b5f5ffd5b348015610093575f5ffd5b506100a76100a236600461074a565b6101c1565b005b3480156100b4575f5ffd5b506100c86100c33660046107d9565b61031f565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100f0575f5ffd5b506101046100ff3660046107f0565b61038d565b60405190151581526020016100dc565b34801561011f575f5ffd5b5061010461012e366004610810565b6103ba565b34801561013e575f5ffd5b506100a7610406565b6100a7610155366004610850565b610419565b348015610165575f5ffd5b506101796101743660046107d9565b6105a1565b6040516100dc919061086a565b348015610191575f5ffd5b505f546001600160a01b03166100c8565b3480156101ad575f5ffd5b506100a76101bc3660046107f0565b61060c565b6004546001600160a01b031661023a5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084015b60405180910390fd5b5f610247835f01516105a1565b90505f5f60015490508083516020850134f591506001600160a01b0382166102b15760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610231565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936102e9939216918c918c918c918c910161089f565b5f604051808303815f87803b158015610300575f5ffd5b505af1158015610312573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f61032a836105a1565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff19166021820152603581019390935260558084019290925280518084039092018252607590920190915280519101209392505050565b5f610396610649565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b5f6103c3610649565b50600280546001600160a01b039485166001600160a01b031991821617909155600380549385169382169390931790925560048054919093169116179055600190565b61040e610649565b6104175f610675565b565b6002546001600160a01b0316158061043a57506003546001600160a01b0316155b156104a45760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b6064820152608401610231565b5f6104b1825f01516105a1565b90505f5f60015490508083516020850134f591506001600160a01b03821661051b5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610231565b60035460025460408051631329a1a760e31b815287516004820152602088015160248201529087015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610585575f5ffd5b505af1158015610597573d5f5f3e3d5ffd5b5050505050505050565b60605f604051806020016105b4906106c4565b601f1982820381018352601f9091011660408181526020808301879052815180840390910181528183019091529192506105f4908390839060600161092b565b60405160208183030381529060405292505050919050565b610614610649565b6001600160a01b03811661063d57604051631e4fbdf760e01b81525f6004820152602401610231565b61064681610675565b50565b5f546001600160a01b031633146104175760405163118cdaa760e01b8152336004820152602401610231565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6108418061094883390190565b5f606082840312156106e1575f5ffd5b6040516060810181811067ffffffffffffffff8211171561071057634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b80356001600160a01b03811681146103b5575f5ffd5b5f5f5f5f60a0858703121561075d575f5ffd5b843567ffffffffffffffff811115610773575f5ffd5b8501601f81018713610783575f5ffd5b803567ffffffffffffffff811115610799575f5ffd5b8760208284010111156107aa575f5ffd5b6020918201955093506107c090879087016106d1565b91506107ce60808601610734565b905092959194509250565b5f602082840312156107e9575f5ffd5b5035919050565b5f60208284031215610800575f5ffd5b61080982610734565b9392505050565b5f5f5f60608486031215610822575f5ffd5b61082b84610734565b925061083960208501610734565b915061084760408501610734565b90509250925092565b5f60608284031215610860575f5ffd5b61080983836106d1565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506108f960408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b5f81518060208401855e5f93019283525090919050565b5f61093f6109398386610914565b84610914565b94935050505056fe6080604052348015600e575f5ffd5b50604051610841380380610841833981016040819052602b916031565b5f556047565b5f602082840312156040575f5ffd5b5051919050565b6107ed806100545f395ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c80633fb070271461004e5780635dc24ee31461007d578063994d0d3814610090578063bcd6c474146100a5575b5f5ffd5b600254610061906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600154610061906001600160a01b031681565b6100a361009e366004610699565b6100b8565b005b6100a36100b33660046106e0565b6102fe565b5f5483511461010e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e6572206861736800000000000060448201526064015b60405180910390fd5b600180546001600160a01b038085166001600160a01b0319928316179092556002805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610168919060040190815260200190565b602060405180830381865afa158015610183573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101a79190610786565b90506001600160a01b038116158015906101de57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561027d576001546040850151610203916001600160a01b03848116929116906104b7565b600154604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610262575f5ffd5b505af1158015610274573d5f5f3e3d5ffd5b505050506102f8565b6001546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b1580156102e0575f5ffd5b505af11580156102f2573d5f5f3e3d5ffd5b50505050505b50505050565b6001600160a01b0385166103545760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610105565b5f548251146103a55760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610105565b60408201516001600160a01b038216158015906103df57506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104025760408301516103ff906001600160a01b0384169088906104b7565b505f5b5f866001600160a01b031682878760405161041e9291906107a8565b5f6040518083038185875af1925050503d805f8114610458576040519150601f19603f3d011682016040523d82523d5f602084013e61045d565b606091505b50509050806104ae5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610105565b50505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610508848261056a565b6102f857604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526105609085906105b3565b6102f884826105b3565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156105a95750811561059b57806001146105a9565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af1806105d2576040513d5f823e3d81fd5b50505f513d915081156105e95780600114156105f6565b6001600160a01b0384163b155b156102f857604051635274afe760e01b81526001600160a01b0385166004820152602401610105565b5f6060828403121561062f575f5ffd5b6040516060810181811067ffffffffffffffff8211171561065e57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b6001600160a01b0381168114610696575f5ffd5b50565b5f5f5f60a084860312156106ab575f5ffd5b6106b5858561061f565b925060608401356106c581610682565b915060808401356106d581610682565b809150509250925092565b5f5f5f5f5f60c086880312156106f4575f5ffd5b85356106ff81610682565b9450602086013567ffffffffffffffff81111561071a575f5ffd5b8601601f8101881361072a575f5ffd5b803567ffffffffffffffff811115610740575f5ffd5b886020828401011115610751575f5ffd5b60209190910194509250610768876040880161061f565b915060a086013561077881610682565b809150509295509295909350565b5f60208284031215610796575f5ffd5b81516107a181610682565b9392505050565b818382375f910190815291905056fea2646970667358221220ed47eea68502cf373fdbda712862cf4f84f1126296768b873fd1525506411ede64736f6c634300081c0033a26469706673582212207842c4286a64fa19dd38d2db119f8c0dd935b6cd9e3defe5d08030d599ec887664736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-4a46905cb0ef27b38c7e0fb5d602c4ea92ab12b2"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/artifacts/PortalFactoryModule#PortalFactory.json b/ignition/deployments/production_ethereum-sepolia/artifacts/PortalFactoryModule#PortalFactory.json
deleted file mode 100644
index 467c840..0000000
--- a/ignition/deployments/production_ethereum-sepolia/artifacts/PortalFactoryModule#PortalFactory.json
+++ /dev/null
@@ -1,256 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03.json b/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03.json
deleted file mode 100644
index d5575ec..0000000
--- a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03.json
+++ /dev/null
@@ -1,134 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV1.sol": "project/contracts/vault/CurvyVaultV1.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/ECDSA.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.20;\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 }\n\n /**\n * @dev The signature derives the `address(0)`.\n */\n error ECDSAInvalidSignature();\n\n /**\n * @dev The signature has an invalid length.\n */\n error ECDSAInvalidSignatureLength(uint256 length);\n\n /**\n * @dev The signature has an S value that is in the upper half order.\n */\n error ECDSAInvalidSignatureS(bytes32 s);\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\n * and a bytes32 providing additional information about the error.\n *\n * If no error is returned, then the address can be used for verification purposes.\n *\n * The `ecrecover` EVM precompile 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 {MessageHashUtils-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 function tryRecover(\n bytes32 hash,\n bytes memory signature\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 (\"memory-safe\") {\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 {\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\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 precompile 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 {MessageHashUtils-toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\n _throwError(error, errorArg);\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[ERC-2098 short signatures]\n */\n function tryRecover(\n bytes32 hash,\n bytes32 r,\n bytes32 vs\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\n unchecked {\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n // We do not check for an overflow here since the shift operation results in 0 or 1.\n uint8 v = uint8((uint256(vs) >> 255) + 27);\n return tryRecover(hash, v, r, s);\n }\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n */\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\n _throwError(error, errorArg);\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 function tryRecover(\n bytes32 hash,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 ÷ 2 + 1, and for v in (302): v ∈ {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, s);\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, bytes32(0));\n }\n\n return (signer, RecoverError.NoError, bytes32(0));\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `v`,\n * `r` and `s` signature fields separately.\n */\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\n _throwError(error, errorArg);\n return recovered;\n }\n\n /**\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\n */\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\n if (error == RecoverError.NoError) {\n return; // no error: do nothing\n } else if (error == RecoverError.InvalidSignature) {\n revert ECDSAInvalidSignature();\n } else if (error == RecoverError.InvalidSignatureLength) {\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\n } else if (error == RecoverError.InvalidSignatureS) {\n revert ECDSAInvalidSignatureS(errorArg);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {Withdraw, Transfer, Deposit}\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV1.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { EIP712Upgradeable } from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { ECDSA } from \"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\";\nimport \"./ICurvyVault.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract CurvyVaultV1 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 constant private ETH_ID = 0x1;\n address constant private ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 constant private FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH = keccak256(\"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\");\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"1.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Private functions\n\n function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {\n bytes32 structHash = keccak256(\n abi.encode(\n CURVY_META_TRANSACTION_TYPE_HASH,\n _nonces[metaTransaction.from],\n metaTransaction.from,\n metaTransaction.to,\n metaTransaction.tokenId,\n metaTransaction.amount,\n metaTransaction.gasFee,\n metaTransaction.metaTransactionType\n )\n );\n\n // Add domain data to the hash\n bytes32 hash = _hashTypedDataV4(structHash);\n\n // Check that the metaTransaction is signed by metaTransaction.from\n address signer = ECDSA.recover(hash, signature);\n require(signer == metaTransaction.from, \"CurvyVault#_validateSignature: Invalid signature!\");\n\n // Increment nonce\n _nonces[signer]++;\n emit NonceChange(signer, _nonces[signer]);\n }\n\n function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_transfer: Invalid recipient for transfer!\");\n require(metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Transfer, \"CurvyVault#transfer: Wrong type for meta transaction!\");\n\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.to][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (transferFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);\n }\n\n function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_withdraw: Invalid withdraw recipient!\");\n require(metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw, \"CurvyVault#withdraw: Wrong type for meta transaction!\");\n\n // Burn wrapped tokens\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (withdrawalFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n // Withdraw\n if (metaTransaction.tokenId != ETH_ID) { // We are withdrawing ERC20s\n address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];\n IERC20(tokenAddress).safeTransfer(metaTransaction.to, metaTransaction.amount);\n } else { // We are withdrawing ETH\n (bool success,) = metaTransaction.to.call{value: metaTransaction.amount}(\"\");\n require(success, \"CurvyVault#_withdraw: ETH withdrawal failed!\");\n }\n\n emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);\n }\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n require(_tokenAddressToTokenId[tokenAddress] == 0, \"CurvyVault#registerToken: Token already registered!\");\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {\n if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {\n depositFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {\n transferFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {\n withdrawalFee = fee;\n } else {\n revert(\"CurvyVault#setFeeAmount: Unknown fee type!\");\n }\n\n emit FeeChange(metaTransactionType, fee);\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n require(to != address(0x0), \"CurvyVault#deposit: Invalid recipient for deposit!\");\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) { // We are depositing ERC20\n require(msg.value == 0, \"CurvyVault#deposit: Don't send ETH with ERC20 deposit!\");\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault#deposit: Token address not registered!\");\n } else { // We are depositing ETH\n require(amount == msg.value, \"CurvyVault#deposit: Incorrect deposit value!\");\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)\n if (gasSponsorshipAmount != 0) {\n _balances[to][tokenId] -= gasSponsorshipAmount;\n _balances[owner()][tokenId] += gasSponsorshipAmount;\n }\n\n emit Transfer(address(0x0), to, tokenId, amount);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n require(msg.sender == metaTransaction.from, \"CurvyVault#transfer: Invalid msg.sender!\");\n require(metaTransaction.gasFee == 0, \"CurvyVault#transfer: gasFee must be 0 when not relaying metaTransaction for others!\");\n\n _transfer(metaTransaction);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _transfer(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n require(msg.sender == metaTransaction.from, \"CurvyVault#withdraw: Invalid msg.sender!\");\n require(metaTransaction.gasFee == 0, \"CurvyVault#withdraw: gasFee must be 0 when not relaying metaTransaction for others!\");\n\n _withdraw(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _withdraw(metaTransaction);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n require(tokenAddress != address(0x0), \"CurvyVault:#getIdAddress: Unregistered token!\");\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault:#getTokenID: Unregistered token!\");\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n function balanceOfBatch(address[] memory owners, uint256[] memory tokenIds) external view returns (uint256[] memory) {\n require(owners.length == tokenIds.length, \"CurvyVault#balanceOfBatch: Invalid array length!\");\n\n // Variables\n uint256[] memory batchBalances = new uint256[](owners.length);\n\n // Iterate over each owner and token ID\n for (uint256 i = 0; i < owners.length; i++) {\n batchBalances[i] = _balances[owners[i]][tokenIds[i]];\n }\n\n return batchBalances;\n }\n\n function getNonce(address _signer) external view returns (uint256 nonce)\n {\n return _nonces[_signer];\n }\n\n //#endregion\n}"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-4a46905cb0ef27b38c7e0fb5d602c4ea92ab12b2.json b/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-4a46905cb0ef27b38c7e0fb5d602c4ea92ab12b2.json
deleted file mode 100644
index 07838c7..0000000
--- a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-4a46905cb0ef27b38c7e0fb5d602c4ea92ab12b2.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4a46905cb0ef27b38c7e0fb5d602c4ea92ab12b2",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n constructor(uint256 ownerHash) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress = curvyVault.getTokenAddress(note.token);\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function initializeConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function updateLifiDiamondAddress(address lifiDiamondAddress) external onlyOwner returns (bool) {\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function getCreationCode(uint256 ownerHash) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(bytes calldata bridgeData, CurvyTypes.Note memory note, address tokenAddress) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10.json b/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10.json
deleted file mode 100644
index e1581a6..0000000
--- a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { PoseidonT4} from \"./utils/PoseidonT4.sol\";\n\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { ICurvyInsertionVerifier, ICurvyAggregationVerifier, ICurvyWithdrawVerifier } from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV1 is Initializable, UUPSUpgradeable, OwnableUpgradeable {\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner, address curvyVaultProxyAddress) public initializer {\n maxDeposits = 2;\n maxWithdrawals = 2;\n maxAggregations = 2;\n\n __Ownable_init(initialOwner);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdate memory _update) external onlyOwner returns (bool)\n {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);\n }\n // TODO: We probably don't need this.\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVault(_update.curvyVault);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function depositNote(\n address from,\n CurvyTypes.Note memory note,\n bytes memory signature\n ) public {\n // TODO: Gas fee\n curvyVault.transfer(CurvyTypes.MetaTransaction(from, address(this), note.token, note.amount, 0, CurvyTypes.MetaTransactionType.Transfer), signature);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n require(_pendingIdsQueue[noteId], \"CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!\");\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n require(\n _notesTreeRoot == publicInputs[numPublicInputs - 2],\n \"CurvyAggregator#commitDepositBatch: Invalid notes root!\"\n );\n\n require(\n insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitDepositBatch: Invalid proof!\"\n );\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n require(_notesTreeRoot == oldNotesTreeRoot, \"CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!\");\n require(_nullifiersTreeRoot == oldNullifiersTreeRoot, \"CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!\");\n\n require(\n aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitAggregationBatch: Invalid proof!\"\n );\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[10] memory publicInputs\n ) public returns (bool) {\n\n require(publicInputs[3] == _nullifiersTreeRoot, \"CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!\");\n require(publicInputs[2] == _notesTreeRoot, \"CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!\");\n\n require(\n withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!\"\n );\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[4 + i];\n address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n destinationAddress,\n publicInputs[numPublicInputs - 1],\n amount,\n 0,\n CurvyTypes.MetaTransactionType.Withdraw\n )\n );\n }\n }\n\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n owner(),\n publicInputs[numPublicInputs - 1],\n publicInputs[1],\n 0,\n CurvyTypes.MetaTransactionType.Withdraw\n )\n );\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {Withdraw, Transfer, Deposit}\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6.json b/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6.json
deleted file mode 100644
index 14dfbff..0000000
--- a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol": {
- "content": "//\n// Copyright 2017 Christian Reitwiessner\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n//\n// 2019 OKIMS\n// ported to solidity 0.6\n// fixed linter warnings\n// added requiere error messages\n//\n//\n// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.28;\nlibrary Pairing {\n struct G1Point {\n uint X;\n uint Y;\n }\n // Encoding of field elements is: X[0] * z + X[1]\n struct G2Point {\n uint[2] X;\n uint[2] Y;\n }\n /// @return the generator of G1\n function P1() internal pure returns (G1Point memory) {\n return G1Point(1, 2);\n }\n /// @return the generator of G2\n function P2() internal pure returns (G2Point memory) {\n // Original code point\n return\n G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n\n /*\n // Changed by Jordi point\n return G2Point(\n [10857046999023057135944570762232829481370756359578518086990519993285655852781,\n 11559732032986387107991004021392285783925812861821192530917403151452391805634],\n [8495653923123431417604973247489272438418190587263600148770280649306958101930,\n 4082367875863433681332203403145435568316851327593401208105741076214120093531]\n );\n*/\n }\n /// @return r the negation of p, i.e. p.addition(p.negate()) should be zero.\n function negate(G1Point memory p) internal pure returns (G1Point memory r) {\n // The prime q in the base field F_q for G1\n uint q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n if (p.X == 0 && p.Y == 0) return G1Point(0, 0);\n return G1Point(p.X, q - (p.Y % q));\n }\n /// @return r the sum of two points of G1\n function addition(G1Point memory p1, G1Point memory p2) internal view returns (G1Point memory r) {\n uint[4] memory input;\n input[0] = p1.X;\n input[1] = p1.Y;\n input[2] = p2.X;\n input[3] = p2.Y;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-add-failed\");\n }\n /// @return r the product of a point on G1 and a scalar, i.e.\n /// p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.\n function scalar_mul(G1Point memory p, uint s) internal view returns (G1Point memory r) {\n uint[3] memory input;\n input[0] = p.X;\n input[1] = p.Y;\n input[2] = s;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-mul-failed\");\n }\n /// @return the result of computing the pairing check\n /// e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n /// For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n /// return true.\n function pairing(G1Point[] memory p1, G2Point[] memory p2) internal view returns (bool) {\n require(p1.length == p2.length, \"pairing-lengths-failed\");\n uint elements = p1.length;\n uint inputSize = elements * 6;\n uint[] memory input = new uint[](inputSize);\n for (uint i = 0; i < elements; i++) {\n input[i * 6 + 0] = p1[i].X;\n input[i * 6 + 1] = p1[i].Y;\n input[i * 6 + 2] = p2[i].X[0];\n input[i * 6 + 3] = p2[i].X[1];\n input[i * 6 + 4] = p2[i].Y[0];\n input[i * 6 + 5] = p2[i].Y[1];\n }\n uint[1] memory out;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-opcode-failed\");\n return out[0] != 0;\n }\n /// Convenience method for a pairing check for two pairs.\n function pairingProd2(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](2);\n G2Point[] memory p2 = new G2Point[](2);\n p1[0] = a1;\n p1[1] = b1;\n p2[0] = a2;\n p2[1] = b2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for three pairs.\n function pairingProd3(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](3);\n G2Point[] memory p2 = new G2Point[](3);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for four pairs.\n function pairingProd4(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2,\n G1Point memory d1,\n G2Point memory d2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](4);\n G2Point[] memory p2 = new G2Point[](4);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p1[3] = d1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n p2[3] = d2;\n return pairing(p1, p2);\n }\n}\ncontract CurvyWithdrawVerifierAlpha_2 {\n using Pairing for *;\n struct VerifyingKey {\n Pairing.G1Point alfa1;\n Pairing.G2Point beta2;\n Pairing.G2Point gamma2;\n Pairing.G2Point delta2;\n Pairing.G1Point[] IC;\n }\n struct Proof {\n Pairing.G1Point A;\n Pairing.G2Point B;\n Pairing.G1Point C;\n }\n function verifyingKey() internal pure returns (VerifyingKey memory vk) {\n vk.alfa1 = Pairing.G1Point(\n 16428432848801857252194528405604668803277877773566238944394625302971855135431,\n 16846502678714586896801519656441059708016666274385668027902869494772365009666\n );\n\n vk.beta2 = Pairing.G2Point(\n [\n 3182164110458002340215786955198810119980427837186618912744689678939861918171,\n 16348171800823588416173124589066524623406261996681292662100840445103873053252\n ],\n [\n 4920802715848186258981584729175884379674325733638798907835771393452862684714,\n 19687132236965066906216944365591810874384658708175106803089633851114028275753\n ]\n );\n vk.gamma2 = Pairing.G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n vk.delta2 = Pairing.G2Point(\n [\n 5134938851194498055138716288113036625141602053184981412733799136644539868397,\n 6999723686378219385015083566752410343544958362147775310371915283489773587081\n ],\n [\n 16143735824282086765904813373481689877955881811585622208150907274317775637256,\n 15167935180042832911506376747898747793167371423428120959483422819862011673604\n ]\n );\n vk.IC = new Pairing.G1Point[](11);\n\n vk.IC[0] = Pairing.G1Point(\n 7925322306079913650107293273085723111079883500364968736523058081294372258270,\n 14429458957753680242266563605661071578200444399506227155307129052603861999372\n );\n\n vk.IC[1] = Pairing.G1Point(\n 9621289505295595742569558738283422269339012970483732592198024818005547944199,\n 12111681074460052445442106828868414387187667992458469408832440570807241968538\n );\n\n vk.IC[2] = Pairing.G1Point(\n 7312128641250390938630229823853164701825981217883024106709148533481658390570,\n 12440505658580027463676844388904074300845923000490442514545302362020951914769\n );\n\n vk.IC[3] = Pairing.G1Point(\n 16877443780461134531177127919731997699796382227971205250997579019059067630688,\n 49152147949061934121116331361525073710464700984994035213208262218202566855\n );\n\n vk.IC[4] = Pairing.G1Point(\n 18696420709995272904249742465996319382995593873083879239060307166953665029183,\n 12007466175774591460576490507161035255928488364053833728962686940733506548534\n );\n\n vk.IC[5] = Pairing.G1Point(\n 4888833272471300078669542579753876773143068450802251901446392823653767491496,\n 16737220595164826793433974502199440968696340680754227465404664862229923440736\n );\n\n vk.IC[6] = Pairing.G1Point(\n 13927018071292564092594216699177107983276050775453219388810810008345720147931,\n 21289909446685655410617670235198232729874074282712000770937342029481198302756\n );\n\n vk.IC[7] = Pairing.G1Point(\n 410619771485288302733238769884660429689150676831325313990328694222201830648,\n 9570270376692734191686217026556366896517764137093201149479185260147900973818\n );\n\n vk.IC[8] = Pairing.G1Point(\n 15981118535239832607798426652562238258797467538556791923525133698106219023033,\n 17838190582793853033041876784548510169542454211941522962331441193096118683061\n );\n\n vk.IC[9] = Pairing.G1Point(\n 21414624434676218606022320224607110391590369224829219206993574118162544764206,\n 15330341033713101095090980677285886777683712546677347512441970386287355341362\n );\n\n vk.IC[10] = Pairing.G1Point(\n 18868358771793700272243668633223006755697535655297431894870707368785053232034,\n 10151002155083359926185957008537320894287083103144507387393430057508383162545\n );\n }\n function verify(uint[] memory input, Proof memory proof) internal view returns (uint) {\n uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n VerifyingKey memory vk = verifyingKey();\n require(input.length + 1 == vk.IC.length, \"verifier-bad-input\");\n // Compute the linear combination vk_x\n Pairing.G1Point memory vk_x = Pairing.G1Point(0, 0);\n for (uint i = 0; i < input.length; i++) {\n require(input[i] < snark_scalar_field, \"verifier-gte-snark-scalar-field\");\n vk_x = Pairing.addition(vk_x, Pairing.scalar_mul(vk.IC[i + 1], input[i]));\n }\n vk_x = Pairing.addition(vk_x, vk.IC[0]);\n if (\n !Pairing.pairingProd4(\n Pairing.negate(proof.A),\n proof.B,\n vk.alfa1,\n vk.beta2,\n vk_x,\n vk.gamma2,\n proof.C,\n vk.delta2\n )\n ) return 1;\n return 0;\n }\n /// @return r bool true if proof is valid\n function verifyProof(\n uint[2] memory a,\n uint[2][2] memory b,\n uint[2] memory c,\n uint[10] memory input\n ) public view returns (bool r) {\n Proof memory proof;\n proof.A = Pairing.G1Point(a[0], a[1]);\n proof.B = Pairing.G2Point([b[0][0], b[0][1]], [b[1][0], b[1][1]]);\n proof.C = Pairing.G1Point(c[0], c[1]);\n uint[] memory inputValues = new uint[](input.length);\n for (uint i = 0; i < input.length; i++) {\n inputValues[i] = input[i];\n }\n if (verify(inputValues, proof) == 0) {\n return true;\n } else {\n return false;\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440.json b/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440.json
deleted file mode 100644
index f3d5251..0000000
--- a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440.json
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol": "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Proxy.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Proxy.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.2.0) (proxy/ERC1967/ERC1967Proxy.sol)\n\npragma solidity ^0.8.22;\n\nimport {Proxy} from \"../Proxy.sol\";\nimport {ERC1967Utils} from \"./ERC1967Utils.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[ERC-1967], so that it doesn't conflict with the storage layout of the\n * implementation behind the proxy.\n */\ncontract ERC1967Proxy is Proxy {\n /**\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `implementation`.\n *\n * If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will typically be an\n * encoded function call, and allows initializing the storage of the proxy like a Solidity constructor.\n *\n * Requirements:\n *\n * - If `data` is empty, `msg.value` must be zero.\n */\n constructor(address implementation, bytes memory _data) payable {\n ERC1967Utils.upgradeToAndCall(implementation, _data);\n }\n\n /**\n * @dev Returns the current implementation address.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\n */\n function _implementation() internal view virtual override returns (address) {\n return ERC1967Utils.getImplementation();\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/Proxy.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)\n\npragma solidity ^0.8.20;\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 internal 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 overridden so it returns the address to which the fallback\n * function 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 internal call site, it will return directly to the external caller.\n */\n function _fallback() internal virtual {\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3.json b/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3.json
deleted file mode 100644
index 3d088ca..0000000
--- a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol": {
- "content": "//\n// Copyright 2017 Christian Reitwiessner\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n//\n// 2019 OKIMS\n// ported to solidity 0.6\n// fixed linter warnings\n// added requiere error messages\n//\n//\n// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.28;\nlibrary Pairing {\n struct G1Point {\n uint X;\n uint Y;\n }\n // Encoding of field elements is: X[0] * z + X[1]\n struct G2Point {\n uint[2] X;\n uint[2] Y;\n }\n /// @return the generator of G1\n function P1() internal pure returns (G1Point memory) {\n return G1Point(1, 2);\n }\n /// @return the generator of G2\n function P2() internal pure returns (G2Point memory) {\n // Original code point\n return\n G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n\n /*\n // Changed by Jordi point\n return G2Point(\n [10857046999023057135944570762232829481370756359578518086990519993285655852781,\n 11559732032986387107991004021392285783925812861821192530917403151452391805634],\n [8495653923123431417604973247489272438418190587263600148770280649306958101930,\n 4082367875863433681332203403145435568316851327593401208105741076214120093531]\n );\n*/\n }\n /// @return r the negation of p, i.e. p.addition(p.negate()) should be zero.\n function negate(G1Point memory p) internal pure returns (G1Point memory r) {\n // The prime q in the base field F_q for G1\n uint q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n if (p.X == 0 && p.Y == 0) return G1Point(0, 0);\n return G1Point(p.X, q - (p.Y % q));\n }\n /// @return r the sum of two points of G1\n function addition(G1Point memory p1, G1Point memory p2) internal view returns (G1Point memory r) {\n uint[4] memory input;\n input[0] = p1.X;\n input[1] = p1.Y;\n input[2] = p2.X;\n input[3] = p2.Y;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-add-failed\");\n }\n /// @return r the product of a point on G1 and a scalar, i.e.\n /// p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.\n function scalar_mul(G1Point memory p, uint s) internal view returns (G1Point memory r) {\n uint[3] memory input;\n input[0] = p.X;\n input[1] = p.Y;\n input[2] = s;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-mul-failed\");\n }\n /// @return the result of computing the pairing check\n /// e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n /// For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n /// return true.\n function pairing(G1Point[] memory p1, G2Point[] memory p2) internal view returns (bool) {\n require(p1.length == p2.length, \"pairing-lengths-failed\");\n uint elements = p1.length;\n uint inputSize = elements * 6;\n uint[] memory input = new uint[](inputSize);\n for (uint i = 0; i < elements; i++) {\n input[i * 6 + 0] = p1[i].X;\n input[i * 6 + 1] = p1[i].Y;\n input[i * 6 + 2] = p2[i].X[0];\n input[i * 6 + 3] = p2[i].X[1];\n input[i * 6 + 4] = p2[i].Y[0];\n input[i * 6 + 5] = p2[i].Y[1];\n }\n uint[1] memory out;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-opcode-failed\");\n return out[0] != 0;\n }\n /// Convenience method for a pairing check for two pairs.\n function pairingProd2(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](2);\n G2Point[] memory p2 = new G2Point[](2);\n p1[0] = a1;\n p1[1] = b1;\n p2[0] = a2;\n p2[1] = b2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for three pairs.\n function pairingProd3(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](3);\n G2Point[] memory p2 = new G2Point[](3);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for four pairs.\n function pairingProd4(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2,\n G1Point memory d1,\n G2Point memory d2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](4);\n G2Point[] memory p2 = new G2Point[](4);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p1[3] = d1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n p2[3] = d2;\n return pairing(p1, p2);\n }\n}\ncontract CurvyInsertionVerifierAlpha_2 {\n using Pairing for *;\n struct VerifyingKey {\n Pairing.G1Point alfa1;\n Pairing.G2Point beta2;\n Pairing.G2Point gamma2;\n Pairing.G2Point delta2;\n Pairing.G1Point[] IC;\n }\n struct Proof {\n Pairing.G1Point A;\n Pairing.G2Point B;\n Pairing.G1Point C;\n }\n function verifyingKey() internal pure returns (VerifyingKey memory vk) {\n vk.alfa1 = Pairing.G1Point(\n 16428432848801857252194528405604668803277877773566238944394625302971855135431,\n 16846502678714586896801519656441059708016666274385668027902869494772365009666\n );\n\n vk.beta2 = Pairing.G2Point(\n [\n 3182164110458002340215786955198810119980427837186618912744689678939861918171,\n 16348171800823588416173124589066524623406261996681292662100840445103873053252\n ],\n [\n 4920802715848186258981584729175884379674325733638798907835771393452862684714,\n 19687132236965066906216944365591810874384658708175106803089633851114028275753\n ]\n );\n vk.gamma2 = Pairing.G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n vk.delta2 = Pairing.G2Point(\n [\n 18636305219060197755142552798859754992691237779368175144321965215614772886749,\n 20631961236040874040284325043922269483493386739263319339179566539669024091553\n ],\n [\n 6062467770915580792523479562164363142131272842624386565050670208025880943712,\n 5683038379984125016950864290616138890020909462459316831254293410267557232813\n ]\n );\n vk.IC = new Pairing.G1Point[](5);\n\n vk.IC[0] = Pairing.G1Point(\n 5816405080132073842932636331548798060287333642513578277180259722519592795524,\n 167846514636555010335339211314249629625345112505210789316691533712824745017\n );\n\n vk.IC[1] = Pairing.G1Point(\n 16584502374027503506024692833264286792457678958231145828389358929597017385713,\n 15748689222547201941193319824722912430230667032882892650015734892750472090725\n );\n\n vk.IC[2] = Pairing.G1Point(\n 21809942545528186761024818449976149188699553835331594187000245837157587253784,\n 14731189013652074114558457413733648844549518028992110266510193006020163640258\n );\n\n vk.IC[3] = Pairing.G1Point(\n 12375928931499227586057462745689681279605957098146559032552961095082288974384,\n 21382385962682560488728021197264829649373546209573568813651131435191806663006\n );\n\n vk.IC[4] = Pairing.G1Point(\n 11590169247667311309535152367467028564534113649694348861287888388789778372825,\n 10050997091330424673052365058770795074460689984708190359138561322568592225656\n );\n }\n function verify(uint[] memory input, Proof memory proof) internal view returns (uint) {\n uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n VerifyingKey memory vk = verifyingKey();\n require(input.length + 1 == vk.IC.length, \"verifier-bad-input\");\n // Compute the linear combination vk_x\n Pairing.G1Point memory vk_x = Pairing.G1Point(0, 0);\n for (uint i = 0; i < input.length; i++) {\n require(input[i] < snark_scalar_field, \"verifier-gte-snark-scalar-field\");\n vk_x = Pairing.addition(vk_x, Pairing.scalar_mul(vk.IC[i + 1], input[i]));\n }\n vk_x = Pairing.addition(vk_x, vk.IC[0]);\n if (\n !Pairing.pairingProd4(\n Pairing.negate(proof.A),\n proof.B,\n vk.alfa1,\n vk.beta2,\n vk_x,\n vk.gamma2,\n proof.C,\n vk.delta2\n )\n ) return 1;\n return 0;\n }\n /// @return r bool true if proof is valid\n function verifyProof(\n uint[2] memory a,\n uint[2][2] memory b,\n uint[2] memory c,\n uint[4] memory input\n ) public view returns (bool r) {\n Proof memory proof;\n proof.A = Pairing.G1Point(a[0], a[1]);\n proof.B = Pairing.G2Point([b[0][0], b[0][1]], [b[1][0], b[1][1]]);\n proof.C = Pairing.G1Point(c[0], c[1]);\n uint[] memory inputValues = new uint[](input.length);\n for (uint i = 0; i < input.length; i++) {\n inputValues[i] = input[i];\n }\n if (verify(inputValues, proof) == 0) {\n return true;\n } else {\n return false;\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14.json b/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14.json
deleted file mode 100644
index 2a021b6..0000000
--- a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/utils/PoseidonT4.sol": "project/contracts/aggregator-alpha/utils/PoseidonT4.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf.json b/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf.json
deleted file mode 100644
index 22242df..0000000
--- a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyInsertionVerifierAlpha_2_2 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 20307802206310835049281446719619406914403408233534023009065534288114617826473;\n uint256 constant alphay = 5124923528349004096804802867681163296253794121526069691105337288056989236534;\n uint256 constant betax1 = 17665584761811172121608977391651659832381211132533915972221722990910032624526;\n uint256 constant betax2 = 20634947832892786903702098392181315569158565212553131507288743678171240259127;\n uint256 constant betay1 = 14170370701364050801543403272076467220544732849936498879655467551776691049762;\n uint256 constant betay2 = 3981022164671254524634818017405389124636055168959450938940336390298178068387;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 8324458164872580116890275898155248989588293942324575877012805566566499276728;\n uint256 constant deltax2 = 8315309777885305610111807473453936168191945213991206111039245717203885893351;\n uint256 constant deltay1 = 7882777314230858165213889738077912354123609446151206037361232958412563127686;\n uint256 constant deltay2 = 12547494205828438908997366082022218578006480853790971582035574650149105921917;\n\n\n uint256 constant IC0x = 6892060391983583930786695607356201710633476603378493079140130305061253027956;\n uint256 constant IC0y = 19080513010577291544096152944295682098544960004869191446276625294423342895423;\n\n uint256 constant IC1x = 2963012065475003042271739402030206132721261823221997567008785725181941320123;\n uint256 constant IC1y = 9577798803486024577782087417325886468350268769123545804460990397049802395332;\n\n uint256 constant IC2x = 896693100646333969295278520057034307353923912762387119798142505789755794910;\n uint256 constant IC2y = 18401215118615681028646813305991791500210052969133418321764793803415915217356;\n\n uint256 constant IC3x = 8678736677087893343210029059877270687079384428934088844145551630105386635454;\n uint256 constant IC3y = 7641653529471813483495008224199427350806682431466620696180348099838063513182;\n\n uint256 constant IC4x = 1419338030980550849687672964605247848460934958329247722331319767569137152200;\n uint256 constant IC4y = 2768820051961925877239732948059596900621163756977367880461149400586087247362;\n\n\n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[4] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n\n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n\n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n\n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n\n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n\n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n\n checkField(calldataload(add(_pubSignals, 0)))\n\n checkField(calldataload(add(_pubSignals, 32)))\n\n checkField(calldataload(add(_pubSignals, 64)))\n\n checkField(calldataload(add(_pubSignals, 96)))\n\n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json b/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
deleted file mode 100644
index e4ce59c..0000000
--- a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139.json b/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139.json
deleted file mode 100644
index d60dd44..0000000
--- a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyWithdrawVerifierAlpha_2_2 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 12397805951025518106727837530396484148707566518486264449692018677592715552738;\n uint256 constant alphay = 15955090815437592355277639300964029657297847031418701683987115570774046891084;\n uint256 constant betax1 = 4558033428938724707702173270530051784881875483362452783309319477109892316105;\n uint256 constant betax2 = 562684918113878349440529415978735829020597426398767547815813179569677877300;\n uint256 constant betay1 = 20489741225546273474807268360309498543857989566183651420924474108165432690449;\n uint256 constant betay2 = 454381379487956449014758402076019864127573099149576738294140161985720735727;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 1942957736037963101203219158469259529546799241990758433727523856964538100073;\n uint256 constant deltax2 = 18751923381200656298966034357393007161012447906702590224817337765901518639673;\n uint256 constant deltay1 = 1133999629005264953340361763833931385589890012974815573425435607942024998386;\n uint256 constant deltay2 = 14471269438293025701528144565650621453664657630625879213448935801370895962940;\n\n\n uint256 constant IC0x = 11968520527261008482201395429648269043035616497073888658724571012437789293939;\n uint256 constant IC0y = 5136251148319110970366250455217987647549782888975639692208545140414393137884;\n\n uint256 constant IC1x = 5975241901947889428732629350826663755899042053573889198253119292209887821040;\n uint256 constant IC1y = 2685690711649235809807871684645747831411670364944637928549630358451580743776;\n\n uint256 constant IC2x = 21457725883524874632812608873663348299725989674105072179521462800873159704544;\n uint256 constant IC2y = 19168217719060062389194429118110295922878525697032925549314953343761367307141;\n\n uint256 constant IC3x = 17554887761244498448299647193645089417418333466521419290903975536912994480102;\n uint256 constant IC3y = 6828503642628660310065798863926994844602749634343008753314631578060116317289;\n\n uint256 constant IC4x = 18045958587858551125780098548280608486861406147719724376886960587385758892570;\n uint256 constant IC4y = 1460992944153042284168728471643688563838047682787154519800969757480118977318;\n\n uint256 constant IC5x = 8036932202895490274341216374336553590284129118220623742481357002018210069085;\n uint256 constant IC5y = 18124381701282194246396478048337342484804646549782698384328525226734865874217;\n\n uint256 constant IC6x = 20732565017826841759780149484537562794481082473815326973722686385643825053232;\n uint256 constant IC6y = 1578295143682207919150217030105921698678835562616948345397787740004184473466;\n\n uint256 constant IC7x = 13336419499841102064953828107563315860524065147821200507183965277570290809701;\n uint256 constant IC7y = 15646739618986350809196316363572210110061458933904816195180902726350713059476;\n\n uint256 constant IC8x = 3781871953990367480957688085798233518568839779161221598822628397760557895286;\n uint256 constant IC8y = 12817226393979548789463163683773821122513428271793963480322864256370266927153;\n\n uint256 constant IC9x = 2926575412652084811061107906584177183682681890851185080729303468987134565693;\n uint256 constant IC9y = 6977667946282706236499241992533773181650515025258779907882853261697686173390;\n\n uint256 constant IC10x = 13730737400268905683628732665166925183849825441370098666588386862696253859993;\n uint256 constant IC10y = 21232995117437150082021144389671781866736648491602691192891602074767930210292;\n\n\n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[10] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n\n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n\n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n\n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n\n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n\n g1_mulAccC(_pVk, IC5x, IC5y, calldataload(add(pubSignals, 128)))\n\n g1_mulAccC(_pVk, IC6x, IC6y, calldataload(add(pubSignals, 160)))\n\n g1_mulAccC(_pVk, IC7x, IC7y, calldataload(add(pubSignals, 192)))\n\n g1_mulAccC(_pVk, IC8x, IC8y, calldataload(add(pubSignals, 224)))\n\n g1_mulAccC(_pVk, IC9x, IC9y, calldataload(add(pubSignals, 256)))\n\n g1_mulAccC(_pVk, IC10x, IC10y, calldataload(add(pubSignals, 288)))\n\n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n\n checkField(calldataload(add(_pubSignals, 0)))\n\n checkField(calldataload(add(_pubSignals, 32)))\n\n checkField(calldataload(add(_pubSignals, 64)))\n\n checkField(calldataload(add(_pubSignals, 96)))\n\n checkField(calldataload(add(_pubSignals, 128)))\n\n checkField(calldataload(add(_pubSignals, 160)))\n\n checkField(calldataload(add(_pubSignals, 192)))\n\n checkField(calldataload(add(_pubSignals, 224)))\n\n checkField(calldataload(add(_pubSignals, 256)))\n\n checkField(calldataload(add(_pubSignals, 288)))\n\n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f.json b/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f.json
deleted file mode 100644
index 190f7aa..0000000
--- a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyAggregationVerifierAlpha_2_2_2 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 12397805951025518106727837530396484148707566518486264449692018677592715552738;\n uint256 constant alphay = 15955090815437592355277639300964029657297847031418701683987115570774046891084;\n uint256 constant betax1 = 4558033428938724707702173270530051784881875483362452783309319477109892316105;\n uint256 constant betax2 = 562684918113878349440529415978735829020597426398767547815813179569677877300;\n uint256 constant betay1 = 20489741225546273474807268360309498543857989566183651420924474108165432690449;\n uint256 constant betay2 = 454381379487956449014758402076019864127573099149576738294140161985720735727;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 14247188116453405673621645482734779597271943579236786988002822486035578351827;\n uint256 constant deltax2 = 19127457743533062382695057246317969331583652196516180652505167533941470596184;\n uint256 constant deltay1 = 1120896676694033813888539165134426369540073925998956380068766205657266649164;\n uint256 constant deltay2 = 11509882780442288397461078955924788953216456968851718873762534083798685470176;\n\n\n uint256 constant IC0x = 29462445247651336873197670218881433811515270657621608123062437811400729293;\n uint256 constant IC0y = 18171755157403336899093830921271746363256651403384351735695773262049736733550;\n\n uint256 constant IC1x = 20155116508805270335695092444982456411255426185965433598991038764554589237491;\n uint256 constant IC1y = 15100236777573876942404435988104314855338324214411252535388491438352277620011;\n\n uint256 constant IC2x = 10211871721893502392904500352667359944639931168739288628275746498444439334624;\n uint256 constant IC2y = 14857576678067996171949154311157731596082175516312363029732523714738213679225;\n\n uint256 constant IC3x = 17681178928244319555205465208759196004958135576922343337773782176967565453923;\n uint256 constant IC3y = 12020350826305074268886914285212991819930696406522096455169685411373063924283;\n\n uint256 constant IC4x = 15990091135939845008053796985720708958381089922139813153004307037770120415376;\n uint256 constant IC4y = 14686431646476347283962842352013379254853767901657891326891810060612370131980;\n\n uint256 constant IC5x = 9836802977203983623311722609159922779452226468276418069924737841205211059775;\n uint256 constant IC5y = 5851543777081950781696453016189466308824375346225749203286800288308819146995;\n\n uint256 constant IC6x = 20494598241570455849918685888437752184000806835792517335988569390529750670399;\n uint256 constant IC6y = 5118171864497209081972949748612803357992268865433760622407683235582888296730;\n\n uint256 constant IC7x = 4161116648736026602325932141983145072422766799723371889670488259084982158410;\n uint256 constant IC7y = 9823852613097441041513408079495633594306721875095369575303676346788966932542;\n\n uint256 constant IC8x = 18765382825961060386998956112280419451294524096891700144870842762014869263482;\n uint256 constant IC8y = 19072335486260980952513432441473964489080839652759276569808438095375047060405;\n\n uint256 constant IC9x = 13461757427291354529150925761759132586768268951212262050759971788739599457371;\n uint256 constant IC9y = 4798781689873879774176109834716065302885296520372365401475518178120364765053;\n\n uint256 constant IC10x = 2825946145004188674530444966368925818974257222272928787863708902753465126277;\n uint256 constant IC10y = 1132081428014299195407240376318746218027138258204471169466177788741899724649;\n\n uint256 constant IC11x = 6037061286657655112833173191022971038494250639700090848969212974351407272955;\n uint256 constant IC11y = 14288245102826282599683294768365607032501106839126325328556517607105285011189;\n\n uint256 constant IC12x = 16666416945139505069027327107503900232722595465132986777080649891257196764894;\n uint256 constant IC12y = 16479310741244346892769904991381444059360278176600162038328339853031393579364;\n\n uint256 constant IC13x = 8457614266693283160896406297631606953977487470037761765606926637481574421021;\n uint256 constant IC13y = 7268797945103287108426579652981774503857175386562341294721963484244801300809;\n\n uint256 constant IC14x = 17506341415928441858395452534096119812461333575351484400640668498682876605148;\n uint256 constant IC14y = 3698938041800489752726811068263827706724617934585101138986055289302086103389;\n\n\n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[14] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n\n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n\n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n\n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n\n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n\n g1_mulAccC(_pVk, IC5x, IC5y, calldataload(add(pubSignals, 128)))\n\n g1_mulAccC(_pVk, IC6x, IC6y, calldataload(add(pubSignals, 160)))\n\n g1_mulAccC(_pVk, IC7x, IC7y, calldataload(add(pubSignals, 192)))\n\n g1_mulAccC(_pVk, IC8x, IC8y, calldataload(add(pubSignals, 224)))\n\n g1_mulAccC(_pVk, IC9x, IC9y, calldataload(add(pubSignals, 256)))\n\n g1_mulAccC(_pVk, IC10x, IC10y, calldataload(add(pubSignals, 288)))\n\n g1_mulAccC(_pVk, IC11x, IC11y, calldataload(add(pubSignals, 320)))\n\n g1_mulAccC(_pVk, IC12x, IC12y, calldataload(add(pubSignals, 352)))\n\n g1_mulAccC(_pVk, IC13x, IC13y, calldataload(add(pubSignals, 384)))\n\n g1_mulAccC(_pVk, IC14x, IC14y, calldataload(add(pubSignals, 416)))\n\n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n\n checkField(calldataload(add(_pubSignals, 0)))\n\n checkField(calldataload(add(_pubSignals, 32)))\n\n checkField(calldataload(add(_pubSignals, 64)))\n\n checkField(calldataload(add(_pubSignals, 96)))\n\n checkField(calldataload(add(_pubSignals, 128)))\n\n checkField(calldataload(add(_pubSignals, 160)))\n\n checkField(calldataload(add(_pubSignals, 192)))\n\n checkField(calldataload(add(_pubSignals, 224)))\n\n checkField(calldataload(add(_pubSignals, 256)))\n\n checkField(calldataload(add(_pubSignals, 288)))\n\n checkField(calldataload(add(_pubSignals, 320)))\n\n checkField(calldataload(add(_pubSignals, 352)))\n\n checkField(calldataload(add(_pubSignals, 384)))\n\n checkField(calldataload(add(_pubSignals, 416)))\n\n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f.json b/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f.json
deleted file mode 100644
index f734896..0000000
--- a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol": {
- "content": "//\n// Copyright 2017 Christian Reitwiessner\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n//\n// 2019 OKIMS\n// ported to solidity 0.6\n// fixed linter warnings\n// added requiere error messages\n//\n//\n// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.28;\nlibrary Pairing {\n struct G1Point {\n uint X;\n uint Y;\n }\n // Encoding of field elements is: X[0] * z + X[1]\n struct G2Point {\n uint[2] X;\n uint[2] Y;\n }\n /// @return the generator of G1\n function P1() internal pure returns (G1Point memory) {\n return G1Point(1, 2);\n }\n /// @return the generator of G2\n function P2() internal pure returns (G2Point memory) {\n // Original code point\n return\n G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n\n /*\n // Changed by Jordi point\n return G2Point(\n [10857046999023057135944570762232829481370756359578518086990519993285655852781,\n 11559732032986387107991004021392285783925812861821192530917403151452391805634],\n [8495653923123431417604973247489272438418190587263600148770280649306958101930,\n 4082367875863433681332203403145435568316851327593401208105741076214120093531]\n );\n*/\n }\n /// @return r the negation of p, i.e. p.addition(p.negate()) should be zero.\n function negate(G1Point memory p) internal pure returns (G1Point memory r) {\n // The prime q in the base field F_q for G1\n uint q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n if (p.X == 0 && p.Y == 0) return G1Point(0, 0);\n return G1Point(p.X, q - (p.Y % q));\n }\n /// @return r the sum of two points of G1\n function addition(G1Point memory p1, G1Point memory p2) internal view returns (G1Point memory r) {\n uint[4] memory input;\n input[0] = p1.X;\n input[1] = p1.Y;\n input[2] = p2.X;\n input[3] = p2.Y;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-add-failed\");\n }\n /// @return r the product of a point on G1 and a scalar, i.e.\n /// p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.\n function scalar_mul(G1Point memory p, uint s) internal view returns (G1Point memory r) {\n uint[3] memory input;\n input[0] = p.X;\n input[1] = p.Y;\n input[2] = s;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-mul-failed\");\n }\n /// @return the result of computing the pairing check\n /// e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n /// For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n /// return true.\n function pairing(G1Point[] memory p1, G2Point[] memory p2) internal view returns (bool) {\n require(p1.length == p2.length, \"pairing-lengths-failed\");\n uint elements = p1.length;\n uint inputSize = elements * 6;\n uint[] memory input = new uint[](inputSize);\n for (uint i = 0; i < elements; i++) {\n input[i * 6 + 0] = p1[i].X;\n input[i * 6 + 1] = p1[i].Y;\n input[i * 6 + 2] = p2[i].X[0];\n input[i * 6 + 3] = p2[i].X[1];\n input[i * 6 + 4] = p2[i].Y[0];\n input[i * 6 + 5] = p2[i].Y[1];\n }\n uint[1] memory out;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-opcode-failed\");\n return out[0] != 0;\n }\n /// Convenience method for a pairing check for two pairs.\n function pairingProd2(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](2);\n G2Point[] memory p2 = new G2Point[](2);\n p1[0] = a1;\n p1[1] = b1;\n p2[0] = a2;\n p2[1] = b2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for three pairs.\n function pairingProd3(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](3);\n G2Point[] memory p2 = new G2Point[](3);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for four pairs.\n function pairingProd4(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2,\n G1Point memory d1,\n G2Point memory d2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](4);\n G2Point[] memory p2 = new G2Point[](4);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p1[3] = d1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n p2[3] = d2;\n return pairing(p1, p2);\n }\n}\ncontract CurvyAggregationVerifierAlpha_2 {\n using Pairing for *;\n struct VerifyingKey {\n Pairing.G1Point alfa1;\n Pairing.G2Point beta2;\n Pairing.G2Point gamma2;\n Pairing.G2Point delta2;\n Pairing.G1Point[] IC;\n }\n struct Proof {\n Pairing.G1Point A;\n Pairing.G2Point B;\n Pairing.G1Point C;\n }\n function verifyingKey() internal pure returns (VerifyingKey memory vk) {\n vk.alfa1 = Pairing.G1Point(\n 16428432848801857252194528405604668803277877773566238944394625302971855135431,\n 16846502678714586896801519656441059708016666274385668027902869494772365009666\n );\n\n vk.beta2 = Pairing.G2Point(\n [\n 3182164110458002340215786955198810119980427837186618912744689678939861918171,\n 16348171800823588416173124589066524623406261996681292662100840445103873053252\n ],\n [\n 4920802715848186258981584729175884379674325733638798907835771393452862684714,\n 19687132236965066906216944365591810874384658708175106803089633851114028275753\n ]\n );\n vk.gamma2 = Pairing.G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n vk.delta2 = Pairing.G2Point(\n [\n 1825820289445528230748516471303857211851647812178238644398694711892060335102,\n 4501157781715747347326168237438946199631233637039603190454156790024140170532\n ],\n [\n 2976320905856289398462407715158750554758711795923018343152013782540268573338,\n 8065057629097218075468818461668875107508867318519822752109695059605063759743\n ]\n );\n vk.IC = new Pairing.G1Point[](15);\n\n vk.IC[0] = Pairing.G1Point(\n 11200124153184451635609882308695941695299065822515604818428490874957516968544,\n 351599459091154081834565481907831295536571009664154516711371514507534537924\n );\n\n vk.IC[1] = Pairing.G1Point(\n 17523841805234438479622380916346797360075392171607980673630575387049417242504,\n 13289142455981019844666631116997357642308096477675875239365376390530915636565\n );\n\n vk.IC[2] = Pairing.G1Point(\n 16746757079611460155423717702821756597011979265569706823451544529394680331569,\n 5895458274955609861385562616131856787903006372495797294609570835562705630636\n );\n\n vk.IC[3] = Pairing.G1Point(\n 14127482189652462155064731555835502755013656834412536971159921420581690974934,\n 20972656051236665024151562033324700560519205436455326893079525751320282585826\n );\n\n vk.IC[4] = Pairing.G1Point(\n 14580157399388369037332019611784129511147010464280832254037678387990510320216,\n 1156244037397095377907506151159747807385598085151953095125221542232459781707\n );\n\n vk.IC[5] = Pairing.G1Point(\n 14590871185281906275792434443685212134229407115720576014231924109918532363423,\n 5959209397832805552448947593117074559622964817162361505512971088303811736123\n );\n\n vk.IC[6] = Pairing.G1Point(\n 20201034757384523034750370638651840799381923260057426513046720249367942927662,\n 13310240425583744609524200316716161773019379466271897428566996672193783474644\n );\n\n vk.IC[7] = Pairing.G1Point(\n 12993571855859323326789126599640048145924820083081470964551627062894104638932,\n 2521467008216835644009977822413367714654763996963405057427943471742378187229\n );\n\n vk.IC[8] = Pairing.G1Point(\n 644479126338776177875611439307149801940697823408876598202163177696812056230,\n 3259608218321073927123799071684570288276186889110648470965811205442418453318\n );\n\n vk.IC[9] = Pairing.G1Point(\n 18616248727979558767963045303042732245655414233405863537147546654506877648919,\n 21007181885380641107567124859608576630313975132949218965313917530068026034348\n );\n\n vk.IC[10] = Pairing.G1Point(\n 16542765496795800099762929935049082290142877961245786125523420623234647385136,\n 20936230615665064995225716565795322981492740487463861151827401558596300599229\n );\n\n vk.IC[11] = Pairing.G1Point(\n 9256351824249849328111189255216609819183023880083950734211844506616465067031,\n 7708821775396992189236181896073504806661486656527392329166820850192121208270\n );\n\n vk.IC[12] = Pairing.G1Point(\n 194682654485999029052793081152618414270293252026507044373168224453479917315,\n 3149660330041749446855662611494401400910302078867553834930485587333418413096\n );\n\n vk.IC[13] = Pairing.G1Point(\n 740646390511892530424670165807113591122942423540196858609773072637607592792,\n 4800156649851932114269991997960979152383472708142020802762828152081927430386\n );\n\n vk.IC[14] = Pairing.G1Point(\n 4813266068119240960813116245992549920458196449520670498440968746560888020985,\n 8202677805642766197766182170871009520342188751173046950187476642267562851673\n );\n }\n function verify(uint[] memory input, Proof memory proof) internal view returns (uint) {\n uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n VerifyingKey memory vk = verifyingKey();\n require(input.length + 1 == vk.IC.length, \"verifier-bad-input\");\n // Compute the linear combination vk_x\n Pairing.G1Point memory vk_x = Pairing.G1Point(0, 0);\n for (uint i = 0; i < input.length; i++) {\n require(input[i] < snark_scalar_field, \"verifier-gte-snark-scalar-field\");\n vk_x = Pairing.addition(vk_x, Pairing.scalar_mul(vk.IC[i + 1], input[i]));\n }\n vk_x = Pairing.addition(vk_x, vk.IC[0]);\n if (\n !Pairing.pairingProd4(\n Pairing.negate(proof.A),\n proof.B,\n vk.alfa1,\n vk.beta2,\n vk_x,\n vk.gamma2,\n proof.C,\n vk.delta2\n )\n ) return 1;\n return 0;\n }\n /// @return r bool true if proof is valid\n function verifyProof(\n uint[2] memory a,\n uint[2][2] memory b,\n uint[2] memory c,\n uint[14] memory input\n ) public view returns (bool r) {\n Proof memory proof;\n proof.A = Pairing.G1Point(a[0], a[1]);\n proof.B = Pairing.G2Point([b[0][0], b[0][1]], [b[1][0], b[1][1]]);\n proof.C = Pairing.G1Point(c[0], c[1]);\n uint[] memory inputValues = new uint[](input.length);\n for (uint i = 0; i < input.length; i++) {\n inputValues[i] = input[i];\n }\n if (verify(inputValues, proof) == 0) {\n return true;\n } else {\n return false;\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8.json b/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8.json
deleted file mode 100644
index 1f0ad7e..0000000
--- a/ignition/deployments/production_ethereum-sepolia/build-info/solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { PoseidonT4} from \"./utils/PoseidonT4.sol\";\n\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { ICurvyInsertionVerifier, ICurvyAggregationVerifier, ICurvyWithdrawVerifier } from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV2 is Initializable, UUPSUpgradeable, OwnableUpgradeable {\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner, address curvyVaultProxyAddress) public initializer {\n maxDeposits = 2;\n maxWithdrawals = 2;\n maxAggregations = 2;\n\n __Ownable_init(initialOwner);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdate memory _update) external onlyOwner returns (bool)\n {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);\n }\n // TODO: We probably don't need this.\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVault(_update.curvyVault);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function depositNote(\n address from,\n CurvyTypes.Note memory note,\n bytes memory signature\n ) public {\n // TODO: Gas fee\n curvyVault.transfer(CurvyTypes.MetaTransaction(from, address(this), note.token, note.amount, 0, CurvyTypes.MetaTransactionType.Transfer), signature);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n require(_pendingIdsQueue[noteId], \"CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!\");\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n require(\n _notesTreeRoot == publicInputs[numPublicInputs - 2],\n \"CurvyAggregator#commitDepositBatch: Invalid notes root!\"\n );\n\n require(\n insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitDepositBatch: Invalid proof!\"\n );\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n require(_notesTreeRoot == oldNotesTreeRoot, \"CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!\");\n require(_nullifiersTreeRoot == oldNullifiersTreeRoot, \"CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!\");\n\n require(\n aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitAggregationBatch: Invalid proof!\"\n );\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[10] memory publicInputs\n ) public returns (bool) {\n\n require(publicInputs[3] == _nullifiersTreeRoot, \"CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!\");\n require(publicInputs[2] == _notesTreeRoot, \"CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!\");\n\n require(\n withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!\"\n );\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[4 + i];\n address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n destinationAddress,\n publicInputs[numPublicInputs - 1],\n amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n }\n }\n\n // Fee collection\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n owner(),\n publicInputs[numPublicInputs - 1],\n publicInputs[1],\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {Withdraw, Transfer, Deposit}\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/deployed_addresses.json b/ignition/deployments/production_ethereum-sepolia/deployed_addresses.json
deleted file mode 100644
index 0de3248..0000000
--- a/ignition/deployments/production_ethereum-sepolia/deployed_addresses.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2": "0x28bb166eDA13d8cc6B9049c281676841A9BAF9c1",
- "CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2": "0xA982c87268BE6E6F0b7EB5c58d6DE46713fFA71a",
- "CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2": "0x41bF9d780fcc2365f35F20D6A8EA7232F1d7c9A8",
- "CurvyAggregatorAlpha#PoseidonT4": "0x3f4D81532C2F76d03c1930DC170Ef4264B9D71B1",
- "CurvyVault#CurvyVaultV1Implementation": "0x8817e5E1312072e6aBb32a417856DaD7cd3c4f1e",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation": "0xd0d71b5B00aB9Ab862e38CC1DC6fB57BD1C2C30f",
- "CurvyVault#ERC1967Proxy": "0xa85772c59D2c1c59a1df356f19C6bf1a57c791db",
- "CurvyVault#CurvyVaultV1": "0xa85772c59D2c1c59a1df356f19C6bf1a57c791db",
- "CurvyAggregatorAlpha#ERC1967Proxy": "0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV1": "0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV2": "0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation": "0xefa47Ffb732c16e4c4bd39e3463da3c40a666972",
- "CurvyVault#CurvyVaultV2": "0xa85772c59D2c1c59a1df356f19C6bf1a57c791db",
- "CurvyVault#CurvyVaultV2Implementation": "0x1D47C3130cd0824F07ef22ff1A51efb4336FF4A8",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV3": "0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation": "0x5CFA880Cd3230e417097fB29d9A78e9E582A15c9",
- "PortalFactoryAggregatorModule#PortalFactory": "0x3e101380687729eE7dBc13cAc20aa86a6450c0c4",
- "PortalFactoryModule#PortalFactory": "0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16",
- "CurvyAggregatorAlpha#NewInsertionVerifier_v2": "0xA50be6A35eDa38C67B975a2cF7639FBB72a5d0ff",
- "CurvyAggregatorAlpha#NewAggregationVerifier_v2": "0x1F44e20357733D2Be1F765dBea42fbaf4d00c360",
- "CurvyAggregatorAlpha#NewWithdrawVerifier_v2": "0x1950c025C152B668A56f1706a28dc23cA0F3545A"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum-sepolia/journal.jsonl b/ignition/deployments/production_ethereum-sepolia/journal.jsonl
deleted file mode 100644
index 561f099..0000000
--- a/ignition/deployments/production_ethereum-sepolia/journal.jsonl
+++ /dev/null
@@ -1,137 +0,0 @@
-
-{"chainId":11155111,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","constructorArgs":[],"contractName":"CurvyAggregationVerifierAlpha_2_2_2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b50610a0c8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610974565b610054565b604051901515815260200160405180910390f35b5f610881565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7e10acd6d4ce082a72b623deeac4b4c1c526b8ab76ab54f82d13b63a6f23e2cd85527f282cd953fc7bc024a80710dd645d4cd8e4ef6d10eb7403a76618f96eddb5336e60208601525f608086018661018d87357f21626e5f52776516ac007ae23e14ca016f4e7623b79f63f4ab59482e4872c52b7f2c8f6445390acb60223f07dcf516fee816534c9940dc8d59595786b35106f0f38461008c565b6101dd60208801357f20d91723fc6a5cff2a4d8bd53db8c7647c86b9245b27d7042634dd317becf0797f1693b6ee023f9ef0c9e7cb1d290717e3df5f6d2154ba30f3a6a833f3171c2ee08461008c565b61022d60408801357f1a9347082efac79b5d64033c95c7f2190984cd2a19884b4ad26162ea47e0ea3b7f27173150520b68cc7844935166da0f68924aeccc8a30ae9ca0768eb597cf2a638461008c565b61027d60608801357f207839c9f296371e642b17ab83a64fca9b9044d10b0f6a5319ae0e2ee2a76c0c7f235a1223ea30a75c93efd51c3abd465c611878ebc52d9830e61978f914d7c8908461008c565b6102cd60808801357f0cefdb3db08f930f2ed5534a797dc304a1189c61a2835aabb6c5831f0ca838f37f15bf6ee50fbb6b6a07695b99fa739330553161a7de0b0380556b61ebe950563f8461008c565b61031d60a08801357f0b50c85999c665bad3101fb618ca967aa4860c1c07f4c54bcf692b7b30b2c11a7f2d4f881288f63fa77f63eaad252bd5efbbbda01e21976fb645aaadd286929c3f8461008c565b61036d60c08801357f15b81a815c06b38295623648d75372799d4755f7a0b74f7bd655f5f64715a03e7f09331bcaac14f8bcf495ed09470e01f3c268f1fdb4e019c19c836e2c8310044a8461008c565b6103bd60e08801357f2a2a8f30efa6592960fa69f190f96c5f0b432948973a9c53269de3e6b8abebb57f297cd48dfb07dc7ad0120ed8151942d511ebca1b71a736b61ac6375e2a51947a8461008c565b61040e6101008801357f0a9c03a1994f221c057f75855cb14a95329dde81e32a7a8660a3828c46e4af7d7f1dc315ae7bd487ac77c690ee6e5d2fe7bbfd5ae36935ffac15114a4f2748dc5b8461008c565b61045f6101208801357f0280bc41f56d2038589161b139f5c3704eeb19e9da2f170a5b4e977678a727697f063f6dc839c18a58049574763b3de59bc2c20609b01907e66dcfe264b091cd858461008c565b6104b06101408801357f1f96dc322de85ba0a31ce878d61f5047eba9ad25489230b888ede7739aeb36f57f0d58db0890c2f6ee0bda8261a76d6ad9da96e539d0df7046cd0799f0176a53fb8461008c565b6105016101608801357f246ef5979ae9aea616e30dbab411c28406510a656ddd2043a5b9211d31edd1647f24d8db926da6b7c4a17804818d83058eb0f5dfa6163c3922aa9a7edeb4b85ede8461008c565b6105526101808801357f1011fe6c75f7c6cf1a8a62ff71387fef8a19e46d0af37193380a7c603f7529497f12b2d70c94e401c6f3822578fb27c67f97bf1827a1b9e0cc1c2fb34a68a6521d8461008c565b6105a36101a08801357f082d86555b48de36b698d5bc0cb44148b3a0eb1d3b992638453070deb120b15d7f26b43cf48f595a8e3e2a3b8515b7df9db6ffebecbc968995b4071e0f2dad32dc8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1f7f9f69ea5e04a56ee102635a0fcdbefd57b4c7f37a1e0d903ba69281a5f0d36102808201527f2a49c1e717e044ad7bc38e0b841e28e08eebe51b906016be33a2ff2d74f10c586102a08201527f027a67b0798b9350cd04c5ce09117b7e660dbe3e1449f667ea13c3c43255f84c6102c08201527f19725ce00771a3c317cb70a3c5856f91c6ac2313426f5863fcd93969d2384de06102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108985f84013561005a565b6108a5602084013561005a565b6108b2604084013561005a565b6108bf606084013561005a565b6108cc608084013561005a565b6108d960a084013561005a565b6108e660c084013561005a565b6108f360e084013561005a565b61090161010084013561005a565b61090f61012084013561005a565b61091d61014084013561005a565b61092b61016084013561005a565b61093961018084013561005a565b6109476101a084013561005a565b610954818486888a6100f2565b9050805f5260205ff35b806040810183101561096e575f5ffd5b92915050565b5f5f5f5f6102c08587031215610988575f5ffd5b610992868661095e565b935060c08501868111156109a4575f5ffd5b6040860193506109b4878261095e565b925050856102c0860111156109c7575f5ffd5b5091949093509091610100019056fea2646970667358221220c5df5a746d614b72f69595bc69601e5559fe5a1a70d66d8b1723b65d65e2b55c64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","networkInteractionId":1,"nonce":517,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","networkInteractionId":1,"nonce":517,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000018"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xbabed2c8329e6c6ac461460042df67f68a8616cfc63b5985598a5bec952e11e5"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","constructorArgs":[],"contractName":"CurvyInsertionVerifierAlpha_2_2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506106648061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d7565b610054565b604051901515815260200160405180910390f35b5f61055c565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0f3cc497f7f2ad2db9f9a01e1d1e237e7bd547ee48d3698641bae08ce37c187485527f2a2f300a2bc9b5576e8d348d9542dedfce1dd7566c9f7ad0c7936e9508f2d13f60208601525f608086018661018e87357f152cd78e51c23961af90e069fcceb20b0358a4c13f4d05ad78f5554803410ec47f068d0161c738b8256d8f80c113a6f2adc60bf92724e5ba844434551f353109bb8461008c565b6101de60208801357f28aeb7fafb1d5864b489fac2ac75795429a84564ed301367b95bdbbda22e41cc7f01fb82a3a457b9782065bddb3961e014b8602fe337a83a253a4edbe7f9eca5de8461008c565b61022e60408801357f10e505cabab95d2954811e50e0c907e6e27d3ea37df4576cb85d2b024b758e5e7f132ffdaaa0e5fbd39240ae81be15c78f27d1a5e9f0b046bc50a19ebd0e1f50be8461008c565b61027e60608801357f061f18bbab38fe7f8eca85f2017b25f057fb908ca68d0965746884ca8b0b2e027f0323511d8b4f23d71a970779314d464e5993156eaed0970a246cd2a43da830c88461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f2ce5cf088183ccc73bfeb1244cdee7ae92ceb0e007194b0bf6c6e9819a863ca960c08201527f0b549a9abb46bc0c3ed48341aa21baa4532bca1fb1ff7a8ef409d3384eb73d3660e08201527f270e5ddc8a3d6e364fae6b353c6deedc579e522582d3d1d60036e9c43428bb8e6101008201527f2d9ef7723573eb05565ba62424d4b2f2d5a0e68d542f8c45daadb2f10a5cde376101208201527f1f542545a1550702631817615d0eac929e73ccc384d92ac156c7d3577e01d5226101408201527f08cd2dbefe01d914cd9826b6a1309de1d3c645a028b69cc3c690a05c183a9fa36101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f126779f2434a76e4e37da855f43a1df5648908e4e91eebf1e086544970eed7b86102808201527f12624c6dbae3875cc0583ab185cb81fc69d606519eef4d6140b7ac67aa6e26e76102a08201527f116d7e6cfc0480d16acdcebb03bef4a46abe3cff28a3aa60d1bf691b43679d866102c08201527f1bbda14ad6f8f4d5d33363f1d50fd72bf4b3b25d615b896c9e050098f5016f7d6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105735f84013561005a565b610580602084013561005a565b61058d604084013561005a565b61059a606084013561005a565b6105a7818486888a6100f2565b9050805f5260205ff35b80604081018310156105c1575f5ffd5b92915050565b80608081018310156105c1575f5ffd5b5f5f5f5f61018085870312156105eb575f5ffd5b6105f586866105b1565b935061060486604087016105c7565b92506106138660c087016105b1565b91506106238661010087016105c7565b90509295919450925056fea26469706673582212206f782de436746e389d2f3f8eeac94b985e369b9a2c08f0f7a2167fc9a1fa233d64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","networkInteractionId":1,"nonce":518,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","networkInteractionId":1,"nonce":518,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000018"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x1a7396756aa6053ffb9a5cde73894acf433e51dae0a7e92f3659cd40a277d8ab"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlpha_2_2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506108918061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b3660046107f9565b610054565b604051901515815260200160405180910390f35b5f61073e565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f1a75f14b8b1faa4b851f07b25985339af1f9563cb229396803fd379fead2bd7385527f0b5b03df8219c60d5be03ad52394f3d6330cf3e7cea9e656bc22982dd15cbadc60208601525f608086018661018e87357f05f00c0d109f87a8cf18b9d3052caae6027871b0d6fea2f54ca225891e16b0607f0d35ddf8253fb232d095057744ccb6f9d5887bee97ea61f885d511934169bcf08461008c565b6101de60208801357f2a60d3a69ccee567e2b57a0a42bcf19ba0d2335ceb81a2dcb71439314fea13857f2f70a47844f43803cbb4ce9a69cd5b3db4647da90f325d2ef456abea72d0bfe08461008c565b61022e60408801357f0f18cbcd1cbf7d154a35393c17382058e4b30517ab8be123af7d1951c671d4697f26cfb6e0961b50d6d1f534baef948730bec2a603ebf189eaaf72036e2a4d2fe68461008c565b61027e60608801357f033ae488254843311cd5bb9676251b2c80852d467355d37f443e17d049a503267f27e5a68de42fcbcbadd940c39e2013830c75dbb9ad6714cb768ba7d14af9421a8461008c565b6102ce60808801357f28120958d688c8a0d58372b242df5ec1c75aa124ab6f19c90c4b76b81057fd297f11c4be0f98ac33b680d4607a898dc72cdfc6d9946943b3e9f0080fe825263a5d8461008c565b61031e60a08801357f037d488c8ba35a919f4cfd44b1a9be07a0ca1ea689695c6b238ad364c47bbf7a7f2dd63748d624fd0124f265891b52eeb7d5565727b674658be4378d6e5b46be308461008c565b61036e60c08801357f2297bda45459480a6a488bd3386537b38ae11ffecb6beaec43e291d33dd2f8947f1d7c255c5e9cfa6d8457dc20e4af90332c6550fa6bea6ac80b2fcae91e31fb658461008c565b6103be60e08801357f1c564b05c0c5fc1db338de776a71a9b6408e0f1062ee5eec1ead8fe1fb68f0317f085c76b320e78e8fc1c30cd9a86ee083c737af478c344a985ff23109398c4e768461008c565b61040f6101008801357f0f6d3858a35815b73d414424416d4e35babb3e0141641fb6f11c5899b96ff6ce7f0678620b35e9ade6b5807cf7ccd5210ae099894132f0bff6345ba129e944dd3d8461008c565b6104606101208801357f2ef17308df02f12bcd04a63c4f9642e6a21bbfecd79bc266d9278cba32c0b7f47f1e5b526c2f7dbd765611c3117d2aa8924597b68d5b8d3654c375174d6affa8998461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f044bacd3d9b251fa2cdcb89c1e71c78d2d0ff824d43403d616a47c804c0469696102808201527f297536676d7cec34d41955f24cc5034a5b79d92b20c48c6d8073bc32016612396102a08201527f0281d22ffce2cf0ca8b4109517cf30ceed20be4d2ed307fda036ad8ef5e12df26102c08201527f1ffe72c016746c242459c1973b77d50d6415bb22ce31c61ee504c42c65b3d33c6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107555f84013561005a565b610762602084013561005a565b61076f604084013561005a565b61077c606084013561005a565b610789608084013561005a565b61079660a084013561005a565b6107a360c084013561005a565b6107b060e084013561005a565b6107be61010084013561005a565b6107cc61012084013561005a565b6107d9818486888a6100f2565b9050805f5260205ff35b80604081018310156107f3575f5ffd5b92915050565b5f5f5f5f610240858703121561080d575f5ffd5b61081786866107e3565b935060c0850186811115610829575f5ffd5b60408601935061083987826107e3565b925050856102408601111561084c575f5ffd5b5091949093509091610100019056fea2646970667358221220703faca2770b9c9f7e9a23c6d18d7c741c60c3262a4a3449160cfe04d5d9618164736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","networkInteractionId":1,"nonce":519,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","networkInteractionId":1,"nonce":519,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000018"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xe76d473513775d8350d030080259cd83857b5885d336356540c7cb9a63784e60"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#PoseidonT4","constructorArgs":[],"contractName":"PoseidonT4","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#PoseidonT4","futureType":"NAMED_ARTIFACT_LIBRARY_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","networkInteraction":{"data":"0x6130c0610034600b8282823980515f1a607314602857634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe7300000000000000000000000000000000000000003014608060405260043610610034575f3560e01c806320cf0a3714610038575b5f5ffd5b61004b610046366004612f90565b61005d565b60405190815260200160405180910390f35b5f610793565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f52838409099450505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f528384090994505f51602061302b5f395f51905f5284850990505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528384090993505f51602061302b5f395f51905f5283840990505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528384090992505f51602061302b5f395f51905f5282830990505f51602061302b5f395f51905f52825f51602061302b5f395f51905f52838409099150505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b5f7f265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d65f51602061302b5f395f51905f5260805106017f199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa5f51602061302b5f395f51905f5260a05106017f157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf85f51602061302b5f395f51905f5260c05106015f51602061302b5f395f51905f5283840993505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528687090992505f51602061302b5f395f51905f5282830993505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528687090991505f51602061302b5f395f51905f5281820993505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528687090990505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287097f211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87097f19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87097f21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87097f26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be30101010660a052505050610c167f13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e7f251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b9967f0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e7f2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac949026103aa565b610ca27f04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b7f0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f3675497f011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca067f0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd47386103aa565b610d2e7f0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd69414324477f28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a17f259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f7f0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e86103aa565b610dba7f1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c57f26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee757f123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf8117f0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf610063565b610e467f2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a57f2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c7f011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e55747f1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0610063565b610ed27f179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb7f1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d857f192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b7f0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d610063565b610f5e7f10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b877f064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd597f225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e087f29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c610063565b610fea7f2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db7f1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b7f1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb7f0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c610063565b6110767f20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d7f0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b7f062100eb485db06269655cf186a68532985275428450359adc99cec6960711b87f2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926610063565b6111027f26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce57f22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e07f23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b7f25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a610063565b61118e7f1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa7f248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d7297f12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da7f070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9610063565b6112197f2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde1877f04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d657e94975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e7f28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf610063565b6112a47f159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a7eb7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b647f03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b07f2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3610063565b6113307f0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb1737f2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f7f1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d7f1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f610063565b6113bc7f22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea97f0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a7f0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed7057f02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16610063565b6114487f2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d835057f2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e57f1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d07f25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16610063565b6114d47f0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac7f02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a68003557f227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a53190257f044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d610063565b6115607f25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f7f1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c7f0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e57f1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38610063565b6115ec7f21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f9597f2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce7f13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a967f0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a610063565b6116787f09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f14557f0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf7f0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a47f05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b610063565b6117047f176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c4047f1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df7f2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b7f0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335610063565b6117907f2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c77f14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def7f226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a7f2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db610063565b61181c7f0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c7f03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f37f0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c297f2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7610063565b6118a77e780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef3631821857f0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa7f1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa91467f203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78610063565b6119327f222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c7e544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac167f10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e87f10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5610063565b6119be7f04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d7f06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf047467f062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b7f2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5610063565b611a4a7f14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f13647f0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae7f011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f17f13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a610063565b611ad67f2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a7f16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d582597f278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b6077f1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106610063565b611b627f02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe67692500420257f16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf7f15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c9847f29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8610063565b611bee7f1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec7f0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de89907f1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a427f05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119610063565b611c7a7f0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf7f2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d07f09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb96507f25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d610063565b611d067f24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d00567f1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f835297f2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f627f25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2610063565b611d927f2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f639257f06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f57f23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d7f25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74610063565b611e1e7f17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd7f13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be7f265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e7f15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5610063565b611eaa7f2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e7f2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e887f18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c7f21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d610063565b611f367f11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f57f0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c7f0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe57f277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7610063565b611fc27f30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad47f221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f4217f0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb8247f224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6610063565b61204e7f1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b317f0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc7f2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b7f23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0610063565b6120da7f1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b877f174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d77f22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d27f26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3610063565b6121667f2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c8755267f29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e7f0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade4577f1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1610063565b6121f27f0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad7257f1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f7f2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac7063641137f12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2610063565b61227e7f1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a7f2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e7f08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a37f07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492610063565b61230a7f265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e7f2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff7f2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d197f18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb610063565b6123967f01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf57f2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b87f094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf604177f2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c610063565b6124227f2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd8064617f27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d0287727f154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc747f0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb610063565b6124ae7f0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c7377f1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa957f298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc7f301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71610063565b61253a7f01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b7f1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d7f0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee7f0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279610063565b6125c67f2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe597f19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d7f23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c47f2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32610063565b6126527f0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c87f19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb07f0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b357f2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267610063565b6126de7f2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d7f0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af7f240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b7f16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca610063565b61276a7f242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d17f089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c377027f18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f7f166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6610063565b6127f67f0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e9617f1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b27f17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b7f174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b610063565b6128817eccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d1587f292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e7f12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec67f2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f610063565b61290d7f1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e87f0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e7f14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f7f185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b610063565b6129997f29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c0087f05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c0146047f2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c87f0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024610063565b612a257f1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f7f1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b7f1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc7f2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314610063565b612ab07f0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d7e6e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b7f191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c7f1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5610063565b612b3c7f0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc7f16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae7f12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a7f25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d610063565b612bc87f13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc8247f11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde547f03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b767f1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089610063565b612c547f2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec7f2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e7f1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db47f0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b6103aa565b612ce07f1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b7f2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd6073687f065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc33947f2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb3876103aa565b612d6b7eb4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd790787f0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f7f2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb7f027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd6103aa565b7f1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd55f51017f12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6602051017f13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db608051017f163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d560a051015f51602061302b5f395f51905f5284850994505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528788090993505f51602061302b5f395f51905f5283840994505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528788090992505f51602061302b5f395f51905f5282830994505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528788090991505f51602061302b5f395f51905f5281820994505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528788090990505f51602061302b5f395f51905f52805f51602061302b5f395f51905f525f51602061300b5f395f51905f5284095f51602061302b5f395f51905f525f51602061306b5f395f51905f5286095f51602061302b5f395f51905f525f51602061304b5f395f51905f5288095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8a0901010106065f5260205ff35b634e487b7160e01b5f52604160045260245ffd5b5f60608284031215612fa0575f5ffd5b82601f830112612fae575f5ffd5b6040516060810181811067ffffffffffffffff82111715612fd157612fd1612f7c565b604052806060840185811115612fe5575f5ffd5b845b81811015612fff578035835260209283019201612fe7565b50919594505050505056fe1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c130644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62a2646970667358221220f6d5cfe9ef56c84b95ece8760d16164e8a9649e1f378cc0d39152a9bac67d08e64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","networkInteractionId":1,"nonce":520,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","networkInteractionId":1,"nonce":520,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000018"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x83de4f5905b00ff3e3e619da109b6811adb9c59a7f6d5810b58932da007f5c45"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyVault#CurvyVaultV1Implementation","constructorArgs":[],"contractName":"CurvyVaultV1","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV1Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205e1d810006e1c4a45d4280de3a8894a26644a7669555e5011d3a8b7d576e098564736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteractionId":1,"nonce":521,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteractionId":1,"nonce":521,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000018"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xa804edecbd99a678507dcae767a236bc653f8f1133807fdea2e04aa67ab11130"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","hash":"0xbabed2c8329e6c6ac461460042df67f68a8616cfc63b5985598a5bec952e11e5","networkInteractionId":1,"receipt":{"blockHash":"0xbfabdfcb605cff6f055199ff06bdcf0851c61af12a4cec9dfa7651631e446ca1","blockNumber":9558478,"contractAddress":"0x28bb166eDA13d8cc6B9049c281676841A9BAF9c1","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","result":{"address":"0x28bb166eDA13d8cc6B9049c281676841A9BAF9c1","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","hash":"0x1a7396756aa6053ffb9a5cde73894acf433e51dae0a7e92f3659cd40a277d8ab","networkInteractionId":1,"receipt":{"blockHash":"0xbfabdfcb605cff6f055199ff06bdcf0851c61af12a4cec9dfa7651631e446ca1","blockNumber":9558478,"contractAddress":"0xA982c87268BE6E6F0b7EB5c58d6DE46713fFA71a","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","result":{"address":"0xA982c87268BE6E6F0b7EB5c58d6DE46713fFA71a","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","hash":"0xe76d473513775d8350d030080259cd83857b5885d336356540c7cb9a63784e60","networkInteractionId":1,"receipt":{"blockHash":"0xbfabdfcb605cff6f055199ff06bdcf0851c61af12a4cec9dfa7651631e446ca1","blockNumber":9558478,"contractAddress":"0x41bF9d780fcc2365f35F20D6A8EA7232F1d7c9A8","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","result":{"address":"0x41bF9d780fcc2365f35F20D6A8EA7232F1d7c9A8","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","hash":"0x83de4f5905b00ff3e3e619da109b6811adb9c59a7f6d5810b58932da007f5c45","networkInteractionId":1,"receipt":{"blockHash":"0xbfabdfcb605cff6f055199ff06bdcf0851c61af12a4cec9dfa7651631e446ca1","blockNumber":9558478,"contractAddress":"0x3f4D81532C2F76d03c1930DC170Ef4264B9D71B1","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","result":{"address":"0x3f4D81532C2F76d03c1930DC170Ef4264B9D71B1","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","hash":"0xa804edecbd99a678507dcae767a236bc653f8f1133807fdea2e04aa67ab11130","networkInteractionId":1,"receipt":{"blockHash":"0xbfabdfcb605cff6f055199ff06bdcf0851c61af12a4cec9dfa7651631e446ca1","blockNumber":9558478,"contractAddress":"0x8817e5E1312072e6aBb32a417856DaD7cd3c4f1e","logs":[{"address":"0x8817e5E1312072e6aBb32a417856DaD7cd3c4f1e","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":114,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","result":{"address":"0x8817e5E1312072e6aBb32a417856DaD7cd3c4f1e","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV1","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0x3f4D81532C2F76d03c1930DC170Ef4264B9D71B1"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f9350733f4D81532C2F76d03c1930DC170Ef4264B9D71B192506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c8a1428597d493cbe694c55d3c3140f6d4feec8584d111946bcfbdce984afdd264736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteractionId":1,"nonce":522,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteractionId":1,"nonce":522,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000018"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x192db2cc2c65c97ee4e1b012c9883da5c3640fd5a64e0020bde018035dbece40"},"type":"TRANSACTION_SEND"}
-{"args":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"CurvyVault#CurvyVaultV1Implementation","dependencies":["CurvyVault#CurvyVaultV1Implementation"],"functionName":"initialize","futureId":"CurvyVault#encodeFunctionCall(CurvyVault#CurvyVaultV1Implementation.initialize)","result":"0xc4d66de800000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","strategy":"basic","strategyConfig":{},"type":"ENCODE_FUNCTION_CALL_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","hash":"0x192db2cc2c65c97ee4e1b012c9883da5c3640fd5a64e0020bde018035dbece40","networkInteractionId":1,"receipt":{"blockHash":"0x8d88c2f19e5122370642c59dfcbf033ce8515df0b8adbceacc918a52d75289f5","blockNumber":9558483,"contractAddress":"0xd0d71b5B00aB9Ab862e38CC1DC6fB57BD1C2C30f","logs":[{"address":"0xd0d71b5B00aB9Ab862e38CC1DC6fB57BD1C2C30f","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":72,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","result":{"address":"0xd0d71b5B00aB9Ab862e38CC1DC6fB57BD1C2C30f","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyVault#ERC1967Proxy","constructorArgs":["0x8817e5E1312072e6aBb32a417856DaD7cd3c4f1e","0xc4d66de800000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"ERC1967Proxy","dependencies":["CurvyVault#CurvyVaultV1Implementation","CurvyVault#encodeFunctionCall(CurvyVault#CurvyVaultV1Implementation.initialize)"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#ERC1967Proxy","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#ERC1967Proxy","networkInteraction":{"data":"0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c00330000000000000000000000008817e5e1312072e6abb32a417856dad7cd3c4f1e00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000024c4d66de800000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000000000000000000000000000000000000000000000","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#ERC1967Proxy","networkInteractionId":1,"nonce":523,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#ERC1967Proxy","networkInteractionId":1,"nonce":523,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000018"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xb8a2d23fdd9d27795082be7f2b43d0ea047a5274fd42737b27d40cde2d270011"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#ERC1967Proxy","hash":"0xb8a2d23fdd9d27795082be7f2b43d0ea047a5274fd42737b27d40cde2d270011","networkInteractionId":1,"receipt":{"blockHash":"0x89998d0a1a9a3bde823f8b0b5ec59f630c7f9298666b405ee6506fd7451397ab","blockNumber":9558488,"contractAddress":"0xa85772c59D2c1c59a1df356f19C6bf1a57c791db","logs":[{"address":"0xa85772c59D2c1c59a1df356f19C6bf1a57c791db","data":"0x","logIndex":166,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000008817e5e1312072e6abb32a417856dad7cd3c4f1e"]},{"address":"0xa85772c59D2c1c59a1df356f19C6bf1a57c791db","data":"0x","logIndex":167,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xa85772c59D2c1c59a1df356f19C6bf1a57c791db","data":"0x0000000000000000000000000000000000000000000000000000000000000001","logIndex":168,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#ERC1967Proxy","result":{"address":"0xa85772c59D2c1c59a1df356f19C6bf1a57c791db","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xa85772c59D2c1c59a1df356f19C6bf1a57c791db","contractName":"CurvyVaultV1","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV1","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x61826700275c96633c85a6563bffcbb2e9e82dc6","0xa85772c59D2c1c59a1df356f19C6bf1a57c791db"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","CurvyVault#CurvyVaultV1"],"functionName":"initialize","futureId":"CurvyAggregatorAlpha#encodeFunctionCall(CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.initialize)","result":"0x485cc95500000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6000000000000000000000000a85772c59d2c1c59a1df356f19c6bf1a57c791db","strategy":"basic","strategyConfig":{},"type":"ENCODE_FUNCTION_CALL_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#ERC1967Proxy","constructorArgs":["0xd0d71b5B00aB9Ab862e38CC1DC6fB57BD1C2C30f","0x485cc95500000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6000000000000000000000000a85772c59d2c1c59a1df356f19c6bf1a57c791db"],"contractName":"ERC1967Proxy","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","CurvyAggregatorAlpha#encodeFunctionCall(CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.initialize)"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#ERC1967Proxy","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteraction":{"data":"0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033000000000000000000000000d0d71b5b00ab9ab862e38cc1dc6fb57bd1c2c30f00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000044485cc95500000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6000000000000000000000000a85772c59d2c1c59a1df356f19c6bf1a57c791db00000000000000000000000000000000000000000000000000000000","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteractionId":1,"nonce":524,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteractionId":1,"nonce":524,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000018"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x4b4366e6ba6c25d035cdb3e10f24a582472c4ffb390c9f10ed5d230aa57dd952"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","hash":"0x4b4366e6ba6c25d035cdb3e10f24a582472c4ffb390c9f10ed5d230aa57dd952","networkInteractionId":1,"receipt":{"blockHash":"0x262225c6770eee531a0792325af48a94c8ec43d77c06df04d20b65f21b75847d","blockNumber":9558493,"contractAddress":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","logs":[{"address":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","data":"0x","logIndex":51,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000d0d71b5b00ab9ab862e38cc1dc6fb57bd1c2c30f"]},{"address":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","data":"0x","logIndex":52,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","data":"0x0000000000000000000000000000000000000000000000000000000000000001","logIndex":53,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","result":{"address":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","contractName":"CurvyAggregatorAlphaV1","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0x28bb166eDA13d8cc6B9049c281676841A9BAF9c1","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0xA982c87268BE6E6F0b7EB5c58d6DE46713fFA71a","maxAggregations":2,"maxDeposits":2,"maxWithdrawals":2,"withdrawVerifier":"0x41bF9d780fcc2365f35F20D6A8EA7232F1d7c9A8"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteraction":{"data":"0xb4da7173000000000000000000000000a982c87268be6e6f0b7eb5c58d6de46713ffa71a00000000000000000000000028bb166eda13d8cc6b9049c281676841a9baf9c100000000000000000000000041bf9d780fcc2365f35f20d6a8ea7232f1d7c9a80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002","id":1,"to":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteractionId":1,"nonce":525,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteractionId":1,"nonce":525,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000018"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x57b79b264e9fc95a5e1c366dbdc54f4f911f2eb9ae1e94115f702edb0433fa9b"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","hash":"0x57b79b264e9fc95a5e1c366dbdc54f4f911f2eb9ae1e94115f702edb0433fa9b","networkInteractionId":1,"receipt":{"blockHash":"0x51dae301d2b58e474e00bb1bc5c62f8d5da2585b2d1b336227a6f84e52b8008f","blockNumber":9558498,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","contractAddress":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","contractName":"CurvyAggregatorAlphaV2","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV2","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0x3f4D81532C2F76d03c1930DC170Ef4264B9D71B1"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f9350733f4D81532C2F76d03c1930DC170Ef4264B9D71B192506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220203f460927dd492ae23c6a846bacc1b688b31d219b7fe1d56291d876ca96db2b64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteractionId":1,"nonce":539,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteractionId":1,"nonce":539,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000013"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"999989"}},"hash":"0x412fda4681aedbbba9b71ea2707e24e2b9be48a4ae8ee0bfb6a2c3be41f36e29"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","hash":"0x412fda4681aedbbba9b71ea2707e24e2b9be48a4ae8ee0bfb6a2c3be41f36e29","networkInteractionId":1,"receipt":{"blockHash":"0x54ec684f6fb7ce48734fe28d7163c73e8f95252bd1b1e7de139e509a94db8a63","blockNumber":9559214,"contractAddress":"0xefa47Ffb732c16e4c4bd39e3463da3c40a666972","logs":[{"address":"0xefa47Ffb732c16e4c4bd39e3463da3c40a666972","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":44,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","result":{"address":"0xefa47Ffb732c16e4c4bd39e3463da3c40a666972","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0xefa47Ffb732c16e4c4bd39e3463da3c40a666972","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000efa47ffb732c16e4c4bd39e3463da3c40a66697200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteractionId":1,"nonce":540,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteractionId":1,"nonce":540,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000013"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"999989"}},"hash":"0xf86937bfe0c3ddb90cd94ca9f9cdafc7a655f287e970ad4db6c364af42e648de"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","hash":"0xf86937bfe0c3ddb90cd94ca9f9cdafc7a655f287e970ad4db6c364af42e648de","networkInteractionId":1,"receipt":{"blockHash":"0xb3341d62c32f8e80d16308ccb9af08d8085c089cfd3d67e608d66785d6ffdfb2","blockNumber":9559220,"logs":[{"address":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","data":"0x","logIndex":137,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000efa47ffb732c16e4c4bd39e3463da3c40a666972"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyVault#CurvyVaultV2","contractAddress":"0xa85772c59D2c1c59a1df356f19C6bf1a57c791db","contractName":"CurvyVaultV2","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV2Implementation","constructorArgs":[],"contractName":"CurvyVaultV2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV2Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212200dd8f4b1ff65d8eaec14efc8498c5839e04bb38b2557e57ab8719387851cfb9064736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteractionId":1,"nonce":591,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteractionId":1,"nonce":591,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"828619250"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000062"}},"hash":"0x3568f04417574706795461d9d2b279447da2e1d6f3c1f896472108e0e9e2e119"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","hash":"0x3568f04417574706795461d9d2b279447da2e1d6f3c1f896472108e0e9e2e119","networkInteractionId":1,"receipt":{"blockHash":"0x0563542aa128ddee0f09436b173a0c4dc88efef7654f417eda2bdab93ed27a2a","blockNumber":9852872,"contractAddress":"0x1D47C3130cd0824F07ef22ff1A51efb4336FF4A8","logs":[{"address":"0x1D47C3130cd0824F07ef22ff1A51efb4336FF4A8","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":673,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","result":{"address":"0x1D47C3130cd0824F07ef22ff1A51efb4336FF4A8","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x1D47C3130cd0824F07ef22ff1A51efb4336FF4A8","0x"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xa85772c59D2c1c59a1df356f19C6bf1a57c791db","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#CurvyVaultV2Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef2860000000000000000000000001d47c3130cd0824f07ef22ff1a51efb4336ff4a800000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xa85772c59D2c1c59a1df356f19C6bf1a57c791db","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteractionId":1,"nonce":592,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteractionId":1,"nonce":592,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"817261000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000062"}},"hash":"0x7d5ee8777ee9d8e51f9eb9493ce22a887e49ccd11c96a2549129f8a922609856"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","hash":"0x7d5ee8777ee9d8e51f9eb9493ce22a887e49ccd11c96a2549129f8a922609856","networkInteractionId":1,"receipt":{"blockHash":"0x484e6d0c5a0b1b02c409d1a7d3112a7e47c865fa8b796dd202e69deb3be37fb7","blockNumber":9852877,"logs":[{"address":"0xa85772c59D2c1c59a1df356f19C6bf1a57c791db","data":"0x","logIndex":749,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000001d47c3130cd0824f07ef22ff1a51efb4336ff4a8"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","contractName":"CurvyAggregatorAlphaV3","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV3","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0x3f4D81532C2F76d03c1930DC170Ef4264B9D71B1"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f9350733f4D81532C2F76d03c1930DC170Ef4264B9D71B192506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f9450733f4D81532C2F76d03c1930DC170Ef4264B9D71B193506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212206ff0d470ab001319b7a6d16084e8db1922e67b75e58813aaec5f4d41b61b48b164736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteractionId":1,"nonce":593,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteractionId":1,"nonce":593,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"795485478"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000062"}},"hash":"0xe762193527c6c771aea8d8c61349fe235a86e021affe4697c37e88582b6b759c"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","hash":"0xe762193527c6c771aea8d8c61349fe235a86e021affe4697c37e88582b6b759c","networkInteractionId":1,"receipt":{"blockHash":"0xd7ae9f9421339806c42100856919885cdd96970d7a4e0d3f3302c2c0fd735708","blockNumber":9852884,"contractAddress":"0x5CFA880Cd3230e417097fB29d9A78e9E582A15c9","logs":[{"address":"0x5CFA880Cd3230e417097fB29d9A78e9E582A15c9","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":669,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","result":{"address":"0x5CFA880Cd3230e417097fB29d9A78e9E582A15c9","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x5CFA880Cd3230e417097fB29d9A78e9E582A15c9","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","contractAddress":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef2860000000000000000000000005cfa880cd3230e417097fb29d9a78e9e582a15c900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteractionId":1,"nonce":594,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteractionId":1,"nonce":594,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"859342224"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000062"}},"hash":"0xdb38cdfde96c8bb0a1f0bd0c428f2bc8819b31dfd5e1c6f275565e69d0cc4b09"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","hash":"0xdb38cdfde96c8bb0a1f0bd0c428f2bc8819b31dfd5e1c6f275565e69d0cc4b09","networkInteractionId":1,"receipt":{"blockHash":"0x0efbadd6ae377c27b136edea81307f7d16cb2782051da309884a5cb323b845ec","blockNumber":9852889,"logs":[{"address":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","data":"0x","logIndex":1042,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000005cfa880cd3230e417097fb29d9a78e9e582a15c9"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactoryAggregatorModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryAggregatorModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory","networkInteraction":{"data":"0x263076686d696861696c6f20616e642076616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000013207f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161130038038061130083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6111be806101425f395ff3fe608060405260043610610084575f3560e01c8063715018a611610057578063715018a614610133578063735f399d146101475780637377bbb41461015a5780638da5cb5b14610186578063f2fde38b146101a2575f5ffd5b80631d29b183146100885780633290c33b146100a95780633942b0ad146100e557806352982f3b14610114575b5f5ffd5b348015610093575f5ffd5b506100a76100a236600461074a565b6101c1565b005b3480156100b4575f5ffd5b506100c86100c33660046107d9565b61031f565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100f0575f5ffd5b506101046100ff3660046107f0565b61038d565b60405190151581526020016100dc565b34801561011f575f5ffd5b5061010461012e366004610810565b6103ba565b34801561013e575f5ffd5b506100a7610406565b6100a7610155366004610850565b610419565b348015610165575f5ffd5b506101796101743660046107d9565b6105a1565b6040516100dc919061086a565b348015610191575f5ffd5b505f546001600160a01b03166100c8565b3480156101ad575f5ffd5b506100a76101bc3660046107f0565b61060c565b6004546001600160a01b031661023a5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084015b60405180910390fd5b5f610247835f01516105a1565b90505f5f60015490508083516020850134f591506001600160a01b0382166102b15760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610231565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936102e9939216918c918c918c918c910161089f565b5f604051808303815f87803b158015610300575f5ffd5b505af1158015610312573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f61032a836105a1565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff19166021820152603581019390935260558084019290925280518084039092018252607590920190915280519101209392505050565b5f610396610649565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b5f6103c3610649565b50600280546001600160a01b039485166001600160a01b031991821617909155600380549385169382169390931790925560048054919093169116179055600190565b61040e610649565b6104175f610675565b565b6002546001600160a01b0316158061043a57506003546001600160a01b0316155b156104a45760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b6064820152608401610231565b5f6104b1825f01516105a1565b90505f5f60015490508083516020850134f591506001600160a01b03821661051b5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610231565b60035460025460408051631329a1a760e31b815287516004820152602088015160248201529087015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610585575f5ffd5b505af1158015610597573d5f5f3e3d5ffd5b5050505050505050565b60605f604051806020016105b4906106c4565b601f1982820381018352601f9091011660408181526020808301879052815180840390910181528183019091529192506105f4908390839060600161092b565b60405160208183030381529060405292505050919050565b610614610649565b6001600160a01b03811661063d57604051631e4fbdf760e01b81525f6004820152602401610231565b61064681610675565b50565b5f546001600160a01b031633146104175760405163118cdaa760e01b8152336004820152602401610231565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6108418061094883390190565b5f606082840312156106e1575f5ffd5b6040516060810181811067ffffffffffffffff8211171561071057634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b80356001600160a01b03811681146103b5575f5ffd5b5f5f5f5f60a0858703121561075d575f5ffd5b843567ffffffffffffffff811115610773575f5ffd5b8501601f81018713610783575f5ffd5b803567ffffffffffffffff811115610799575f5ffd5b8760208284010111156107aa575f5ffd5b6020918201955093506107c090879087016106d1565b91506107ce60808601610734565b905092959194509250565b5f602082840312156107e9575f5ffd5b5035919050565b5f60208284031215610800575f5ffd5b61080982610734565b9392505050565b5f5f5f60608486031215610822575f5ffd5b61082b84610734565b925061083960208501610734565b915061084760408501610734565b90509250925092565b5f60608284031215610860575f5ffd5b61080983836106d1565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506108f960408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b5f81518060208401855e5f93019283525090919050565b5f61093f6109398386610914565b84610914565b94935050505056fe6080604052348015600e575f5ffd5b50604051610841380380610841833981016040819052602b916031565b5f556047565b5f602082840312156040575f5ffd5b5051919050565b6107ed806100545f395ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c80633fb070271461004e5780635dc24ee31461007d578063994d0d3814610090578063bcd6c474146100a5575b5f5ffd5b600254610061906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600154610061906001600160a01b031681565b6100a361009e366004610699565b6100b8565b005b6100a36100b33660046106e0565b6102fe565b5f5483511461010e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e6572206861736800000000000060448201526064015b60405180910390fd5b600180546001600160a01b038085166001600160a01b0319928316179092556002805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610168919060040190815260200190565b602060405180830381865afa158015610183573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101a79190610786565b90506001600160a01b038116158015906101de57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561027d576001546040850151610203916001600160a01b03848116929116906104b7565b600154604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610262575f5ffd5b505af1158015610274573d5f5f3e3d5ffd5b505050506102f8565b6001546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b1580156102e0575f5ffd5b505af11580156102f2573d5f5f3e3d5ffd5b50505050505b50505050565b6001600160a01b0385166103545760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610105565b5f548251146103a55760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610105565b60408201516001600160a01b038216158015906103df57506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104025760408301516103ff906001600160a01b0384169088906104b7565b505f5b5f866001600160a01b031682878760405161041e9291906107a8565b5f6040518083038185875af1925050503d805f8114610458576040519150601f19603f3d011682016040523d82523d5f602084013e61045d565b606091505b50509050806104ae5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610105565b50505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610508848261056a565b6102f857604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526105609085906105b3565b6102f884826105b3565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156105a95750811561059b57806001146105a9565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af1806105d2576040513d5f823e3d81fd5b50505f513d915081156105e95780600114156105f6565b6001600160a01b0384163b155b156102f857604051635274afe760e01b81526001600160a01b0385166004820152602401610105565b5f6060828403121561062f575f5ffd5b6040516060810181811067ffffffffffffffff8211171561065e57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b6001600160a01b0381168114610696575f5ffd5b50565b5f5f5f60a084860312156106ab575f5ffd5b6106b5858561061f565b925060608401356106c581610682565b915060808401356106d581610682565b809150509250925092565b5f5f5f5f5f60c086880312156106f4575f5ffd5b85356106ff81610682565b9450602086013567ffffffffffffffff81111561071a575f5ffd5b8601601f8101881361072a575f5ffd5b803567ffffffffffffffff811115610740575f5ffd5b886020828401011115610751575f5ffd5b60209190910194509250610768876040880161061f565b915060a086013561077881610682565b809150509295509295909350565b5f60208284031215610796575f5ffd5b81516107a181610682565b9392505050565b818382375f910190815291905056fea2646970667358221220ed47eea68502cf373fdbda712862cf4f84f1126296768b873fd1525506411ede64736f6c634300081c0033a26469706673582212207842c4286a64fa19dd38d2db119f8c0dd935b6cd9e3defe5d08030d599ec887664736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016bc7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":624,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":624,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1902859479"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x1a44af38edb70a85d6eb6660b64ab00b3ff34dc343aee4da7cddffbdd45ab06a"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x1a44af38edb70a85d6eb6660b64ab00b3ff34dc343aee4da7cddffbdd45ab06a","networkInteractionId":1,"receipt":{"blockHash":"0xdf146fa117916213e4cd966aa753cab0a53a48a893d0cc4a8ece10cce37e4d4f","blockNumber":10141360,"logs":[{"address":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","data":"0x","logIndex":129,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":130,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000ff84acbae0c126506b250b0c7d17bcc8367c1d16","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0xa85772c59D2c1c59a1df356f19C6bf1a57c791db","0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"PortalFactoryModule#PortalFactory.updateConfig","strategy":"create2","strategyConfig":{"salt":"0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000a85772c59d2c1c59a1df356f19c6bf1a57c791db000000000000000000000000d35e24b0ab6f63c08be756c8faff3609ff8a5ce10000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":625,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":625,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2244589799"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x06df2f9f00b9a4902bae17b61deb893b027356f7c8950429a0012ff12d97f5eb"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","hash":"0x06df2f9f00b9a4902bae17b61deb893b027356f7c8950429a0012ff12d97f5eb","networkInteractionId":1,"receipt":{"blockHash":"0xd50930ca61bbdf0fcbad7241ca0bfee21e7960c5a15523485d156d13fafe36af","blockNumber":10141365,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","constructorArgs":[],"contractName":"CurvyInsertionVerifierAlpha_2","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b5061124e8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046110b1565b610054565b604051901515815260200160405180910390f35b5f61005d610ed8565b60408051808201825287518152602080890151818301529083528151608080820184528851518285019081528951840151606084015282528351808501855289840180515182525184015181850152828401528483019190915282518084018452875181528783015181840152848401528251600480825260a082019094525f939092909190830190803683370190505090505f5b60048110156101375784816004811061010d5761010d611194565b602002015182828151811061012457610124611194565b60209081029190910101526001016100f2565b506101428183610161565b5f0361015357600192505050610159565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018161018c610348565b9050806080015151855160016101a291906111bc565b146101e95760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cf578387828151811061021b5761021b611194565b6020026020010151106102705760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101e0565b6102c5826102c0856080015184600161028991906111bc565b8151811061029957610299611194565b60200260200101518a85815181106102b3576102b3611194565b6020026020010151610845565b6108d9565b91506001016101ff565b506102f78183608001515f815181106102ea576102ea611194565b60200260200101516108d9565b905061032b610308865f0151610970565b8660200151845f015185602001518587604001518b604001518960600151610a0c565b61033b5760019350505050610342565b5f93505050505b92915050565b610350610f26565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f2933c663723e3630bea92f14ce272046739c1de9ac0de5108d9f97504796bcdd8185019081527f2d9d46b72cb758726c5730268fdedefe18f1b55f5b935a82ecf821c05b252da1828401528152835180850185527f0d673c337136dbf082c467ce378ee3bce333a36c5f27cc01edf54179d6e7dc6081527f0c907c5922e46c3cadc99de46a7b8d01770eded5cef85379f58252ab65cb80ad8185015281840152908401528151600580825260c08201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105cb57505060808201908152604080518082019091527f0cdbf7f6fb2cf15ec81a44a104d6490ebeeeea7bf9a0cbf4d695c2a5e7ef7d8481527e5eff6d3e9efe8e7e1fc61c474ed76a4e42f9233e0e5c1054caa772f3b03c396020820152905180515f9061065b5761065b611194565b602002602001018190525060405180604001604052807f24aa7ee61e4ad8e6faf43e12eeb8b33081498ee103385743f2f357bf8b0c6af181526020017f22d171354b9d3a5d983212b596739d62f1cc42aff5df6db8475e4b887902146581525081608001516001815181106106d2576106d2611194565b602002602001018190525060405180604001604052807f3037fd725c311a8a59dc660d0fa266e188928bef08015840cf45d7998b747a1881526020017f20918eb8f6b9ca00d9004f42b7bd61a3703ea034983fa552ba34fcbde0d59bc2815250816080015160028151811061074957610749611194565b602002602001018190525060405180604001604052807f1b5c870d21c274d5bdf96cd309bdbda13661a47c01ce8483bd3682fcc1d58a3081526020017f2f4600674aa2b704715e8f62433edcae3bae85557d27e74af090ebcdbc0b195e81525081608001516003815181106107c0576107c0611194565b602002602001018190525060405180604001604052807f199fcda69c0bfd4d6f2db0f385bd0fcf78f0074be4d5eeb7f75f32963269d8d981526020017f1638a9aa5129a8fa9964966f9545941fbceb843dd14aa0f40531c6197da17578815250816080015160048151811061083757610837611194565b602002602001018190525090565b604080518082019091525f8082526020820152610860610f76565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa9050808061088e57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101e0565b505092915050565b604080518082019091525f80825260208201526108f4610f94565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa9050808061092d57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101e0565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47901580156109b657506020830151155b156109d5575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f015181526020018285602001516109f991906111cf565b610a0390846111ee565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610a2657505060408051600480825260a082019092529192505f9190602082015b610a6e610fb2565b815260200190600190039081610a665790505090508a825f81518110610a9657610a96611194565b60200260200101819052508882600181518110610ab557610ab5611194565b60200260200101819052508682600281518110610ad457610ad4611194565b60200260200101819052508482600381518110610af357610af3611194565b602002602001018190525089815f81518110610b1157610b11611194565b60200260200101819052508781600181518110610b3057610b30611194565b60200260200101819052508581600281518110610b4f57610b4f611194565b60200260200101819052508381600381518110610b6e57610b6e611194565b6020026020010181905250610b838282610b92565b9b9a5050505050505050505050565b5f8151835114610bdd5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101e0565b82515f610beb826006611201565b90505f8167ffffffffffffffff811115610c0757610c0761100e565b604051908082528060200260200182016040528015610c30578160200160208202803683370190505b5090505f5b83811015610e5d57868181518110610c4f57610c4f611194565b60200260200101515f015182826006610c689190611201565b610c72905f6111bc565b81518110610c8257610c82611194565b602002602001018181525050868181518110610ca057610ca0611194565b60200260200101516020015182826006610cba9190611201565b610cc59060016111bc565b81518110610cd557610cd5611194565b602002602001018181525050858181518110610cf357610cf3611194565b6020908102919091010151515182610d0c836006611201565b610d179060026111bc565b81518110610d2757610d27611194565b602002602001018181525050858181518110610d4557610d45611194565b60209081029190910181015151015182610d60836006611201565b610d6b9060036111bc565b81518110610d7b57610d7b611194565b602002602001018181525050858181518110610d9957610d99611194565b6020026020010151602001515f60028110610db657610db6611194565b602002015182610dc7836006611201565b610dd29060046111bc565b81518110610de257610de2611194565b602002602001018181525050858181518110610e0057610e00611194565b602002602001015160200151600160028110610e1e57610e1e611194565b602002015182610e2f836006611201565b610e3a9060056111bc565b81518110610e4a57610e4a611194565b6020908102919091010152600101610c35565b50610e66610fd2565b5f602082602086026020860160086107d05a03fa90508080610e8457fe5b5080610eca5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101e0565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101610f01610fb2565b8152602001610f2160405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101610f4f610fb2565b8152602001610f5c610fb2565b8152602001610f69610fb2565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280610fc5610ff0565b8152602001610f21610ff0565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561105757634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f83011261106e575f5ffd5b5f6110796040611022565b905080604084018581111561108c575f5ffd5b845b818110156110a657803583526020928301920161108e565b509195945050505050565b5f5f5f5f61018085870312156110c5575f5ffd5b6110cf868661105f565b935085605f8601126110df575f5ffd5b60406110ea81611022565b8060c08801898111156110fb575f5ffd5b604089015b81811015611121576111128b8261105f565b84526020909301928401611100565b5081965061112f8a8261105f565b95505050505061010085015f87601f830112611149575f5ffd5b5f6111546080611022565b905080608084018a811115611167575f5ffd5b5b80851015611183578435825260209485019490910190611168565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610342576103426111a8565b5f826111e957634e487b7160e01b5f52601260045260245ffd5b500690565b81810381811115610342576103426111a8565b8082028115828204841417610342576103426111a856fea264697066735822122052b8c89d46e40ccc60f13c59a59ab39c0a5084d1333d84af2fe13436741f62ef64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","networkInteractionId":1,"nonce":626,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","networkInteractionId":1,"nonce":626,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2190111105"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x0c947c796bfa39dc8a2d7c40c036e22e5e06cf29754805aff14555275fe21012"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","hash":"0x0c947c796bfa39dc8a2d7c40c036e22e5e06cf29754805aff14555275fe21012","networkInteractionId":1,"receipt":{"blockHash":"0xbb6befcf9720c62fb2cb9c8bfdd8028a95a0b95a9a1b600016555ba8ad326a0b","blockNumber":10141833,"contractAddress":"0xA50be6A35eDa38C67B975a2cF7639FBB72a5d0ff","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","result":{"address":"0xA50be6A35eDa38C67B975a2cF7639FBB72a5d0ff","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","constructorArgs":[],"contractName":"CurvyAggregationVerifierAlpha_2","dependencies":["CurvyAggregatorAlpha#NewInsertionVerifier_v2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506116ed8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004611553565b610054565b604051901515815260200160405180910390f35b5f61005d61137a565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600e8082526101e082019093525f92909182016101c0803683370190505090505f5b600e811015610133578481600e811061010957610109611633565b602002015182828151811061012057610120611633565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061165b565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611633565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061165b565b8151811061029557610295611633565b60200260200101518a85815181106102af576102af611633565b6020026020010151610ce7565b610d7b565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611633565b6020026020010151610d7b565b9050610327610304865f0151610e12565b8660200151845f015185602001518587604001518b604001518960600151610eae565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6113c8565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f040960ae7a0345676e57477fe153547dac4996ccff6cd8bdbfab68194176ebfe8185019081527f09f390a54aa2c22bc7ab1273ccbfba2d124f277c4b7858b7e6b2b215264b2524828401528152835180850185527f069489b61aadf82d080f5b031e40c78265091ce5230bde1c6b129bd6ee8f929a81527f11d4a92da28cae8798f897d046ec7d2b818431d18ca7d7b30c720a5a4320777f8185015281840152908401528151600f8082526102008201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f18c30badf97bca79e0290e1e2709c180d796014d89846a50fdf83edb9a5f126081527ec6ff8cc32c2c88d6a18abf5d8474acb27c8174ed0969d8641896bb65bc14c46020820152905180515f9061065857610658611633565b602002602001018190525060405180604001604052807f26be249a1394d006fdb707e50aafdbfae0abcdd8424b6e9ecfaad5546f97f78881526020017f1d61635959d20e223664b32f4564dc44e3b7b360b37d388f9f7f51585800155581525081608001516001815181106106cf576106cf611633565b602002602001018190525060405180604001604052807f2506541fa33baf46747051d8ebe51a91b929a728a707a75f0cdeafd7f739fd3181526020017f0d08b60cf224252ab06e146a2272e4c007567054b6e83778161343ae31deb5ac815250816080015160028151811061074657610746611633565b602002602001018190525060405180604001604052807f1f3bdf1e50dc24be846513f7f74068a55438ca5acb4f64c3d3921bde7468a2d681526020017f2e5e1a4837097500979c5d1cf152f067e70c896ac860ba29651b02f6e79edae281525081608001516003815181106107bd576107bd611633565b602002602001018190525060405180604001604052807f203c139f09bbb742c8d4c51234494498c24d56884f24f6545086e2238e763a5881526020017f028e6932f3bc2561b30d7fe76c6de6bebf4c8ea0621bbb6ad41882df5eb7264b815250816080015160048151811061083457610834611633565b602002602001018190525060405180604001604052807f204223f3717fb8cd7ebd1a98a872f75b82e0ef94fa940335abd65568db85649f81526020017f0d2ccb01844a345701f9b1f27c633fdb9ad135aeaa0fae0fd831d08edcdc323b81525081608001516005815181106108ab576108ab611633565b602002602001018190525060405180604001604052807f2ca96167b9316ee5855a83bb4a92112653444fffa0bf5725ae9b090bb288152e81526020017f1d6d5440897b2ec044f2aaecdab5e507c4d69f8c7ca8813db13ce819e79129d4815250816080015160068151811061092257610922611633565b602002602001018190525060405180604001604052807f1cba19de78b5c7c47d2407121e7e86d0d70c63aaee0ce04ca5fecaee97ab75d481526020017f059319895b38a350849d8c25b406b951743ab1c6237a63b648f07c5f3e7e19dd815250816080015160078151811061099957610999611633565b602002602001018190525060405180604001604052807f016cc32364e0c0823d4b34edc52852c6665a421cd8867fbd190170fab867bea681526020017f0734df7485b401e47cbd1c3ab7024be0250f9fa13ab7ec9b3b40d83178eb2b468152508160800151600881518110610a1057610a10611633565b602002602001018190525060405180604001604052807f29286c62d871cffa08e84997e6180455e1edca20d681ef29656ef4d6d45b001781526020017f2e71a4c29421434de9ed5e921a2b6a23816a740d99b6f135fd01cad64bd288ac8152508160800151600981518110610a8757610a87611633565b602002602001018190525060405180604001604052807f2492df9b4d0ad2639c6f34096692d29d2f9ed9ee57d9e9c3ba303e9dbcdae43081526020017f2e497c91b7e5e3a2a9b9f7fe9cdfe78c9e72037bb7552e29d54813a4566c6fbd8152508160800151600a81518110610afe57610afe611633565b602002602001018190525060405180604001604052807f1476e8d331c072345e564de7e0c1b051b0b0b18531bdd1e7441e0257090a0c1781526020017f110b09db70453d4ec6bed001ab95fcb5ce4b8e21a0c4f4c26b91dc8059aa1dce8152508160800151600b81518110610b7557610b75611633565b602002602001018190525060405180604001604052807e6e2fbcfe989d63aea84d90addc8537a921948b213ef36ec5fa0cbb5b68670381526020017f06f6a502b00b2945dd9841eca5ab5f69654f4992777102c600ca5402c35d6c288152508160800151600c81518110610beb57610beb611633565b602002602001018190525060405180604001604052807f01a330e578c215a80aaf5fc3208956611670affa4560f2dd1f7892698b50c35881526020017f0a9ccad9b2edacd7bbb8a5c460a47d7a114166eace7c8cfe32c7a4243c30e0f28152508160800151600d81518110610c6257610c62611633565b602002602001018190525060405180604001604052807f0aa436490c317254e1444ad76cac634937ea2fa0d0730983455fed54f43c9ff981526020017f12228d15b01f07e1d77acd2c2c609c7e4c9a70503e071ec4963191e6d4d13d598152508160800151600e81518110610cd957610cd9611633565b602002602001018190525090565b604080518082019091525f8082526020820152610d02611418565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610d3057fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610d96611436565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610dcf57fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610e5857506020830151155b15610e77575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610e9b919061166e565b610ea5908461168d565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610ec857505060408051600480825260a082019092529192505f9190602082015b610f10611454565b815260200190600190039081610f085790505090508a825f81518110610f3857610f38611633565b60200260200101819052508882600181518110610f5757610f57611633565b60200260200101819052508682600281518110610f7657610f76611633565b60200260200101819052508482600381518110610f9557610f95611633565b602002602001018190525089815f81518110610fb357610fb3611633565b60200260200101819052508781600181518110610fd257610fd2611633565b60200260200101819052508581600281518110610ff157610ff1611633565b6020026020010181905250838160038151811061101057611010611633565b60200260200101819052506110258282611034565b9b9a5050505050505050505050565b5f815183511461107f5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f61108d8260066116a0565b90505f8167ffffffffffffffff8111156110a9576110a96114b0565b6040519080825280602002602001820160405280156110d2578160200160208202803683370190505b5090505f5b838110156112ff578681815181106110f1576110f1611633565b60200260200101515f01518282600661110a91906116a0565b611114905f61165b565b8151811061112457611124611633565b60200260200101818152505086818151811061114257611142611633565b6020026020010151602001518282600661115c91906116a0565b61116790600161165b565b8151811061117757611177611633565b60200260200101818152505085818151811061119557611195611633565b60209081029190910101515151826111ae8360066116a0565b6111b990600261165b565b815181106111c9576111c9611633565b6020026020010181815250508581815181106111e7576111e7611633565b602090810291909101810151510151826112028360066116a0565b61120d90600361165b565b8151811061121d5761121d611633565b60200260200101818152505085818151811061123b5761123b611633565b6020026020010151602001515f6002811061125857611258611633565b6020020151826112698360066116a0565b61127490600461165b565b8151811061128457611284611633565b6020026020010181815250508581815181106112a2576112a2611633565b6020026020010151602001516001600281106112c0576112c0611633565b6020020151826112d18360066116a0565b6112dc90600561165b565b815181106112ec576112ec611633565b60209081029190910101526001016110d7565b50611308611474565b5f602082602086026020860160086107d05a03fa9050808061132657fe5b508061136c5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016113a3611454565b81526020016113c360405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c08301919091528152602081016113f1611454565b81526020016113fe611454565b815260200161140b611454565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280611467611492565b81526020016113c3611492565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156114f957634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611510575f5ffd5b5f61151b60406114c4565b905080604084018581111561152e575f5ffd5b845b81811015611548578035835260209283019201611530565b509195945050505050565b5f5f5f5f6102c08587031215611567575f5ffd5b6115718686611501565b935085605f860112611581575f5ffd5b604061158c816114c4565b8060c088018981111561159d575f5ffd5b604089015b818110156115c3576115b48b82611501565b845260209093019284016115a2565b508196506115d18a82611501565b95505050505061010085015f87601f8301126115eb575f5ffd5b5f6101c06115f8816114c4565b91508301818a821115611609575f5ffd5b5b8185101561162257843581526020948501940161160a565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e611647565b5f8261168857634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e611647565b808202811582820484141761033e5761033e61164756fea26469706673582212208ecec3b58f8c69288c925191a76554c85a5d679e9a34b2047785e1439c8c3d1d64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","networkInteractionId":1,"nonce":627,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","networkInteractionId":1,"nonce":627,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2168043121"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x9c1392ed10c395d4a5f9973947ab5610b6ce409d43284653a7056590734b9f9a"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","hash":"0x9c1392ed10c395d4a5f9973947ab5610b6ce409d43284653a7056590734b9f9a","networkInteractionId":1,"receipt":{"blockHash":"0x60b8319a56f973a92200280b8892f23c27b6d327e5c32421798086217fd8ba2a","blockNumber":10141838,"contractAddress":"0x1F44e20357733D2Be1F765dBea42fbaf4d00c360","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","result":{"address":"0x1F44e20357733D2Be1F765dBea42fbaf4d00c360","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlpha_2","dependencies":["CurvyAggregatorAlpha#NewAggregationVerifier_v2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506115118061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b366004611377565b610054565b604051901515815260200160405180910390f35b5f61005d61119e565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600a80825261016082019093525f9290918201610140803683370190505090505f5b600a811015610133578481600a811061010957610109611457565b602002015182828151811061012057610120611457565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061147f565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611457565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061147f565b8151811061029557610295611457565b60200260200101518a85815181106102af576102af611457565b6020026020010151610b0b565b610b9f565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611457565b6020026020010151610b9f565b9050610327610304865f0151610c36565b8660200151845f015185602001518587604001518b604001518960600151610cd2565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6111ec565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f0b5a45bbb3d9f21c42579fd5a810f82f25e696fb3b00ef64b8ca2d17d89fe4ed8185019081527f0f79b405819a9900f7edb3f309c9b73a45673c17366eeb72361c23f957680a89828401528152835180850185527f23b107da251eb5c5dd3c157a900388d73f64a4394faf6a12ae2077766d720b0881527f2188bf40a163dba1ba12fc061d0a6fc9d7246af5e912fcbb23b59a53823b7c048185015281840152908401528151600b8082526101808201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f118592ce705cf3d21e870156a4dc6cff3b2a01fca2c8e60a402fc01dd47341de81527f1fe6c8cb2c02b9ddf7ed360fd3ba99867e54e590d7ca62b57d839ef26d549f0c6020820152905180515f9061065957610659611457565b602002602001018190525060405180604001604052807f154574f61b1a23d66f35533910d332b8ab9bffc6274ce4ffb0bf3b7f1210090781526020017f1ac6f7f35d927f760afe3efc726d0d1ab8ab6514d018630e92a11b5079108b9a81525081608001516001815181106106d0576106d0611457565b602002602001018190525060405180604001604052807f102a84a54eb42169d68f30c781aabd282a341b2b4c25cd55fdae5e3479b4182a81526020017f1b8113a1108e05880a85ae50fdaa0f86926095751a6c3f0130cee222578c7911815250816080015160028151811061074757610747611457565b602002602001018190525060405180604001604052807f25504b6ec89efe8110a42f0ffda2f64b4c0b63b83a776f2146c23ddb2b9c346081526020017e1bd1b27eb32e5c1ecc7f9b08d87e6c7eff72e21014bd87c5badb37e82d50c781525081608001516003815181106107bd576107bd611457565b602002602001018190525060405180604001604052807f2955cc92eefc93c0bb8f2a726fbcbadbedd59c2f68b3701defa2ac66e1c1643f81526020017f1a8bfc29eefca9fd267806f814daf245aa0fb67048fbc16761d5fc39282f7336815250816080015160048151811061083457610834611457565b602002602001018190525060405180604001604052807f0acefb487079ce3764bf9e0af6b69a939b8f43cb3cce80262ebd68167a86afa881526020017f2500ee5fc51d1ed187adfe4cb25ef69610207eefc41a868d14a519b58c99286081525081608001516005815181106108ab576108ab611457565b602002602001018190525060405180604001604052807f1eca69b2e86127c29cd324a9b13cf89c0e657596c9e37dc05eec008c8fa84fdb81526020017f2f11a966ac185bf5d584d386b3e8a555d66e51913d8801fb9189542b4bcd3624815250816080015160068151811061092257610922611457565b602002602001018190525060405180604001604052807ee8670dd1e30ffd6e6d42b6f98d3cd5ebb1a6c2a726f4024e6c27b555683cf881526020017f152894c1731fbedba470963903d414e8c210a8b846aedba229071fa832e882fa815250816080015160078151811061099857610998611457565b602002602001018190525060405180604001604052807f2354fe17a8632ee331a1459f6df0806153f19ed6c1645906895e966cea47cab981526020017f27700ede44b18910d2a31045a1d448bb930ba1c39cc918aa3f4b093a610e45b58152508160800151600881518110610a0f57610a0f611457565b602002602001018190525060405180604001604052807f2f583f76ad789e51575f9168446813e1e5655c1f444ed4f8bd2c38c8c438a52e81526020017f21e4aa608b395b9eaf98de7f2c77baac96da672aedab46f36e4a732fbefdaa328152508160800151600981518110610a8657610a86611457565b602002602001018190525060405180604001604052807f29b71cd418de446ac259b14d47ccbc6c7bf3021aa56d6d3ab3fc80becde42ba281526020017f1671437c4af2a055de0faf52bad6da5b1c1f37d53e279ef8d7a04b401b8f00b18152508160800151600a81518110610afd57610afd611457565b602002602001018190525090565b604080518082019091525f8082526020820152610b2661123c565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610b5457fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610bba61125a565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610bf357fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c7c57506020830151155b15610c9b575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610cbf9190611492565b610cc990846114b1565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610cec57505060408051600480825260a082019092529192505f9190602082015b610d34611278565b815260200190600190039081610d2c5790505090508a825f81518110610d5c57610d5c611457565b60200260200101819052508882600181518110610d7b57610d7b611457565b60200260200101819052508682600281518110610d9a57610d9a611457565b60200260200101819052508482600381518110610db957610db9611457565b602002602001018190525089815f81518110610dd757610dd7611457565b60200260200101819052508781600181518110610df657610df6611457565b60200260200101819052508581600281518110610e1557610e15611457565b60200260200101819052508381600381518110610e3457610e34611457565b6020026020010181905250610e498282610e58565b9b9a5050505050505050505050565b5f8151835114610ea35760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610eb18260066114c4565b90505f8167ffffffffffffffff811115610ecd57610ecd6112d4565b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b5090505f5b8381101561112357868181518110610f1557610f15611457565b60200260200101515f015182826006610f2e91906114c4565b610f38905f61147f565b81518110610f4857610f48611457565b602002602001018181525050868181518110610f6657610f66611457565b60200260200101516020015182826006610f8091906114c4565b610f8b90600161147f565b81518110610f9b57610f9b611457565b602002602001018181525050858181518110610fb957610fb9611457565b6020908102919091010151515182610fd28360066114c4565b610fdd90600261147f565b81518110610fed57610fed611457565b60200260200101818152505085818151811061100b5761100b611457565b602090810291909101810151510151826110268360066114c4565b61103190600361147f565b8151811061104157611041611457565b60200260200101818152505085818151811061105f5761105f611457565b6020026020010151602001515f6002811061107c5761107c611457565b60200201518261108d8360066114c4565b61109890600461147f565b815181106110a8576110a8611457565b6020026020010181815250508581815181106110c6576110c6611457565b6020026020010151602001516001600281106110e4576110e4611457565b6020020151826110f58360066114c4565b61110090600561147f565b8151811061111057611110611457565b6020908102919091010152600101610efb565b5061112c611298565b5f602082602086026020860160086107d05a03fa9050808061114a57fe5b50806111905760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016111c7611278565b81526020016111e760405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101611215611278565b8152602001611222611278565b815260200161122f611278565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061128b6112b6565b81526020016111e76112b6565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561131d57634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611334575f5ffd5b5f61133f60406112e8565b9050806040840185811115611352575f5ffd5b845b8181101561136c578035835260209283019201611354565b509195945050505050565b5f5f5f5f610240858703121561138b575f5ffd5b6113958686611325565b935085605f8601126113a5575f5ffd5b60406113b0816112e8565b8060c08801898111156113c1575f5ffd5b604089015b818110156113e7576113d88b82611325565b845260209093019284016113c6565b508196506113f58a82611325565b95505050505061010085015f87601f83011261140f575f5ffd5b5f61014061141c816112e8565b91508301818a82111561142d575f5ffd5b5b8185101561144657843581526020948501940161142e565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e61146b565b5f826114ac57634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e61146b565b808202811582820484141761033e5761033e61146b56fea2646970667358221220dcff813b86dd38808694958c9a737d51423f91e9af2ee777888630650f47d44264736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","networkInteractionId":1,"nonce":628,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","networkInteractionId":1,"nonce":628,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2114193227"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x91e35da3b618d72831c279923cc61f24b2b9794b34392344bc3c0a818e555bfd"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","hash":"0x91e35da3b618d72831c279923cc61f24b2b9794b34392344bc3c0a818e555bfd","networkInteractionId":1,"receipt":{"blockHash":"0x8ada7817238421a12f21e5949a584069d12383cf81509ff63b09f607472854b2","blockNumber":10141844,"contractAddress":"0x1950c025C152B668A56f1706a28dc23cA0F3545A","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","result":{"address":"0x1950c025C152B668A56f1706a28dc23cA0F3545A","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x1F44e20357733D2Be1F765dBea42fbaf4d00c360","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0xA50be6A35eDa38C67B975a2cF7639FBB72a5d0ff","maxAggregations":0,"maxDeposits":0,"maxWithdrawals":0,"withdrawVerifier":"0x1950c025C152B668A56f1706a28dc23cA0F3545A"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","CurvyAggregatorAlpha#NewInsertionVerifier_v2","CurvyAggregatorAlpha#NewAggregationVerifier_v2","CurvyAggregatorAlpha#NewWithdrawVerifier_v2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteraction":{"data":"0xb4da7173000000000000000000000000a50be6a35eda38c67b975a2cf7639fbb72a5d0ff0000000000000000000000001f44e20357733d2be1f765dbea42fbaf4d00c3600000000000000000000000001950c025c152b668a56f1706a28dc23ca0f3545a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xD35E24B0AB6f63C08bE756c8fafF3609ff8A5ce1","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteractionId":1,"nonce":629,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteractionId":1,"nonce":629,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2242694549"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x14e6fc70d8544057ab7254cc60f4cf118aab11bb5a7b219444571a56a82759ff"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","hash":"0x14e6fc70d8544057ab7254cc60f4cf118aab11bb5a7b219444571a56a82759ff","networkInteractionId":1,"receipt":{"blockHash":"0x15be5f79c9f65df2c7a22fa9f4b6eaa5a71a83bb843d07c8f5d06a34bf225b14","blockNumber":10141849,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum/artifacts/PortalFactory#CreateX.json b/ignition/deployments/production_ethereum/artifacts/PortalFactory#CreateX.json
deleted file mode 100644
index 5d6f263..0000000
--- a/ignition/deployments/production_ethereum/artifacts/PortalFactory#CreateX.json
+++ /dev/null
@@ -1,906 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "FailedContractCreation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedContractInitialisation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedEtherTransfer",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidNonceValue",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidSalt",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "Create3ProxyContractCreation",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreateClone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "bytecode": "0x",
- "deployedBytecode": "0x",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/production_ethereum/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/production_ethereum/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum/artifacts/PortalFactoryModule#PortalFactory.json b/ignition/deployments/production_ethereum/artifacts/PortalFactoryModule#PortalFactory.json
deleted file mode 100644
index 467c840..0000000
--- a/ignition/deployments/production_ethereum/artifacts/PortalFactoryModule#PortalFactory.json
+++ /dev/null
@@ -1,256 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json b/ignition/deployments/production_ethereum/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
deleted file mode 100644
index 272c9d5..0000000
--- a/ignition/deployments/production_ethereum/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum/build-info/solc-0_8_28-4a46905cb0ef27b38c7e0fb5d602c4ea92ab12b2.json b/ignition/deployments/production_ethereum/build-info/solc-0_8_28-4a46905cb0ef27b38c7e0fb5d602c4ea92ab12b2.json
deleted file mode 100644
index 07838c7..0000000
--- a/ignition/deployments/production_ethereum/build-info/solc-0_8_28-4a46905cb0ef27b38c7e0fb5d602c4ea92ab12b2.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4a46905cb0ef27b38c7e0fb5d602c4ea92ab12b2",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n constructor(uint256 ownerHash) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress = curvyVault.getTokenAddress(note.token);\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function initializeConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function updateLifiDiamondAddress(address lifiDiamondAddress) external onlyOwner returns (bool) {\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function getCreationCode(uint256 ownerHash) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(bytes calldata bridgeData, CurvyTypes.Note memory note, address tokenAddress) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/production_ethereum/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
deleted file mode 100644
index 4b57fc4..0000000
--- a/ignition/deployments/production_ethereum/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/devenv/ICreateX.sol": {
- "content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json b/ignition/deployments/production_ethereum/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
deleted file mode 100644
index 156f127..0000000
--- a/ignition/deployments/production_ethereum/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n // TODO: Emit shielding failed and if that event is detected in the simulation, then we will mark the shielding as failed.\n return; // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/production_ethereum/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
deleted file mode 100644
index 6ea1fae..0000000
--- a/ignition/deployments/production_ethereum/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum/build-info/solc-0_8_28-9ae30e9ac1e187cf29a0e8d910ce4e4b4fbc63a7.json b/ignition/deployments/production_ethereum/build-info/solc-0_8_28-9ae30e9ac1e187cf29a0e8d910ce4e4b4fbc63a7.json
deleted file mode 100644
index a0d7679..0000000
--- a/ignition/deployments/production_ethereum/build-info/solc-0_8_28-9ae30e9ac1e187cf29a0e8d910ce4e4b4fbc63a7.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-9ae30e9ac1e187cf29a0e8d910ce4e4b4fbc63a7",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n constructor(uint256 ownerHash) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress = curvyVault.getTokenAddress(note.token);\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function initializeConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function updateLifiDiamondAddress(address lifiDiamondAddress) external onlyOwner returns (bool) {\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function getCreationCode(uint256 ownerHash) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(bytes calldata bridgeData, CurvyTypes.Note memory note, address tokenAddress) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json b/ignition/deployments/production_ethereum/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
deleted file mode 100644
index e4ce59c..0000000
--- a/ignition/deployments/production_ethereum/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum/deployed_addresses.json b/ignition/deployments/production_ethereum/deployed_addresses.json
deleted file mode 100644
index 8254adf..0000000
--- a/ignition/deployments/production_ethereum/deployed_addresses.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "PortalFactoryModule#PortalFactory": "0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16",
- "PortalFactory#CreateX": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
- "PortalFactory#PortalFactory": "0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_ethereum/journal.jsonl b/ignition/deployments/production_ethereum/journal.jsonl
deleted file mode 100644
index 311a9d0..0000000
--- a/ignition/deployments/production_ethereum/journal.jsonl
+++ /dev/null
@@ -1,79 +0,0 @@
-
-{"chainId":1,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076686d696861696c6f20616e642076616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000013d97f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516113b93803806113b983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611277806101425f395ff3fe608060405260043610610084575f3560e01c8063715018a611610057578063715018a614610133578063735f399d146101475780637377bbb41461015a5780638da5cb5b14610186578063f2fde38b146101a2575f5ffd5b80631d29b183146100885780633290c33b146100a95780633942b0ad146100e557806352982f3b14610114575b5f5ffd5b348015610093575f5ffd5b506100a76100a236600461074a565b6101c1565b005b3480156100b4575f5ffd5b506100c86100c33660046107d9565b61031f565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100f0575f5ffd5b506101046100ff3660046107f0565b61038d565b60405190151581526020016100dc565b34801561011f575f5ffd5b5061010461012e366004610810565b6103ba565b34801561013e575f5ffd5b506100a7610406565b6100a7610155366004610850565b610419565b348015610165575f5ffd5b506101796101743660046107d9565b6105a1565b6040516100dc919061086a565b348015610191575f5ffd5b505f546001600160a01b03166100c8565b3480156101ad575f5ffd5b506100a76101bc3660046107f0565b61060c565b6004546001600160a01b031661023a5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084015b60405180910390fd5b5f610247835f01516105a1565b90505f5f60015490508083516020850134f591506001600160a01b0382166102b15760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610231565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936102e9939216918c918c918c918c910161089f565b5f604051808303815f87803b158015610300575f5ffd5b505af1158015610312573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f61032a836105a1565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff19166021820152603581019390935260558084019290925280518084039092018252607590920190915280519101209392505050565b5f610396610649565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b5f6103c3610649565b50600280546001600160a01b039485166001600160a01b031991821617909155600380549385169382169390931790925560048054919093169116179055600190565b61040e610649565b6104175f610675565b565b6002546001600160a01b0316158061043a57506003546001600160a01b0316155b156104a45760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b6064820152608401610231565b5f6104b1825f01516105a1565b90505f5f60015490508083516020850134f591506001600160a01b03821661051b5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610231565b60035460025460408051631329a1a760e31b815287516004820152602088015160248201529087015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610585575f5ffd5b505af1158015610597573d5f5f3e3d5ffd5b5050505050505050565b60605f604051806020016105b4906106c4565b601f1982820381018352601f9091011660408181526020808301879052815180840390910181528183019091529192506105f4908390839060600161092b565b60405160208183030381529060405292505050919050565b610614610649565b6001600160a01b03811661063d57604051631e4fbdf760e01b81525f6004820152602401610231565b61064681610675565b50565b5f546001600160a01b031633146104175760405163118cdaa760e01b8152336004820152602401610231565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6108fa8061094883390190565b5f606082840312156106e1575f5ffd5b6040516060810181811067ffffffffffffffff8211171561071057634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b80356001600160a01b03811681146103b5575f5ffd5b5f5f5f5f60a0858703121561075d575f5ffd5b843567ffffffffffffffff811115610773575f5ffd5b8501601f81018713610783575f5ffd5b803567ffffffffffffffff811115610799575f5ffd5b8760208284010111156107aa575f5ffd5b6020918201955093506107c090879087016106d1565b91506107ce60808601610734565b905092959194509250565b5f602082840312156107e9575f5ffd5b5035919050565b5f60208284031215610800575f5ffd5b61080982610734565b9392505050565b5f5f5f60608486031215610822575f5ffd5b61082b84610734565b925061083960208501610734565b915061084760408501610734565b90509250925092565b5f60608284031215610860575f5ffd5b61080983836106d1565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506108f960408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b5f81518060208401855e5f93019283525090919050565b5f61093f6109398386610914565b84610914565b94935050505056fe6080604052348015600e575f5ffd5b506040516108fa3803806108fa833981016040819052602b916032565b6001556048565b5f602082840312156041575f5ffd5b5051919050565b6108a5806100555f395ff3fe608060405234801561000f575f5ffd5b506004361061004a575f3560e01c80633fb070271461004e5780635dc24ee31461007d578063994d0d3814610090578063bcd6c474146100a5575b5f5ffd5b600354610061906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610061906001600160a01b031681565b6100a361009e366004610751565b6100b8565b005b6100a36100b3366004610798565b610357565b5f5460ff16156101095760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b60448201526064015b60405180910390fd5b60015483511461015b5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610100565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf38916101b5919060040190815260200190565b602060405180830381865afa1580156101d0573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101f4919061083e565b90506001600160a01b0381161580159061022b57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156102ca576002546040850151610250916001600160a01b0384811692911690610569565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b1580156102af575f5ffd5b505af11580156102c1573d5f5f3e3d5ffd5b50505050610345565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561032d575f5ffd5b505af115801561033f573d5f5f3e3d5ffd5b50505050505b50505f805460ff191660011790555050565b5f5460ff16156103a35760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610100565b6001600160a01b0385166103f95760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610100565b60015482511461044b5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610100565b60408201516001600160a01b0382161580159061048557506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104a85760408301516104a5906001600160a01b038416908890610569565b505f5b5f866001600160a01b03168287876040516104c4929190610860565b5f6040518083038185875af1925050503d805f81146104fe576040519150601f19603f3d011682016040523d82523d5f602084013e610503565b606091505b50509050806105545760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610100565b50505f805460ff191660011790555050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526105ba8482610622565b61061c57604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261061290859061066b565b61061c848261066b565b50505050565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610661575081156106535780600114610661565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af18061068a576040513d5f823e3d81fd5b50505f513d915081156106a15780600114156106ae565b6001600160a01b0384163b155b1561061c57604051635274afe760e01b81526001600160a01b0385166004820152602401610100565b5f606082840312156106e7575f5ffd5b6040516060810181811067ffffffffffffffff8211171561071657634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b6001600160a01b038116811461074e575f5ffd5b50565b5f5f5f60a08486031215610763575f5ffd5b61076d85856106d7565b9250606084013561077d8161073a565b9150608084013561078d8161073a565b809150509250925092565b5f5f5f5f5f60c086880312156107ac575f5ffd5b85356107b78161073a565b9450602086013567ffffffffffffffff8111156107d2575f5ffd5b8601601f810188136107e2575f5ffd5b803567ffffffffffffffff8111156107f8575f5ffd5b886020828401011115610809575f5ffd5b6020919091019450925061082087604088016106d7565b915060a08601356108308161073a565b809150509295509295909350565b5f6020828403121561084e575f5ffd5b81516108598161073a565b9392505050565b818382375f910190815291905056fea26469706673582212207321f439bbd3f41116bfe31e9272a655e2c52c61a59b8ad1f4caa1331dc20b6564736f6c634300081c0033a2646970667358221220469cc9ebb0be860583ce6271c5714b696f7f83bd5dc7df0218cf81b332b6577364736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":59,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":59,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"486401638"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"10"}},"hash":"0x481bbe623491d74e13e4a120c39d9c86e50fe4b182fecf9a51e0d3a9148c2a1d"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x481bbe623491d74e13e4a120c39d9c86e50fe4b182fecf9a51e0d3a9148c2a1d","networkInteractionId":1,"receipt":{"blockHash":"0xb75dbc672034c089fb6b70d8977758909deb3df2029fccdd578a580b5b74526d","blockNumber":24233528,"logs":[{"address":"0x10aA4c497Fbb880AEa10F8258D7fECb6A2da297F","data":"0x","logIndex":559,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":560,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x00000000000000000000000010aa4c497fbb880aea10f8258d7fecb6a2da297f","0xb1479d7f5dfd9da0029a798b27f617354f0aeca1c622cb19c1f7fe6bd9fc5bc1"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0x10aA4c497Fbb880AEa10F8258D7fECb6A2da297F","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0x10aA4c497Fbb880AEa10F8258D7fECb6A2da297F","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"initializeConfig","futureId":"PortalFactoryModule#PortalFactory.initializeConfig","strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteraction":{"data":"0x52982f3b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x10aA4c497Fbb880AEa10F8258D7fECb6A2da297F","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":60,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":60,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"460927846"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"10"}},"hash":"0xf9f420a7317193f7289bbe04a106dcacf58badf314727dba238982ea94d3d03f"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","hash":"0xf9f420a7317193f7289bbe04a106dcacf58badf314727dba238982ea94d3d03f","networkInteractionId":1,"receipt":{"blockHash":"0x1338034910fb187fc24d37f4f4810e8ac505c7b1ea0756135f968c52e2f11511","blockNumber":24233533,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0x10aA4c497Fbb880AEa10F8258D7fECb6A2da297F","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"PortalFactoryModule#PortalFactory.updateConfig","strategy":"create2","strategyConfig":{"salt":"0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactoryModule#PortalFactory","type":"WIPE_APPLY"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016bc7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":84,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":84,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"200122530"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"10"}},"hash":"0x638d1d088559b75f3fa2704635f371d54a765ded9282e4ac673fc57436d6afe4"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x638d1d088559b75f3fa2704635f371d54a765ded9282e4ac673fc57436d6afe4","networkInteractionId":1,"receipt":{"blockHash":"0x33561695e6ed63dec104bb3c1297e2bb044b458ea112202227a4852fb93afc28","blockNumber":24333354,"logs":[{"address":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","data":"0x","logIndex":530,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":531,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000ff84acbae0c126506b250b0c7d17bcc8367c1d16","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"PortalFactoryModule#PortalFactory.updateConfig","strategy":"create2","strategyConfig":{"salt":"0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":85,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":85,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"220310410"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"10"}},"hash":"0x0683420e66d868249c1ed5125fda777e4c9a51313cb9f737d8f54ed3d0cc0117"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","hash":"0x0683420e66d868249c1ed5125fda777e4c9a51313cb9f737d8f54ed3d0cc0117","networkInteractionId":1,"receipt":{"blockHash":"0x85b95c11fa0e486c3a23b6e7b0c5b4694072ffdb64172d5f13304a635c1a9322","blockNumber":24333359,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":94,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":94,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"338291031"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"15"}},"hash":"0x1da29fdb0884f7a91b041995fd0f0cd8c74b89ba0a31f237a7eea8c47d26df63"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","hash":"0x1da29fdb0884f7a91b041995fd0f0cd8c74b89ba0a31f237a7eea8c47d26df63","networkInteractionId":1,"receipt":{"blockHash":"0x097c4af9a03fb90ec07e600f02e48f1d883441e0dbbb70de62d7af9ae00fc15c","blockNumber":24405436,"logs":[{"address":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","data":"0x","logIndex":604,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":605,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000341d1571998c937e5f3cb3e640805c8b457e7124","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0","nameOrIndex":"newContract","result":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x1da29fdb0884f7a91b041995fd0f0cd8c74b89ba0a31f237a7eea8c47d26df63","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":95,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":95,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"297126795"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"15"}},"hash":"0xc1d1f0f4f4ef78c4ea893f801bfed50afd783919430a2740c95a1e4ebf6f87e2"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xc1d1f0f4f4ef78c4ea893f801bfed50afd783919430a2740c95a1e4ebf6f87e2","networkInteractionId":1,"receipt":{"blockHash":"0x4e33f4b2abd8684f5bef37bc32c216c804620df6491b0423f03473d916e3f08a","blockNumber":24405443,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":121,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":121,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"77699535"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"15"}},"hash":"0x894995fd84119f3339eb5861534160553bcd0623506d6e1c7ee70ba430a28376"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x894995fd84119f3339eb5861534160553bcd0623506d6e1c7ee70ba430a28376","networkInteractionId":1,"receipt":{"blockHash":"0x4e47c8b24648cf4abc823e02bd86e47284595299bb2b8a4e36f8a5744c52f515","blockNumber":24619844,"logs":[{"address":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","data":"0x","logIndex":766,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":767,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000008ec5dedfd00599a6d820f8d54195ac0a7193d15c","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x894995fd84119f3339eb5861534160553bcd0623506d6e1c7ee70ba430a28376","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":122,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":122,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"75586677"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"15"}},"hash":"0x6a40e0f05ee9170dd81b4f8b9020a831cf8ee1d70f60240546306d16e779bcc2"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x6a40e0f05ee9170dd81b4f8b9020a831cf8ee1d70f60240546306d16e779bcc2","networkInteractionId":1,"receipt":{"blockHash":"0xc191b4fc1cbc72a6f9ccfbdbd49fd50fd9b3a142f9933352aa9a7efcde73a11f","blockNumber":24619849,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":139,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":139,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1393884319"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"359651"}},"hash":"0xa153f823540d1483966ba41b5963d01de4f13a61a5bf573f417c5c9c73285d94"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xa153f823540d1483966ba41b5963d01de4f13a61a5bf573f417c5c9c73285d94","networkInteractionId":1,"receipt":{"blockHash":"0x39ea16008dee0167cb959e64eb82e69e9917a4c593cea077d12349868d68ee05","blockNumber":24670756,"logs":[{"address":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","data":"0x","logIndex":427,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":428,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000fe02b0a1ebec81faac4c09e3f4eaefe568833718","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xa153f823540d1483966ba41b5963d01de4f13a61a5bf573f417c5c9c73285d94","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":140,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":140,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1336906373"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"359651"}},"hash":"0x86d926420bd9600a14c428b36a869255d14f6f6b7a4dbaa88c0840e0344fbff8"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x86d926420bd9600a14c428b36a869255d14f6f6b7a4dbaa88c0840e0344fbff8","networkInteractionId":1,"receipt":{"blockHash":"0x859122ee06a3c04f364b23d6b05accbe11c0790e5387e079e220878ae1c870e1","blockNumber":24670761,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/production_gnosis/artifacts/PortalFactory#CreateX.json b/ignition/deployments/production_gnosis/artifacts/PortalFactory#CreateX.json
deleted file mode 100644
index 5d6f263..0000000
--- a/ignition/deployments/production_gnosis/artifacts/PortalFactory#CreateX.json
+++ /dev/null
@@ -1,906 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "FailedContractCreation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedContractInitialisation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedEtherTransfer",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidNonceValue",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidSalt",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "Create3ProxyContractCreation",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreateClone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "bytecode": "0x",
- "deployedBytecode": "0x",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_gnosis/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/production_gnosis/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/production_gnosis/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_gnosis/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json b/ignition/deployments/production_gnosis/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
deleted file mode 100644
index 272c9d5..0000000
--- a/ignition/deployments/production_gnosis/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_gnosis/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/production_gnosis/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
deleted file mode 100644
index 4b57fc4..0000000
--- a/ignition/deployments/production_gnosis/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/devenv/ICreateX.sol": {
- "content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_gnosis/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/production_gnosis/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
deleted file mode 100644
index 6ea1fae..0000000
--- a/ignition/deployments/production_gnosis/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_gnosis/deployed_addresses.json b/ignition/deployments/production_gnosis/deployed_addresses.json
deleted file mode 100644
index bdbb7e3..0000000
--- a/ignition/deployments/production_gnosis/deployed_addresses.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "PortalFactory#CreateX": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
- "PortalFactory#PortalFactory": "0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_gnosis/journal.jsonl b/ignition/deployments/production_gnosis/journal.jsonl
deleted file mode 100644
index 41b7408..0000000
--- a/ignition/deployments/production_gnosis/journal.jsonl
+++ /dev/null
@@ -1,51 +0,0 @@
-
-{"chainId":100,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":18,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":18,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"673110707546"}},"hash":"0x823026dcd824b95ede9babec97ca404b47a0a21263f2b0d59b600153f31de502"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","hash":"0x823026dcd824b95ede9babec97ca404b47a0a21263f2b0d59b600153f31de502","networkInteractionId":1,"receipt":{"blockHash":"0xce02dac8fc742b86b3827684e6ed2c6122a3cc471b5cc2954b96255ccfac3ab6","blockNumber":82676740,"logs":[{"address":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","data":"0x","logIndex":2616,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":2617,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000341d1571998c937e5f3cb3e640805c8b457e7124","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]},{"address":"0x0000000000000000000000000000000000001010","data":"0x000000000000000000000000000000000000000000000000016abb8e370dd71000000000000000000000000000000000000000000000000178effd8eb487da220000000000000000000000000000000000000000000620eeafaaf6c95afe0684000000000000000000000000000000000000000000000001778542007d7a03120000000000000000000000000000000000000000000620eeb115b257920bdd94","logIndex":2618,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0","nameOrIndex":"newContract","result":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x823026dcd824b95ede9babec97ca404b47a0a21263f2b0d59b600153f31de502","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":18,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":18,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"14145"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"69"}},"hash":"0x6645bc712f599859d1b1d44aab0027d15e593432a9f0760ba94ba9e9474847c2"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x6645bc712f599859d1b1d44aab0027d15e593432a9f0760ba94ba9e9474847c2","networkInteractionId":1,"receipt":{"blockHash":"0x907625a900c43b55b4a16c7487b76ae8a66492a8f2350e5757126d330bf0ff85","blockNumber":44559549,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":29,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":29,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"961"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"69"}},"hash":"0xabd523314c262e24e9b37c08ec49cc402677cf4312880d4cc7e7d908a163cf41"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xabd523314c262e24e9b37c08ec49cc402677cf4312880d4cc7e7d908a163cf41","networkInteractionId":1,"receipt":{"blockHash":"0x8a696166f049aa86692ba757673c505bbd2ef5baac7b67942dd01538b5e0b2f2","blockNumber":45062247,"logs":[{"address":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","data":"0x","logIndex":80,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":81,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000008ec5dedfd00599a6d820f8d54195ac0a7193d15c","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xabd523314c262e24e9b37c08ec49cc402677cf4312880d4cc7e7d908a163cf41","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":30,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":30,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"919"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"69"}},"hash":"0xcb1420aa03ace955bb2dd5084aa789c1f71a8737cc4ba208503a80b4b9f0abfc"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xcb1420aa03ace955bb2dd5084aa789c1f71a8737cc4ba208503a80b4b9f0abfc","networkInteractionId":1,"receipt":{"blockHash":"0x871e86b1bfcc29738de929ab7b2484a09a73a62921b669cbf0bf3d07deca520a","blockNumber":45062252,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":40,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":40,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"455"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"69"}},"hash":"0x73bfccd315ea9e991b8db81771b9c77298670cef6c9a6bbaabef7ff77c369fa3"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x73bfccd315ea9e991b8db81771b9c77298670cef6c9a6bbaabef7ff77c369fa3","networkInteractionId":1,"receipt":{"blockHash":"0x9ebdfe55e337530bab2e14d11fc22d256223cf1e633a49d8b24e315e539f59bb","blockNumber":45180581,"logs":[{"address":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","data":"0x","logIndex":105,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":106,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000fe02b0a1ebec81faac4c09e3f4eaefe568833718","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x73bfccd315ea9e991b8db81771b9c77298670cef6c9a6bbaabef7ff77c369fa3","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":41,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":41,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"487"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"69"}},"hash":"0x2dfc1026dbcf170df758cf18ea4697800db36c0689f78311ee644cef0647064a"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x2dfc1026dbcf170df758cf18ea4697800db36c0689f78311ee644cef0647064a","networkInteractionId":1,"receipt":{"blockHash":"0x6a0fa356cb9699d4b78f6cf2a3f8b29c0e37d3040ef60030104849598749ae52","blockNumber":45180587,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/production_linea/artifacts/PortalFactory#CreateX.json b/ignition/deployments/production_linea/artifacts/PortalFactory#CreateX.json
deleted file mode 100644
index 5d6f263..0000000
--- a/ignition/deployments/production_linea/artifacts/PortalFactory#CreateX.json
+++ /dev/null
@@ -1,906 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "FailedContractCreation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedContractInitialisation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedEtherTransfer",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidNonceValue",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidSalt",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "Create3ProxyContractCreation",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreateClone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "bytecode": "0x",
- "deployedBytecode": "0x",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_linea/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/production_linea/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/production_linea/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_linea/artifacts/PortalFactoryModule#PortalFactory.json b/ignition/deployments/production_linea/artifacts/PortalFactoryModule#PortalFactory.json
deleted file mode 100644
index 467c840..0000000
--- a/ignition/deployments/production_linea/artifacts/PortalFactoryModule#PortalFactory.json
+++ /dev/null
@@ -1,256 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_linea/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json b/ignition/deployments/production_linea/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
deleted file mode 100644
index 272c9d5..0000000
--- a/ignition/deployments/production_linea/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_linea/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/production_linea/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
deleted file mode 100644
index 4b57fc4..0000000
--- a/ignition/deployments/production_linea/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/devenv/ICreateX.sol": {
- "content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_linea/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json b/ignition/deployments/production_linea/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
deleted file mode 100644
index 156f127..0000000
--- a/ignition/deployments/production_linea/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n // TODO: Emit shielding failed and if that event is detected in the simulation, then we will mark the shielding as failed.\n return; // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_linea/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/production_linea/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
deleted file mode 100644
index 6ea1fae..0000000
--- a/ignition/deployments/production_linea/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_linea/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json b/ignition/deployments/production_linea/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
deleted file mode 100644
index e4ce59c..0000000
--- a/ignition/deployments/production_linea/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_linea/deployed_addresses.json b/ignition/deployments/production_linea/deployed_addresses.json
deleted file mode 100644
index 8254adf..0000000
--- a/ignition/deployments/production_linea/deployed_addresses.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "PortalFactoryModule#PortalFactory": "0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16",
- "PortalFactory#CreateX": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
- "PortalFactory#PortalFactory": "0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_linea/journal.jsonl b/ignition/deployments/production_linea/journal.jsonl
deleted file mode 100644
index 736fb5c..0000000
--- a/ignition/deployments/production_linea/journal.jsonl
+++ /dev/null
@@ -1,63 +0,0 @@
-
-{"chainId":59144,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016bc7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":8,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":8,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"55263710"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"55263696"}},"hash":"0xd87c46b7d39d28d6152b3178603f0b26fbf049bb1df2dd92523636c6d0d3155c"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0xd87c46b7d39d28d6152b3178603f0b26fbf049bb1df2dd92523636c6d0d3155c","networkInteractionId":1,"receipt":{"blockHash":"0x6ddd3de62a9e2472b7355436b5fbda94a6e5e625372541ae0fc38ecb68806ec0","blockNumber":28403901,"logs":[{"address":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","data":"0x","logIndex":0,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000ff84acbae0c126506b250b0c7d17bcc8367c1d16","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0xde1e598b81620773454588b85d6b5d4eec32573e"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"PortalFactoryModule#PortalFactory.updateConfig","strategy":"create2","strategyConfig":{"salt":"0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de1e598b81620773454588b85d6b5d4eec32573e","id":1,"to":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":9,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":9,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"55263710"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"55263696"}},"hash":"0x8b7348760f36ad5939ebe427508d73150f82c7756247ebec7ef9b666bdf08a87"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","hash":"0x8b7348760f36ad5939ebe427508d73150f82c7756247ebec7ef9b666bdf08a87","networkInteractionId":1,"receipt":{"blockHash":"0x70516dc7c5609db9715145a6f76fcaecec553f2fc3ca1be0db111ec6c1002419","blockNumber":28403907,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":15,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":15,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"47999078"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"47999064"}},"hash":"0x4757bb385e230168495ea78661cb08372dbbafd8065d8b6edb97379928a44f36"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","hash":"0x4757bb385e230168495ea78661cb08372dbbafd8065d8b6edb97379928a44f36","networkInteractionId":1,"receipt":{"blockHash":"0xeec4b9e80f8bf1c84debc49af836fb43f44929608bedefc49c7863630117a740","blockNumber":28695697,"logs":[{"address":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","data":"0x","logIndex":0,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000341d1571998c937e5f3cb3e640805c8b457e7124","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0","nameOrIndex":"newContract","result":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x4757bb385e230168495ea78661cb08372dbbafd8065d8b6edb97379928a44f36","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0xde1e598b81620773454588b85d6b5d4eec32573e"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de1e598b81620773454588b85d6b5d4eec32573e","id":1,"to":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":16,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":16,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"45480013"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"45479999"}},"hash":"0xf0cd14fb665132cabb3af7a69f5e59e3cd90574fe875fe496cf3b3cf972d3d28"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xf0cd14fb665132cabb3af7a69f5e59e3cd90574fe875fe496cf3b3cf972d3d28","networkInteractionId":1,"receipt":{"blockHash":"0x0edefd7ae2768558a8018d95495f95d407c4bcbce89b6b3aba71dbee56946689","blockNumber":28695703,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":33,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":33,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"43314292"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"43314278"}},"hash":"0x27fab4e0beb09b4a9813789d941ead912f555045cf823413946284e7c5dd2a5a"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x27fab4e0beb09b4a9813789d941ead912f555045cf823413946284e7c5dd2a5a","networkInteractionId":1,"receipt":{"blockHash":"0x5a709145bb08984d5f560e367a003373cccef26187ff8a5959ae9216eb96aeb6","blockNumber":29592013,"logs":[{"address":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","data":"0x","logIndex":0,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000008ec5dedfd00599a6d820f8d54195ac0a7193d15c","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x27fab4e0beb09b4a9813789d941ead912f555045cf823413946284e7c5dd2a5a","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0xde1e598b81620773454588b85d6b5d4eec32573e"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de1e598b81620773454588b85d6b5d4eec32573e","id":1,"to":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":34,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":34,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"43685033"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"43685019"}},"hash":"0x124da88c89f51f8fdc7bcfc660e30984e768e852394f20bc7384b4b7e4d5d835"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x124da88c89f51f8fdc7bcfc660e30984e768e852394f20bc7384b4b7e4d5d835","networkInteractionId":1,"receipt":{"blockHash":"0xd7fc38352b7187e70e19a4766d16b9865ade41efba2523a31bda9f721316a504","blockNumber":29592018,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":49,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":49,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"75000014"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"75000000"}},"hash":"0x87b710b457b4219d7a0933961966c0a0f2c9648a997f76a5a1bbaea03a111433"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x87b710b457b4219d7a0933961966c0a0f2c9648a997f76a5a1bbaea03a111433","networkInteractionId":1,"receipt":{"blockHash":"0xafd138d87a5b11eb17618b6f37fe95ec84ebcaa4384c657088a4bfa490a0ae00","blockNumber":29744216,"logs":[{"address":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","data":"0x","logIndex":0,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000fe02b0a1ebec81faac4c09e3f4eaefe568833718","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x87b710b457b4219d7a0933961966c0a0f2c9648a997f76a5a1bbaea03a111433","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0xde1e598b81620773454588b85d6b5d4eec32573e"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de1e598b81620773454588b85d6b5d4eec32573e","id":1,"to":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":50,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":50,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"75000014"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"75000000"}},"hash":"0xbfca27d0692a27ebd04ed95b294c52d90f6119fcc75d822a345f6704e5af799e"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xbfca27d0692a27ebd04ed95b294c52d90f6119fcc75d822a345f6704e5af799e","networkInteractionId":1,"receipt":{"blockHash":"0xef50f1b1bf295df39d0fdecb7ace98006ecc989036e9568f6f92913d0f6205e5","blockNumber":29744223,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/production_optimism/artifacts/PortalFactory#CreateX.json b/ignition/deployments/production_optimism/artifacts/PortalFactory#CreateX.json
deleted file mode 100644
index 5d6f263..0000000
--- a/ignition/deployments/production_optimism/artifacts/PortalFactory#CreateX.json
+++ /dev/null
@@ -1,906 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "FailedContractCreation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedContractInitialisation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedEtherTransfer",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidNonceValue",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidSalt",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "Create3ProxyContractCreation",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreateClone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "bytecode": "0x",
- "deployedBytecode": "0x",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_optimism/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/production_optimism/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/production_optimism/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_optimism/artifacts/PortalFactoryModule#PortalFactory.json b/ignition/deployments/production_optimism/artifacts/PortalFactoryModule#PortalFactory.json
deleted file mode 100644
index 467c840..0000000
--- a/ignition/deployments/production_optimism/artifacts/PortalFactoryModule#PortalFactory.json
+++ /dev/null
@@ -1,256 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_optimism/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json b/ignition/deployments/production_optimism/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
deleted file mode 100644
index 272c9d5..0000000
--- a/ignition/deployments/production_optimism/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_optimism/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/production_optimism/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
deleted file mode 100644
index 4b57fc4..0000000
--- a/ignition/deployments/production_optimism/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/devenv/ICreateX.sol": {
- "content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_optimism/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json b/ignition/deployments/production_optimism/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
deleted file mode 100644
index 156f127..0000000
--- a/ignition/deployments/production_optimism/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n // TODO: Emit shielding failed and if that event is detected in the simulation, then we will mark the shielding as failed.\n return; // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_optimism/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/production_optimism/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
deleted file mode 100644
index 6ea1fae..0000000
--- a/ignition/deployments/production_optimism/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_optimism/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json b/ignition/deployments/production_optimism/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
deleted file mode 100644
index e4ce59c..0000000
--- a/ignition/deployments/production_optimism/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_optimism/deployed_addresses.json b/ignition/deployments/production_optimism/deployed_addresses.json
deleted file mode 100644
index 8254adf..0000000
--- a/ignition/deployments/production_optimism/deployed_addresses.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "PortalFactoryModule#PortalFactory": "0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16",
- "PortalFactory#CreateX": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
- "PortalFactory#PortalFactory": "0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_optimism/journal.jsonl b/ignition/deployments/production_optimism/journal.jsonl
deleted file mode 100644
index 7e6980b..0000000
--- a/ignition/deployments/production_optimism/journal.jsonl
+++ /dev/null
@@ -1,63 +0,0 @@
-
-{"chainId":10,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016bc7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":8,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":8,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1002234"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xc6f0b9c483552dca11c62566b6f6928e4e76bde1f89f2093f500afd36be0a166"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0xc6f0b9c483552dca11c62566b6f6928e4e76bde1f89f2093f500afd36be0a166","networkInteractionId":1,"receipt":{"blockHash":"0x5acf42572a0b51fc4340ab59a9ef1e486c694dc87fc8f9e98c6a5e6f688f0029","blockNumber":147002664,"logs":[{"address":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","data":"0x","logIndex":0,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000ff84acbae0c126506b250b0c7d17bcc8367c1d16","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"PortalFactoryModule#PortalFactory.updateConfig","strategy":"create2","strategyConfig":{"salt":"0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":9,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":9,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1002232"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x98ddcd5202860e3d3187cd0c1162411d84e1de8e60e3da1010272f66776c2abd"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","hash":"0x98ddcd5202860e3d3187cd0c1162411d84e1de8e60e3da1010272f66776c2abd","networkInteractionId":1,"receipt":{"blockHash":"0x52f146a49f01fde23fcf409761e68d869c6078999e76bb3e3bf8e2651ba2db2d","blockNumber":147002669,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":17,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":17,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1426340"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x10c793e091bca4a98c13348e437a08d50d82f11efbc8488d3834593ff95e1a9b"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","hash":"0x10c793e091bca4a98c13348e437a08d50d82f11efbc8488d3834593ff95e1a9b","networkInteractionId":1,"receipt":{"blockHash":"0xabb29ceb4451777f5092ef73e9f534366447a68deb5e242882cfe03f5caefb8a","blockNumber":147437343,"logs":[{"address":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","data":"0x","logIndex":96,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":97,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000341d1571998c937e5f3cb3e640805c8b457e7124","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0","nameOrIndex":"newContract","result":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x10c793e091bca4a98c13348e437a08d50d82f11efbc8488d3834593ff95e1a9b","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":18,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":18,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1425898"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xa4ac49bd8d62e06b59b212c9a34e4d8168b176e5d5819f897bca22910bbc5619"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xa4ac49bd8d62e06b59b212c9a34e4d8168b176e5d5819f897bca22910bbc5619","networkInteractionId":1,"receipt":{"blockHash":"0x39268fc07476c9464a7bac6326b984444ac05ec4bf69f9dbd41cf24db5114116","blockNumber":147437348,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":38,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":38,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1104120"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x0ab4be5b538349ca6c2abb39d25a597b7e4e573bff28d61d4349630e2eb4aef8"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x0ab4be5b538349ca6c2abb39d25a597b7e4e573bff28d61d4349630e2eb4aef8","networkInteractionId":1,"receipt":{"blockHash":"0x574c4a6b6add1be53444bab917800bf259a2e62d73cded670505b3f8ff32111f","blockNumber":148729983,"logs":[{"address":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","data":"0x","logIndex":17,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":18,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000008ec5dedfd00599a6d820f8d54195ac0a7193d15c","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x0ab4be5b538349ca6c2abb39d25a597b7e4e573bff28d61d4349630e2eb4aef8","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":39,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":39,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1103814"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xb5ad995c4868287cdaefdfb69c686ef2ef2f82a283d2a1ed8a123a071c947b68"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xb5ad995c4868287cdaefdfb69c686ef2ef2f82a283d2a1ed8a123a071c947b68","networkInteractionId":1,"receipt":{"blockHash":"0x0dca985bfcde7eecee6f863e693701ae8b2fc941fd4cd2273826a33411479721","blockNumber":148729988,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":52,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":52,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1002304"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x60823d852fe3dc2b7d55100f396739b44b75b04548690aa2ffb926c5efbf89e8"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x60823d852fe3dc2b7d55100f396739b44b75b04548690aa2ffb926c5efbf89e8","networkInteractionId":1,"receipt":{"blockHash":"0xef8fb5db1b8c3d20b5b086389f567352081656c4e882cde70729cf7f53fd269e","blockNumber":149036778,"logs":[{"address":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","data":"0x","logIndex":17,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":18,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000fe02b0a1ebec81faac4c09e3f4eaefe568833718","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x60823d852fe3dc2b7d55100f396739b44b75b04548690aa2ffb926c5efbf89e8","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":53,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":53,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1002306"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xe1d41c9d59458de5cd5b241a86e6302324d94dcb930af4ab2c1d4c4eb5e3a557"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xe1d41c9d59458de5cd5b241a86e6302324d94dcb930af4ab2c1d4c4eb5e3a557","networkInteractionId":1,"receipt":{"blockHash":"0xb411d18ed16dc11c70983394cee64f8efac499887b88a4bf6b24c7d06bf384f2","blockNumber":149036785,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/production_polygon/artifacts/PortalFactory#CreateX.json b/ignition/deployments/production_polygon/artifacts/PortalFactory#CreateX.json
deleted file mode 100644
index 5d6f263..0000000
--- a/ignition/deployments/production_polygon/artifacts/PortalFactory#CreateX.json
+++ /dev/null
@@ -1,906 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "FailedContractCreation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedContractInitialisation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedEtherTransfer",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidNonceValue",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidSalt",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "Create3ProxyContractCreation",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreateClone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "bytecode": "0x",
- "deployedBytecode": "0x",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_polygon/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/production_polygon/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/production_polygon/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_polygon/artifacts/PortalFactoryModule#PortalFactory.json b/ignition/deployments/production_polygon/artifacts/PortalFactoryModule#PortalFactory.json
deleted file mode 100644
index 467c840..0000000
--- a/ignition/deployments/production_polygon/artifacts/PortalFactoryModule#PortalFactory.json
+++ /dev/null
@@ -1,256 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_polygon/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json b/ignition/deployments/production_polygon/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
deleted file mode 100644
index 272c9d5..0000000
--- a/ignition/deployments/production_polygon/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_polygon/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/production_polygon/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
deleted file mode 100644
index 4b57fc4..0000000
--- a/ignition/deployments/production_polygon/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/devenv/ICreateX.sol": {
- "content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_polygon/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json b/ignition/deployments/production_polygon/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
deleted file mode 100644
index 156f127..0000000
--- a/ignition/deployments/production_polygon/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n // TODO: Emit shielding failed and if that event is detected in the simulation, then we will mark the shielding as failed.\n return; // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_polygon/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/production_polygon/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
deleted file mode 100644
index 6ea1fae..0000000
--- a/ignition/deployments/production_polygon/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_polygon/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json b/ignition/deployments/production_polygon/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
deleted file mode 100644
index e4ce59c..0000000
--- a/ignition/deployments/production_polygon/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_polygon/deployed_addresses.json b/ignition/deployments/production_polygon/deployed_addresses.json
deleted file mode 100644
index 8254adf..0000000
--- a/ignition/deployments/production_polygon/deployed_addresses.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "PortalFactoryModule#PortalFactory": "0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16",
- "PortalFactory#CreateX": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
- "PortalFactory#PortalFactory": "0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_polygon/journal.jsonl b/ignition/deployments/production_polygon/journal.jsonl
deleted file mode 100644
index 0dc7aa6..0000000
--- a/ignition/deployments/production_polygon/journal.jsonl
+++ /dev/null
@@ -1,66 +0,0 @@
-
-{"chainId":137,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016bc7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":8,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":8,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"545131660671"}},"hash":"0x4843a9992f1495714563aff4456931e922305f381d4f71f3726adb2a84699bb3"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x4843a9992f1495714563aff4456931e922305f381d4f71f3726adb2a84699bb3","networkInteractionId":1,"receipt":{"blockHash":"0xd67772fccfbdf294716dcdae1a37172ffe9371db4cc8ad35191f73471d038b6d","blockNumber":82242082,"logs":[{"address":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","data":"0x","logIndex":1240,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1241,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000ff84acbae0c126506b250b0c7d17bcc8367c1d16","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]},{"address":"0x0000000000000000000000000000000000001010","data":"0x0000000000000000000000000000000000000000000000000095cff2af4720600000000000000000000000000000000000000000000000019a07406a853b8061000000000000000000000000000000000000000000014688ab45e39d9a0ca43000000000000000000000000000000000000000000000000199717077d5f46001000000000000000000000000000000000000000000014688abdbb3904953c490","logIndex":1242,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"PortalFactoryModule#PortalFactory.updateConfig","strategy":"create2","strategyConfig":{"salt":"0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xfF84ACBAE0c126506b250b0c7d17bcc8367C1d16","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":9,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":9,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"540618002780"}},"hash":"0x42e4abdd23b8676c0950e8a5ba18ca38c5d11ef5bc9ba2930165f89b6c420eeb"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","hash":"0x42e4abdd23b8676c0950e8a5ba18ca38c5d11ef5bc9ba2930165f89b6c420eeb","networkInteractionId":1,"receipt":{"blockHash":"0x1977b56691fbed920e4548dc0eae57c6b3346f39374d645b7ea509a0a0ae2079","blockNumber":82242088,"logs":[{"address":"0x0000000000000000000000000000000000001010","data":"0x0000000000000000000000000000000000000000000000000004b23f6a98e087000000000000000000000000000000000000000000000001903fe498ada4b191000000000000000000000000000000000000000000014689633943bbbbb266eb000000000000000000000000000000000000000000000001903b3259430bd10a000000000000000000000000000000000000000000014689633df5fb264b4772","logIndex":1640,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":18,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":18,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"673110707546"}},"hash":"0x823026dcd824b95ede9babec97ca404b47a0a21263f2b0d59b600153f31de502"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","hash":"0x823026dcd824b95ede9babec97ca404b47a0a21263f2b0d59b600153f31de502","networkInteractionId":1,"receipt":{"blockHash":"0xce02dac8fc742b86b3827684e6ed2c6122a3cc471b5cc2954b96255ccfac3ab6","blockNumber":82676740,"logs":[{"address":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","data":"0x","logIndex":2616,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":2617,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000341d1571998c937e5f3cb3e640805c8b457e7124","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]},{"address":"0x0000000000000000000000000000000000001010","data":"0x000000000000000000000000000000000000000000000000016abb8e370dd71000000000000000000000000000000000000000000000000178effd8eb487da220000000000000000000000000000000000000000000620eeafaaf6c95afe0684000000000000000000000000000000000000000000000001778542007d7a03120000000000000000000000000000000000000000000620eeb115b257920bdd94","logIndex":2618,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0","nameOrIndex":"newContract","result":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x823026dcd824b95ede9babec97ca404b47a0a21263f2b0d59b600153f31de502","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x341d1571998c937E5f3Cb3E640805C8b457e7124","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":19,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":19,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"723404367079"}},"hash":"0x9f6a3fa95917057da0296f17551df6c1f55a8d0412de409e81e9b9df20300204"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x9f6a3fa95917057da0296f17551df6c1f55a8d0412de409e81e9b9df20300204","networkInteractionId":1,"receipt":{"blockHash":"0xc12266e3f73f60e82da8adaa3e8846b698bf266e3402506aebc38eeb36686e0d","blockNumber":82676746,"logs":[{"address":"0x0000000000000000000000000000000000001010","data":"0x0000000000000000000000000000000000000000000000000014267bdc87c1e80000000000000000000000000000000000000000000000016caeb46fb3f544420000000000000000000000000000000000000000000620f5bca894abefe82c650000000000000000000000000000000000000000000000016c9a8df3d76d825a0000000000000000000000000000000000000000000620f5bcbcbb27cc6fee4d","logIndex":2835,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":37,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":37,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"159328181134"}},"hash":"0xcf314e24420ffb0b97128d298cd7636548473e505bf4cf2dbbf8d1fb24b7b75c"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xcf314e24420ffb0b97128d298cd7636548473e505bf4cf2dbbf8d1fb24b7b75c","networkInteractionId":1,"receipt":{"blockHash":"0xa0de6ad0dab2c0d70be3d2741571c713fff8edbe2aff86858d1cfcab25434aae","blockNumber":83969385,"logs":[{"address":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","data":"0x","logIndex":2063,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":2064,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000008ec5dedfd00599a6d820f8d54195ac0a7193d15c","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]},{"address":"0x0000000000000000000000000000000000001010","data":"0x00000000000000000000000000000000000000000000000000c410292130cb9c000000000000000000000000000000000000000000000001278bb4d9cc8538550000000000000000000000000000000000000000001209a20f92074aed3589e100000000000000000000000000000000000000000000000126c7a4b0ab546cb90000000000000000000000000000000000000000001209a2105617740e66557d","logIndex":2065,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xcf314e24420ffb0b97128d298cd7636548473e505bf4cf2dbbf8d1fb24b7b75c","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x8EC5dEDfD00599A6d820F8d54195AC0A7193D15C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":38,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":38,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"160727202718"}},"hash":"0xef8cb9ea252118706cf8f30537277a2be83099984bc9ee4159c84ae1cff73819"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"type":"ONCHAIN_INTERACTION_BUMP_FEES"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":38,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":38,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"223735445065"}},"hash":"0x712695b0aee0c91c776dde82eb4f8c83670b02017d421103e2398594800b7cf2"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x712695b0aee0c91c776dde82eb4f8c83670b02017d421103e2398594800b7cf2","networkInteractionId":1,"receipt":{"blockHash":"0x0101c54739297ee0670309155aae297fce65b08ef32d376f5a9f2515522bc430","blockNumber":83969482,"logs":[{"address":"0x0000000000000000000000000000000000001010","data":"0x0000000000000000000000000000000000000000000000000004f199af93394a000000000000000000000000000000000000000000000001239db85f1d561f0d000000000000000000000000000000000000000000120ad5f732c46f5ef7cf2d0000000000000000000000000000000000000000000000012398c6c56dc2e5c3000000000000000000000000000000000000000000120ad5f737b6090e8b0877","logIndex":2784,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x70726f64206d696861696c6f2c76616e6a6120637572767920706f7765720000","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x2630766870726f64206d696861696c6f2c76616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":49,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":49,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"125458128438"}},"hash":"0xcd8d434cab385d9b35267294cdf35c9bbcd330abf7300b529ee97f68d4a17dcb"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xcd8d434cab385d9b35267294cdf35c9bbcd330abf7300b529ee97f68d4a17dcb","networkInteractionId":1,"receipt":{"blockHash":"0xea97a1ec9f17c762bb4b962390a3ffa616cdb8c847e7383badd491f2d652c6e9","blockNumber":84276404,"logs":[{"address":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","data":"0x","logIndex":2588,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":2589,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000fe02b0a1ebec81faac4c09e3f4eaefe568833718","0x12209b2c998b2e1a1a0bed3c6eea596004f9bc843b2ec6995da61f7f0fa40c95"]},{"address":"0x0000000000000000000000000000000000001010","data":"0x000000000000000000000000000000000000000000000000009effdff093106c00000000000000000000000000000000000000000000000117f77bd8df146798000000000000000000000000000000000000000000151aad3b5469cf3653893e00000000000000000000000000000000000000000000000117587bf8ee81572c000000000000000000000000000000000000000000151aad3bf369af26e699aa","logIndex":2590,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xcd8d434cab385d9b35267294cdf35c9bbcd330abf7300b529ee97f68d4a17dcb","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":50,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":50,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"124369848902"}},"hash":"0x7ab4f61a8339c6519f6aa447a5ffc6af8406f081fbec48a61ada6201f7392f10"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x7ab4f61a8339c6519f6aa447a5ffc6af8406f081fbec48a61ada6201f7392f10","networkInteractionId":1,"receipt":{"blockHash":"0x2989c0427923541e3ca5ef7aad6e2566fd05dd27b8e5502d297276804e4dc5a8","blockNumber":84276411,"logs":[{"address":"0x0000000000000000000000000000000000001010","data":"0x000000000000000000000000000000000000000000000000000452bc2db934a100000000000000000000000000000000000000000000000114e34687131e3474000000000000000000000000000000000000000000151ab01f1b3fe14b324b1000000000000000000000000000000000000000000000000114def3cae564ffd3000000000000000000000000000000000000000000151ab01f1f929d78eb7fb1","logIndex":2347,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2.json
deleted file mode 100644
index 8536a77..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregationVerifierAlpha_2_2_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "_pubSignals",
- "type": "uint256[14]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b50610a0c8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610974565b610054565b604051901515815260200160405180910390f35b5f610881565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7e10acd6d4ce082a72b623deeac4b4c1c526b8ab76ab54f82d13b63a6f23e2cd85527f282cd953fc7bc024a80710dd645d4cd8e4ef6d10eb7403a76618f96eddb5336e60208601525f608086018661018d87357f21626e5f52776516ac007ae23e14ca016f4e7623b79f63f4ab59482e4872c52b7f2c8f6445390acb60223f07dcf516fee816534c9940dc8d59595786b35106f0f38461008c565b6101dd60208801357f20d91723fc6a5cff2a4d8bd53db8c7647c86b9245b27d7042634dd317becf0797f1693b6ee023f9ef0c9e7cb1d290717e3df5f6d2154ba30f3a6a833f3171c2ee08461008c565b61022d60408801357f1a9347082efac79b5d64033c95c7f2190984cd2a19884b4ad26162ea47e0ea3b7f27173150520b68cc7844935166da0f68924aeccc8a30ae9ca0768eb597cf2a638461008c565b61027d60608801357f207839c9f296371e642b17ab83a64fca9b9044d10b0f6a5319ae0e2ee2a76c0c7f235a1223ea30a75c93efd51c3abd465c611878ebc52d9830e61978f914d7c8908461008c565b6102cd60808801357f0cefdb3db08f930f2ed5534a797dc304a1189c61a2835aabb6c5831f0ca838f37f15bf6ee50fbb6b6a07695b99fa739330553161a7de0b0380556b61ebe950563f8461008c565b61031d60a08801357f0b50c85999c665bad3101fb618ca967aa4860c1c07f4c54bcf692b7b30b2c11a7f2d4f881288f63fa77f63eaad252bd5efbbbda01e21976fb645aaadd286929c3f8461008c565b61036d60c08801357f15b81a815c06b38295623648d75372799d4755f7a0b74f7bd655f5f64715a03e7f09331bcaac14f8bcf495ed09470e01f3c268f1fdb4e019c19c836e2c8310044a8461008c565b6103bd60e08801357f2a2a8f30efa6592960fa69f190f96c5f0b432948973a9c53269de3e6b8abebb57f297cd48dfb07dc7ad0120ed8151942d511ebca1b71a736b61ac6375e2a51947a8461008c565b61040e6101008801357f0a9c03a1994f221c057f75855cb14a95329dde81e32a7a8660a3828c46e4af7d7f1dc315ae7bd487ac77c690ee6e5d2fe7bbfd5ae36935ffac15114a4f2748dc5b8461008c565b61045f6101208801357f0280bc41f56d2038589161b139f5c3704eeb19e9da2f170a5b4e977678a727697f063f6dc839c18a58049574763b3de59bc2c20609b01907e66dcfe264b091cd858461008c565b6104b06101408801357f1f96dc322de85ba0a31ce878d61f5047eba9ad25489230b888ede7739aeb36f57f0d58db0890c2f6ee0bda8261a76d6ad9da96e539d0df7046cd0799f0176a53fb8461008c565b6105016101608801357f246ef5979ae9aea616e30dbab411c28406510a656ddd2043a5b9211d31edd1647f24d8db926da6b7c4a17804818d83058eb0f5dfa6163c3922aa9a7edeb4b85ede8461008c565b6105526101808801357f1011fe6c75f7c6cf1a8a62ff71387fef8a19e46d0af37193380a7c603f7529497f12b2d70c94e401c6f3822578fb27c67f97bf1827a1b9e0cc1c2fb34a68a6521d8461008c565b6105a36101a08801357f082d86555b48de36b698d5bc0cb44148b3a0eb1d3b992638453070deb120b15d7f26b43cf48f595a8e3e2a3b8515b7df9db6ffebecbc968995b4071e0f2dad32dc8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1f7f9f69ea5e04a56ee102635a0fcdbefd57b4c7f37a1e0d903ba69281a5f0d36102808201527f2a49c1e717e044ad7bc38e0b841e28e08eebe51b906016be33a2ff2d74f10c586102a08201527f027a67b0798b9350cd04c5ce09117b7e660dbe3e1449f667ea13c3c43255f84c6102c08201527f19725ce00771a3c317cb70a3c5856f91c6ac2313426f5863fcd93969d2384de06102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108985f84013561005a565b6108a5602084013561005a565b6108b2604084013561005a565b6108bf606084013561005a565b6108cc608084013561005a565b6108d960a084013561005a565b6108e660c084013561005a565b6108f360e084013561005a565b61090161010084013561005a565b61090f61012084013561005a565b61091d61014084013561005a565b61092b61016084013561005a565b61093961018084013561005a565b6109476101a084013561005a565b610954818486888a6100f2565b9050805f5260205ff35b806040810183101561096e575f5ffd5b92915050565b5f5f5f5f6102c08587031215610988575f5ffd5b610992868661095e565b935060c08501868111156109a4575f5ffd5b6040860193506109b4878261095e565b925050856102c0860111156109c7575f5ffd5b5091949093509091610100019056fea2646970667358221220c5df5a746d614b72f69595bc69601e5559fe5a1a70d66d8b1723b65d65e2b55c64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610974565b610054565b604051901515815260200160405180910390f35b5f610881565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7e10acd6d4ce082a72b623deeac4b4c1c526b8ab76ab54f82d13b63a6f23e2cd85527f282cd953fc7bc024a80710dd645d4cd8e4ef6d10eb7403a76618f96eddb5336e60208601525f608086018661018d87357f21626e5f52776516ac007ae23e14ca016f4e7623b79f63f4ab59482e4872c52b7f2c8f6445390acb60223f07dcf516fee816534c9940dc8d59595786b35106f0f38461008c565b6101dd60208801357f20d91723fc6a5cff2a4d8bd53db8c7647c86b9245b27d7042634dd317becf0797f1693b6ee023f9ef0c9e7cb1d290717e3df5f6d2154ba30f3a6a833f3171c2ee08461008c565b61022d60408801357f1a9347082efac79b5d64033c95c7f2190984cd2a19884b4ad26162ea47e0ea3b7f27173150520b68cc7844935166da0f68924aeccc8a30ae9ca0768eb597cf2a638461008c565b61027d60608801357f207839c9f296371e642b17ab83a64fca9b9044d10b0f6a5319ae0e2ee2a76c0c7f235a1223ea30a75c93efd51c3abd465c611878ebc52d9830e61978f914d7c8908461008c565b6102cd60808801357f0cefdb3db08f930f2ed5534a797dc304a1189c61a2835aabb6c5831f0ca838f37f15bf6ee50fbb6b6a07695b99fa739330553161a7de0b0380556b61ebe950563f8461008c565b61031d60a08801357f0b50c85999c665bad3101fb618ca967aa4860c1c07f4c54bcf692b7b30b2c11a7f2d4f881288f63fa77f63eaad252bd5efbbbda01e21976fb645aaadd286929c3f8461008c565b61036d60c08801357f15b81a815c06b38295623648d75372799d4755f7a0b74f7bd655f5f64715a03e7f09331bcaac14f8bcf495ed09470e01f3c268f1fdb4e019c19c836e2c8310044a8461008c565b6103bd60e08801357f2a2a8f30efa6592960fa69f190f96c5f0b432948973a9c53269de3e6b8abebb57f297cd48dfb07dc7ad0120ed8151942d511ebca1b71a736b61ac6375e2a51947a8461008c565b61040e6101008801357f0a9c03a1994f221c057f75855cb14a95329dde81e32a7a8660a3828c46e4af7d7f1dc315ae7bd487ac77c690ee6e5d2fe7bbfd5ae36935ffac15114a4f2748dc5b8461008c565b61045f6101208801357f0280bc41f56d2038589161b139f5c3704eeb19e9da2f170a5b4e977678a727697f063f6dc839c18a58049574763b3de59bc2c20609b01907e66dcfe264b091cd858461008c565b6104b06101408801357f1f96dc322de85ba0a31ce878d61f5047eba9ad25489230b888ede7739aeb36f57f0d58db0890c2f6ee0bda8261a76d6ad9da96e539d0df7046cd0799f0176a53fb8461008c565b6105016101608801357f246ef5979ae9aea616e30dbab411c28406510a656ddd2043a5b9211d31edd1647f24d8db926da6b7c4a17804818d83058eb0f5dfa6163c3922aa9a7edeb4b85ede8461008c565b6105526101808801357f1011fe6c75f7c6cf1a8a62ff71387fef8a19e46d0af37193380a7c603f7529497f12b2d70c94e401c6f3822578fb27c67f97bf1827a1b9e0cc1c2fb34a68a6521d8461008c565b6105a36101a08801357f082d86555b48de36b698d5bc0cb44148b3a0eb1d3b992638453070deb120b15d7f26b43cf48f595a8e3e2a3b8515b7df9db6ffebecbc968995b4071e0f2dad32dc8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1f7f9f69ea5e04a56ee102635a0fcdbefd57b4c7f37a1e0d903ba69281a5f0d36102808201527f2a49c1e717e044ad7bc38e0b841e28e08eebe51b906016be33a2ff2d74f10c586102a08201527f027a67b0798b9350cd04c5ce09117b7e660dbe3e1449f667ea13c3c43255f84c6102c08201527f19725ce00771a3c317cb70a3c5856f91c6ac2313426f5863fcd93969d2384de06102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108985f84013561005a565b6108a5602084013561005a565b6108b2604084013561005a565b6108bf606084013561005a565b6108cc608084013561005a565b6108d960a084013561005a565b6108e660c084013561005a565b6108f360e084013561005a565b61090161010084013561005a565b61090f61012084013561005a565b61091d61014084013561005a565b61092b61016084013561005a565b61093961018084013561005a565b6109476101a084013561005a565b610954818486888a6100f2565b9050805f5260205ff35b806040810183101561096e575f5ffd5b92915050565b5f5f5f5f6102c08587031215610988575f5ffd5b610992868661095e565b935060c08501868111156109a4575f5ffd5b6040860193506109b4878261095e565b925050856102c0860111156109c7575f5ffd5b5091949093509091610100019056fea2646970667358221220c5df5a746d614b72f69595bc69601e5559fe5a1a70d66d8b1723b65d65e2b55c64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol",
- "buildInfoId": "solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json
deleted file mode 100644
index 3a8d5c1..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json
+++ /dev/null
@@ -1,637 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV1",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205c716993d98e927c2e009d323d30b276b9f9053b13c990872e37e08ceda5f0e864736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205c716993d98e927c2e009d323d30b276b9f9053b13c990872e37e08ceda5f0e864736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1487
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1238
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4794
- },
- {
- "length": 32,
- "start": 4835
- },
- {
- "length": 32,
- "start": 5159
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "buildInfoId": "solc-0_8_28-7aa766fe6b7b062ed2ddb662f43195e0e5c263ca"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json
deleted file mode 100644
index 9aa0056..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json
+++ /dev/null
@@ -1,637 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV2",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212201730379fe7a3c7937db67ca664b730fe2e0b84fe42189a88b0c15e26b364904064736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212201730379fe7a3c7937db67ca664b730fe2e0b84fe42189a88b0c15e26b364904064736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1487
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1238
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4796
- },
- {
- "length": 32,
- "start": 4837
- },
- {
- "length": 32,
- "start": 5161
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "buildInfoId": "solc-0_8_28-073f43613e21cd9c4dda603b6759f0d8e61b5e93"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json
deleted file mode 100644
index ee51215..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json
+++ /dev/null
@@ -1,691 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV3",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212203e7631d092463e9fef733079a709fae68d0cf33ba8f41e1065fa3c8bfd72784264736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212203e7631d092463e9fef733079a709fae68d0cf33ba8f41e1065fa3c8bfd72784264736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1517
- },
- {
- "length": 20,
- "start": 3824
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1268
- },
- {
- "length": 20,
- "start": 3575
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5556
- },
- {
- "length": 32,
- "start": 5597
- },
- {
- "length": 32,
- "start": 5921
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol",
- "buildInfoId": "solc-0_8_28-afcc26c0e2a098ed3d6af1f251e333e826a18474"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation.json
deleted file mode 100644
index 0355bda..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation.json
+++ /dev/null
@@ -1,704 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV4",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516124506100f95f395f818161168a015281816116b301526117f701526124505ff3fe608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1574
- },
- {
- "length": 20,
- "start": 4081
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1325
- },
- {
- "length": 20,
- "start": 3832
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5770
- },
- {
- "length": 32,
- "start": 5811
- },
- {
- "length": 32,
- "start": 6135
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol",
- "buildInfoId": "solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation.json
deleted file mode 100644
index e69c420..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation.json
+++ /dev/null
@@ -1,668 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV5",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNoteTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNullifierTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidNotesRoot",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidWithdrawProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NoteNotScheduledForDeposit",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "PortalNotRegistered",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "publicInputs",
- "type": "uint256[9]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVaultV2",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifiersTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifierV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d506100f95f395f8181610f9f01528181610fc8015261110c0152611d505ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3290
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3041
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 3999
- },
- {
- "length": 32,
- "start": 4040
- },
- {
- "length": 32,
- "start": 4364
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol",
- "buildInfoId": "solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6.json
deleted file mode 100644
index 18895d9..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6.json
+++ /dev/null
@@ -1,668 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV6",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNoteTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNullifierTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidNotesRoot",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidWithdrawProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NoteNotScheduledForDeposit",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "PortalNotRegistered",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "publicInputs",
- "type": "uint256[9]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVaultV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifiersTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifierV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611e4b6100f95f395f81816110500152818161107901526111bd0152611e4b5ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3406
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3157
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4176
- },
- {
- "length": 32,
- "start": 4217
- },
- {
- "length": 32,
- "start": 4541
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol",
- "buildInfoId": "solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation.json
deleted file mode 100644
index 18895d9..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation.json
+++ /dev/null
@@ -1,668 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV6",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNoteTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNullifierTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidNotesRoot",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidWithdrawProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NoteNotScheduledForDeposit",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "PortalNotRegistered",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "publicInputs",
- "type": "uint256[9]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVaultV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifiersTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifierV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611e4b6100f95f395f81816110500152818161107901526111bd0152611e4b5ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3406
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3157
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4176
- },
- {
- "length": 32,
- "start": 4217
- },
- {
- "length": 32,
- "start": 4541
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol",
- "buildInfoId": "solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2.json
deleted file mode 100644
index 74a22ca..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyInsertionVerifierAlpha_2_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "_pubSignals",
- "type": "uint256[4]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506106648061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d7565b610054565b604051901515815260200160405180910390f35b5f61055c565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0f3cc497f7f2ad2db9f9a01e1d1e237e7bd547ee48d3698641bae08ce37c187485527f2a2f300a2bc9b5576e8d348d9542dedfce1dd7566c9f7ad0c7936e9508f2d13f60208601525f608086018661018e87357f152cd78e51c23961af90e069fcceb20b0358a4c13f4d05ad78f5554803410ec47f068d0161c738b8256d8f80c113a6f2adc60bf92724e5ba844434551f353109bb8461008c565b6101de60208801357f28aeb7fafb1d5864b489fac2ac75795429a84564ed301367b95bdbbda22e41cc7f01fb82a3a457b9782065bddb3961e014b8602fe337a83a253a4edbe7f9eca5de8461008c565b61022e60408801357f10e505cabab95d2954811e50e0c907e6e27d3ea37df4576cb85d2b024b758e5e7f132ffdaaa0e5fbd39240ae81be15c78f27d1a5e9f0b046bc50a19ebd0e1f50be8461008c565b61027e60608801357f061f18bbab38fe7f8eca85f2017b25f057fb908ca68d0965746884ca8b0b2e027f0323511d8b4f23d71a970779314d464e5993156eaed0970a246cd2a43da830c88461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f2ce5cf088183ccc73bfeb1244cdee7ae92ceb0e007194b0bf6c6e9819a863ca960c08201527f0b549a9abb46bc0c3ed48341aa21baa4532bca1fb1ff7a8ef409d3384eb73d3660e08201527f270e5ddc8a3d6e364fae6b353c6deedc579e522582d3d1d60036e9c43428bb8e6101008201527f2d9ef7723573eb05565ba62424d4b2f2d5a0e68d542f8c45daadb2f10a5cde376101208201527f1f542545a1550702631817615d0eac929e73ccc384d92ac156c7d3577e01d5226101408201527f08cd2dbefe01d914cd9826b6a1309de1d3c645a028b69cc3c690a05c183a9fa36101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f126779f2434a76e4e37da855f43a1df5648908e4e91eebf1e086544970eed7b86102808201527f12624c6dbae3875cc0583ab185cb81fc69d606519eef4d6140b7ac67aa6e26e76102a08201527f116d7e6cfc0480d16acdcebb03bef4a46abe3cff28a3aa60d1bf691b43679d866102c08201527f1bbda14ad6f8f4d5d33363f1d50fd72bf4b3b25d615b896c9e050098f5016f7d6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105735f84013561005a565b610580602084013561005a565b61058d604084013561005a565b61059a606084013561005a565b6105a7818486888a6100f2565b9050805f5260205ff35b80604081018310156105c1575f5ffd5b92915050565b80608081018310156105c1575f5ffd5b5f5f5f5f61018085870312156105eb575f5ffd5b6105f586866105b1565b935061060486604087016105c7565b92506106138660c087016105b1565b91506106238661010087016105c7565b90509295919450925056fea26469706673582212206f782de436746e389d2f3f8eeac94b985e369b9a2c08f0f7a2167fc9a1fa233d64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d7565b610054565b604051901515815260200160405180910390f35b5f61055c565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0f3cc497f7f2ad2db9f9a01e1d1e237e7bd547ee48d3698641bae08ce37c187485527f2a2f300a2bc9b5576e8d348d9542dedfce1dd7566c9f7ad0c7936e9508f2d13f60208601525f608086018661018e87357f152cd78e51c23961af90e069fcceb20b0358a4c13f4d05ad78f5554803410ec47f068d0161c738b8256d8f80c113a6f2adc60bf92724e5ba844434551f353109bb8461008c565b6101de60208801357f28aeb7fafb1d5864b489fac2ac75795429a84564ed301367b95bdbbda22e41cc7f01fb82a3a457b9782065bddb3961e014b8602fe337a83a253a4edbe7f9eca5de8461008c565b61022e60408801357f10e505cabab95d2954811e50e0c907e6e27d3ea37df4576cb85d2b024b758e5e7f132ffdaaa0e5fbd39240ae81be15c78f27d1a5e9f0b046bc50a19ebd0e1f50be8461008c565b61027e60608801357f061f18bbab38fe7f8eca85f2017b25f057fb908ca68d0965746884ca8b0b2e027f0323511d8b4f23d71a970779314d464e5993156eaed0970a246cd2a43da830c88461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f2ce5cf088183ccc73bfeb1244cdee7ae92ceb0e007194b0bf6c6e9819a863ca960c08201527f0b549a9abb46bc0c3ed48341aa21baa4532bca1fb1ff7a8ef409d3384eb73d3660e08201527f270e5ddc8a3d6e364fae6b353c6deedc579e522582d3d1d60036e9c43428bb8e6101008201527f2d9ef7723573eb05565ba62424d4b2f2d5a0e68d542f8c45daadb2f10a5cde376101208201527f1f542545a1550702631817615d0eac929e73ccc384d92ac156c7d3577e01d5226101408201527f08cd2dbefe01d914cd9826b6a1309de1d3c645a028b69cc3c690a05c183a9fa36101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f126779f2434a76e4e37da855f43a1df5648908e4e91eebf1e086544970eed7b86102808201527f12624c6dbae3875cc0583ab185cb81fc69d606519eef4d6140b7ac67aa6e26e76102a08201527f116d7e6cfc0480d16acdcebb03bef4a46abe3cff28a3aa60d1bf691b43679d866102c08201527f1bbda14ad6f8f4d5d33363f1d50fd72bf4b3b25d615b896c9e050098f5016f7d6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105735f84013561005a565b610580602084013561005a565b61058d604084013561005a565b61059a606084013561005a565b6105a7818486888a6100f2565b9050805f5260205ff35b80604081018310156105c1575f5ffd5b92915050565b80608081018310156105c1575f5ffd5b5f5f5f5f61018085870312156105eb575f5ffd5b6105f586866105b1565b935061060486604087016105c7565b92506106138660c087016105b1565b91506106238661010087016105c7565b90509295919450925056fea26469706673582212206f782de436746e389d2f3f8eeac94b985e369b9a2c08f0f7a2167fc9a1fa233d64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol",
- "buildInfoId": "solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2.json
deleted file mode 100644
index db29871..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyWithdrawVerifierAlpha_2_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "_pubSignals",
- "type": "uint256[10]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506108918061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b3660046107f9565b610054565b604051901515815260200160405180910390f35b5f61073e565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f1a75f14b8b1faa4b851f07b25985339af1f9563cb229396803fd379fead2bd7385527f0b5b03df8219c60d5be03ad52394f3d6330cf3e7cea9e656bc22982dd15cbadc60208601525f608086018661018e87357f05f00c0d109f87a8cf18b9d3052caae6027871b0d6fea2f54ca225891e16b0607f0d35ddf8253fb232d095057744ccb6f9d5887bee97ea61f885d511934169bcf08461008c565b6101de60208801357f2a60d3a69ccee567e2b57a0a42bcf19ba0d2335ceb81a2dcb71439314fea13857f2f70a47844f43803cbb4ce9a69cd5b3db4647da90f325d2ef456abea72d0bfe08461008c565b61022e60408801357f0f18cbcd1cbf7d154a35393c17382058e4b30517ab8be123af7d1951c671d4697f26cfb6e0961b50d6d1f534baef948730bec2a603ebf189eaaf72036e2a4d2fe68461008c565b61027e60608801357f033ae488254843311cd5bb9676251b2c80852d467355d37f443e17d049a503267f27e5a68de42fcbcbadd940c39e2013830c75dbb9ad6714cb768ba7d14af9421a8461008c565b6102ce60808801357f28120958d688c8a0d58372b242df5ec1c75aa124ab6f19c90c4b76b81057fd297f11c4be0f98ac33b680d4607a898dc72cdfc6d9946943b3e9f0080fe825263a5d8461008c565b61031e60a08801357f037d488c8ba35a919f4cfd44b1a9be07a0ca1ea689695c6b238ad364c47bbf7a7f2dd63748d624fd0124f265891b52eeb7d5565727b674658be4378d6e5b46be308461008c565b61036e60c08801357f2297bda45459480a6a488bd3386537b38ae11ffecb6beaec43e291d33dd2f8947f1d7c255c5e9cfa6d8457dc20e4af90332c6550fa6bea6ac80b2fcae91e31fb658461008c565b6103be60e08801357f1c564b05c0c5fc1db338de776a71a9b6408e0f1062ee5eec1ead8fe1fb68f0317f085c76b320e78e8fc1c30cd9a86ee083c737af478c344a985ff23109398c4e768461008c565b61040f6101008801357f0f6d3858a35815b73d414424416d4e35babb3e0141641fb6f11c5899b96ff6ce7f0678620b35e9ade6b5807cf7ccd5210ae099894132f0bff6345ba129e944dd3d8461008c565b6104606101208801357f2ef17308df02f12bcd04a63c4f9642e6a21bbfecd79bc266d9278cba32c0b7f47f1e5b526c2f7dbd765611c3117d2aa8924597b68d5b8d3654c375174d6affa8998461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f044bacd3d9b251fa2cdcb89c1e71c78d2d0ff824d43403d616a47c804c0469696102808201527f297536676d7cec34d41955f24cc5034a5b79d92b20c48c6d8073bc32016612396102a08201527f0281d22ffce2cf0ca8b4109517cf30ceed20be4d2ed307fda036ad8ef5e12df26102c08201527f1ffe72c016746c242459c1973b77d50d6415bb22ce31c61ee504c42c65b3d33c6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107555f84013561005a565b610762602084013561005a565b61076f604084013561005a565b61077c606084013561005a565b610789608084013561005a565b61079660a084013561005a565b6107a360c084013561005a565b6107b060e084013561005a565b6107be61010084013561005a565b6107cc61012084013561005a565b6107d9818486888a6100f2565b9050805f5260205ff35b80604081018310156107f3575f5ffd5b92915050565b5f5f5f5f610240858703121561080d575f5ffd5b61081786866107e3565b935060c0850186811115610829575f5ffd5b60408601935061083987826107e3565b925050856102408601111561084c575f5ffd5b5091949093509091610100019056fea2646970667358221220703faca2770b9c9f7e9a23c6d18d7c741c60c3262a4a3449160cfe04d5d9618164736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b3660046107f9565b610054565b604051901515815260200160405180910390f35b5f61073e565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f1a75f14b8b1faa4b851f07b25985339af1f9563cb229396803fd379fead2bd7385527f0b5b03df8219c60d5be03ad52394f3d6330cf3e7cea9e656bc22982dd15cbadc60208601525f608086018661018e87357f05f00c0d109f87a8cf18b9d3052caae6027871b0d6fea2f54ca225891e16b0607f0d35ddf8253fb232d095057744ccb6f9d5887bee97ea61f885d511934169bcf08461008c565b6101de60208801357f2a60d3a69ccee567e2b57a0a42bcf19ba0d2335ceb81a2dcb71439314fea13857f2f70a47844f43803cbb4ce9a69cd5b3db4647da90f325d2ef456abea72d0bfe08461008c565b61022e60408801357f0f18cbcd1cbf7d154a35393c17382058e4b30517ab8be123af7d1951c671d4697f26cfb6e0961b50d6d1f534baef948730bec2a603ebf189eaaf72036e2a4d2fe68461008c565b61027e60608801357f033ae488254843311cd5bb9676251b2c80852d467355d37f443e17d049a503267f27e5a68de42fcbcbadd940c39e2013830c75dbb9ad6714cb768ba7d14af9421a8461008c565b6102ce60808801357f28120958d688c8a0d58372b242df5ec1c75aa124ab6f19c90c4b76b81057fd297f11c4be0f98ac33b680d4607a898dc72cdfc6d9946943b3e9f0080fe825263a5d8461008c565b61031e60a08801357f037d488c8ba35a919f4cfd44b1a9be07a0ca1ea689695c6b238ad364c47bbf7a7f2dd63748d624fd0124f265891b52eeb7d5565727b674658be4378d6e5b46be308461008c565b61036e60c08801357f2297bda45459480a6a488bd3386537b38ae11ffecb6beaec43e291d33dd2f8947f1d7c255c5e9cfa6d8457dc20e4af90332c6550fa6bea6ac80b2fcae91e31fb658461008c565b6103be60e08801357f1c564b05c0c5fc1db338de776a71a9b6408e0f1062ee5eec1ead8fe1fb68f0317f085c76b320e78e8fc1c30cd9a86ee083c737af478c344a985ff23109398c4e768461008c565b61040f6101008801357f0f6d3858a35815b73d414424416d4e35babb3e0141641fb6f11c5899b96ff6ce7f0678620b35e9ade6b5807cf7ccd5210ae099894132f0bff6345ba129e944dd3d8461008c565b6104606101208801357f2ef17308df02f12bcd04a63c4f9642e6a21bbfecd79bc266d9278cba32c0b7f47f1e5b526c2f7dbd765611c3117d2aa8924597b68d5b8d3654c375174d6affa8998461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f044bacd3d9b251fa2cdcb89c1e71c78d2d0ff824d43403d616a47c804c0469696102808201527f297536676d7cec34d41955f24cc5034a5b79d92b20c48c6d8073bc32016612396102a08201527f0281d22ffce2cf0ca8b4109517cf30ceed20be4d2ed307fda036ad8ef5e12df26102c08201527f1ffe72c016746c242459c1973b77d50d6415bb22ce31c61ee504c42c65b3d33c6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107555f84013561005a565b610762602084013561005a565b61076f604084013561005a565b61077c606084013561005a565b610789608084013561005a565b61079660a084013561005a565b6107a360c084013561005a565b6107b060e084013561005a565b6107be61010084013561005a565b6107cc61012084013561005a565b6107d9818486888a6100f2565b9050805f5260205ff35b80604081018310156107f3575f5ffd5b92915050565b5f5f5f5f610240858703121561080d575f5ffd5b61081786866107e3565b935060c0850186811115610829575f5ffd5b60408601935061083987826107e3565b925050856102408601111561084c575f5ffd5b5091949093509091610100019056fea2646970667358221220703faca2770b9c9f7e9a23c6d18d7c741c60c3262a4a3449160cfe04d5d9618164736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol",
- "buildInfoId": "solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#ERC1967Proxy.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#ERC1967Proxy.json
deleted file mode 100644
index ad99af7..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#ERC1967Proxy.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ERC1967Proxy",
- "sourceName": "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "_data",
- "type": "bytes"
- }
- ],
- "stateMutability": "payable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "stateMutability": "payable",
- "type": "fallback"
- }
- ],
- "bytecode": "0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033",
- "deployedBytecode": "0x6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Proxy.sol",
- "buildInfoId": "solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#NewAggregationVerifier_v2.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#NewAggregationVerifier_v2.json
deleted file mode 100644
index ef94579..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#NewAggregationVerifier_v2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregationVerifierAlpha_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "input",
- "type": "uint256[14]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "r",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506116ed8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004611553565b610054565b604051901515815260200160405180910390f35b5f61005d61137a565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600e8082526101e082019093525f92909182016101c0803683370190505090505f5b600e811015610133578481600e811061010957610109611633565b602002015182828151811061012057610120611633565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061165b565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611633565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061165b565b8151811061029557610295611633565b60200260200101518a85815181106102af576102af611633565b6020026020010151610ce7565b610d7b565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611633565b6020026020010151610d7b565b9050610327610304865f0151610e12565b8660200151845f015185602001518587604001518b604001518960600151610eae565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6113c8565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f040960ae7a0345676e57477fe153547dac4996ccff6cd8bdbfab68194176ebfe8185019081527f09f390a54aa2c22bc7ab1273ccbfba2d124f277c4b7858b7e6b2b215264b2524828401528152835180850185527f069489b61aadf82d080f5b031e40c78265091ce5230bde1c6b129bd6ee8f929a81527f11d4a92da28cae8798f897d046ec7d2b818431d18ca7d7b30c720a5a4320777f8185015281840152908401528151600f8082526102008201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f18c30badf97bca79e0290e1e2709c180d796014d89846a50fdf83edb9a5f126081527ec6ff8cc32c2c88d6a18abf5d8474acb27c8174ed0969d8641896bb65bc14c46020820152905180515f9061065857610658611633565b602002602001018190525060405180604001604052807f26be249a1394d006fdb707e50aafdbfae0abcdd8424b6e9ecfaad5546f97f78881526020017f1d61635959d20e223664b32f4564dc44e3b7b360b37d388f9f7f51585800155581525081608001516001815181106106cf576106cf611633565b602002602001018190525060405180604001604052807f2506541fa33baf46747051d8ebe51a91b929a728a707a75f0cdeafd7f739fd3181526020017f0d08b60cf224252ab06e146a2272e4c007567054b6e83778161343ae31deb5ac815250816080015160028151811061074657610746611633565b602002602001018190525060405180604001604052807f1f3bdf1e50dc24be846513f7f74068a55438ca5acb4f64c3d3921bde7468a2d681526020017f2e5e1a4837097500979c5d1cf152f067e70c896ac860ba29651b02f6e79edae281525081608001516003815181106107bd576107bd611633565b602002602001018190525060405180604001604052807f203c139f09bbb742c8d4c51234494498c24d56884f24f6545086e2238e763a5881526020017f028e6932f3bc2561b30d7fe76c6de6bebf4c8ea0621bbb6ad41882df5eb7264b815250816080015160048151811061083457610834611633565b602002602001018190525060405180604001604052807f204223f3717fb8cd7ebd1a98a872f75b82e0ef94fa940335abd65568db85649f81526020017f0d2ccb01844a345701f9b1f27c633fdb9ad135aeaa0fae0fd831d08edcdc323b81525081608001516005815181106108ab576108ab611633565b602002602001018190525060405180604001604052807f2ca96167b9316ee5855a83bb4a92112653444fffa0bf5725ae9b090bb288152e81526020017f1d6d5440897b2ec044f2aaecdab5e507c4d69f8c7ca8813db13ce819e79129d4815250816080015160068151811061092257610922611633565b602002602001018190525060405180604001604052807f1cba19de78b5c7c47d2407121e7e86d0d70c63aaee0ce04ca5fecaee97ab75d481526020017f059319895b38a350849d8c25b406b951743ab1c6237a63b648f07c5f3e7e19dd815250816080015160078151811061099957610999611633565b602002602001018190525060405180604001604052807f016cc32364e0c0823d4b34edc52852c6665a421cd8867fbd190170fab867bea681526020017f0734df7485b401e47cbd1c3ab7024be0250f9fa13ab7ec9b3b40d83178eb2b468152508160800151600881518110610a1057610a10611633565b602002602001018190525060405180604001604052807f29286c62d871cffa08e84997e6180455e1edca20d681ef29656ef4d6d45b001781526020017f2e71a4c29421434de9ed5e921a2b6a23816a740d99b6f135fd01cad64bd288ac8152508160800151600981518110610a8757610a87611633565b602002602001018190525060405180604001604052807f2492df9b4d0ad2639c6f34096692d29d2f9ed9ee57d9e9c3ba303e9dbcdae43081526020017f2e497c91b7e5e3a2a9b9f7fe9cdfe78c9e72037bb7552e29d54813a4566c6fbd8152508160800151600a81518110610afe57610afe611633565b602002602001018190525060405180604001604052807f1476e8d331c072345e564de7e0c1b051b0b0b18531bdd1e7441e0257090a0c1781526020017f110b09db70453d4ec6bed001ab95fcb5ce4b8e21a0c4f4c26b91dc8059aa1dce8152508160800151600b81518110610b7557610b75611633565b602002602001018190525060405180604001604052807e6e2fbcfe989d63aea84d90addc8537a921948b213ef36ec5fa0cbb5b68670381526020017f06f6a502b00b2945dd9841eca5ab5f69654f4992777102c600ca5402c35d6c288152508160800151600c81518110610beb57610beb611633565b602002602001018190525060405180604001604052807f01a330e578c215a80aaf5fc3208956611670affa4560f2dd1f7892698b50c35881526020017f0a9ccad9b2edacd7bbb8a5c460a47d7a114166eace7c8cfe32c7a4243c30e0f28152508160800151600d81518110610c6257610c62611633565b602002602001018190525060405180604001604052807f0aa436490c317254e1444ad76cac634937ea2fa0d0730983455fed54f43c9ff981526020017f12228d15b01f07e1d77acd2c2c609c7e4c9a70503e071ec4963191e6d4d13d598152508160800151600e81518110610cd957610cd9611633565b602002602001018190525090565b604080518082019091525f8082526020820152610d02611418565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610d3057fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610d96611436565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610dcf57fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610e5857506020830151155b15610e77575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610e9b919061166e565b610ea5908461168d565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610ec857505060408051600480825260a082019092529192505f9190602082015b610f10611454565b815260200190600190039081610f085790505090508a825f81518110610f3857610f38611633565b60200260200101819052508882600181518110610f5757610f57611633565b60200260200101819052508682600281518110610f7657610f76611633565b60200260200101819052508482600381518110610f9557610f95611633565b602002602001018190525089815f81518110610fb357610fb3611633565b60200260200101819052508781600181518110610fd257610fd2611633565b60200260200101819052508581600281518110610ff157610ff1611633565b6020026020010181905250838160038151811061101057611010611633565b60200260200101819052506110258282611034565b9b9a5050505050505050505050565b5f815183511461107f5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f61108d8260066116a0565b90505f8167ffffffffffffffff8111156110a9576110a96114b0565b6040519080825280602002602001820160405280156110d2578160200160208202803683370190505b5090505f5b838110156112ff578681815181106110f1576110f1611633565b60200260200101515f01518282600661110a91906116a0565b611114905f61165b565b8151811061112457611124611633565b60200260200101818152505086818151811061114257611142611633565b6020026020010151602001518282600661115c91906116a0565b61116790600161165b565b8151811061117757611177611633565b60200260200101818152505085818151811061119557611195611633565b60209081029190910101515151826111ae8360066116a0565b6111b990600261165b565b815181106111c9576111c9611633565b6020026020010181815250508581815181106111e7576111e7611633565b602090810291909101810151510151826112028360066116a0565b61120d90600361165b565b8151811061121d5761121d611633565b60200260200101818152505085818151811061123b5761123b611633565b6020026020010151602001515f6002811061125857611258611633565b6020020151826112698360066116a0565b61127490600461165b565b8151811061128457611284611633565b6020026020010181815250508581815181106112a2576112a2611633565b6020026020010151602001516001600281106112c0576112c0611633565b6020020151826112d18360066116a0565b6112dc90600561165b565b815181106112ec576112ec611633565b60209081029190910101526001016110d7565b50611308611474565b5f602082602086026020860160086107d05a03fa9050808061132657fe5b508061136c5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016113a3611454565b81526020016113c360405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c08301919091528152602081016113f1611454565b81526020016113fe611454565b815260200161140b611454565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280611467611492565b81526020016113c3611492565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156114f957634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611510575f5ffd5b5f61151b60406114c4565b905080604084018581111561152e575f5ffd5b845b81811015611548578035835260209283019201611530565b509195945050505050565b5f5f5f5f6102c08587031215611567575f5ffd5b6115718686611501565b935085605f860112611581575f5ffd5b604061158c816114c4565b8060c088018981111561159d575f5ffd5b604089015b818110156115c3576115b48b82611501565b845260209093019284016115a2565b508196506115d18a82611501565b95505050505061010085015f87601f8301126115eb575f5ffd5b5f6101c06115f8816114c4565b91508301818a821115611609575f5ffd5b5b8185101561162257843581526020948501940161160a565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e611647565b5f8261168857634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e611647565b808202811582820484141761033e5761033e61164756fea26469706673582212208ecec3b58f8c69288c925191a76554c85a5d679e9a34b2047785e1439c8c3d1d64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004611553565b610054565b604051901515815260200160405180910390f35b5f61005d61137a565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600e8082526101e082019093525f92909182016101c0803683370190505090505f5b600e811015610133578481600e811061010957610109611633565b602002015182828151811061012057610120611633565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061165b565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611633565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061165b565b8151811061029557610295611633565b60200260200101518a85815181106102af576102af611633565b6020026020010151610ce7565b610d7b565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611633565b6020026020010151610d7b565b9050610327610304865f0151610e12565b8660200151845f015185602001518587604001518b604001518960600151610eae565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6113c8565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f040960ae7a0345676e57477fe153547dac4996ccff6cd8bdbfab68194176ebfe8185019081527f09f390a54aa2c22bc7ab1273ccbfba2d124f277c4b7858b7e6b2b215264b2524828401528152835180850185527f069489b61aadf82d080f5b031e40c78265091ce5230bde1c6b129bd6ee8f929a81527f11d4a92da28cae8798f897d046ec7d2b818431d18ca7d7b30c720a5a4320777f8185015281840152908401528151600f8082526102008201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f18c30badf97bca79e0290e1e2709c180d796014d89846a50fdf83edb9a5f126081527ec6ff8cc32c2c88d6a18abf5d8474acb27c8174ed0969d8641896bb65bc14c46020820152905180515f9061065857610658611633565b602002602001018190525060405180604001604052807f26be249a1394d006fdb707e50aafdbfae0abcdd8424b6e9ecfaad5546f97f78881526020017f1d61635959d20e223664b32f4564dc44e3b7b360b37d388f9f7f51585800155581525081608001516001815181106106cf576106cf611633565b602002602001018190525060405180604001604052807f2506541fa33baf46747051d8ebe51a91b929a728a707a75f0cdeafd7f739fd3181526020017f0d08b60cf224252ab06e146a2272e4c007567054b6e83778161343ae31deb5ac815250816080015160028151811061074657610746611633565b602002602001018190525060405180604001604052807f1f3bdf1e50dc24be846513f7f74068a55438ca5acb4f64c3d3921bde7468a2d681526020017f2e5e1a4837097500979c5d1cf152f067e70c896ac860ba29651b02f6e79edae281525081608001516003815181106107bd576107bd611633565b602002602001018190525060405180604001604052807f203c139f09bbb742c8d4c51234494498c24d56884f24f6545086e2238e763a5881526020017f028e6932f3bc2561b30d7fe76c6de6bebf4c8ea0621bbb6ad41882df5eb7264b815250816080015160048151811061083457610834611633565b602002602001018190525060405180604001604052807f204223f3717fb8cd7ebd1a98a872f75b82e0ef94fa940335abd65568db85649f81526020017f0d2ccb01844a345701f9b1f27c633fdb9ad135aeaa0fae0fd831d08edcdc323b81525081608001516005815181106108ab576108ab611633565b602002602001018190525060405180604001604052807f2ca96167b9316ee5855a83bb4a92112653444fffa0bf5725ae9b090bb288152e81526020017f1d6d5440897b2ec044f2aaecdab5e507c4d69f8c7ca8813db13ce819e79129d4815250816080015160068151811061092257610922611633565b602002602001018190525060405180604001604052807f1cba19de78b5c7c47d2407121e7e86d0d70c63aaee0ce04ca5fecaee97ab75d481526020017f059319895b38a350849d8c25b406b951743ab1c6237a63b648f07c5f3e7e19dd815250816080015160078151811061099957610999611633565b602002602001018190525060405180604001604052807f016cc32364e0c0823d4b34edc52852c6665a421cd8867fbd190170fab867bea681526020017f0734df7485b401e47cbd1c3ab7024be0250f9fa13ab7ec9b3b40d83178eb2b468152508160800151600881518110610a1057610a10611633565b602002602001018190525060405180604001604052807f29286c62d871cffa08e84997e6180455e1edca20d681ef29656ef4d6d45b001781526020017f2e71a4c29421434de9ed5e921a2b6a23816a740d99b6f135fd01cad64bd288ac8152508160800151600981518110610a8757610a87611633565b602002602001018190525060405180604001604052807f2492df9b4d0ad2639c6f34096692d29d2f9ed9ee57d9e9c3ba303e9dbcdae43081526020017f2e497c91b7e5e3a2a9b9f7fe9cdfe78c9e72037bb7552e29d54813a4566c6fbd8152508160800151600a81518110610afe57610afe611633565b602002602001018190525060405180604001604052807f1476e8d331c072345e564de7e0c1b051b0b0b18531bdd1e7441e0257090a0c1781526020017f110b09db70453d4ec6bed001ab95fcb5ce4b8e21a0c4f4c26b91dc8059aa1dce8152508160800151600b81518110610b7557610b75611633565b602002602001018190525060405180604001604052807e6e2fbcfe989d63aea84d90addc8537a921948b213ef36ec5fa0cbb5b68670381526020017f06f6a502b00b2945dd9841eca5ab5f69654f4992777102c600ca5402c35d6c288152508160800151600c81518110610beb57610beb611633565b602002602001018190525060405180604001604052807f01a330e578c215a80aaf5fc3208956611670affa4560f2dd1f7892698b50c35881526020017f0a9ccad9b2edacd7bbb8a5c460a47d7a114166eace7c8cfe32c7a4243c30e0f28152508160800151600d81518110610c6257610c62611633565b602002602001018190525060405180604001604052807f0aa436490c317254e1444ad76cac634937ea2fa0d0730983455fed54f43c9ff981526020017f12228d15b01f07e1d77acd2c2c609c7e4c9a70503e071ec4963191e6d4d13d598152508160800151600e81518110610cd957610cd9611633565b602002602001018190525090565b604080518082019091525f8082526020820152610d02611418565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610d3057fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610d96611436565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610dcf57fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610e5857506020830151155b15610e77575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610e9b919061166e565b610ea5908461168d565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610ec857505060408051600480825260a082019092529192505f9190602082015b610f10611454565b815260200190600190039081610f085790505090508a825f81518110610f3857610f38611633565b60200260200101819052508882600181518110610f5757610f57611633565b60200260200101819052508682600281518110610f7657610f76611633565b60200260200101819052508482600381518110610f9557610f95611633565b602002602001018190525089815f81518110610fb357610fb3611633565b60200260200101819052508781600181518110610fd257610fd2611633565b60200260200101819052508581600281518110610ff157610ff1611633565b6020026020010181905250838160038151811061101057611010611633565b60200260200101819052506110258282611034565b9b9a5050505050505050505050565b5f815183511461107f5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f61108d8260066116a0565b90505f8167ffffffffffffffff8111156110a9576110a96114b0565b6040519080825280602002602001820160405280156110d2578160200160208202803683370190505b5090505f5b838110156112ff578681815181106110f1576110f1611633565b60200260200101515f01518282600661110a91906116a0565b611114905f61165b565b8151811061112457611124611633565b60200260200101818152505086818151811061114257611142611633565b6020026020010151602001518282600661115c91906116a0565b61116790600161165b565b8151811061117757611177611633565b60200260200101818152505085818151811061119557611195611633565b60209081029190910101515151826111ae8360066116a0565b6111b990600261165b565b815181106111c9576111c9611633565b6020026020010181815250508581815181106111e7576111e7611633565b602090810291909101810151510151826112028360066116a0565b61120d90600361165b565b8151811061121d5761121d611633565b60200260200101818152505085818151811061123b5761123b611633565b6020026020010151602001515f6002811061125857611258611633565b6020020151826112698360066116a0565b61127490600461165b565b8151811061128457611284611633565b6020026020010181815250508581815181106112a2576112a2611633565b6020026020010151602001516001600281106112c0576112c0611633565b6020020151826112d18360066116a0565b6112dc90600561165b565b815181106112ec576112ec611633565b60209081029190910101526001016110d7565b50611308611474565b5f602082602086026020860160086107d05a03fa9050808061132657fe5b508061136c5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016113a3611454565b81526020016113c360405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c08301919091528152602081016113f1611454565b81526020016113fe611454565b815260200161140b611454565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280611467611492565b81526020016113c3611492565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156114f957634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611510575f5ffd5b5f61151b60406114c4565b905080604084018581111561152e575f5ffd5b845b81811015611548578035835260209283019201611530565b509195945050505050565b5f5f5f5f6102c08587031215611567575f5ffd5b6115718686611501565b935085605f860112611581575f5ffd5b604061158c816114c4565b8060c088018981111561159d575f5ffd5b604089015b818110156115c3576115b48b82611501565b845260209093019284016115a2565b508196506115d18a82611501565b95505050505061010085015f87601f8301126115eb575f5ffd5b5f6101c06115f8816114c4565b91508301818a821115611609575f5ffd5b5b8185101561162257843581526020948501940161160a565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e611647565b5f8261168857634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e611647565b808202811582820484141761033e5761033e61164756fea26469706673582212208ecec3b58f8c69288c925191a76554c85a5d679e9a34b2047785e1439c8c3d1d64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol",
- "buildInfoId": "solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#NewInsertionVerifier_v2.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#NewInsertionVerifier_v2.json
deleted file mode 100644
index a6fa56e..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#NewInsertionVerifier_v2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyInsertionVerifierAlpha_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "input",
- "type": "uint256[4]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "r",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b5061124e8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046110b1565b610054565b604051901515815260200160405180910390f35b5f61005d610ed8565b60408051808201825287518152602080890151818301529083528151608080820184528851518285019081528951840151606084015282528351808501855289840180515182525184015181850152828401528483019190915282518084018452875181528783015181840152848401528251600480825260a082019094525f939092909190830190803683370190505090505f5b60048110156101375784816004811061010d5761010d611194565b602002015182828151811061012457610124611194565b60209081029190910101526001016100f2565b506101428183610161565b5f0361015357600192505050610159565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018161018c610348565b9050806080015151855160016101a291906111bc565b146101e95760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cf578387828151811061021b5761021b611194565b6020026020010151106102705760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101e0565b6102c5826102c0856080015184600161028991906111bc565b8151811061029957610299611194565b60200260200101518a85815181106102b3576102b3611194565b6020026020010151610845565b6108d9565b91506001016101ff565b506102f78183608001515f815181106102ea576102ea611194565b60200260200101516108d9565b905061032b610308865f0151610970565b8660200151845f015185602001518587604001518b604001518960600151610a0c565b61033b5760019350505050610342565b5f93505050505b92915050565b610350610f26565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f2933c663723e3630bea92f14ce272046739c1de9ac0de5108d9f97504796bcdd8185019081527f2d9d46b72cb758726c5730268fdedefe18f1b55f5b935a82ecf821c05b252da1828401528152835180850185527f0d673c337136dbf082c467ce378ee3bce333a36c5f27cc01edf54179d6e7dc6081527f0c907c5922e46c3cadc99de46a7b8d01770eded5cef85379f58252ab65cb80ad8185015281840152908401528151600580825260c08201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105cb57505060808201908152604080518082019091527f0cdbf7f6fb2cf15ec81a44a104d6490ebeeeea7bf9a0cbf4d695c2a5e7ef7d8481527e5eff6d3e9efe8e7e1fc61c474ed76a4e42f9233e0e5c1054caa772f3b03c396020820152905180515f9061065b5761065b611194565b602002602001018190525060405180604001604052807f24aa7ee61e4ad8e6faf43e12eeb8b33081498ee103385743f2f357bf8b0c6af181526020017f22d171354b9d3a5d983212b596739d62f1cc42aff5df6db8475e4b887902146581525081608001516001815181106106d2576106d2611194565b602002602001018190525060405180604001604052807f3037fd725c311a8a59dc660d0fa266e188928bef08015840cf45d7998b747a1881526020017f20918eb8f6b9ca00d9004f42b7bd61a3703ea034983fa552ba34fcbde0d59bc2815250816080015160028151811061074957610749611194565b602002602001018190525060405180604001604052807f1b5c870d21c274d5bdf96cd309bdbda13661a47c01ce8483bd3682fcc1d58a3081526020017f2f4600674aa2b704715e8f62433edcae3bae85557d27e74af090ebcdbc0b195e81525081608001516003815181106107c0576107c0611194565b602002602001018190525060405180604001604052807f199fcda69c0bfd4d6f2db0f385bd0fcf78f0074be4d5eeb7f75f32963269d8d981526020017f1638a9aa5129a8fa9964966f9545941fbceb843dd14aa0f40531c6197da17578815250816080015160048151811061083757610837611194565b602002602001018190525090565b604080518082019091525f8082526020820152610860610f76565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa9050808061088e57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101e0565b505092915050565b604080518082019091525f80825260208201526108f4610f94565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa9050808061092d57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101e0565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47901580156109b657506020830151155b156109d5575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f015181526020018285602001516109f991906111cf565b610a0390846111ee565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610a2657505060408051600480825260a082019092529192505f9190602082015b610a6e610fb2565b815260200190600190039081610a665790505090508a825f81518110610a9657610a96611194565b60200260200101819052508882600181518110610ab557610ab5611194565b60200260200101819052508682600281518110610ad457610ad4611194565b60200260200101819052508482600381518110610af357610af3611194565b602002602001018190525089815f81518110610b1157610b11611194565b60200260200101819052508781600181518110610b3057610b30611194565b60200260200101819052508581600281518110610b4f57610b4f611194565b60200260200101819052508381600381518110610b6e57610b6e611194565b6020026020010181905250610b838282610b92565b9b9a5050505050505050505050565b5f8151835114610bdd5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101e0565b82515f610beb826006611201565b90505f8167ffffffffffffffff811115610c0757610c0761100e565b604051908082528060200260200182016040528015610c30578160200160208202803683370190505b5090505f5b83811015610e5d57868181518110610c4f57610c4f611194565b60200260200101515f015182826006610c689190611201565b610c72905f6111bc565b81518110610c8257610c82611194565b602002602001018181525050868181518110610ca057610ca0611194565b60200260200101516020015182826006610cba9190611201565b610cc59060016111bc565b81518110610cd557610cd5611194565b602002602001018181525050858181518110610cf357610cf3611194565b6020908102919091010151515182610d0c836006611201565b610d179060026111bc565b81518110610d2757610d27611194565b602002602001018181525050858181518110610d4557610d45611194565b60209081029190910181015151015182610d60836006611201565b610d6b9060036111bc565b81518110610d7b57610d7b611194565b602002602001018181525050858181518110610d9957610d99611194565b6020026020010151602001515f60028110610db657610db6611194565b602002015182610dc7836006611201565b610dd29060046111bc565b81518110610de257610de2611194565b602002602001018181525050858181518110610e0057610e00611194565b602002602001015160200151600160028110610e1e57610e1e611194565b602002015182610e2f836006611201565b610e3a9060056111bc565b81518110610e4a57610e4a611194565b6020908102919091010152600101610c35565b50610e66610fd2565b5f602082602086026020860160086107d05a03fa90508080610e8457fe5b5080610eca5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101e0565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101610f01610fb2565b8152602001610f2160405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101610f4f610fb2565b8152602001610f5c610fb2565b8152602001610f69610fb2565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280610fc5610ff0565b8152602001610f21610ff0565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561105757634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f83011261106e575f5ffd5b5f6110796040611022565b905080604084018581111561108c575f5ffd5b845b818110156110a657803583526020928301920161108e565b509195945050505050565b5f5f5f5f61018085870312156110c5575f5ffd5b6110cf868661105f565b935085605f8601126110df575f5ffd5b60406110ea81611022565b8060c08801898111156110fb575f5ffd5b604089015b81811015611121576111128b8261105f565b84526020909301928401611100565b5081965061112f8a8261105f565b95505050505061010085015f87601f830112611149575f5ffd5b5f6111546080611022565b905080608084018a811115611167575f5ffd5b5b80851015611183578435825260209485019490910190611168565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610342576103426111a8565b5f826111e957634e487b7160e01b5f52601260045260245ffd5b500690565b81810381811115610342576103426111a8565b8082028115828204841417610342576103426111a856fea264697066735822122052b8c89d46e40ccc60f13c59a59ab39c0a5084d1333d84af2fe13436741f62ef64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046110b1565b610054565b604051901515815260200160405180910390f35b5f61005d610ed8565b60408051808201825287518152602080890151818301529083528151608080820184528851518285019081528951840151606084015282528351808501855289840180515182525184015181850152828401528483019190915282518084018452875181528783015181840152848401528251600480825260a082019094525f939092909190830190803683370190505090505f5b60048110156101375784816004811061010d5761010d611194565b602002015182828151811061012457610124611194565b60209081029190910101526001016100f2565b506101428183610161565b5f0361015357600192505050610159565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018161018c610348565b9050806080015151855160016101a291906111bc565b146101e95760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cf578387828151811061021b5761021b611194565b6020026020010151106102705760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101e0565b6102c5826102c0856080015184600161028991906111bc565b8151811061029957610299611194565b60200260200101518a85815181106102b3576102b3611194565b6020026020010151610845565b6108d9565b91506001016101ff565b506102f78183608001515f815181106102ea576102ea611194565b60200260200101516108d9565b905061032b610308865f0151610970565b8660200151845f015185602001518587604001518b604001518960600151610a0c565b61033b5760019350505050610342565b5f93505050505b92915050565b610350610f26565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f2933c663723e3630bea92f14ce272046739c1de9ac0de5108d9f97504796bcdd8185019081527f2d9d46b72cb758726c5730268fdedefe18f1b55f5b935a82ecf821c05b252da1828401528152835180850185527f0d673c337136dbf082c467ce378ee3bce333a36c5f27cc01edf54179d6e7dc6081527f0c907c5922e46c3cadc99de46a7b8d01770eded5cef85379f58252ab65cb80ad8185015281840152908401528151600580825260c08201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105cb57505060808201908152604080518082019091527f0cdbf7f6fb2cf15ec81a44a104d6490ebeeeea7bf9a0cbf4d695c2a5e7ef7d8481527e5eff6d3e9efe8e7e1fc61c474ed76a4e42f9233e0e5c1054caa772f3b03c396020820152905180515f9061065b5761065b611194565b602002602001018190525060405180604001604052807f24aa7ee61e4ad8e6faf43e12eeb8b33081498ee103385743f2f357bf8b0c6af181526020017f22d171354b9d3a5d983212b596739d62f1cc42aff5df6db8475e4b887902146581525081608001516001815181106106d2576106d2611194565b602002602001018190525060405180604001604052807f3037fd725c311a8a59dc660d0fa266e188928bef08015840cf45d7998b747a1881526020017f20918eb8f6b9ca00d9004f42b7bd61a3703ea034983fa552ba34fcbde0d59bc2815250816080015160028151811061074957610749611194565b602002602001018190525060405180604001604052807f1b5c870d21c274d5bdf96cd309bdbda13661a47c01ce8483bd3682fcc1d58a3081526020017f2f4600674aa2b704715e8f62433edcae3bae85557d27e74af090ebcdbc0b195e81525081608001516003815181106107c0576107c0611194565b602002602001018190525060405180604001604052807f199fcda69c0bfd4d6f2db0f385bd0fcf78f0074be4d5eeb7f75f32963269d8d981526020017f1638a9aa5129a8fa9964966f9545941fbceb843dd14aa0f40531c6197da17578815250816080015160048151811061083757610837611194565b602002602001018190525090565b604080518082019091525f8082526020820152610860610f76565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa9050808061088e57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101e0565b505092915050565b604080518082019091525f80825260208201526108f4610f94565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa9050808061092d57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101e0565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47901580156109b657506020830151155b156109d5575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f015181526020018285602001516109f991906111cf565b610a0390846111ee565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610a2657505060408051600480825260a082019092529192505f9190602082015b610a6e610fb2565b815260200190600190039081610a665790505090508a825f81518110610a9657610a96611194565b60200260200101819052508882600181518110610ab557610ab5611194565b60200260200101819052508682600281518110610ad457610ad4611194565b60200260200101819052508482600381518110610af357610af3611194565b602002602001018190525089815f81518110610b1157610b11611194565b60200260200101819052508781600181518110610b3057610b30611194565b60200260200101819052508581600281518110610b4f57610b4f611194565b60200260200101819052508381600381518110610b6e57610b6e611194565b6020026020010181905250610b838282610b92565b9b9a5050505050505050505050565b5f8151835114610bdd5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101e0565b82515f610beb826006611201565b90505f8167ffffffffffffffff811115610c0757610c0761100e565b604051908082528060200260200182016040528015610c30578160200160208202803683370190505b5090505f5b83811015610e5d57868181518110610c4f57610c4f611194565b60200260200101515f015182826006610c689190611201565b610c72905f6111bc565b81518110610c8257610c82611194565b602002602001018181525050868181518110610ca057610ca0611194565b60200260200101516020015182826006610cba9190611201565b610cc59060016111bc565b81518110610cd557610cd5611194565b602002602001018181525050858181518110610cf357610cf3611194565b6020908102919091010151515182610d0c836006611201565b610d179060026111bc565b81518110610d2757610d27611194565b602002602001018181525050858181518110610d4557610d45611194565b60209081029190910181015151015182610d60836006611201565b610d6b9060036111bc565b81518110610d7b57610d7b611194565b602002602001018181525050858181518110610d9957610d99611194565b6020026020010151602001515f60028110610db657610db6611194565b602002015182610dc7836006611201565b610dd29060046111bc565b81518110610de257610de2611194565b602002602001018181525050858181518110610e0057610e00611194565b602002602001015160200151600160028110610e1e57610e1e611194565b602002015182610e2f836006611201565b610e3a9060056111bc565b81518110610e4a57610e4a611194565b6020908102919091010152600101610c35565b50610e66610fd2565b5f602082602086026020860160086107d05a03fa90508080610e8457fe5b5080610eca5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101e0565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101610f01610fb2565b8152602001610f2160405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101610f4f610fb2565b8152602001610f5c610fb2565b8152602001610f69610fb2565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280610fc5610ff0565b8152602001610f21610ff0565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561105757634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f83011261106e575f5ffd5b5f6110796040611022565b905080604084018581111561108c575f5ffd5b845b818110156110a657803583526020928301920161108e565b509195945050505050565b5f5f5f5f61018085870312156110c5575f5ffd5b6110cf868661105f565b935085605f8601126110df575f5ffd5b60406110ea81611022565b8060c08801898111156110fb575f5ffd5b604089015b81811015611121576111128b8261105f565b84526020909301928401611100565b5081965061112f8a8261105f565b95505050505061010085015f87601f830112611149575f5ffd5b5f6111546080611022565b905080608084018a811115611167575f5ffd5b5b80851015611183578435825260209485019490910190611168565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610342576103426111a8565b5f826111e957634e487b7160e01b5f52601260045260245ffd5b500690565b81810381811115610342576103426111a8565b8082028115828204841417610342576103426111a856fea264697066735822122052b8c89d46e40ccc60f13c59a59ab39c0a5084d1333d84af2fe13436741f62ef64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol",
- "buildInfoId": "solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#NewWithdrawVerifier_v2.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#NewWithdrawVerifier_v2.json
deleted file mode 100644
index 56dc797..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#NewWithdrawVerifier_v2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyWithdrawVerifierAlpha_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "input",
- "type": "uint256[10]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "r",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506115118061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b366004611377565b610054565b604051901515815260200160405180910390f35b5f61005d61119e565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600a80825261016082019093525f9290918201610140803683370190505090505f5b600a811015610133578481600a811061010957610109611457565b602002015182828151811061012057610120611457565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061147f565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611457565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061147f565b8151811061029557610295611457565b60200260200101518a85815181106102af576102af611457565b6020026020010151610b0b565b610b9f565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611457565b6020026020010151610b9f565b9050610327610304865f0151610c36565b8660200151845f015185602001518587604001518b604001518960600151610cd2565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6111ec565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f0b5a45bbb3d9f21c42579fd5a810f82f25e696fb3b00ef64b8ca2d17d89fe4ed8185019081527f0f79b405819a9900f7edb3f309c9b73a45673c17366eeb72361c23f957680a89828401528152835180850185527f23b107da251eb5c5dd3c157a900388d73f64a4394faf6a12ae2077766d720b0881527f2188bf40a163dba1ba12fc061d0a6fc9d7246af5e912fcbb23b59a53823b7c048185015281840152908401528151600b8082526101808201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f118592ce705cf3d21e870156a4dc6cff3b2a01fca2c8e60a402fc01dd47341de81527f1fe6c8cb2c02b9ddf7ed360fd3ba99867e54e590d7ca62b57d839ef26d549f0c6020820152905180515f9061065957610659611457565b602002602001018190525060405180604001604052807f154574f61b1a23d66f35533910d332b8ab9bffc6274ce4ffb0bf3b7f1210090781526020017f1ac6f7f35d927f760afe3efc726d0d1ab8ab6514d018630e92a11b5079108b9a81525081608001516001815181106106d0576106d0611457565b602002602001018190525060405180604001604052807f102a84a54eb42169d68f30c781aabd282a341b2b4c25cd55fdae5e3479b4182a81526020017f1b8113a1108e05880a85ae50fdaa0f86926095751a6c3f0130cee222578c7911815250816080015160028151811061074757610747611457565b602002602001018190525060405180604001604052807f25504b6ec89efe8110a42f0ffda2f64b4c0b63b83a776f2146c23ddb2b9c346081526020017e1bd1b27eb32e5c1ecc7f9b08d87e6c7eff72e21014bd87c5badb37e82d50c781525081608001516003815181106107bd576107bd611457565b602002602001018190525060405180604001604052807f2955cc92eefc93c0bb8f2a726fbcbadbedd59c2f68b3701defa2ac66e1c1643f81526020017f1a8bfc29eefca9fd267806f814daf245aa0fb67048fbc16761d5fc39282f7336815250816080015160048151811061083457610834611457565b602002602001018190525060405180604001604052807f0acefb487079ce3764bf9e0af6b69a939b8f43cb3cce80262ebd68167a86afa881526020017f2500ee5fc51d1ed187adfe4cb25ef69610207eefc41a868d14a519b58c99286081525081608001516005815181106108ab576108ab611457565b602002602001018190525060405180604001604052807f1eca69b2e86127c29cd324a9b13cf89c0e657596c9e37dc05eec008c8fa84fdb81526020017f2f11a966ac185bf5d584d386b3e8a555d66e51913d8801fb9189542b4bcd3624815250816080015160068151811061092257610922611457565b602002602001018190525060405180604001604052807ee8670dd1e30ffd6e6d42b6f98d3cd5ebb1a6c2a726f4024e6c27b555683cf881526020017f152894c1731fbedba470963903d414e8c210a8b846aedba229071fa832e882fa815250816080015160078151811061099857610998611457565b602002602001018190525060405180604001604052807f2354fe17a8632ee331a1459f6df0806153f19ed6c1645906895e966cea47cab981526020017f27700ede44b18910d2a31045a1d448bb930ba1c39cc918aa3f4b093a610e45b58152508160800151600881518110610a0f57610a0f611457565b602002602001018190525060405180604001604052807f2f583f76ad789e51575f9168446813e1e5655c1f444ed4f8bd2c38c8c438a52e81526020017f21e4aa608b395b9eaf98de7f2c77baac96da672aedab46f36e4a732fbefdaa328152508160800151600981518110610a8657610a86611457565b602002602001018190525060405180604001604052807f29b71cd418de446ac259b14d47ccbc6c7bf3021aa56d6d3ab3fc80becde42ba281526020017f1671437c4af2a055de0faf52bad6da5b1c1f37d53e279ef8d7a04b401b8f00b18152508160800151600a81518110610afd57610afd611457565b602002602001018190525090565b604080518082019091525f8082526020820152610b2661123c565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610b5457fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610bba61125a565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610bf357fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c7c57506020830151155b15610c9b575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610cbf9190611492565b610cc990846114b1565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610cec57505060408051600480825260a082019092529192505f9190602082015b610d34611278565b815260200190600190039081610d2c5790505090508a825f81518110610d5c57610d5c611457565b60200260200101819052508882600181518110610d7b57610d7b611457565b60200260200101819052508682600281518110610d9a57610d9a611457565b60200260200101819052508482600381518110610db957610db9611457565b602002602001018190525089815f81518110610dd757610dd7611457565b60200260200101819052508781600181518110610df657610df6611457565b60200260200101819052508581600281518110610e1557610e15611457565b60200260200101819052508381600381518110610e3457610e34611457565b6020026020010181905250610e498282610e58565b9b9a5050505050505050505050565b5f8151835114610ea35760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610eb18260066114c4565b90505f8167ffffffffffffffff811115610ecd57610ecd6112d4565b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b5090505f5b8381101561112357868181518110610f1557610f15611457565b60200260200101515f015182826006610f2e91906114c4565b610f38905f61147f565b81518110610f4857610f48611457565b602002602001018181525050868181518110610f6657610f66611457565b60200260200101516020015182826006610f8091906114c4565b610f8b90600161147f565b81518110610f9b57610f9b611457565b602002602001018181525050858181518110610fb957610fb9611457565b6020908102919091010151515182610fd28360066114c4565b610fdd90600261147f565b81518110610fed57610fed611457565b60200260200101818152505085818151811061100b5761100b611457565b602090810291909101810151510151826110268360066114c4565b61103190600361147f565b8151811061104157611041611457565b60200260200101818152505085818151811061105f5761105f611457565b6020026020010151602001515f6002811061107c5761107c611457565b60200201518261108d8360066114c4565b61109890600461147f565b815181106110a8576110a8611457565b6020026020010181815250508581815181106110c6576110c6611457565b6020026020010151602001516001600281106110e4576110e4611457565b6020020151826110f58360066114c4565b61110090600561147f565b8151811061111057611110611457565b6020908102919091010152600101610efb565b5061112c611298565b5f602082602086026020860160086107d05a03fa9050808061114a57fe5b50806111905760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016111c7611278565b81526020016111e760405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101611215611278565b8152602001611222611278565b815260200161122f611278565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061128b6112b6565b81526020016111e76112b6565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561131d57634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611334575f5ffd5b5f61133f60406112e8565b9050806040840185811115611352575f5ffd5b845b8181101561136c578035835260209283019201611354565b509195945050505050565b5f5f5f5f610240858703121561138b575f5ffd5b6113958686611325565b935085605f8601126113a5575f5ffd5b60406113b0816112e8565b8060c08801898111156113c1575f5ffd5b604089015b818110156113e7576113d88b82611325565b845260209093019284016113c6565b508196506113f58a82611325565b95505050505061010085015f87601f83011261140f575f5ffd5b5f61014061141c816112e8565b91508301818a82111561142d575f5ffd5b5b8185101561144657843581526020948501940161142e565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e61146b565b5f826114ac57634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e61146b565b808202811582820484141761033e5761033e61146b56fea2646970667358221220dcff813b86dd38808694958c9a737d51423f91e9af2ee777888630650f47d44264736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b366004611377565b610054565b604051901515815260200160405180910390f35b5f61005d61119e565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600a80825261016082019093525f9290918201610140803683370190505090505f5b600a811015610133578481600a811061010957610109611457565b602002015182828151811061012057610120611457565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061147f565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611457565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061147f565b8151811061029557610295611457565b60200260200101518a85815181106102af576102af611457565b6020026020010151610b0b565b610b9f565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611457565b6020026020010151610b9f565b9050610327610304865f0151610c36565b8660200151845f015185602001518587604001518b604001518960600151610cd2565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6111ec565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f0b5a45bbb3d9f21c42579fd5a810f82f25e696fb3b00ef64b8ca2d17d89fe4ed8185019081527f0f79b405819a9900f7edb3f309c9b73a45673c17366eeb72361c23f957680a89828401528152835180850185527f23b107da251eb5c5dd3c157a900388d73f64a4394faf6a12ae2077766d720b0881527f2188bf40a163dba1ba12fc061d0a6fc9d7246af5e912fcbb23b59a53823b7c048185015281840152908401528151600b8082526101808201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f118592ce705cf3d21e870156a4dc6cff3b2a01fca2c8e60a402fc01dd47341de81527f1fe6c8cb2c02b9ddf7ed360fd3ba99867e54e590d7ca62b57d839ef26d549f0c6020820152905180515f9061065957610659611457565b602002602001018190525060405180604001604052807f154574f61b1a23d66f35533910d332b8ab9bffc6274ce4ffb0bf3b7f1210090781526020017f1ac6f7f35d927f760afe3efc726d0d1ab8ab6514d018630e92a11b5079108b9a81525081608001516001815181106106d0576106d0611457565b602002602001018190525060405180604001604052807f102a84a54eb42169d68f30c781aabd282a341b2b4c25cd55fdae5e3479b4182a81526020017f1b8113a1108e05880a85ae50fdaa0f86926095751a6c3f0130cee222578c7911815250816080015160028151811061074757610747611457565b602002602001018190525060405180604001604052807f25504b6ec89efe8110a42f0ffda2f64b4c0b63b83a776f2146c23ddb2b9c346081526020017e1bd1b27eb32e5c1ecc7f9b08d87e6c7eff72e21014bd87c5badb37e82d50c781525081608001516003815181106107bd576107bd611457565b602002602001018190525060405180604001604052807f2955cc92eefc93c0bb8f2a726fbcbadbedd59c2f68b3701defa2ac66e1c1643f81526020017f1a8bfc29eefca9fd267806f814daf245aa0fb67048fbc16761d5fc39282f7336815250816080015160048151811061083457610834611457565b602002602001018190525060405180604001604052807f0acefb487079ce3764bf9e0af6b69a939b8f43cb3cce80262ebd68167a86afa881526020017f2500ee5fc51d1ed187adfe4cb25ef69610207eefc41a868d14a519b58c99286081525081608001516005815181106108ab576108ab611457565b602002602001018190525060405180604001604052807f1eca69b2e86127c29cd324a9b13cf89c0e657596c9e37dc05eec008c8fa84fdb81526020017f2f11a966ac185bf5d584d386b3e8a555d66e51913d8801fb9189542b4bcd3624815250816080015160068151811061092257610922611457565b602002602001018190525060405180604001604052807ee8670dd1e30ffd6e6d42b6f98d3cd5ebb1a6c2a726f4024e6c27b555683cf881526020017f152894c1731fbedba470963903d414e8c210a8b846aedba229071fa832e882fa815250816080015160078151811061099857610998611457565b602002602001018190525060405180604001604052807f2354fe17a8632ee331a1459f6df0806153f19ed6c1645906895e966cea47cab981526020017f27700ede44b18910d2a31045a1d448bb930ba1c39cc918aa3f4b093a610e45b58152508160800151600881518110610a0f57610a0f611457565b602002602001018190525060405180604001604052807f2f583f76ad789e51575f9168446813e1e5655c1f444ed4f8bd2c38c8c438a52e81526020017f21e4aa608b395b9eaf98de7f2c77baac96da672aedab46f36e4a732fbefdaa328152508160800151600981518110610a8657610a86611457565b602002602001018190525060405180604001604052807f29b71cd418de446ac259b14d47ccbc6c7bf3021aa56d6d3ab3fc80becde42ba281526020017f1671437c4af2a055de0faf52bad6da5b1c1f37d53e279ef8d7a04b401b8f00b18152508160800151600a81518110610afd57610afd611457565b602002602001018190525090565b604080518082019091525f8082526020820152610b2661123c565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610b5457fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610bba61125a565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610bf357fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c7c57506020830151155b15610c9b575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610cbf9190611492565b610cc990846114b1565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610cec57505060408051600480825260a082019092529192505f9190602082015b610d34611278565b815260200190600190039081610d2c5790505090508a825f81518110610d5c57610d5c611457565b60200260200101819052508882600181518110610d7b57610d7b611457565b60200260200101819052508682600281518110610d9a57610d9a611457565b60200260200101819052508482600381518110610db957610db9611457565b602002602001018190525089815f81518110610dd757610dd7611457565b60200260200101819052508781600181518110610df657610df6611457565b60200260200101819052508581600281518110610e1557610e15611457565b60200260200101819052508381600381518110610e3457610e34611457565b6020026020010181905250610e498282610e58565b9b9a5050505050505050505050565b5f8151835114610ea35760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610eb18260066114c4565b90505f8167ffffffffffffffff811115610ecd57610ecd6112d4565b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b5090505f5b8381101561112357868181518110610f1557610f15611457565b60200260200101515f015182826006610f2e91906114c4565b610f38905f61147f565b81518110610f4857610f48611457565b602002602001018181525050868181518110610f6657610f66611457565b60200260200101516020015182826006610f8091906114c4565b610f8b90600161147f565b81518110610f9b57610f9b611457565b602002602001018181525050858181518110610fb957610fb9611457565b6020908102919091010151515182610fd28360066114c4565b610fdd90600261147f565b81518110610fed57610fed611457565b60200260200101818152505085818151811061100b5761100b611457565b602090810291909101810151510151826110268360066114c4565b61103190600361147f565b8151811061104157611041611457565b60200260200101818152505085818151811061105f5761105f611457565b6020026020010151602001515f6002811061107c5761107c611457565b60200201518261108d8360066114c4565b61109890600461147f565b815181106110a8576110a8611457565b6020026020010181815250508581815181106110c6576110c6611457565b6020026020010151602001516001600281106110e4576110e4611457565b6020020151826110f58360066114c4565b61110090600561147f565b8151811061111057611110611457565b6020908102919091010152600101610efb565b5061112c611298565b5f602082602086026020860160086107d05a03fa9050808061114a57fe5b50806111905760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016111c7611278565b81526020016111e760405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101611215611278565b8152602001611222611278565b815260200161122f611278565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061128b6112b6565b81526020016111e76112b6565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561131d57634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611334575f5ffd5b5f61133f60406112e8565b9050806040840185811115611352575f5ffd5b845b8181101561136c578035835260209283019201611354565b509195945050505050565b5f5f5f5f610240858703121561138b575f5ffd5b6113958686611325565b935085605f8601126113a5575f5ffd5b60406113b0816112e8565b8060c08801898111156113c1575f5ffd5b604089015b818110156113e7576113d88b82611325565b845260209093019284016113c6565b508196506113f58a82611325565b95505050505061010085015f87601f83011261140f575f5ffd5b5f61014061141c816112e8565b91508301818a82111561142d575f5ffd5b5b8185101561144657843581526020948501940161142e565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e61146b565b5f826114ac57634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e61146b565b808202811582820484141761033e5761033e61146b56fea2646970667358221220dcff813b86dd38808694958c9a737d51423f91e9af2ee777888630650f47d44264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol",
- "buildInfoId": "solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#PoseidonT4.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#PoseidonT4.json
deleted file mode 100644
index 6767884..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#PoseidonT4.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PoseidonT4",
- "sourceName": "contracts/aggregator-alpha/utils/PoseidonT4.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[3]",
- "name": "",
- "type": "uint256[3]"
- }
- ],
- "name": "hash",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- }
- ],
- "bytecode": "0x6130c0610034600b8282823980515f1a607314602857634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe7300000000000000000000000000000000000000003014608060405260043610610034575f3560e01c806320cf0a3714610038575b5f5ffd5b61004b610046366004612f90565b61005d565b60405190815260200160405180910390f35b5f610793565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f52838409099450505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f528384090994505f51602061302b5f395f51905f5284850990505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528384090993505f51602061302b5f395f51905f5283840990505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528384090992505f51602061302b5f395f51905f5282830990505f51602061302b5f395f51905f52825f51602061302b5f395f51905f52838409099150505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b5f7f265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d65f51602061302b5f395f51905f5260805106017f199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa5f51602061302b5f395f51905f5260a05106017f157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf85f51602061302b5f395f51905f5260c05106015f51602061302b5f395f51905f5283840993505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528687090992505f51602061302b5f395f51905f5282830993505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528687090991505f51602061302b5f395f51905f5281820993505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528687090990505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287097f211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87097f19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87097f21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87097f26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be30101010660a052505050610c167f13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e7f251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b9967f0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e7f2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac949026103aa565b610ca27f04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b7f0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f3675497f011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca067f0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd47386103aa565b610d2e7f0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd69414324477f28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a17f259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f7f0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e86103aa565b610dba7f1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c57f26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee757f123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf8117f0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf610063565b610e467f2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a57f2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c7f011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e55747f1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0610063565b610ed27f179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb7f1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d857f192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b7f0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d610063565b610f5e7f10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b877f064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd597f225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e087f29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c610063565b610fea7f2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db7f1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b7f1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb7f0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c610063565b6110767f20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d7f0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b7f062100eb485db06269655cf186a68532985275428450359adc99cec6960711b87f2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926610063565b6111027f26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce57f22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e07f23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b7f25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a610063565b61118e7f1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa7f248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d7297f12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da7f070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9610063565b6112197f2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde1877f04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d657e94975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e7f28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf610063565b6112a47f159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a7eb7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b647f03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b07f2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3610063565b6113307f0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb1737f2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f7f1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d7f1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f610063565b6113bc7f22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea97f0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a7f0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed7057f02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16610063565b6114487f2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d835057f2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e57f1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d07f25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16610063565b6114d47f0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac7f02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a68003557f227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a53190257f044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d610063565b6115607f25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f7f1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c7f0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e57f1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38610063565b6115ec7f21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f9597f2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce7f13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a967f0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a610063565b6116787f09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f14557f0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf7f0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a47f05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b610063565b6117047f176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c4047f1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df7f2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b7f0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335610063565b6117907f2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c77f14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def7f226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a7f2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db610063565b61181c7f0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c7f03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f37f0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c297f2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7610063565b6118a77e780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef3631821857f0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa7f1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa91467f203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78610063565b6119327f222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c7e544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac167f10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e87f10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5610063565b6119be7f04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d7f06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf047467f062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b7f2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5610063565b611a4a7f14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f13647f0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae7f011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f17f13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a610063565b611ad67f2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a7f16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d582597f278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b6077f1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106610063565b611b627f02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe67692500420257f16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf7f15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c9847f29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8610063565b611bee7f1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec7f0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de89907f1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a427f05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119610063565b611c7a7f0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf7f2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d07f09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb96507f25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d610063565b611d067f24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d00567f1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f835297f2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f627f25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2610063565b611d927f2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f639257f06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f57f23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d7f25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74610063565b611e1e7f17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd7f13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be7f265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e7f15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5610063565b611eaa7f2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e7f2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e887f18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c7f21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d610063565b611f367f11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f57f0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c7f0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe57f277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7610063565b611fc27f30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad47f221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f4217f0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb8247f224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6610063565b61204e7f1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b317f0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc7f2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b7f23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0610063565b6120da7f1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b877f174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d77f22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d27f26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3610063565b6121667f2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c8755267f29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e7f0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade4577f1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1610063565b6121f27f0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad7257f1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f7f2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac7063641137f12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2610063565b61227e7f1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a7f2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e7f08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a37f07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492610063565b61230a7f265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e7f2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff7f2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d197f18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb610063565b6123967f01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf57f2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b87f094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf604177f2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c610063565b6124227f2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd8064617f27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d0287727f154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc747f0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb610063565b6124ae7f0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c7377f1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa957f298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc7f301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71610063565b61253a7f01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b7f1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d7f0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee7f0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279610063565b6125c67f2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe597f19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d7f23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c47f2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32610063565b6126527f0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c87f19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb07f0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b357f2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267610063565b6126de7f2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d7f0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af7f240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b7f16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca610063565b61276a7f242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d17f089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c377027f18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f7f166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6610063565b6127f67f0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e9617f1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b27f17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b7f174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b610063565b6128817eccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d1587f292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e7f12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec67f2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f610063565b61290d7f1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e87f0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e7f14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f7f185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b610063565b6129997f29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c0087f05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c0146047f2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c87f0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024610063565b612a257f1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f7f1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b7f1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc7f2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314610063565b612ab07f0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d7e6e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b7f191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c7f1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5610063565b612b3c7f0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc7f16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae7f12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a7f25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d610063565b612bc87f13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc8247f11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde547f03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b767f1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089610063565b612c547f2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec7f2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e7f1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db47f0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b6103aa565b612ce07f1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b7f2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd6073687f065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc33947f2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb3876103aa565b612d6b7eb4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd790787f0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f7f2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb7f027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd6103aa565b7f1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd55f51017f12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6602051017f13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db608051017f163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d560a051015f51602061302b5f395f51905f5284850994505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528788090993505f51602061302b5f395f51905f5283840994505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528788090992505f51602061302b5f395f51905f5282830994505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528788090991505f51602061302b5f395f51905f5281820994505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528788090990505f51602061302b5f395f51905f52805f51602061302b5f395f51905f525f51602061300b5f395f51905f5284095f51602061302b5f395f51905f525f51602061306b5f395f51905f5286095f51602061302b5f395f51905f525f51602061304b5f395f51905f5288095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8a0901010106065f5260205ff35b634e487b7160e01b5f52604160045260245ffd5b5f60608284031215612fa0575f5ffd5b82601f830112612fae575f5ffd5b6040516060810181811067ffffffffffffffff82111715612fd157612fd1612f7c565b604052806060840185811115612fe5575f5ffd5b845b81811015612fff578035835260209283019201612fe7565b50919594505050505056fe1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c130644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62a2646970667358221220f6d5cfe9ef56c84b95ece8760d16164e8a9649e1f378cc0d39152a9bac67d08e64736f6c634300081c0033",
- "deployedBytecode": "0x7300000000000000000000000000000000000000003014608060405260043610610034575f3560e01c806320cf0a3714610038575b5f5ffd5b61004b610046366004612f90565b61005d565b60405190815260200160405180910390f35b5f610793565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f52838409099450505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f528384090994505f51602061302b5f395f51905f5284850990505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528384090993505f51602061302b5f395f51905f5283840990505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528384090992505f51602061302b5f395f51905f5282830990505f51602061302b5f395f51905f52825f51602061302b5f395f51905f52838409099150505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b5f7f265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d65f51602061302b5f395f51905f5260805106017f199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa5f51602061302b5f395f51905f5260a05106017f157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf85f51602061302b5f395f51905f5260c05106015f51602061302b5f395f51905f5283840993505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528687090992505f51602061302b5f395f51905f5282830993505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528687090991505f51602061302b5f395f51905f5281820993505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528687090990505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287097f211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87097f19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87097f21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87097f26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be30101010660a052505050610c167f13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e7f251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b9967f0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e7f2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac949026103aa565b610ca27f04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b7f0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f3675497f011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca067f0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd47386103aa565b610d2e7f0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd69414324477f28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a17f259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f7f0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e86103aa565b610dba7f1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c57f26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee757f123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf8117f0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf610063565b610e467f2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a57f2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c7f011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e55747f1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0610063565b610ed27f179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb7f1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d857f192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b7f0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d610063565b610f5e7f10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b877f064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd597f225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e087f29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c610063565b610fea7f2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db7f1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b7f1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb7f0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c610063565b6110767f20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d7f0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b7f062100eb485db06269655cf186a68532985275428450359adc99cec6960711b87f2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926610063565b6111027f26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce57f22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e07f23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b7f25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a610063565b61118e7f1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa7f248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d7297f12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da7f070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9610063565b6112197f2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde1877f04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d657e94975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e7f28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf610063565b6112a47f159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a7eb7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b647f03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b07f2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3610063565b6113307f0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb1737f2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f7f1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d7f1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f610063565b6113bc7f22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea97f0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a7f0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed7057f02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16610063565b6114487f2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d835057f2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e57f1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d07f25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16610063565b6114d47f0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac7f02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a68003557f227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a53190257f044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d610063565b6115607f25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f7f1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c7f0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e57f1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38610063565b6115ec7f21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f9597f2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce7f13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a967f0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a610063565b6116787f09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f14557f0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf7f0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a47f05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b610063565b6117047f176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c4047f1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df7f2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b7f0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335610063565b6117907f2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c77f14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def7f226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a7f2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db610063565b61181c7f0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c7f03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f37f0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c297f2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7610063565b6118a77e780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef3631821857f0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa7f1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa91467f203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78610063565b6119327f222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c7e544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac167f10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e87f10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5610063565b6119be7f04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d7f06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf047467f062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b7f2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5610063565b611a4a7f14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f13647f0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae7f011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f17f13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a610063565b611ad67f2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a7f16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d582597f278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b6077f1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106610063565b611b627f02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe67692500420257f16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf7f15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c9847f29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8610063565b611bee7f1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec7f0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de89907f1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a427f05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119610063565b611c7a7f0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf7f2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d07f09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb96507f25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d610063565b611d067f24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d00567f1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f835297f2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f627f25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2610063565b611d927f2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f639257f06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f57f23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d7f25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74610063565b611e1e7f17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd7f13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be7f265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e7f15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5610063565b611eaa7f2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e7f2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e887f18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c7f21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d610063565b611f367f11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f57f0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c7f0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe57f277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7610063565b611fc27f30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad47f221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f4217f0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb8247f224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6610063565b61204e7f1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b317f0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc7f2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b7f23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0610063565b6120da7f1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b877f174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d77f22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d27f26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3610063565b6121667f2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c8755267f29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e7f0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade4577f1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1610063565b6121f27f0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad7257f1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f7f2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac7063641137f12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2610063565b61227e7f1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a7f2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e7f08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a37f07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492610063565b61230a7f265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e7f2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff7f2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d197f18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb610063565b6123967f01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf57f2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b87f094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf604177f2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c610063565b6124227f2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd8064617f27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d0287727f154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc747f0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb610063565b6124ae7f0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c7377f1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa957f298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc7f301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71610063565b61253a7f01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b7f1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d7f0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee7f0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279610063565b6125c67f2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe597f19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d7f23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c47f2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32610063565b6126527f0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c87f19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb07f0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b357f2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267610063565b6126de7f2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d7f0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af7f240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b7f16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca610063565b61276a7f242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d17f089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c377027f18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f7f166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6610063565b6127f67f0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e9617f1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b27f17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b7f174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b610063565b6128817eccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d1587f292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e7f12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec67f2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f610063565b61290d7f1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e87f0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e7f14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f7f185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b610063565b6129997f29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c0087f05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c0146047f2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c87f0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024610063565b612a257f1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f7f1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b7f1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc7f2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314610063565b612ab07f0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d7e6e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b7f191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c7f1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5610063565b612b3c7f0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc7f16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae7f12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a7f25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d610063565b612bc87f13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc8247f11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde547f03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b767f1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089610063565b612c547f2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec7f2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e7f1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db47f0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b6103aa565b612ce07f1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b7f2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd6073687f065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc33947f2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb3876103aa565b612d6b7eb4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd790787f0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f7f2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb7f027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd6103aa565b7f1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd55f51017f12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6602051017f13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db608051017f163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d560a051015f51602061302b5f395f51905f5284850994505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528788090993505f51602061302b5f395f51905f5283840994505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528788090992505f51602061302b5f395f51905f5282830994505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528788090991505f51602061302b5f395f51905f5281820994505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528788090990505f51602061302b5f395f51905f52805f51602061302b5f395f51905f525f51602061300b5f395f51905f5284095f51602061302b5f395f51905f525f51602061306b5f395f51905f5286095f51602061302b5f395f51905f525f51602061304b5f395f51905f5288095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8a0901010106065f5260205ff35b634e487b7160e01b5f52604160045260245ffd5b5f60608284031215612fa0575f5ffd5b82601f830112612fae575f5ffd5b6040516060810181811067ffffffffffffffff82111715612fd157612fd1612f7c565b604052806060840185811115612fe5575f5ffd5b845b81811015612fff578035835260209283019201612fe7565b50919594505050505056fe1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c130644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62a2646970667358221220f6d5cfe9ef56c84b95ece8760d16164e8a9649e1f378cc0d39152a9bac67d08e64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/utils/PoseidonT4.sol",
- "buildInfoId": "solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#aggregationVerifierDepth30.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#aggregationVerifierDepth30.json
deleted file mode 100644
index d311771..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#aggregationVerifierDepth30.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregationVerifierAlpha_2_2_2_30",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2_30.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "_pubSignals",
- "type": "uint256[14]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b50610a0d8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610975565b610054565b604051901515815260200160405180910390f35b5f610882565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f2677d6c999b93ce8836a26f68400342d9206d0042e5bef74384d97668d4fbd7185527f1c6dffd717c92db39b15ffaac7f1ca0896359f64d86ddbde53a9a724d53d687f60208601525f608086018661018e87357f1588203686d2c659beac6e6b6a0696c9a73b43167a1c23dcd156cd423a3486617f2a9a27b4754629f464e15757a6e1795285c772d60b824c8f1dcf721853505b648461008c565b6101de60208801357f0e7ef5047b47aa90a649bd18cea070121bf160cd07d5fb6f059d7f85959093037f0ad8fc97f11c92c12ec509d473fb3a2131cd46398b83b0f6931d5a316885bf4c8461008c565b61022e60408801357f1f360486c53217bd225c170d2c9bff57ce0401a846932d5998b0985302d0d0297f1f0d2c4008add8e5f828066af26a4893d22ede59ce5ed922805bbf72172f926f8461008c565b61027e60608801357f19038ac1aeb7fff5205df6e24fb20b79efc3e47b23ba901c6133a077fd25a41f7f06a8f121ae5a14cd6561c3d301b7a599cd187d66b69ec0dca5b594c90d359db18461008c565b6102ce60808801357f14392ad2a968554f2e9be3192822ee370df3835437d6bdd824f7c02486a799757f1a901b29f21dd86a23814194667419cdb034a8f419cce6f36219ebe12f1d03ce8461008c565b61031e60a08801357f222b41b2066c2e18de2ce8f1b38e21067945bf3a523068d9be283bdeb0b090ca7f260b831c981e5d0edf7c4a1ce05d34b900e8e771b704ff94f52c9945a1227a038461008c565b61036e60c08801357f03ba99acc272296f6b5e8b46fdd80641dc68056bf1f1d058d7b0ae82673e6e0a7f1a49fe52f86e2ce468118842968ef83a85cc11ca735d1707594d03c0fcc5f7a48461008c565b6103be60e08801357f1bb356cda8bd9d21ca448a588e9fe402a48c2c090cc2d9028aabebf7eae7f18f7f2ba484140c7672e35cc296b012b1c06c9d65fa7daf76d898d54502b9dd6e8f298461008c565b61040f6101008801357f158100efe205b2ae041cd2722595c576d8ad554efd549c541c0235ddb95cc70d7f16532b0559581e1c0ff25d04ef22b687551e792d5f5d2134877bffd292114f998461008c565b6104606101208801357f1ecea9cf3060c8c3e065cd2f2f05fe405f4d81a6e4a067c43f65de122d4a8ecc7f0271befe332df95f1520c793b30ab4bbc373b49d736fdf4954fa8129851d9e288461008c565b6104b16101408801357f01886e15dd9ecac1445aca0b7c14420423ce79e0e7b5e5e7ca612fdbbbb0c77f7f17567d5e10acb1c359a4936a01b981b1e6fb9b2bf8746cfa36232c503fd055d18461008c565b6105026101608801357f0fa31e0ed9c1e3ebd3ff073c06bd5ec2056806962a50a4f9490d9d2d3c9125d47f12de630747fad5d0d0b137586691387df79e8a34d3b2968dc56f775ab6b3f4788461008c565b6105536101808801357f0675adf13437ce0b6c1853a85e1ce69404e9b79fc48e04a0757066da7650c6007f25415c817f8b5a1b4b8b1fbaba8a708d3c69f7a1aa35a3834e454b146a0a719a8461008c565b6105a46101a08801357f21c1a157c26e7368b687ff48228bde51af963a5337385f672bf794b1e734c4de7f10d8fd6daf436328532c048653ff83bc1192914754b7a5c907de1869768706848461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f039e6c254fdbfdddb550d7b28587b6e3359a0978a174c832f180238460bf67f660c08201527f05a7b274497c5b63c2aa9486e0610bf9c9fa32e70ac3453f26f181300106533a60e08201527f0e5775bf946735d1ab10bc0fe721dac812003a0756b73371686b39a0c8e0a59a6101008201527f2e63b48c5263b864a5ac08e86eda8c54b609edde10946cdd944dd04bf8f706996101208201527f2a68fdf476b29776ff77059d8292dbdef8bf3835b1d0b8c5e61a8e9f9065804c6101408201527f1b6deed70cfcb89383c60b8d413374d552260ab753beccb04e2077b09a6b69216101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f158d15b191dda264a993425059ebfd021c32c1730e3d254e31fd87de0ab46bac6102808201527f250bca34a48b272729deaec79ae6cc9a702ed03a18a0b5dbd03e9355f52480a56102a08201527f1a999fb6f30f5cc719a772e575a1effffd30eac8e14132c3759716b124d6750b6102c08201527f1db0c59f9dd26d6b1e665961792353cbd44351a6e5108cc13ee1aae16c3734046102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108995f84013561005a565b6108a6602084013561005a565b6108b3604084013561005a565b6108c0606084013561005a565b6108cd608084013561005a565b6108da60a084013561005a565b6108e760c084013561005a565b6108f460e084013561005a565b61090261010084013561005a565b61091061012084013561005a565b61091e61014084013561005a565b61092c61016084013561005a565b61093a61018084013561005a565b6109486101a084013561005a565b610955818486888a6100f2565b9050805f5260205ff35b806040810183101561096f575f5ffd5b92915050565b5f5f5f5f6102c08587031215610989575f5ffd5b610993868661095f565b935060c08501868111156109a5575f5ffd5b6040860193506109b5878261095f565b925050856102c0860111156109c8575f5ffd5b5091949093509091610100019056fea2646970667358221220478778d0335dd646856137a27c3acb70f813b5d21368e81d0f8aa12044b1af5b64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610975565b610054565b604051901515815260200160405180910390f35b5f610882565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f2677d6c999b93ce8836a26f68400342d9206d0042e5bef74384d97668d4fbd7185527f1c6dffd717c92db39b15ffaac7f1ca0896359f64d86ddbde53a9a724d53d687f60208601525f608086018661018e87357f1588203686d2c659beac6e6b6a0696c9a73b43167a1c23dcd156cd423a3486617f2a9a27b4754629f464e15757a6e1795285c772d60b824c8f1dcf721853505b648461008c565b6101de60208801357f0e7ef5047b47aa90a649bd18cea070121bf160cd07d5fb6f059d7f85959093037f0ad8fc97f11c92c12ec509d473fb3a2131cd46398b83b0f6931d5a316885bf4c8461008c565b61022e60408801357f1f360486c53217bd225c170d2c9bff57ce0401a846932d5998b0985302d0d0297f1f0d2c4008add8e5f828066af26a4893d22ede59ce5ed922805bbf72172f926f8461008c565b61027e60608801357f19038ac1aeb7fff5205df6e24fb20b79efc3e47b23ba901c6133a077fd25a41f7f06a8f121ae5a14cd6561c3d301b7a599cd187d66b69ec0dca5b594c90d359db18461008c565b6102ce60808801357f14392ad2a968554f2e9be3192822ee370df3835437d6bdd824f7c02486a799757f1a901b29f21dd86a23814194667419cdb034a8f419cce6f36219ebe12f1d03ce8461008c565b61031e60a08801357f222b41b2066c2e18de2ce8f1b38e21067945bf3a523068d9be283bdeb0b090ca7f260b831c981e5d0edf7c4a1ce05d34b900e8e771b704ff94f52c9945a1227a038461008c565b61036e60c08801357f03ba99acc272296f6b5e8b46fdd80641dc68056bf1f1d058d7b0ae82673e6e0a7f1a49fe52f86e2ce468118842968ef83a85cc11ca735d1707594d03c0fcc5f7a48461008c565b6103be60e08801357f1bb356cda8bd9d21ca448a588e9fe402a48c2c090cc2d9028aabebf7eae7f18f7f2ba484140c7672e35cc296b012b1c06c9d65fa7daf76d898d54502b9dd6e8f298461008c565b61040f6101008801357f158100efe205b2ae041cd2722595c576d8ad554efd549c541c0235ddb95cc70d7f16532b0559581e1c0ff25d04ef22b687551e792d5f5d2134877bffd292114f998461008c565b6104606101208801357f1ecea9cf3060c8c3e065cd2f2f05fe405f4d81a6e4a067c43f65de122d4a8ecc7f0271befe332df95f1520c793b30ab4bbc373b49d736fdf4954fa8129851d9e288461008c565b6104b16101408801357f01886e15dd9ecac1445aca0b7c14420423ce79e0e7b5e5e7ca612fdbbbb0c77f7f17567d5e10acb1c359a4936a01b981b1e6fb9b2bf8746cfa36232c503fd055d18461008c565b6105026101608801357f0fa31e0ed9c1e3ebd3ff073c06bd5ec2056806962a50a4f9490d9d2d3c9125d47f12de630747fad5d0d0b137586691387df79e8a34d3b2968dc56f775ab6b3f4788461008c565b6105536101808801357f0675adf13437ce0b6c1853a85e1ce69404e9b79fc48e04a0757066da7650c6007f25415c817f8b5a1b4b8b1fbaba8a708d3c69f7a1aa35a3834e454b146a0a719a8461008c565b6105a46101a08801357f21c1a157c26e7368b687ff48228bde51af963a5337385f672bf794b1e734c4de7f10d8fd6daf436328532c048653ff83bc1192914754b7a5c907de1869768706848461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f039e6c254fdbfdddb550d7b28587b6e3359a0978a174c832f180238460bf67f660c08201527f05a7b274497c5b63c2aa9486e0610bf9c9fa32e70ac3453f26f181300106533a60e08201527f0e5775bf946735d1ab10bc0fe721dac812003a0756b73371686b39a0c8e0a59a6101008201527f2e63b48c5263b864a5ac08e86eda8c54b609edde10946cdd944dd04bf8f706996101208201527f2a68fdf476b29776ff77059d8292dbdef8bf3835b1d0b8c5e61a8e9f9065804c6101408201527f1b6deed70cfcb89383c60b8d413374d552260ab753beccb04e2077b09a6b69216101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f158d15b191dda264a993425059ebfd021c32c1730e3d254e31fd87de0ab46bac6102808201527f250bca34a48b272729deaec79ae6cc9a702ed03a18a0b5dbd03e9355f52480a56102a08201527f1a999fb6f30f5cc719a772e575a1effffd30eac8e14132c3759716b124d6750b6102c08201527f1db0c59f9dd26d6b1e665961792353cbd44351a6e5108cc13ee1aae16c3734046102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108995f84013561005a565b6108a6602084013561005a565b6108b3604084013561005a565b6108c0606084013561005a565b6108cd608084013561005a565b6108da60a084013561005a565b6108e760c084013561005a565b6108f460e084013561005a565b61090261010084013561005a565b61091061012084013561005a565b61091e61014084013561005a565b61092c61016084013561005a565b61093a61018084013561005a565b6109486101a084013561005a565b610955818486888a6100f2565b9050805f5260205ff35b806040810183101561096f575f5ffd5b92915050565b5f5f5f5f6102c08587031215610989575f5ffd5b610993868661095f565b935060c08501868111156109a5575f5ffd5b6040860193506109b5878261095f565b925050856102c0860111156109c8575f5ffd5b5091949093509091610100019056fea2646970667358221220478778d0335dd646856137a27c3acb70f813b5d21368e81d0f8aa12044b1af5b64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2_30.sol",
- "buildInfoId": "solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#insertionVerifierDepth30.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#insertionVerifierDepth30.json
deleted file mode 100644
index c37893e..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#insertionVerifierDepth30.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyInsertionVerifierAlpha_2_30",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_30.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "_pubSignals",
- "type": "uint256[4]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506106638061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d6565b610054565b604051901515815260200160405180910390f35b5f61055b565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0924b2da45959e3db416d37c294a404744951be16e42f1d992acb2f9b1653c9b85527f1dd38cbdac759717b0ac22a4684a67b9dde133900fd0de04e84649d362c43af260208601525f608086018661018e87357f1b2708ad6d7e6be283e7de6a744c951d2b8e5364548e69df7856c3c97b573e1b7f0974e3e005ff370d47e3fdb7ccdf534091ef1e4a005206d2d1231e67b90511998461008c565b6101de60208801357f2ebb5ab1d89212403b8779a300f9ddc2d940387f8a35748b528e34a8ba9aa8eb7f19eeb6ab376be1165cb0ec80572317e9f5c4518602464a5713c215c980fefb428461008c565b61022e60408801357f057838b481ea687ebdd9e99e7b0a647b9fde53a265abb2ebf10f786977fd745d7f303b63a34f398feec2ee236d526cf0b1152e7c0322e5ff4d253c0a3a8bf17fdc8461008c565b61027e60608801357f19345bce990107cbcf966676e877fb4f5ca5266f5d57adab7678620d605636d87f180b99f92cc59f1eabdbad0ff4a62544fa9bf0cab8f5912f5a847c5640c1d7328461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f0e2bb878054469b448cc0e33dc738b287d43fe65e576af5b3b04e591fdb54f1e60c08201527f1bf275d3700d3f50dca59951ba350ffa3ea2372d0196c425caa92a9e67899ade60e08201527f0c44e70b0815f8e0e28ce0457dc505fe56b05e59d49b5ae4e11b055a806910336101008201527f1232e197aaa7b2d91e891300fac64a73564b798a3db3fa5fb3abf383bf2032606101208201527f28308763f703530f89d2cf0bfa677e8d6cee8f7d9027e414164185b9819db03d6101408201527f1992fd2f54f2bb493054e09c96436be20ea7137974f126e81c09c2b32f70290c6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1d12be17bc61349a2fa4a78986dc0c65250840b18d469b5239a06678fdaffff36102808201527f2b76fd205a71da739792da15aa42bf4e6e549970f2c5d27f19456ed6ef65f9136102a08201527f291ed4e167e08d61ceb08cb301209e3431b16f87170ed88f5265b625d5e194486102c08201527e6370563f1ca56b9f3f3329c4a4724e95130020346360fa7e450ed7315a22e16102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105725f84013561005a565b61057f602084013561005a565b61058c604084013561005a565b610599606084013561005a565b6105a6818486888a6100f2565b9050805f5260205ff35b80604081018310156105c0575f5ffd5b92915050565b80608081018310156105c0575f5ffd5b5f5f5f5f61018085870312156105ea575f5ffd5b6105f486866105b0565b935061060386604087016105c6565b92506106128660c087016105b0565b91506106228661010087016105c6565b90509295919450925056fea26469706673582212205a855661bcf2b5e7a6820e1e0d44203c68c61e39b2b0c99faac2b30e34af037964736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d6565b610054565b604051901515815260200160405180910390f35b5f61055b565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0924b2da45959e3db416d37c294a404744951be16e42f1d992acb2f9b1653c9b85527f1dd38cbdac759717b0ac22a4684a67b9dde133900fd0de04e84649d362c43af260208601525f608086018661018e87357f1b2708ad6d7e6be283e7de6a744c951d2b8e5364548e69df7856c3c97b573e1b7f0974e3e005ff370d47e3fdb7ccdf534091ef1e4a005206d2d1231e67b90511998461008c565b6101de60208801357f2ebb5ab1d89212403b8779a300f9ddc2d940387f8a35748b528e34a8ba9aa8eb7f19eeb6ab376be1165cb0ec80572317e9f5c4518602464a5713c215c980fefb428461008c565b61022e60408801357f057838b481ea687ebdd9e99e7b0a647b9fde53a265abb2ebf10f786977fd745d7f303b63a34f398feec2ee236d526cf0b1152e7c0322e5ff4d253c0a3a8bf17fdc8461008c565b61027e60608801357f19345bce990107cbcf966676e877fb4f5ca5266f5d57adab7678620d605636d87f180b99f92cc59f1eabdbad0ff4a62544fa9bf0cab8f5912f5a847c5640c1d7328461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f0e2bb878054469b448cc0e33dc738b287d43fe65e576af5b3b04e591fdb54f1e60c08201527f1bf275d3700d3f50dca59951ba350ffa3ea2372d0196c425caa92a9e67899ade60e08201527f0c44e70b0815f8e0e28ce0457dc505fe56b05e59d49b5ae4e11b055a806910336101008201527f1232e197aaa7b2d91e891300fac64a73564b798a3db3fa5fb3abf383bf2032606101208201527f28308763f703530f89d2cf0bfa677e8d6cee8f7d9027e414164185b9819db03d6101408201527f1992fd2f54f2bb493054e09c96436be20ea7137974f126e81c09c2b32f70290c6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1d12be17bc61349a2fa4a78986dc0c65250840b18d469b5239a06678fdaffff36102808201527f2b76fd205a71da739792da15aa42bf4e6e549970f2c5d27f19456ed6ef65f9136102a08201527f291ed4e167e08d61ceb08cb301209e3431b16f87170ed88f5265b625d5e194486102c08201527e6370563f1ca56b9f3f3329c4a4724e95130020346360fa7e450ed7315a22e16102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105725f84013561005a565b61057f602084013561005a565b61058c604084013561005a565b610599606084013561005a565b6105a6818486888a6100f2565b9050805f5260205ff35b80604081018310156105c0575f5ffd5b92915050565b80608081018310156105c0575f5ffd5b5f5f5f5f61018085870312156105ea575f5ffd5b6105f486866105b0565b935061060386604087016105c6565b92506106128660c087016105b0565b91506106228661010087016105c6565b90509295919450925056fea26469706673582212205a855661bcf2b5e7a6820e1e0d44203c68c61e39b2b0c99faac2b30e34af037964736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_30.sol",
- "buildInfoId": "solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#withdrawVerifierDepth30.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#withdrawVerifierDepth30.json
deleted file mode 100644
index 608fd52..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#withdrawVerifierDepth30.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyWithdrawVerifierAlpha_2_2_30",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2_30.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "_pubSignals",
- "type": "uint256[9]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506108328061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b36600461079a565b610054565b604051901515815260200160405180910390f35b5f6106ed565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f03760d22d9f2d34545c9e1914bb1ce7a6044769221030d98d87baf999cce726d85527f156ecf9f5c2610839d6d385378a656c0efd32e94a04ebc9c7089f4fe125b838260208601525f608086018661018e87357f2b2c117485e91a1ea632fe27385f77f9331e1db2672e42e9c86a2f802d6f4a577f022aa120b95ee1b256867106394adb6006f30068c06b3ea2e7a6a5bd396d32b88461008c565b6101de60208801357f190133b406f620e57f93dac97d795ee3e6c1cd5c1380ff8efa9bb5ae36eb6f027f201b5a5bcdd373439d8e242f31c140092f2e5e54fd22a0cd50775e373802199e8461008c565b61022e60408801357f1dacf0b93a0b74bacc711d37c038bc8c83ade754b2ce6b8d14bdab54c5267fcf7f27793f520413175bff070cb1cf2a66e303cb460fc50eae4788cc70e37947189e8461008c565b61027e60608801357f20c614098c5807d4d609bcda798ec95ffb84ea0fc6b97e2383149f4797c4071c7f1fcbb72508f88430df9f833ac15e753e438b391af9ded7d805815264fb92b9a18461008c565b6102ce60808801357f0f412826e324f04afe142e271f643cfd1191362dbd52c4ab1027b6dc5f4505197f251f4cfcfa4754144730a6dc064fe7159ceceaa24682c33fa9ec26df30314a098461008c565b61031e60a08801357f0a87b48bf8cd64b224ef5e524ccc422db4d1a2ddc4c6a52bf1354155dbfaca107f11ba886ae51f5da62f1ef74ebc2d941ffe1c84c0cc86a039eea59d753cf737e58461008c565b61036e60c08801357f0eb0f1a445dc5bdf6debee9f4b65306030a8c1c70c87aa910f111314550ff7ca7f0497eac083a6ae9671da1e9e67b4d81eb1890f772f559945e8db07f731b89b948461008c565b6103be60e08801357f27d71145b77c48dc3f37b04048a4952390eff92adf283803d939a5ef357469fa7f2f1d2ecb7da3238e91f60101a82f95a2a0cf3f18513a3efea2ef960e0f1b05038461008c565b61040f6101008801357f1232a2dd4a7f2a4eb7706e0ef2ac142d17bdd99c74cac407523c83ae2c0b14bf7f3013a3053bd7992674a30da3c9e0d99c8b16d930ea2986caa9428a2b843bcf9e8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1e16c25ab763d8d1477730a7d1ccef12a682cea336a50d06e8fbf5c6179e17d460c08201527f075447418c2d22c69113fa9cdfa0d27ef53317ffdee3259adcd492ba271bc6d460e08201527f2cc1fb86ad7b8be8587556a4b94dc9e84e3b8666d59c51208ee844733934e6696101008201527f27d109e11d2b06dc95900781efaa5ef1fc6dfbdb31e61283628e962fd17fe8c16101208201527f2f8043381982846eac492d6f3a1d39a682c65bfa8dd02e323e7a95df562cf9c96101408201527f29b9eff97456a285bf27898a846691a82071d53474301e1ca6b49892eb4499a56101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f02eed0745f7d7332ae3ac78bd0254d1d2a4f9c1ce849e2228ea68328f9861bab6102808201527f0a53e8207852cc09b290c2038962e161eb338f5b97cb2e1df58d5d4dd059cbdd6102a08201527f251e2c5b50852e3d17871d61fea2a638e7bd6669af35a7a4239e571588856f356102c08201527f1a01f4782436380d4ee0769723d43073f4888b316a973df0e33004b2ded19df76102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107045f84013561005a565b610711602084013561005a565b61071e604084013561005a565b61072b606084013561005a565b610738608084013561005a565b61074560a084013561005a565b61075260c084013561005a565b61075f60e084013561005a565b61076d61010084013561005a565b61077a818486888a6100f2565b9050805f5260205ff35b8060408101831015610794575f5ffd5b92915050565b5f5f5f5f61022085870312156107ae575f5ffd5b6107b88686610784565b935060c08501868111156107ca575f5ffd5b6040860193506107da8782610784565b92505085610220860111156107ed575f5ffd5b5091949093509091610100019056fea2646970667358221220aa1cf904b8465ae86135852d29b474903154ff35037e293a5f977b17164b752c64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b36600461079a565b610054565b604051901515815260200160405180910390f35b5f6106ed565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f03760d22d9f2d34545c9e1914bb1ce7a6044769221030d98d87baf999cce726d85527f156ecf9f5c2610839d6d385378a656c0efd32e94a04ebc9c7089f4fe125b838260208601525f608086018661018e87357f2b2c117485e91a1ea632fe27385f77f9331e1db2672e42e9c86a2f802d6f4a577f022aa120b95ee1b256867106394adb6006f30068c06b3ea2e7a6a5bd396d32b88461008c565b6101de60208801357f190133b406f620e57f93dac97d795ee3e6c1cd5c1380ff8efa9bb5ae36eb6f027f201b5a5bcdd373439d8e242f31c140092f2e5e54fd22a0cd50775e373802199e8461008c565b61022e60408801357f1dacf0b93a0b74bacc711d37c038bc8c83ade754b2ce6b8d14bdab54c5267fcf7f27793f520413175bff070cb1cf2a66e303cb460fc50eae4788cc70e37947189e8461008c565b61027e60608801357f20c614098c5807d4d609bcda798ec95ffb84ea0fc6b97e2383149f4797c4071c7f1fcbb72508f88430df9f833ac15e753e438b391af9ded7d805815264fb92b9a18461008c565b6102ce60808801357f0f412826e324f04afe142e271f643cfd1191362dbd52c4ab1027b6dc5f4505197f251f4cfcfa4754144730a6dc064fe7159ceceaa24682c33fa9ec26df30314a098461008c565b61031e60a08801357f0a87b48bf8cd64b224ef5e524ccc422db4d1a2ddc4c6a52bf1354155dbfaca107f11ba886ae51f5da62f1ef74ebc2d941ffe1c84c0cc86a039eea59d753cf737e58461008c565b61036e60c08801357f0eb0f1a445dc5bdf6debee9f4b65306030a8c1c70c87aa910f111314550ff7ca7f0497eac083a6ae9671da1e9e67b4d81eb1890f772f559945e8db07f731b89b948461008c565b6103be60e08801357f27d71145b77c48dc3f37b04048a4952390eff92adf283803d939a5ef357469fa7f2f1d2ecb7da3238e91f60101a82f95a2a0cf3f18513a3efea2ef960e0f1b05038461008c565b61040f6101008801357f1232a2dd4a7f2a4eb7706e0ef2ac142d17bdd99c74cac407523c83ae2c0b14bf7f3013a3053bd7992674a30da3c9e0d99c8b16d930ea2986caa9428a2b843bcf9e8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1e16c25ab763d8d1477730a7d1ccef12a682cea336a50d06e8fbf5c6179e17d460c08201527f075447418c2d22c69113fa9cdfa0d27ef53317ffdee3259adcd492ba271bc6d460e08201527f2cc1fb86ad7b8be8587556a4b94dc9e84e3b8666d59c51208ee844733934e6696101008201527f27d109e11d2b06dc95900781efaa5ef1fc6dfbdb31e61283628e962fd17fe8c16101208201527f2f8043381982846eac492d6f3a1d39a682c65bfa8dd02e323e7a95df562cf9c96101408201527f29b9eff97456a285bf27898a846691a82071d53474301e1ca6b49892eb4499a56101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f02eed0745f7d7332ae3ac78bd0254d1d2a4f9c1ce849e2228ea68328f9861bab6102808201527f0a53e8207852cc09b290c2038962e161eb338f5b97cb2e1df58d5d4dd059cbdd6102a08201527f251e2c5b50852e3d17871d61fea2a638e7bd6669af35a7a4239e571588856f356102c08201527f1a01f4782436380d4ee0769723d43073f4888b316a973df0e33004b2ded19df76102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107045f84013561005a565b610711602084013561005a565b61071e604084013561005a565b61072b606084013561005a565b610738608084013561005a565b61074560a084013561005a565b61075260c084013561005a565b61075f60e084013561005a565b61076d61010084013561005a565b61077a818486888a6100f2565b9050805f5260205ff35b8060408101831015610794575f5ffd5b92915050565b5f5f5f5f61022085870312156107ae575f5ffd5b6107b88686610784565b935060c08501868111156107ca575f5ffd5b6040860193506107da8782610784565b92505085610220860111156107ed575f5ffd5b5091949093509091610100019056fea2646970667358221220aa1cf904b8465ae86135852d29b474903154ff35037e293a5f977b17164b752c64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2_30.sol",
- "buildInfoId": "solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#withdrawVerifierV3.json b/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#withdrawVerifierV3.json
deleted file mode 100644
index 59b357b..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyAggregatorAlpha#withdrawVerifierV3.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyWithdrawVerifierAlphaV3_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlphaV3_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "input",
- "type": "uint256[9]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "r",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b5061149a8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b366004611300565b610054565b604051901515815260200160405180910390f35b5f61005d611127565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600980825261014082019093525f9290918201610120803683370190505090505f5b600981101561013357848160098110610109576101096113e0565b6020020151828281518110610120576101206113e0565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e9190611408565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb5783878281518110610217576102176113e0565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc85608001518460016102859190611408565b81518110610295576102956113e0565b60200260200101518a85815181106102af576102af6113e0565b6020026020010151610a94565b610b28565b91506001016101fb565b506102f38183608001515f815181106102e6576102e66113e0565b6020026020010151610b28565b9050610327610304865f0151610bbf565b8660200151845f015185602001518587604001518b604001518960600151610c5b565b610337576001935050505061033e565b5f93505050505b92915050565b61034c611175565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f05d000ba4551c1fa877c7a46107992624c3d99a3e6bdd57c50698771b613cc298185019081527f1ecc95a1dbdbe4f8cef976bf22affb6de7fa33cb89b48d77bead7102ad139892828401528152835180850185527f21db75587cbe02e9192f9b5f2b763c99648c02dd6b6a4c96c20df72fb841418a81527f2af9f7e11a5a29cdcb4b532c39193095513331f2834798b89072b995ad356a898185015281840152908401528151600a8082526101608201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f2660af19967ed5580208a84497fbdd099f460ed85561c98f23edb4a0384dcf7f81527f210fa1941084636ec27feec1eb19e46b9b48bfa53b306d017ae5963efad52a436020820152905180515f90610659576106596113e0565b602002602001018190525060405180604001604052807f2083fd8b0b70f84ff529e805d135f4a43429faa7993c7722807ae7a190df845581526020017f28811e77761972df5b4960cb74319c488f4edbeddc48333c6d4d1a6bf413ca3481525081608001516001815181106106d0576106d06113e0565b602002602001018190525060405180604001604052807f13dfc5473a9989ab659e0b9a6334f6941bc90555d51e4bca722dae72810e989881526020017f013b58637f2dae5dcc9fc8fbebfc8b1381840813185e0fb647f05168c697540c8152508160800151600281518110610747576107476113e0565b602002602001018190525060405180604001604052807f1c44dcfc07f5f9ae2c637ff60d5a89d2c1713bca6aff265abcb28620a852c34281526020017f19330ccf92e4c27c2b591f021a828cca5edab6049a9d1062686fd796b6d3f52d81525081608001516003815181106107be576107be6113e0565b602002602001018190525060405180604001604052807f23d7191b87dd317ce4294b631c1ce03e454f61c038c5d9c601c8abcc5003816b81526020017f21b455e02d8d7aa7549f9e769915f44c954cbc965220a0c8f61c0c1a367509818152508160800151600481518110610835576108356113e0565b602002602001018190525060405180604001604052807f2226e11fa0ed282b86920337d75253929cdead5afa79adbc98bbf0786a21503081526020017eab0bd68fd9de0ee282bc419521c647a219f5075248f5ebfb2016464f50ba1a81525081608001516005815181106108ab576108ab6113e0565b602002602001018190525060405180604001604052807f21a6f2274e37865052daf09f57ee7d7dafbc1d60cc54e26ab82120b995ed12f481526020017f0b5c832b69ae80552e1d9402009efab37ce39eb97825b4b343f5ea9581b31c1b8152508160800151600681518110610922576109226113e0565b602002602001018190525060405180604001604052807f091ecf7419c3a24ba36564b86a4859fd8f00157103bb0759ea5ba4928bfe460b81526020017f105c38b8731b3cbeed64c9c7e1aa313538e21302828e2f95fb3b05d777a0f7d88152508160800151600781518110610999576109996113e0565b602002602001018190525060405180604001604052807f100d9113bd2a6d16e7682a168a313a92f111d97fa62ab66b9b60339ab7edd8cf81526020017f0db625617d7f1e384b7fd3bfa6625ce178ced385ea8bef33da11938d7ebc389d8152508160800151600881518110610a1057610a106113e0565b602002602001018190525060405180604001604052807ec8fdc7d85d6600498e56ca6e7082bef46e29858708e318188919835ac6878881526020017f0c567e014f5306e60d7e0d42f3e9216db8a9837c77f300ff203b05060360a30a8152508160800151600981518110610a8657610a866113e0565b602002602001018190525090565b604080518082019091525f8082526020820152610aaf6111c5565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610add57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610b436111e3565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610b7c57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c0557506020830151155b15610c24575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610c48919061141b565b610c52908461143a565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610c7557505060408051600480825260a082019092529192505f9190602082015b610cbd611201565b815260200190600190039081610cb55790505090508a825f81518110610ce557610ce56113e0565b60200260200101819052508882600181518110610d0457610d046113e0565b60200260200101819052508682600281518110610d2357610d236113e0565b60200260200101819052508482600381518110610d4257610d426113e0565b602002602001018190525089815f81518110610d6057610d606113e0565b60200260200101819052508781600181518110610d7f57610d7f6113e0565b60200260200101819052508581600281518110610d9e57610d9e6113e0565b60200260200101819052508381600381518110610dbd57610dbd6113e0565b6020026020010181905250610dd28282610de1565b9b9a5050505050505050505050565b5f8151835114610e2c5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610e3a82600661144d565b90505f8167ffffffffffffffff811115610e5657610e5661125d565b604051908082528060200260200182016040528015610e7f578160200160208202803683370190505b5090505f5b838110156110ac57868181518110610e9e57610e9e6113e0565b60200260200101515f015182826006610eb7919061144d565b610ec1905f611408565b81518110610ed157610ed16113e0565b602002602001018181525050868181518110610eef57610eef6113e0565b60200260200101516020015182826006610f09919061144d565b610f14906001611408565b81518110610f2457610f246113e0565b602002602001018181525050858181518110610f4257610f426113e0565b6020908102919091010151515182610f5b83600661144d565b610f66906002611408565b81518110610f7657610f766113e0565b602002602001018181525050858181518110610f9457610f946113e0565b60209081029190910181015151015182610faf83600661144d565b610fba906003611408565b81518110610fca57610fca6113e0565b602002602001018181525050858181518110610fe857610fe86113e0565b6020026020010151602001515f60028110611005576110056113e0565b60200201518261101683600661144d565b611021906004611408565b81518110611031576110316113e0565b60200260200101818152505085818151811061104f5761104f6113e0565b60200260200101516020015160016002811061106d5761106d6113e0565b60200201518261107e83600661144d565b611089906005611408565b81518110611099576110996113e0565b6020908102919091010152600101610e84565b506110b5611221565b5f602082602086026020860160086107d05a03fa905080806110d357fe5b50806111195760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101611150611201565b815260200161117060405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c083019190915281526020810161119e611201565b81526020016111ab611201565b81526020016111b8611201565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061121461123f565b815260200161117061123f565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156112a657634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f8301126112bd575f5ffd5b5f6112c86040611271565b90508060408401858111156112db575f5ffd5b845b818110156112f55780358352602092830192016112dd565b509195945050505050565b5f5f5f5f6102208587031215611314575f5ffd5b61131e86866112ae565b935085605f86011261132e575f5ffd5b604061133981611271565b8060c088018981111561134a575f5ffd5b604089015b81811015611370576113618b826112ae565b8452602090930192840161134f565b5081965061137e8a826112ae565b95505050505061010085015f87601f830112611398575f5ffd5b5f6101206113a581611271565b91508301818a8211156113b6575f5ffd5b5b818510156113cf5784358152602094850194016113b7565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e6113f4565b5f8261143557634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e6113f4565b808202811582820484141761033e5761033e6113f456fea2646970667358221220ee56b55b73586c11a0ad84b93a1c92445f7a65f7be9aeed3d1e4fbaef2220a4364736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b366004611300565b610054565b604051901515815260200160405180910390f35b5f61005d611127565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600980825261014082019093525f9290918201610120803683370190505090505f5b600981101561013357848160098110610109576101096113e0565b6020020151828281518110610120576101206113e0565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e9190611408565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb5783878281518110610217576102176113e0565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc85608001518460016102859190611408565b81518110610295576102956113e0565b60200260200101518a85815181106102af576102af6113e0565b6020026020010151610a94565b610b28565b91506001016101fb565b506102f38183608001515f815181106102e6576102e66113e0565b6020026020010151610b28565b9050610327610304865f0151610bbf565b8660200151845f015185602001518587604001518b604001518960600151610c5b565b610337576001935050505061033e565b5f93505050505b92915050565b61034c611175565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f05d000ba4551c1fa877c7a46107992624c3d99a3e6bdd57c50698771b613cc298185019081527f1ecc95a1dbdbe4f8cef976bf22affb6de7fa33cb89b48d77bead7102ad139892828401528152835180850185527f21db75587cbe02e9192f9b5f2b763c99648c02dd6b6a4c96c20df72fb841418a81527f2af9f7e11a5a29cdcb4b532c39193095513331f2834798b89072b995ad356a898185015281840152908401528151600a8082526101608201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f2660af19967ed5580208a84497fbdd099f460ed85561c98f23edb4a0384dcf7f81527f210fa1941084636ec27feec1eb19e46b9b48bfa53b306d017ae5963efad52a436020820152905180515f90610659576106596113e0565b602002602001018190525060405180604001604052807f2083fd8b0b70f84ff529e805d135f4a43429faa7993c7722807ae7a190df845581526020017f28811e77761972df5b4960cb74319c488f4edbeddc48333c6d4d1a6bf413ca3481525081608001516001815181106106d0576106d06113e0565b602002602001018190525060405180604001604052807f13dfc5473a9989ab659e0b9a6334f6941bc90555d51e4bca722dae72810e989881526020017f013b58637f2dae5dcc9fc8fbebfc8b1381840813185e0fb647f05168c697540c8152508160800151600281518110610747576107476113e0565b602002602001018190525060405180604001604052807f1c44dcfc07f5f9ae2c637ff60d5a89d2c1713bca6aff265abcb28620a852c34281526020017f19330ccf92e4c27c2b591f021a828cca5edab6049a9d1062686fd796b6d3f52d81525081608001516003815181106107be576107be6113e0565b602002602001018190525060405180604001604052807f23d7191b87dd317ce4294b631c1ce03e454f61c038c5d9c601c8abcc5003816b81526020017f21b455e02d8d7aa7549f9e769915f44c954cbc965220a0c8f61c0c1a367509818152508160800151600481518110610835576108356113e0565b602002602001018190525060405180604001604052807f2226e11fa0ed282b86920337d75253929cdead5afa79adbc98bbf0786a21503081526020017eab0bd68fd9de0ee282bc419521c647a219f5075248f5ebfb2016464f50ba1a81525081608001516005815181106108ab576108ab6113e0565b602002602001018190525060405180604001604052807f21a6f2274e37865052daf09f57ee7d7dafbc1d60cc54e26ab82120b995ed12f481526020017f0b5c832b69ae80552e1d9402009efab37ce39eb97825b4b343f5ea9581b31c1b8152508160800151600681518110610922576109226113e0565b602002602001018190525060405180604001604052807f091ecf7419c3a24ba36564b86a4859fd8f00157103bb0759ea5ba4928bfe460b81526020017f105c38b8731b3cbeed64c9c7e1aa313538e21302828e2f95fb3b05d777a0f7d88152508160800151600781518110610999576109996113e0565b602002602001018190525060405180604001604052807f100d9113bd2a6d16e7682a168a313a92f111d97fa62ab66b9b60339ab7edd8cf81526020017f0db625617d7f1e384b7fd3bfa6625ce178ced385ea8bef33da11938d7ebc389d8152508160800151600881518110610a1057610a106113e0565b602002602001018190525060405180604001604052807ec8fdc7d85d6600498e56ca6e7082bef46e29858708e318188919835ac6878881526020017f0c567e014f5306e60d7e0d42f3e9216db8a9837c77f300ff203b05060360a30a8152508160800151600981518110610a8657610a866113e0565b602002602001018190525090565b604080518082019091525f8082526020820152610aaf6111c5565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610add57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610b436111e3565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610b7c57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c0557506020830151155b15610c24575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610c48919061141b565b610c52908461143a565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610c7557505060408051600480825260a082019092529192505f9190602082015b610cbd611201565b815260200190600190039081610cb55790505090508a825f81518110610ce557610ce56113e0565b60200260200101819052508882600181518110610d0457610d046113e0565b60200260200101819052508682600281518110610d2357610d236113e0565b60200260200101819052508482600381518110610d4257610d426113e0565b602002602001018190525089815f81518110610d6057610d606113e0565b60200260200101819052508781600181518110610d7f57610d7f6113e0565b60200260200101819052508581600281518110610d9e57610d9e6113e0565b60200260200101819052508381600381518110610dbd57610dbd6113e0565b6020026020010181905250610dd28282610de1565b9b9a5050505050505050505050565b5f8151835114610e2c5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610e3a82600661144d565b90505f8167ffffffffffffffff811115610e5657610e5661125d565b604051908082528060200260200182016040528015610e7f578160200160208202803683370190505b5090505f5b838110156110ac57868181518110610e9e57610e9e6113e0565b60200260200101515f015182826006610eb7919061144d565b610ec1905f611408565b81518110610ed157610ed16113e0565b602002602001018181525050868181518110610eef57610eef6113e0565b60200260200101516020015182826006610f09919061144d565b610f14906001611408565b81518110610f2457610f246113e0565b602002602001018181525050858181518110610f4257610f426113e0565b6020908102919091010151515182610f5b83600661144d565b610f66906002611408565b81518110610f7657610f766113e0565b602002602001018181525050858181518110610f9457610f946113e0565b60209081029190910181015151015182610faf83600661144d565b610fba906003611408565b81518110610fca57610fca6113e0565b602002602001018181525050858181518110610fe857610fe86113e0565b6020026020010151602001515f60028110611005576110056113e0565b60200201518261101683600661144d565b611021906004611408565b81518110611031576110316113e0565b60200260200101818152505085818151811061104f5761104f6113e0565b60200260200101516020015160016002811061106d5761106d6113e0565b60200201518261107e83600661144d565b611089906005611408565b81518110611099576110996113e0565b6020908102919091010152600101610e84565b506110b5611221565b5f602082602086026020860160086107d05a03fa905080806110d357fe5b50806111195760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101611150611201565b815260200161117060405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c083019190915281526020810161119e611201565b81526020016111ab611201565b81526020016111b8611201565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061121461123f565b815260200161117061123f565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156112a657634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f8301126112bd575f5ffd5b5f6112c86040611271565b90508060408401858111156112db575f5ffd5b845b818110156112f55780358352602092830192016112dd565b509195945050505050565b5f5f5f5f6102208587031215611314575f5ffd5b61131e86866112ae565b935085605f86011261132e575f5ffd5b604061133981611271565b8060c088018981111561134a575f5ffd5b604089015b81811015611370576113618b826112ae565b8452602090930192840161134f565b5081965061137e8a826112ae565b95505050505061010085015f87601f830112611398575f5ffd5b5f6101206113a581611271565b91508301818a8211156113b6575f5ffd5b5b818510156113cf5784358152602094850194016113b7565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e6113f4565b5f8261143557634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e6113f4565b808202811582820484141761033e5761033e6113f456fea2646970667358221220ee56b55b73586c11a0ad84b93a1c92445f7a65f7be9aeed3d1e4fbaef2220a4364736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlphaV3_2.sol",
- "buildInfoId": "solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV1.json b/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV1.json
deleted file mode 100644
index 6eca4c6..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV1.json
+++ /dev/null
@@ -1,898 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV1",
- "sourceName": "contracts/vault/CurvyVaultV1.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092ee20f800c61ffef7cf843cfdfb8556dc583253cc5041e6938d0f36f866cde564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092ee20f800c61ffef7cf843cfdfb8556dc583253cc5041e6938d0f36f866cde564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6484
- },
- {
- "length": 32,
- "start": 6525
- },
- {
- "length": 32,
- "start": 6849
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV1.sol",
- "buildInfoId": "solc-0_8_28-058921f7f7dc564bf6aa8a523006ec8cbd607c64"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV2.json b/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV2.json
deleted file mode 100644
index 45e9d6b..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV2.json
+++ /dev/null
@@ -1,898 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV2",
- "sourceName": "contracts/vault/CurvyVaultV2.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212202a778473814d79a7a9c68762ac7b88d037ffd9a5579e8017bdea83dab1cac6c664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212202a778473814d79a7a9c68762ac7b88d037ffd9a5579e8017bdea83dab1cac6c664736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5829
- },
- {
- "length": 32,
- "start": 5870
- },
- {
- "length": 32,
- "start": 6194
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV2.sol",
- "buildInfoId": "solc-0_8_28-f0322ae6d51b4110e2b55c267b545c35f2b0fd20"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV2Implementation.json b/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV2Implementation.json
deleted file mode 100644
index 45e9d6b..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV2Implementation.json
+++ /dev/null
@@ -1,898 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV2",
- "sourceName": "contracts/vault/CurvyVaultV2.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212202a778473814d79a7a9c68762ac7b88d037ffd9a5579e8017bdea83dab1cac6c664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212202a778473814d79a7a9c68762ac7b88d037ffd9a5579e8017bdea83dab1cac6c664736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5829
- },
- {
- "length": 32,
- "start": 5870
- },
- {
- "length": 32,
- "start": 6194
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV2.sol",
- "buildInfoId": "solc-0_8_28-f0322ae6d51b4110e2b55c267b545c35f2b0fd20"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV3Implementation.json b/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV3Implementation.json
deleted file mode 100644
index 5545902..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV3Implementation.json
+++ /dev/null
@@ -1,911 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV3",
- "sourceName": "contracts/vault/CurvyVaultV3.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5f6100f95f395f81816117f20152818161181b015261195f0152612d5f5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6130
- },
- {
- "length": 32,
- "start": 6171
- },
- {
- "length": 32,
- "start": 6495
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV3.sol",
- "buildInfoId": "solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV4.json b/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV4.json
deleted file mode 100644
index 8c91cae..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV4.json
+++ /dev/null
@@ -1,911 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV4",
- "sourceName": "contracts/vault/CurvyVaultV4.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5c6100f95f395f81816117ef01528181611818015261195c0152612d5c5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6127
- },
- {
- "length": 32,
- "start": 6168
- },
- {
- "length": 32,
- "start": 6492
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV4.sol",
- "buildInfoId": "solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV4Implementation.json b/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV4Implementation.json
deleted file mode 100644
index 8c91cae..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV4Implementation.json
+++ /dev/null
@@ -1,911 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV4",
- "sourceName": "contracts/vault/CurvyVaultV4.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5c6100f95f395f81816117ef01528181611818015261195c0152612d5c5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6127
- },
- {
- "length": 32,
- "start": 6168
- },
- {
- "length": 32,
- "start": 6492
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV4.sol",
- "buildInfoId": "solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV5.json b/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV5.json
deleted file mode 100644
index dcf48aa..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV5.json
+++ /dev/null
@@ -1,717 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV5",
- "sourceName": "contracts/vault/CurvyVaultV5.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC20TransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidDestinationAddress",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregator",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregatorOrOwner",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenAlreadyRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "WithdrawalFeeNotSet",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Deposit",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "indexed": false,
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": false,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "TokenDeregistered",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Withdraw",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "collectFees",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "deregisterToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fd491bda775b94cc947797bcd0ac41b752963a10eb8562367f9c41712eda766664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fd491bda775b94cc947797bcd0ac41b752963a10eb8562367f9c41712eda766664736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4162
- },
- {
- "length": 32,
- "start": 4203
- },
- {
- "length": 32,
- "start": 4522
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV5.sol",
- "buildInfoId": "solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV5Implementation.json b/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV5Implementation.json
deleted file mode 100644
index dcf48aa..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV5Implementation.json
+++ /dev/null
@@ -1,717 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV5",
- "sourceName": "contracts/vault/CurvyVaultV5.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC20TransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidDestinationAddress",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregator",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregatorOrOwner",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenAlreadyRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "WithdrawalFeeNotSet",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Deposit",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "indexed": false,
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": false,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "TokenDeregistered",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Withdraw",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "collectFees",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "deregisterToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fd491bda775b94cc947797bcd0ac41b752963a10eb8562367f9c41712eda766664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fd491bda775b94cc947797bcd0ac41b752963a10eb8562367f9c41712eda766664736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4162
- },
- {
- "length": 32,
- "start": 4203
- },
- {
- "length": 32,
- "start": 4522
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV5.sol",
- "buildInfoId": "solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV6.json b/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV6.json
deleted file mode 100644
index d4479df..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV6.json
+++ /dev/null
@@ -1,717 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV6",
- "sourceName": "contracts/vault/CurvyVaultV6.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC20TransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidDestinationAddress",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregator",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregatorOrOwner",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenAlreadyRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "WithdrawalFeeNotSet",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Deposit",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "indexed": false,
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": false,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "TokenDeregistered",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Withdraw",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "collectFees",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "deregisterToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220abf4833af5f4eaf00c587d9249e43bdb81105120a948ba55ef3190468959dffb64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220abf4833af5f4eaf00c587d9249e43bdb81105120a948ba55ef3190468959dffb64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4162
- },
- {
- "length": 32,
- "start": 4203
- },
- {
- "length": 32,
- "start": 4522
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV6.sol",
- "buildInfoId": "solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV6Implementation.json b/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV6Implementation.json
deleted file mode 100644
index d4479df..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyVault#CurvyVaultV6Implementation.json
+++ /dev/null
@@ -1,717 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV6",
- "sourceName": "contracts/vault/CurvyVaultV6.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC20TransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidDestinationAddress",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregator",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregatorOrOwner",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenAlreadyRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "WithdrawalFeeNotSet",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Deposit",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "indexed": false,
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": false,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "TokenDeregistered",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Withdraw",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "collectFees",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "deregisterToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220abf4833af5f4eaf00c587d9249e43bdb81105120a948ba55ef3190468959dffb64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220abf4833af5f4eaf00c587d9249e43bdb81105120a948ba55ef3190468959dffb64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4162
- },
- {
- "length": 32,
- "start": 4203
- },
- {
- "length": 32,
- "start": 4522
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV6.sol",
- "buildInfoId": "solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/CurvyVault#ERC1967Proxy.json b/ignition/deployments/production_sepolia/artifacts/CurvyVault#ERC1967Proxy.json
deleted file mode 100644
index ad99af7..0000000
--- a/ignition/deployments/production_sepolia/artifacts/CurvyVault#ERC1967Proxy.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ERC1967Proxy",
- "sourceName": "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "_data",
- "type": "bytes"
- }
- ],
- "stateMutability": "payable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "stateMutability": "payable",
- "type": "fallback"
- }
- ],
- "bytecode": "0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033",
- "deployedBytecode": "0x6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Proxy.sol",
- "buildInfoId": "solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/PortalFactory#CreateX.json b/ignition/deployments/production_sepolia/artifacts/PortalFactory#CreateX.json
deleted file mode 100644
index 5d6f263..0000000
--- a/ignition/deployments/production_sepolia/artifacts/PortalFactory#CreateX.json
+++ /dev/null
@@ -1,906 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "FailedContractCreation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedContractInitialisation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedEtherTransfer",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidNonceValue",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidSalt",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "Create3ProxyContractCreation",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreateClone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "bytecode": "0x",
- "deployedBytecode": "0x",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/production_sepolia/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/production_sepolia/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/artifacts/TokenBridgeModule#TokenBridge.json b/ignition/deployments/production_sepolia/artifacts/TokenBridgeModule#TokenBridge.json
deleted file mode 100644
index 0ca6446..0000000
--- a/ignition/deployments/production_sepolia/artifacts/TokenBridgeModule#TokenBridge.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "TokenBridge",
- "sourceName": "contracts/smart-account/TokenBridge.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "_lifiDiamondAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- }
- ],
- "name": "bridgeFullBalance",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405234801561000f575f5ffd5b5060405161068f38038061068f83398101604081905261002e9161003f565b6001600160a01b031660805261006c565b5f6020828403121561004f575f5ffd5b81516001600160a01b0381168114610065575f5ffd5b9392505050565b6080516105f161009e5f395f8181603d015281816092015281816101d1015281816101f901526102d301526105f15ff3fe608060405234801561000f575f5ffd5b5060043610610034575f3560e01c80632b8c45ca14610038578063bfe24a741461007b575b5f5ffd5b61005f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b61008e61008936600461050a565b610090565b005b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166101165760405162461bcd60e51b815260206004820152602260248201527f546f6b656e4272696467653a20496e76616c6964204c492e4649206164647265604482015261737360f01b60648201526084015b60405180910390fd5b6001600160a01b0383161580159061014b57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156102c9576040516370a0823160e01b815230600482015283905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610196573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101ba9190610595565b905080156102c2576101f66001600160a01b0383167f0000000000000000000000000000000000000000000000000000000000000000836103a2565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031685856040516102319291906105ac565b5f604051808303815f865af19150503d805f811461026a576040519150601f19603f3d011682016040523d82523d5f602084013e61026f565b606091505b50509050806102c05760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b505b5050505050565b47801561039c575f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682858560405161030c9291906105ac565b5f6040518083038185875af1925050503d805f8114610346576040519150601f19603f3d011682016040523d82523d5f602084013e61034b565b606091505b50509050806102c25760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526103f38482610455565b61039c57604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261044b90859061049e565b61039c848261049e565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610494575081156104865780600114610494565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af1806104bd576040513d5f823e3d81fd5b50505f513d915081156104d45780600114156104e1565b6001600160a01b0384163b155b1561039c57604051635274afe760e01b81526001600160a01b038516600482015260240161010d565b5f5f5f6040848603121561051c575f5ffd5b83356001600160a01b0381168114610532575f5ffd5b9250602084013567ffffffffffffffff81111561054d575f5ffd5b8401601f8101861361055d575f5ffd5b803567ffffffffffffffff811115610573575f5ffd5b866020828401011115610584575f5ffd5b939660209190910195509293505050565b5f602082840312156105a5575f5ffd5b5051919050565b818382375f910190815291905056fea264697066735822122024b79e0e8ad787a3d9372fa489b74bacaa38a30e0b87794cfbd941ed4010f11664736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610034575f3560e01c80632b8c45ca14610038578063bfe24a741461007b575b5f5ffd5b61005f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b61008e61008936600461050a565b610090565b005b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166101165760405162461bcd60e51b815260206004820152602260248201527f546f6b656e4272696467653a20496e76616c6964204c492e4649206164647265604482015261737360f01b60648201526084015b60405180910390fd5b6001600160a01b0383161580159061014b57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156102c9576040516370a0823160e01b815230600482015283905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610196573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101ba9190610595565b905080156102c2576101f66001600160a01b0383167f0000000000000000000000000000000000000000000000000000000000000000836103a2565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031685856040516102319291906105ac565b5f604051808303815f865af19150503d805f811461026a576040519150601f19603f3d011682016040523d82523d5f602084013e61026f565b606091505b50509050806102c05760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b505b5050505050565b47801561039c575f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682858560405161030c9291906105ac565b5f6040518083038185875af1925050503d805f8114610346576040519150601f19603f3d011682016040523d82523d5f602084013e61034b565b606091505b50509050806102c25760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526103f38482610455565b61039c57604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261044b90859061049e565b61039c848261049e565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610494575081156104865780600114610494565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af1806104bd576040513d5f823e3d81fd5b50505f513d915081156104d45780600114156104e1565b6001600160a01b0384163b155b1561039c57604051635274afe760e01b81526001600160a01b038516600482015260240161010d565b5f5f5f6040848603121561051c575f5ffd5b83356001600160a01b0381168114610532575f5ffd5b9250602084013567ffffffffffffffff81111561054d575f5ffd5b8401601f8101861361055d575f5ffd5b803567ffffffffffffffff811115610573575f5ffd5b866020828401011115610584575f5ffd5b939660209190910195509293505050565b5f602082840312156105a5575f5ffd5b5051919050565b818382375f910190815291905056fea264697066735822122024b79e0e8ad787a3d9372fa489b74bacaa38a30e0b87794cfbd941ed4010f11664736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "657": [
- {
- "length": 32,
- "start": 61
- },
- {
- "length": 32,
- "start": 146
- },
- {
- "length": 32,
- "start": 465
- },
- {
- "length": 32,
- "start": 505
- },
- {
- "length": 32,
- "start": 723
- }
- ]
- },
- "inputSourceName": "project/contracts/smart-account/TokenBridge.sol",
- "buildInfoId": "solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-058921f7f7dc564bf6aa8a523006ec8cbd607c64.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-058921f7f7dc564bf6aa8a523006ec8cbd607c64.json
deleted file mode 100644
index f3b18de..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-058921f7f7dc564bf6aa8a523006ec8cbd607c64.json
+++ /dev/null
@@ -1,134 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-058921f7f7dc564bf6aa8a523006ec8cbd607c64",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV1.sol": "project/contracts/vault/CurvyVaultV1.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/ECDSA.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.20;\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 }\n\n /**\n * @dev The signature derives the `address(0)`.\n */\n error ECDSAInvalidSignature();\n\n /**\n * @dev The signature has an invalid length.\n */\n error ECDSAInvalidSignatureLength(uint256 length);\n\n /**\n * @dev The signature has an S value that is in the upper half order.\n */\n error ECDSAInvalidSignatureS(bytes32 s);\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\n * and a bytes32 providing additional information about the error.\n *\n * If no error is returned, then the address can be used for verification purposes.\n *\n * The `ecrecover` EVM precompile 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 {MessageHashUtils-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 function tryRecover(\n bytes32 hash,\n bytes memory signature\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 (\"memory-safe\") {\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 {\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\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 precompile 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 {MessageHashUtils-toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\n _throwError(error, errorArg);\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[ERC-2098 short signatures]\n */\n function tryRecover(\n bytes32 hash,\n bytes32 r,\n bytes32 vs\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\n unchecked {\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n // We do not check for an overflow here since the shift operation results in 0 or 1.\n uint8 v = uint8((uint256(vs) >> 255) + 27);\n return tryRecover(hash, v, r, s);\n }\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n */\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\n _throwError(error, errorArg);\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 function tryRecover(\n bytes32 hash,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 ÷ 2 + 1, and for v in (302): v ∈ {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, s);\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, bytes32(0));\n }\n\n return (signer, RecoverError.NoError, bytes32(0));\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `v`,\n * `r` and `s` signature fields separately.\n */\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\n _throwError(error, errorArg);\n return recovered;\n }\n\n /**\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\n */\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\n if (error == RecoverError.NoError) {\n return; // no error: do nothing\n } else if (error == RecoverError.InvalidSignature) {\n revert ECDSAInvalidSignature();\n } else if (error == RecoverError.InvalidSignatureLength) {\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\n } else if (error == RecoverError.InvalidSignatureS) {\n revert ECDSAInvalidSignatureS(errorArg);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV1.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { EIP712Upgradeable } from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { ECDSA } from \"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\";\nimport \"./ICurvyVault.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract CurvyVaultV1 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH =\n keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"1.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Private functions\n\n function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {\n bytes32 structHash = keccak256(\n abi.encode(\n CURVY_META_TRANSACTION_TYPE_HASH,\n _nonces[metaTransaction.from],\n metaTransaction.from,\n metaTransaction.to,\n metaTransaction.tokenId,\n metaTransaction.amount,\n metaTransaction.gasFee,\n metaTransaction.metaTransactionType\n )\n );\n\n // Add domain data to the hash\n bytes32 hash = _hashTypedDataV4(structHash);\n\n // Check that the metaTransaction is signed by metaTransaction.from\n address signer = ECDSA.recover(hash, signature);\n require(signer == metaTransaction.from, \"CurvyVault#_validateSignature: Invalid signature!\");\n\n // Increment nonce\n _nonces[signer]++;\n emit NonceChange(signer, _nonces[signer]);\n }\n\n function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_transfer: Invalid recipient for transfer!\");\n require(\n metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Transfer,\n \"CurvyVault#transfer: Wrong type for meta transaction!\"\n );\n\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.to][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (transferFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);\n }\n\n function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_withdraw: Invalid withdraw recipient!\");\n require(\n metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,\n \"CurvyVault#withdraw: Wrong type for meta transaction!\"\n );\n\n // Burn wrapped tokens\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (withdrawalFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n // Withdraw\n if (metaTransaction.tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];\n IERC20(tokenAddress).safeTransfer(metaTransaction.to, metaTransaction.amount);\n } else {\n // We are withdrawing ETH\n (bool success, ) = metaTransaction.to.call{ value: metaTransaction.amount }(\"\");\n require(success, \"CurvyVault#_withdraw: ETH withdrawal failed!\");\n }\n\n emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);\n }\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n require(_tokenAddressToTokenId[tokenAddress] == 0, \"CurvyVault#registerToken: Token already registered!\");\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {\n if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {\n depositFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {\n transferFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {\n withdrawalFee = fee;\n } else {\n revert(\"CurvyVault#setFeeAmount: Unknown fee type!\");\n }\n\n emit FeeChange(metaTransactionType, fee);\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n require(to != address(0x0), \"CurvyVault#deposit: Invalid recipient for deposit!\");\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n require(msg.value == 0, \"CurvyVault#deposit: Don't send ETH with ERC20 deposit!\");\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault#deposit: Token address not registered!\");\n } else {\n // We are depositing ETH\n require(amount == msg.value, \"CurvyVault#deposit: Incorrect deposit value!\");\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)\n if (gasSponsorshipAmount != 0) {\n _balances[to][tokenId] -= gasSponsorshipAmount;\n _balances[owner()][tokenId] += gasSponsorshipAmount;\n }\n\n emit Transfer(address(0x0), to, tokenId, amount);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n require(msg.sender == metaTransaction.from, \"CurvyVault#transfer: Invalid msg.sender!\");\n require(\n metaTransaction.gasFee == 0,\n \"CurvyVault#transfer: gasFee must be 0 when not relaying metaTransaction for others!\"\n );\n\n _transfer(metaTransaction);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _transfer(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n require(msg.sender == metaTransaction.from, \"CurvyVault#withdraw: Invalid msg.sender!\");\n require(\n metaTransaction.gasFee == 0,\n \"CurvyVault#withdraw: gasFee must be 0 when not relaying metaTransaction for others!\"\n );\n\n _withdraw(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _withdraw(metaTransaction);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n require(tokenAddress != address(0x0), \"CurvyVault:#getIdAddress: Unregistered token!\");\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault:#getTokenID: Unregistered token!\");\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n function balanceOfBatch(\n address[] memory owners,\n uint256[] memory tokenIds\n ) external view returns (uint256[] memory) {\n require(owners.length == tokenIds.length, \"CurvyVault#balanceOfBatch: Invalid array length!\");\n\n // Variables\n uint256[] memory batchBalances = new uint256[](owners.length);\n\n // Iterate over each owner and token ID\n for (uint256 i = 0; i < owners.length; i++) {\n batchBalances[i] = _balances[owners[i]][tokenIds[i]];\n }\n\n return batchBalances;\n }\n\n function getNonce(address _signer) external view returns (uint256 nonce) {\n return _nonces[_signer];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe.json
deleted file mode 100644
index 78d979b..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe.json
+++ /dev/null
@@ -1,134 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV3.sol": "project/contracts/vault/CurvyVaultV3.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/ECDSA.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.20;\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 }\n\n /**\n * @dev The signature derives the `address(0)`.\n */\n error ECDSAInvalidSignature();\n\n /**\n * @dev The signature has an invalid length.\n */\n error ECDSAInvalidSignatureLength(uint256 length);\n\n /**\n * @dev The signature has an S value that is in the upper half order.\n */\n error ECDSAInvalidSignatureS(bytes32 s);\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\n * and a bytes32 providing additional information about the error.\n *\n * If no error is returned, then the address can be used for verification purposes.\n *\n * The `ecrecover` EVM precompile 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 {MessageHashUtils-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 function tryRecover(\n bytes32 hash,\n bytes memory signature\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 (\"memory-safe\") {\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 {\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\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 precompile 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 {MessageHashUtils-toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\n _throwError(error, errorArg);\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[ERC-2098 short signatures]\n */\n function tryRecover(\n bytes32 hash,\n bytes32 r,\n bytes32 vs\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\n unchecked {\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n // We do not check for an overflow here since the shift operation results in 0 or 1.\n uint8 v = uint8((uint256(vs) >> 255) + 27);\n return tryRecover(hash, v, r, s);\n }\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n */\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\n _throwError(error, errorArg);\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 function tryRecover(\n bytes32 hash,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 ÷ 2 + 1, and for v in (302): v ∈ {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, s);\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, bytes32(0));\n }\n\n return (signer, RecoverError.NoError, bytes32(0));\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `v`,\n * `r` and `s` signature fields separately.\n */\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\n _throwError(error, errorArg);\n return recovered;\n }\n\n /**\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\n */\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\n if (error == RecoverError.NoError) {\n return; // no error: do nothing\n } else if (error == RecoverError.InvalidSignature) {\n revert ECDSAInvalidSignature();\n } else if (error == RecoverError.InvalidSignatureLength) {\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\n } else if (error == RecoverError.InvalidSignatureS) {\n revert ECDSAInvalidSignatureS(errorArg);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV3.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { EIP712Upgradeable } from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { ECDSA } from \"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\";\nimport \"./ICurvyVault.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract CurvyVaultV3 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH =\n keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"2.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Private functions\n\n function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {\n bytes32 structHash = keccak256(\n abi.encode(\n CURVY_META_TRANSACTION_TYPE_HASH,\n _nonces[metaTransaction.from],\n metaTransaction.from,\n metaTransaction.to,\n metaTransaction.tokenId,\n metaTransaction.amount,\n metaTransaction.gasFee,\n metaTransaction.metaTransactionType\n )\n );\n\n // Add domain data to the hash\n bytes32 hash = _hashTypedDataV4(structHash);\n\n // Check that the metaTransaction is signed by metaTransaction.from\n address signer = ECDSA.recover(hash, signature);\n require(signer == metaTransaction.from, \"CurvyVault#_validateSignature: Invalid signature!\");\n\n // Increment nonce\n _nonces[signer]++;\n emit NonceChange(signer, _nonces[signer]);\n }\n\n function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n if (metaTransaction.to == address(0)) revert InvalidRecipient();\n if (metaTransaction.metaTransactionType != CurvyTypes.MetaTransactionType.Transfer)\n revert InvalidTransactionType();\n\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.to][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (transferFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);\n }\n\n function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_withdraw: Invalid withdraw recipient!\");\n require(\n metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,\n \"CurvyVault#withdraw: Wrong type for meta transaction!\"\n );\n\n // Burn wrapped tokens\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n\n uint256 amountAfterFees = metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n amountAfterFees -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (withdrawalFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;\n amountAfterFees -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n // Withdraw\n if (metaTransaction.tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];\n IERC20(tokenAddress).safeTransfer(metaTransaction.to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success, ) = metaTransaction.to.call{ value: amountAfterFees }(\"\");\n require(success, \"CurvyVault#_withdraw: ETH withdrawal failed!\");\n }\n\n emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);\n }\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n require(_tokenAddressToTokenId[tokenAddress] == 0, \"CurvyVault#registerToken: Token already registered!\");\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {\n if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {\n depositFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {\n transferFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {\n withdrawalFee = fee;\n } else {\n revert(\"CurvyVault#setFeeAmount: Unknown fee type!\");\n }\n\n emit FeeChange(metaTransactionType, fee);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n\n require(msg.sender == _curvyAggregator, \"Only CurvyAggregator can do vault deposits through portal autoShield\");\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n require(msg.value == 0, \"CurvyVault#deposit: Don't send ETH with ERC20 deposit!\");\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n } else {\n // We are depositing ETH\n require(amount == msg.value, \"CurvyVault#deposit: Incorrect deposit value!\");\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)\n if (gasSponsorshipAmount != 0) {\n _balances[to][tokenId] -= gasSponsorshipAmount;\n _balances[owner()][tokenId] += gasSponsorshipAmount;\n }\n\n emit Transfer(address(0x0), to, tokenId, amount);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _transfer(metaTransaction);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _transfer(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _withdraw(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _withdraw(metaTransaction);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n require(tokenAddress != address(0x0), \"CurvyVault:#getIdAddress: Unregistered token!\");\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault:#getTokenID: Unregistered token!\");\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n function balanceOfBatch(\n address[] memory owners,\n uint256[] memory tokenIds\n ) external view returns (uint256[] memory) {\n require(owners.length == tokenIds.length, \"CurvyVault#balanceOfBatch: Invalid array length!\");\n\n // Variables\n uint256[] memory batchBalances = new uint256[](owners.length);\n\n // Iterate over each owner and token ID\n for (uint256 i = 0; i < owners.length; i++) {\n batchBalances[i] = _balances[owners[i]][tokenIds[i]];\n }\n\n return batchBalances;\n }\n\n function getNonce(address _signer) external view returns (uint256 nonce) {\n return _nonces[_signer];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd.json
deleted file mode 100644
index c5914f3..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2_30.sol": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2_30.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2_30.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyAggregationVerifierAlpha_2_2_2_30 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 1636846776518434317996733932951972378772913817912419917762768475702381471734;\n uint256 constant alphay = 2557859348676819025385346933609180330308687626659434893060052940731235849018;\n uint256 constant betax1 = 6486908244102514188758219539984059501831627243372326134761579522465959290266;\n uint256 constant betax2 = 20982554991654900079360939570217720062255973982399814758284443662932208191129;\n uint256 constant betay1 = 19182644467787183843647819985681434389712148315951713380764435963668492288076;\n uint256 constant betay2 = 12406681655195816859272397663108739861438627022123343846745568062489563457825;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 9747844980327646408377936853901576964882208162979095558491855258874644032428;\n uint256 constant deltax2 = 16756406287301157016584371495328426384230959009782353619418027108198900859045;\n uint256 constant deltay1 = 12031563974052658626813022123817729103548385673602489380797509408050168362251;\n uint256 constant deltay2 = 13429401639598153332715865509706776334046884142780191754811231453515278136324;\n\n \n uint256 constant IC0x = 17399625455729226858193731763381735313995214152427932693079209346443273813361;\n uint256 constant IC0y = 12859111834604210549529111813676435741477721204446408540561580131023612373119;\n \n uint256 constant IC1x = 19269508121721386291058841803585817118599674808849286017476018587604958075748;\n uint256 constant IC1y = 9739083346977226558755028796693364133601235625996618276883249540221132637793;\n \n uint256 constant IC2x = 4906510788248149510349692841186321223500356486988078983311568678766686617420;\n uint256 constant IC2y = 6556693659005449888057044633727477467849788892491025455409405901466816779011;\n \n uint256 constant IC3x = 14044972721113237465916458767885969838881931162770098020949856358124091314799;\n uint256 constant IC3y = 14117139287964659766273454103382038851225246363664392925580043228576662736937;\n \n uint256 constant IC4x = 3012371627291579470375119311705692169706993162491904502205704114402133122481;\n uint256 constant IC4y = 11314079418441590611909244855959271743770501270574709172645731877756340642847;\n \n uint256 constant IC5x = 12014747518500042396257254926854732905212065822893454718881040190806844834766;\n uint256 constant IC5y = 9147262807133758476810323056110110965120211575681576794111913832114045819253;\n \n uint256 constant IC6x = 17208228463546580386283793027479680747415863706121256054456908792476918249987;\n uint256 constant IC6y = 15455064688675952318632388873661983654124978426049461390082396053486080921802;\n \n uint256 constant IC7x = 11890869179344231511453890841634284101019213344221032352195689057090808444836;\n uint256 constant IC7y = 1686632724578012404026531741296202004554825601863464229764451159902739394058;\n \n uint256 constant IC8x = 19740126978733293930114609559282015871184836365480012469082695053739727687465;\n uint256 constant IC8y = 12529311631088881627469970608969522997871884804075518341540042128460362543503;\n \n uint256 constant IC9x = 10097827894510155216618449121665995035774394468628598818421588397182493478809;\n uint256 constant IC9y = 9726499558835181108437959744805754000607141454601461826622961981576422672141;\n \n uint256 constant IC10x = 1105597600508673395153704990296305545165923034140397026472508603328041426472;\n uint256 constant IC10y = 13934527933778711255168756830771167066267892265285651597997494803168274058956;\n \n uint256 constant IC11x = 10556009619270442534492625284926806630007434804571327583511131615527605130705;\n uint256 constant IC11y = 693363830989493332783658305850455646188088196371520355545151751865010014079;\n \n uint256 constant IC12x = 8534554792067915579614604389696182629499240739879062333502112419263796212856;\n uint256 constant IC12y = 7072896253070058670565264175517999411490551474277670667755271140222925088212;\n \n uint256 constant IC13x = 16851058908720463266568610634766740724322613878197515393707044621237493592474;\n uint256 constant IC13y = 2921798703043006803004466566848382014657571511688478540130957201734680757760;\n \n uint256 constant IC14x = 7620393642241690544543596497893247026112057615774774075422598527638630237828;\n uint256 constant IC14y = 15268439033903233729000463443675295853249877185817343709378544191244820858078;\n \n \n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[14] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n \n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n \n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n \n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n \n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n \n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n \n g1_mulAccC(_pVk, IC5x, IC5y, calldataload(add(pubSignals, 128)))\n \n g1_mulAccC(_pVk, IC6x, IC6y, calldataload(add(pubSignals, 160)))\n \n g1_mulAccC(_pVk, IC7x, IC7y, calldataload(add(pubSignals, 192)))\n \n g1_mulAccC(_pVk, IC8x, IC8y, calldataload(add(pubSignals, 224)))\n \n g1_mulAccC(_pVk, IC9x, IC9y, calldataload(add(pubSignals, 256)))\n \n g1_mulAccC(_pVk, IC10x, IC10y, calldataload(add(pubSignals, 288)))\n \n g1_mulAccC(_pVk, IC11x, IC11y, calldataload(add(pubSignals, 320)))\n \n g1_mulAccC(_pVk, IC12x, IC12y, calldataload(add(pubSignals, 352)))\n \n g1_mulAccC(_pVk, IC13x, IC13y, calldataload(add(pubSignals, 384)))\n \n g1_mulAccC(_pVk, IC14x, IC14y, calldataload(add(pubSignals, 416)))\n \n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n \n checkField(calldataload(add(_pubSignals, 0)))\n \n checkField(calldataload(add(_pubSignals, 32)))\n \n checkField(calldataload(add(_pubSignals, 64)))\n \n checkField(calldataload(add(_pubSignals, 96)))\n \n checkField(calldataload(add(_pubSignals, 128)))\n \n checkField(calldataload(add(_pubSignals, 160)))\n \n checkField(calldataload(add(_pubSignals, 192)))\n \n checkField(calldataload(add(_pubSignals, 224)))\n \n checkField(calldataload(add(_pubSignals, 256)))\n \n checkField(calldataload(add(_pubSignals, 288)))\n \n checkField(calldataload(add(_pubSignals, 320)))\n \n checkField(calldataload(add(_pubSignals, 352)))\n \n checkField(calldataload(add(_pubSignals, 384)))\n \n checkField(calldataload(add(_pubSignals, 416)))\n \n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n }\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
deleted file mode 100644
index 272c9d5..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
deleted file mode 100644
index 4b57fc4..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/devenv/ICreateX.sol": {
- "content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6.json
deleted file mode 100644
index 14dfbff..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol": {
- "content": "//\n// Copyright 2017 Christian Reitwiessner\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n//\n// 2019 OKIMS\n// ported to solidity 0.6\n// fixed linter warnings\n// added requiere error messages\n//\n//\n// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.28;\nlibrary Pairing {\n struct G1Point {\n uint X;\n uint Y;\n }\n // Encoding of field elements is: X[0] * z + X[1]\n struct G2Point {\n uint[2] X;\n uint[2] Y;\n }\n /// @return the generator of G1\n function P1() internal pure returns (G1Point memory) {\n return G1Point(1, 2);\n }\n /// @return the generator of G2\n function P2() internal pure returns (G2Point memory) {\n // Original code point\n return\n G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n\n /*\n // Changed by Jordi point\n return G2Point(\n [10857046999023057135944570762232829481370756359578518086990519993285655852781,\n 11559732032986387107991004021392285783925812861821192530917403151452391805634],\n [8495653923123431417604973247489272438418190587263600148770280649306958101930,\n 4082367875863433681332203403145435568316851327593401208105741076214120093531]\n );\n*/\n }\n /// @return r the negation of p, i.e. p.addition(p.negate()) should be zero.\n function negate(G1Point memory p) internal pure returns (G1Point memory r) {\n // The prime q in the base field F_q for G1\n uint q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n if (p.X == 0 && p.Y == 0) return G1Point(0, 0);\n return G1Point(p.X, q - (p.Y % q));\n }\n /// @return r the sum of two points of G1\n function addition(G1Point memory p1, G1Point memory p2) internal view returns (G1Point memory r) {\n uint[4] memory input;\n input[0] = p1.X;\n input[1] = p1.Y;\n input[2] = p2.X;\n input[3] = p2.Y;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-add-failed\");\n }\n /// @return r the product of a point on G1 and a scalar, i.e.\n /// p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.\n function scalar_mul(G1Point memory p, uint s) internal view returns (G1Point memory r) {\n uint[3] memory input;\n input[0] = p.X;\n input[1] = p.Y;\n input[2] = s;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-mul-failed\");\n }\n /// @return the result of computing the pairing check\n /// e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n /// For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n /// return true.\n function pairing(G1Point[] memory p1, G2Point[] memory p2) internal view returns (bool) {\n require(p1.length == p2.length, \"pairing-lengths-failed\");\n uint elements = p1.length;\n uint inputSize = elements * 6;\n uint[] memory input = new uint[](inputSize);\n for (uint i = 0; i < elements; i++) {\n input[i * 6 + 0] = p1[i].X;\n input[i * 6 + 1] = p1[i].Y;\n input[i * 6 + 2] = p2[i].X[0];\n input[i * 6 + 3] = p2[i].X[1];\n input[i * 6 + 4] = p2[i].Y[0];\n input[i * 6 + 5] = p2[i].Y[1];\n }\n uint[1] memory out;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-opcode-failed\");\n return out[0] != 0;\n }\n /// Convenience method for a pairing check for two pairs.\n function pairingProd2(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](2);\n G2Point[] memory p2 = new G2Point[](2);\n p1[0] = a1;\n p1[1] = b1;\n p2[0] = a2;\n p2[1] = b2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for three pairs.\n function pairingProd3(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](3);\n G2Point[] memory p2 = new G2Point[](3);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for four pairs.\n function pairingProd4(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2,\n G1Point memory d1,\n G2Point memory d2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](4);\n G2Point[] memory p2 = new G2Point[](4);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p1[3] = d1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n p2[3] = d2;\n return pairing(p1, p2);\n }\n}\ncontract CurvyWithdrawVerifierAlpha_2 {\n using Pairing for *;\n struct VerifyingKey {\n Pairing.G1Point alfa1;\n Pairing.G2Point beta2;\n Pairing.G2Point gamma2;\n Pairing.G2Point delta2;\n Pairing.G1Point[] IC;\n }\n struct Proof {\n Pairing.G1Point A;\n Pairing.G2Point B;\n Pairing.G1Point C;\n }\n function verifyingKey() internal pure returns (VerifyingKey memory vk) {\n vk.alfa1 = Pairing.G1Point(\n 16428432848801857252194528405604668803277877773566238944394625302971855135431,\n 16846502678714586896801519656441059708016666274385668027902869494772365009666\n );\n\n vk.beta2 = Pairing.G2Point(\n [\n 3182164110458002340215786955198810119980427837186618912744689678939861918171,\n 16348171800823588416173124589066524623406261996681292662100840445103873053252\n ],\n [\n 4920802715848186258981584729175884379674325733638798907835771393452862684714,\n 19687132236965066906216944365591810874384658708175106803089633851114028275753\n ]\n );\n vk.gamma2 = Pairing.G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n vk.delta2 = Pairing.G2Point(\n [\n 5134938851194498055138716288113036625141602053184981412733799136644539868397,\n 6999723686378219385015083566752410343544958362147775310371915283489773587081\n ],\n [\n 16143735824282086765904813373481689877955881811585622208150907274317775637256,\n 15167935180042832911506376747898747793167371423428120959483422819862011673604\n ]\n );\n vk.IC = new Pairing.G1Point[](11);\n\n vk.IC[0] = Pairing.G1Point(\n 7925322306079913650107293273085723111079883500364968736523058081294372258270,\n 14429458957753680242266563605661071578200444399506227155307129052603861999372\n );\n\n vk.IC[1] = Pairing.G1Point(\n 9621289505295595742569558738283422269339012970483732592198024818005547944199,\n 12111681074460052445442106828868414387187667992458469408832440570807241968538\n );\n\n vk.IC[2] = Pairing.G1Point(\n 7312128641250390938630229823853164701825981217883024106709148533481658390570,\n 12440505658580027463676844388904074300845923000490442514545302362020951914769\n );\n\n vk.IC[3] = Pairing.G1Point(\n 16877443780461134531177127919731997699796382227971205250997579019059067630688,\n 49152147949061934121116331361525073710464700984994035213208262218202566855\n );\n\n vk.IC[4] = Pairing.G1Point(\n 18696420709995272904249742465996319382995593873083879239060307166953665029183,\n 12007466175774591460576490507161035255928488364053833728962686940733506548534\n );\n\n vk.IC[5] = Pairing.G1Point(\n 4888833272471300078669542579753876773143068450802251901446392823653767491496,\n 16737220595164826793433974502199440968696340680754227465404664862229923440736\n );\n\n vk.IC[6] = Pairing.G1Point(\n 13927018071292564092594216699177107983276050775453219388810810008345720147931,\n 21289909446685655410617670235198232729874074282712000770937342029481198302756\n );\n\n vk.IC[7] = Pairing.G1Point(\n 410619771485288302733238769884660429689150676831325313990328694222201830648,\n 9570270376692734191686217026556366896517764137093201149479185260147900973818\n );\n\n vk.IC[8] = Pairing.G1Point(\n 15981118535239832607798426652562238258797467538556791923525133698106219023033,\n 17838190582793853033041876784548510169542454211941522962331441193096118683061\n );\n\n vk.IC[9] = Pairing.G1Point(\n 21414624434676218606022320224607110391590369224829219206993574118162544764206,\n 15330341033713101095090980677285886777683712546677347512441970386287355341362\n );\n\n vk.IC[10] = Pairing.G1Point(\n 18868358771793700272243668633223006755697535655297431894870707368785053232034,\n 10151002155083359926185957008537320894287083103144507387393430057508383162545\n );\n }\n function verify(uint[] memory input, Proof memory proof) internal view returns (uint) {\n uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n VerifyingKey memory vk = verifyingKey();\n require(input.length + 1 == vk.IC.length, \"verifier-bad-input\");\n // Compute the linear combination vk_x\n Pairing.G1Point memory vk_x = Pairing.G1Point(0, 0);\n for (uint i = 0; i < input.length; i++) {\n require(input[i] < snark_scalar_field, \"verifier-gte-snark-scalar-field\");\n vk_x = Pairing.addition(vk_x, Pairing.scalar_mul(vk.IC[i + 1], input[i]));\n }\n vk_x = Pairing.addition(vk_x, vk.IC[0]);\n if (\n !Pairing.pairingProd4(\n Pairing.negate(proof.A),\n proof.B,\n vk.alfa1,\n vk.beta2,\n vk_x,\n vk.gamma2,\n proof.C,\n vk.delta2\n )\n ) return 1;\n return 0;\n }\n /// @return r bool true if proof is valid\n function verifyProof(\n uint[2] memory a,\n uint[2][2] memory b,\n uint[2] memory c,\n uint[10] memory input\n ) public view returns (bool r) {\n Proof memory proof;\n proof.A = Pairing.G1Point(a[0], a[1]);\n proof.B = Pairing.G2Point([b[0][0], b[0][1]], [b[1][0], b[1][1]]);\n proof.C = Pairing.G1Point(c[0], c[1]);\n uint[] memory inputValues = new uint[](input.length);\n for (uint i = 0; i < input.length; i++) {\n inputValues[i] = input[i];\n }\n if (verify(inputValues, proof) == 0) {\n return true;\n } else {\n return false;\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440.json
deleted file mode 100644
index f3d5251..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440.json
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol": "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Proxy.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Proxy.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.2.0) (proxy/ERC1967/ERC1967Proxy.sol)\n\npragma solidity ^0.8.22;\n\nimport {Proxy} from \"../Proxy.sol\";\nimport {ERC1967Utils} from \"./ERC1967Utils.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[ERC-1967], so that it doesn't conflict with the storage layout of the\n * implementation behind the proxy.\n */\ncontract ERC1967Proxy is Proxy {\n /**\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `implementation`.\n *\n * If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will typically be an\n * encoded function call, and allows initializing the storage of the proxy like a Solidity constructor.\n *\n * Requirements:\n *\n * - If `data` is empty, `msg.value` must be zero.\n */\n constructor(address implementation, bytes memory _data) payable {\n ERC1967Utils.upgradeToAndCall(implementation, _data);\n }\n\n /**\n * @dev Returns the current implementation address.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\n */\n function _implementation() internal view virtual override returns (address) {\n return ERC1967Utils.getImplementation();\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/Proxy.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)\n\npragma solidity ^0.8.20;\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 internal 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 overridden so it returns the address to which the fallback\n * function 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 internal call site, it will return directly to the external caller.\n */\n function _fallback() internal virtual {\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6.json
deleted file mode 100644
index ee14c1d..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlphaV3_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlphaV3_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlphaV3_2.sol": {
- "content": "//\n// Copyright 2017 Christian Reitwiessner\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n//\n// 2019 OKIMS\n// ported to solidity 0.6\n// fixed linter warnings\n// added requiere error messages\n//\n//\n// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.28;\nlibrary Pairing {\n struct G1Point {\n uint X;\n uint Y;\n }\n // Encoding of field elements is: X[0] * z + X[1]\n struct G2Point {\n uint[2] X;\n uint[2] Y;\n }\n /// @return the generator of G1\n function P1() internal pure returns (G1Point memory) {\n return G1Point(1, 2);\n }\n /// @return the generator of G2\n function P2() internal pure returns (G2Point memory) {\n // Original code point\n return G2Point(\n [11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781],\n [4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930]\n );\n\n/*\n // Changed by Jordi point\n return G2Point(\n [10857046999023057135944570762232829481370756359578518086990519993285655852781,\n 11559732032986387107991004021392285783925812861821192530917403151452391805634],\n [8495653923123431417604973247489272438418190587263600148770280649306958101930,\n 4082367875863433681332203403145435568316851327593401208105741076214120093531]\n );\n*/\n }\n /// @return r the negation of p, i.e. p.addition(p.negate()) should be zero.\n function negate(G1Point memory p) internal pure returns (G1Point memory r) {\n // The prime q in the base field F_q for G1\n uint q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n if (p.X == 0 && p.Y == 0)\n return G1Point(0, 0);\n return G1Point(p.X, q - (p.Y % q));\n }\n /// @return r the sum of two points of G1\n function addition(G1Point memory p1, G1Point memory p2) internal view returns (G1Point memory r) {\n uint[4] memory input;\n input[0] = p1.X;\n input[1] = p1.Y;\n input[2] = p2.X;\n input[3] = p2.Y;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success case 0 { invalid() }\n }\n require(success,\"pairing-add-failed\");\n }\n /// @return r the product of a point on G1 and a scalar, i.e.\n /// p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.\n function scalar_mul(G1Point memory p, uint s) internal view returns (G1Point memory r) {\n uint[3] memory input;\n input[0] = p.X;\n input[1] = p.Y;\n input[2] = s;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success case 0 { invalid() }\n }\n require (success,\"pairing-mul-failed\");\n }\n /// @return the result of computing the pairing check\n /// e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n /// For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n /// return true.\n function pairing(G1Point[] memory p1, G2Point[] memory p2) internal view returns (bool) {\n require(p1.length == p2.length,\"pairing-lengths-failed\");\n uint elements = p1.length;\n uint inputSize = elements * 6;\n uint[] memory input = new uint[](inputSize);\n for (uint i = 0; i < elements; i++)\n {\n input[i * 6 + 0] = p1[i].X;\n input[i * 6 + 1] = p1[i].Y;\n input[i * 6 + 2] = p2[i].X[0];\n input[i * 6 + 3] = p2[i].X[1];\n input[i * 6 + 4] = p2[i].Y[0];\n input[i * 6 + 5] = p2[i].Y[1];\n }\n uint[1] memory out;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)\n // Use \"invalid\" to make gas estimation work\n switch success case 0 { invalid() }\n }\n require(success,\"pairing-opcode-failed\");\n return out[0] != 0;\n }\n /// Convenience method for a pairing check for two pairs.\n function pairingProd2(G1Point memory a1, G2Point memory a2, G1Point memory b1, G2Point memory b2) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](2);\n G2Point[] memory p2 = new G2Point[](2);\n p1[0] = a1;\n p1[1] = b1;\n p2[0] = a2;\n p2[1] = b2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for three pairs.\n function pairingProd3(\n G1Point memory a1, G2Point memory a2,\n G1Point memory b1, G2Point memory b2,\n G1Point memory c1, G2Point memory c2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](3);\n G2Point[] memory p2 = new G2Point[](3);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for four pairs.\n function pairingProd4(\n G1Point memory a1, G2Point memory a2,\n G1Point memory b1, G2Point memory b2,\n G1Point memory c1, G2Point memory c2,\n G1Point memory d1, G2Point memory d2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](4);\n G2Point[] memory p2 = new G2Point[](4);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p1[3] = d1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n p2[3] = d2;\n return pairing(p1, p2);\n }\n}\ncontract CurvyWithdrawVerifierAlphaV3_2 {\n using Pairing for *;\n struct VerifyingKey {\n Pairing.G1Point alfa1;\n Pairing.G2Point beta2;\n Pairing.G2Point gamma2;\n Pairing.G2Point delta2;\n Pairing.G1Point[] IC;\n }\n struct Proof {\n Pairing.G1Point A;\n Pairing.G2Point B;\n Pairing.G1Point C;\n }\n function verifyingKey() internal pure returns (VerifyingKey memory vk) {\n vk.alfa1 = Pairing.G1Point(\n 16428432848801857252194528405604668803277877773566238944394625302971855135431,\n 16846502678714586896801519656441059708016666274385668027902869494772365009666\n );\n\n vk.beta2 = Pairing.G2Point(\n [3182164110458002340215786955198810119980427837186618912744689678939861918171,\n 16348171800823588416173124589066524623406261996681292662100840445103873053252],\n [4920802715848186258981584729175884379674325733638798907835771393452862684714,\n 19687132236965066906216944365591810874384658708175106803089633851114028275753]\n );\n vk.gamma2 = Pairing.G2Point(\n [11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781],\n [4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930]\n );\n vk.delta2 = Pairing.G2Point(\n [2629073454240497276495237582203958829928240345954183892004220964215350086697,\n 13930854982623718453289732752136762003664282184105307951538851480572039239826],\n [15314073400369028500150070590166851671533164583934476504023782450681671139722,\n 19438795359737874000067950561613485070810449804447213710393780245436629871241]\n );\n vk.IC = new Pairing.G1Point[](10);\n \n vk.IC[0] = Pairing.G1Point( \n 17358714059841222655332555531812235894109831895939288822209597786484194004863,\n 14953941882192864699533120346316451540864449764432844191250995386043174562371\n ); \n \n vk.IC[1] = Pairing.G1Point( \n 14707218010613725880195470048650004212134541938119801136114039008326030689365,\n 18320647487748443634631050211111359198105608565369585954318403602972339849780\n ); \n \n vk.IC[2] = Pairing.G1Point( \n 8989312582885446885833748175655560409482657795311180950160518326342472603800,\n 557166861511881845529531194055084633607831351270765224971413965507323712524\n ); \n \n vk.IC[3] = Pairing.G1Point( \n 12786430539677617471552158293457307249781165226142263249913950566815750079298,\n 11398018832020179765870491364908913120010438413632357901814163805845358638381\n ); \n \n vk.IC[4] = Pairing.G1Point( \n 16210995105227059027055214569324979655672241758449305148063470834785622131051,\n 15244949167172684892832934586361646130136907223866787595966498705221149329793\n ); \n \n vk.IC[5] = Pairing.G1Point( \n 15447330785926537730466425182615917999104443954774877515677926064602210193456,\n 302212551864788351314950467567028950946317878468902126254042783216156326426\n ); \n \n vk.IC[6] = Pairing.G1Point( \n 15221291898292046222050336984382082815006716106268892115367982579336029737716,\n 5138896563554254177957933723143979887729763268835353232886728990578894380059\n ); \n \n vk.IC[7] = Pairing.G1Point( \n 4125252840753634499061230047644851300426147657383250128263001332984745707019,\n 7399946977839598911983525055350660162234308704827113722327110715122546440152\n ); \n \n vk.IC[8] = Pairing.G1Point( \n 7260975874555128741095427413685646957107200617415339174800132586489819027663,\n 6201891190318116751084429033679404898210718148112816120902223799122160007325\n ); \n \n vk.IC[9] = Pairing.G1Point( \n 355120942596678532382372578286663626822260096543361710393946745790670473096,\n 5580572685923606338084839985253731998127719266704886204917037156330299761418\n ); \n \n }\n function verify(uint[] memory input, Proof memory proof) internal view returns (uint) {\n uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n VerifyingKey memory vk = verifyingKey();\n require(input.length + 1 == vk.IC.length,\"verifier-bad-input\");\n // Compute the linear combination vk_x\n Pairing.G1Point memory vk_x = Pairing.G1Point(0, 0);\n for (uint i = 0; i < input.length; i++) {\n require(input[i] < snark_scalar_field,\"verifier-gte-snark-scalar-field\");\n vk_x = Pairing.addition(vk_x, Pairing.scalar_mul(vk.IC[i + 1], input[i]));\n }\n vk_x = Pairing.addition(vk_x, vk.IC[0]);\n if (!Pairing.pairingProd4(\n Pairing.negate(proof.A), proof.B,\n vk.alfa1, vk.beta2,\n vk_x, vk.gamma2,\n proof.C, vk.delta2\n )) return 1;\n return 0;\n }\n /// @return r bool true if proof is valid\n function verifyProof(\n uint[2] memory a,\n uint[2][2] memory b,\n uint[2] memory c,\n uint[9] memory input\n ) public view returns (bool r) {\n Proof memory proof;\n proof.A = Pairing.G1Point(a[0], a[1]);\n proof.B = Pairing.G2Point([b[0][0], b[0][1]], [b[1][0], b[1][1]]);\n proof.C = Pairing.G1Point(c[0], c[1]);\n uint[] memory inputValues = new uint[](input.length);\n for(uint i = 0; i < input.length; i++){\n inputValues[i] = input[i];\n }\n if (verify(inputValues, proof) == 0) {\n return true;\n } else {\n return false;\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-7aa766fe6b7b062ed2ddb662f43195e0e5c263ca.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-7aa766fe6b7b062ed2ddb662f43195e0e5c263ca.json
deleted file mode 100644
index 29447ab..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-7aa766fe6b7b062ed2ddb662f43195e0e5c263ca.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-7aa766fe6b7b062ed2ddb662f43195e0e5c263ca",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { PoseidonT4 } from \"./utils/PoseidonT4.sol\";\n\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport {\n ICurvyInsertionVerifier,\n ICurvyAggregationVerifier,\n ICurvyWithdrawVerifier\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV1 is Initializable, UUPSUpgradeable, OwnableUpgradeable {\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner, address curvyVaultProxyAddress) public initializer {\n maxDeposits = 2;\n maxWithdrawals = 2;\n maxAggregations = 2;\n\n __Ownable_init(initialOwner);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdate memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);\n }\n // TODO: We probably don't need this.\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVault(_update.curvyVault);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function depositNote(address from, CurvyTypes.Note memory note, bytes memory signature) public {\n // TODO: Gas fee\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n from,\n address(this),\n note.token,\n note.amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n ),\n signature\n );\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n require(\n _pendingIdsQueue[noteId],\n \"CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!\"\n );\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n require(\n _notesTreeRoot == publicInputs[numPublicInputs - 2],\n \"CurvyAggregator#commitDepositBatch: Invalid notes root!\"\n );\n\n require(\n insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitDepositBatch: Invalid proof!\"\n );\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n require(\n _notesTreeRoot == oldNotesTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!\"\n );\n require(\n _nullifiersTreeRoot == oldNullifiersTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!\"\n );\n\n require(\n aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitAggregationBatch: Invalid proof!\"\n );\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[10] memory publicInputs\n ) public returns (bool) {\n require(\n publicInputs[3] == _nullifiersTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!\"\n );\n require(\n publicInputs[2] == _notesTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!\"\n );\n\n require(\n withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!\"\n );\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[4 + i];\n address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n destinationAddress,\n publicInputs[numPublicInputs - 1],\n amount,\n 0,\n CurvyTypes.MetaTransactionType.Withdraw\n )\n );\n }\n }\n\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n owner(),\n publicInputs[numPublicInputs - 1],\n publicInputs[1],\n 0,\n CurvyTypes.MetaTransactionType.Withdraw\n )\n );\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
deleted file mode 100644
index 156f127..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n // TODO: Emit shielding failed and if that event is detected in the simulation, then we will mark the shielding as failed.\n return; // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
deleted file mode 100644
index 6ea1fae..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f.json
deleted file mode 100644
index f9024c3..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f.json
+++ /dev/null
@@ -1,130 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV6.sol": "project/contracts/vault/CurvyVaultV6.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV6.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {EIP712Upgradeable} from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport \"./ICurvyVaultV3.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ncontract CurvyVaultV6 is ICurvyVaultV3, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n // DEPRECATED: This is no longer used, but because of storage layout it *MUST* not be deleted\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH = keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n // DEPRECATED: This is no longer used, but because of storage layout it *MUST* not be deleted\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @dev DO NOT REMOVE THIS FUNCTION.\n * This function does not affect existing deployments during an upgrade. The `initializer`\n * modifier guarantees it can only be executed once per proxy. When an existing proxy is\n * upgraded to this version, its state is already marked as initialized, making this\n * function safely uncallable and preventing any accidental state resets.\n *\n * The transferFee is unused anymore, but it is kept for storage layout reasons.\n */\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"1.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0;\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n if (_tokenAddressToTokenId[tokenAddress] != 0) revert TokenAlreadyRegistered();\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function deregisterToken(address tokenAddress) external onlyOwner {\n uint256 tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n\n // Remove from both mappings\n _tokenAddressToTokenId[tokenAddress] = 0;\n _tokenIdToTokenAddress[tokenId] = address(0);\n\n emit TokenDeregistered(tokenAddress, tokenId);\n }\n\n /**\n * @dev This function is used to set the fees for the vault.\n * @notice If you want to keep the current fee, pass the current fee values.\n */\n function setFeeAmount(CurvyTypes.FeeUpdate calldata feeUpdate) external onlyOwner {\n depositFee = feeUpdate.depositFee;\n withdrawalFee = feeUpdate.withdrawalFee;\n\n emit FeeChange(feeUpdate);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n function collectFees(uint256 tokenId) external onlyOwner {\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) {\n revert TokenNotRegistered();\n }\n\n uint256 amount = _balances[msg.sender][tokenId];\n\n // Burn wrapped tokens\n _balances[msg.sender][tokenId] = 0;\n\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(msg.sender, amount);\n } else {\n // We are withdrawing ETH\n (bool success,) = msg.sender.call{value: amount}(\"\");\n if (!success) revert ETHTransferFailed();\n }\n }\n\n //#endregion\n\n //#region Public functions\n\n function deposit(address tokenAddress, address to, uint256 amount) public payable {\n if (msg.sender != _curvyAggregator) revert NotCurvyAggregator();\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n if (msg.value != 0) revert ERC20TransferFailed();\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n } else {\n // We are depositing ETH\n if (amount != msg.value) revert ETHTransferFailed();\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n emit Deposit(tokenAddress, to, amount);\n }\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external {\n if (msg.sender != _curvyAggregator && msg.sender != owner()) revert NotCurvyAggregatorOrOwner();\n if (to == address(0)) revert InvalidRecipient();\n\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n\n _balances[msg.sender][tokenId] -= amount;\n\n uint256 amountAfterFees = amount;\n\n if (withdrawalFee != 0) {\n uint256 feeAmount = (amount * withdrawalFee) / FEE_DENOMINATOR;\n _balances[owner()][tokenId] += feeAmount;\n\n amountAfterFees -= feeAmount;\n }\n\n // Withdraw\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success,) = to.call{value: amountAfterFees}(\"\");\n if (!success) revert ETHTransferFailed();\n }\n\n emit Withdraw(tokenAddress, to, amount);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV3.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV3 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenDeregistered(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAlreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount) external payable;\n function deregisterToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n function depositFee() external view returns (uint96);\n function withdrawalFee() external view returns (uint96);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c.json
deleted file mode 100644
index af16376..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/smart-account/TokenBridge.sol": "project/contracts/smart-account/TokenBridge.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/smart-account/TokenBridge.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\ncontract TokenBridge {\n using SafeERC20 for IERC20;\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n address public immutable _lifiDiamondAddress;\n\n constructor(address lifiDiamondAddress) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n function bridgeFullBalance(address tokenAddress, bytes calldata bridgeData) external {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"TokenBridge: Invalid LI.FI address\");\n }\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20 token = IERC20(tokenAddress);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance > 0) {\n token.forceApprove(_lifiDiamondAddress, balance);\n (bool success, ) = _lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert(\"TokenBridge: Bridge call failed\");\n }\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance > 0) {\n (bool success, ) = _lifiDiamondAddress.call{ value: balance }(bridgeData);\n\n if (!success) {\n revert(\"TokenBridge: Bridge call failed\");\n }\n }\n }\n }\n}"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3.json
deleted file mode 100644
index 3d088ca..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol": {
- "content": "//\n// Copyright 2017 Christian Reitwiessner\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n//\n// 2019 OKIMS\n// ported to solidity 0.6\n// fixed linter warnings\n// added requiere error messages\n//\n//\n// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.28;\nlibrary Pairing {\n struct G1Point {\n uint X;\n uint Y;\n }\n // Encoding of field elements is: X[0] * z + X[1]\n struct G2Point {\n uint[2] X;\n uint[2] Y;\n }\n /// @return the generator of G1\n function P1() internal pure returns (G1Point memory) {\n return G1Point(1, 2);\n }\n /// @return the generator of G2\n function P2() internal pure returns (G2Point memory) {\n // Original code point\n return\n G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n\n /*\n // Changed by Jordi point\n return G2Point(\n [10857046999023057135944570762232829481370756359578518086990519993285655852781,\n 11559732032986387107991004021392285783925812861821192530917403151452391805634],\n [8495653923123431417604973247489272438418190587263600148770280649306958101930,\n 4082367875863433681332203403145435568316851327593401208105741076214120093531]\n );\n*/\n }\n /// @return r the negation of p, i.e. p.addition(p.negate()) should be zero.\n function negate(G1Point memory p) internal pure returns (G1Point memory r) {\n // The prime q in the base field F_q for G1\n uint q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n if (p.X == 0 && p.Y == 0) return G1Point(0, 0);\n return G1Point(p.X, q - (p.Y % q));\n }\n /// @return r the sum of two points of G1\n function addition(G1Point memory p1, G1Point memory p2) internal view returns (G1Point memory r) {\n uint[4] memory input;\n input[0] = p1.X;\n input[1] = p1.Y;\n input[2] = p2.X;\n input[3] = p2.Y;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-add-failed\");\n }\n /// @return r the product of a point on G1 and a scalar, i.e.\n /// p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.\n function scalar_mul(G1Point memory p, uint s) internal view returns (G1Point memory r) {\n uint[3] memory input;\n input[0] = p.X;\n input[1] = p.Y;\n input[2] = s;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-mul-failed\");\n }\n /// @return the result of computing the pairing check\n /// e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n /// For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n /// return true.\n function pairing(G1Point[] memory p1, G2Point[] memory p2) internal view returns (bool) {\n require(p1.length == p2.length, \"pairing-lengths-failed\");\n uint elements = p1.length;\n uint inputSize = elements * 6;\n uint[] memory input = new uint[](inputSize);\n for (uint i = 0; i < elements; i++) {\n input[i * 6 + 0] = p1[i].X;\n input[i * 6 + 1] = p1[i].Y;\n input[i * 6 + 2] = p2[i].X[0];\n input[i * 6 + 3] = p2[i].X[1];\n input[i * 6 + 4] = p2[i].Y[0];\n input[i * 6 + 5] = p2[i].Y[1];\n }\n uint[1] memory out;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-opcode-failed\");\n return out[0] != 0;\n }\n /// Convenience method for a pairing check for two pairs.\n function pairingProd2(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](2);\n G2Point[] memory p2 = new G2Point[](2);\n p1[0] = a1;\n p1[1] = b1;\n p2[0] = a2;\n p2[1] = b2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for three pairs.\n function pairingProd3(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](3);\n G2Point[] memory p2 = new G2Point[](3);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for four pairs.\n function pairingProd4(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2,\n G1Point memory d1,\n G2Point memory d2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](4);\n G2Point[] memory p2 = new G2Point[](4);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p1[3] = d1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n p2[3] = d2;\n return pairing(p1, p2);\n }\n}\ncontract CurvyInsertionVerifierAlpha_2 {\n using Pairing for *;\n struct VerifyingKey {\n Pairing.G1Point alfa1;\n Pairing.G2Point beta2;\n Pairing.G2Point gamma2;\n Pairing.G2Point delta2;\n Pairing.G1Point[] IC;\n }\n struct Proof {\n Pairing.G1Point A;\n Pairing.G2Point B;\n Pairing.G1Point C;\n }\n function verifyingKey() internal pure returns (VerifyingKey memory vk) {\n vk.alfa1 = Pairing.G1Point(\n 16428432848801857252194528405604668803277877773566238944394625302971855135431,\n 16846502678714586896801519656441059708016666274385668027902869494772365009666\n );\n\n vk.beta2 = Pairing.G2Point(\n [\n 3182164110458002340215786955198810119980427837186618912744689678939861918171,\n 16348171800823588416173124589066524623406261996681292662100840445103873053252\n ],\n [\n 4920802715848186258981584729175884379674325733638798907835771393452862684714,\n 19687132236965066906216944365591810874384658708175106803089633851114028275753\n ]\n );\n vk.gamma2 = Pairing.G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n vk.delta2 = Pairing.G2Point(\n [\n 18636305219060197755142552798859754992691237779368175144321965215614772886749,\n 20631961236040874040284325043922269483493386739263319339179566539669024091553\n ],\n [\n 6062467770915580792523479562164363142131272842624386565050670208025880943712,\n 5683038379984125016950864290616138890020909462459316831254293410267557232813\n ]\n );\n vk.IC = new Pairing.G1Point[](5);\n\n vk.IC[0] = Pairing.G1Point(\n 5816405080132073842932636331548798060287333642513578277180259722519592795524,\n 167846514636555010335339211314249629625345112505210789316691533712824745017\n );\n\n vk.IC[1] = Pairing.G1Point(\n 16584502374027503506024692833264286792457678958231145828389358929597017385713,\n 15748689222547201941193319824722912430230667032882892650015734892750472090725\n );\n\n vk.IC[2] = Pairing.G1Point(\n 21809942545528186761024818449976149188699553835331594187000245837157587253784,\n 14731189013652074114558457413733648844549518028992110266510193006020163640258\n );\n\n vk.IC[3] = Pairing.G1Point(\n 12375928931499227586057462745689681279605957098146559032552961095082288974384,\n 21382385962682560488728021197264829649373546209573568813651131435191806663006\n );\n\n vk.IC[4] = Pairing.G1Point(\n 11590169247667311309535152367467028564534113649694348861287888388789778372825,\n 10050997091330424673052365058770795074460689984708190359138561322568592225656\n );\n }\n function verify(uint[] memory input, Proof memory proof) internal view returns (uint) {\n uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n VerifyingKey memory vk = verifyingKey();\n require(input.length + 1 == vk.IC.length, \"verifier-bad-input\");\n // Compute the linear combination vk_x\n Pairing.G1Point memory vk_x = Pairing.G1Point(0, 0);\n for (uint i = 0; i < input.length; i++) {\n require(input[i] < snark_scalar_field, \"verifier-gte-snark-scalar-field\");\n vk_x = Pairing.addition(vk_x, Pairing.scalar_mul(vk.IC[i + 1], input[i]));\n }\n vk_x = Pairing.addition(vk_x, vk.IC[0]);\n if (\n !Pairing.pairingProd4(\n Pairing.negate(proof.A),\n proof.B,\n vk.alfa1,\n vk.beta2,\n vk_x,\n vk.gamma2,\n proof.C,\n vk.delta2\n )\n ) return 1;\n return 0;\n }\n /// @return r bool true if proof is valid\n function verifyProof(\n uint[2] memory a,\n uint[2][2] memory b,\n uint[2] memory c,\n uint[4] memory input\n ) public view returns (bool r) {\n Proof memory proof;\n proof.A = Pairing.G1Point(a[0], a[1]);\n proof.B = Pairing.G2Point([b[0][0], b[0][1]], [b[1][0], b[1][1]]);\n proof.C = Pairing.G1Point(c[0], c[1]);\n uint[] memory inputValues = new uint[](input.length);\n for (uint i = 0; i < input.length; i++) {\n inputValues[i] = input[i];\n }\n if (verify(inputValues, proof) == 0) {\n return true;\n } else {\n return false;\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a.json
deleted file mode 100644
index 959d02b..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2_30.sol": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2_30.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2_30.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyWithdrawVerifierAlpha_2_2_30 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 13609597477422817544806719940578211239660138492812767741570640666225907996628;\n uint256 constant alphay = 3315096884673693139303582008970220799715870802021815302955257248960229394132;\n uint256 constant betax1 = 20244502790401697640374985581353359627000854646412500262318694555628864857705;\n uint256 constant betax2 = 18009540316062949354047865494362899064185820891461168067970621853171214969025;\n uint256 constant betay1 = 21485324237153900776296822920524193097954549703233921348239585839570605636041;\n uint256 constant betay2 = 18873349741553391434573540024886497503852362769056818998084383144689457732005;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 1326573999234008915860970255668288665544687867246129633383511223618949749675;\n uint256 constant deltax2 = 4671378872751554262593117516718744941438728548819807763673365133047577037789;\n uint256 constant deltay1 = 16788886948198384057861007888463049568905967713972406315720808677012605857589;\n uint256 constant deltay2 = 11763588175345468321335670711599742080686820706950268603977732622497589861879;\n\n \n uint256 constant IC0x = 1565517161687003293015203570982904294478626690646768701975043216594621592173;\n uint256 constant IC0y = 9694355955203911819720634547311219374077692615266951917112047220710786696066;\n \n uint256 constant IC1x = 979945337289157544465183094998207304988359546651753529054442854403648860856;\n uint256 constant IC1y = 19527314231074839844772667723668224759674402860087649048034186839079758285399;\n \n uint256 constant IC2x = 14522339657615904046051278782672208276707120841768130534814843332473328376222;\n uint256 constant IC2y = 11309944904233649642419513097668591526894933049496988389467872182124635975426;\n \n uint256 constant IC3x = 17854426610750151012676330172911429119329082369774743182642967443717533145246;\n uint256 constant IC3y = 13422631716882796157367980767149467009150631687579343367693154869559844831183;\n \n uint256 constant IC4x = 14381632278275491454733551438059761643253582687536284462920350647287073126817;\n uint256 constant IC4y = 14823985165837034859254520683016322640783231019809121812600711785852273166108;\n \n uint256 constant IC5x = 16790879009575318221954224842324031534536849545047916454607058538194724276745;\n uint256 constant IC5y = 6899814906212521666943103904395568640983758257879132097464129073206566126873;\n \n uint256 constant IC6x = 8018893499351236263103155285420032758820796440251410495471541816315495266277;\n uint256 constant IC6y = 4762898927554697058046729761410725160386295046666187561218166645241266489872;\n \n uint256 constant IC7x = 2077665499933989871395901398270067713684599048254726261637808647152187513748;\n uint256 constant IC7y = 6645012713224753527444993508873936964659179606799301448287822376656176150474;\n \n uint256 constant IC8x = 21310265414724367103657686595975716121777979372889010619048140799543879599363;\n uint256 constant IC8y = 18020192422922234349073163820329272314687512021497633628908475759070524238330;\n \n uint256 constant IC9x = 21745711951983953323143648715757143291929632148515174524254308490186139094942;\n uint256 constant IC9y = 8231097676639530057501848745731491430367422729950269437691529859914575582399;\n \n \n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[9] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n \n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n \n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n \n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n \n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n \n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n \n g1_mulAccC(_pVk, IC5x, IC5y, calldataload(add(pubSignals, 128)))\n \n g1_mulAccC(_pVk, IC6x, IC6y, calldataload(add(pubSignals, 160)))\n \n g1_mulAccC(_pVk, IC7x, IC7y, calldataload(add(pubSignals, 192)))\n \n g1_mulAccC(_pVk, IC8x, IC8y, calldataload(add(pubSignals, 224)))\n \n g1_mulAccC(_pVk, IC9x, IC9y, calldataload(add(pubSignals, 256)))\n \n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n \n checkField(calldataload(add(_pubSignals, 0)))\n \n checkField(calldataload(add(_pubSignals, 32)))\n \n checkField(calldataload(add(_pubSignals, 64)))\n \n checkField(calldataload(add(_pubSignals, 96)))\n \n checkField(calldataload(add(_pubSignals, 128)))\n \n checkField(calldataload(add(_pubSignals, 160)))\n \n checkField(calldataload(add(_pubSignals, 192)))\n \n checkField(calldataload(add(_pubSignals, 224)))\n \n checkField(calldataload(add(_pubSignals, 256)))\n \n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n }\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14.json
deleted file mode 100644
index 2a021b6..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/utils/PoseidonT4.sol": "project/contracts/aggregator-alpha/utils/PoseidonT4.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c.json
deleted file mode 100644
index acd3a77..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c.json
+++ /dev/null
@@ -1,134 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV4.sol": "project/contracts/vault/CurvyVaultV4.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/ECDSA.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.20;\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 }\n\n /**\n * @dev The signature derives the `address(0)`.\n */\n error ECDSAInvalidSignature();\n\n /**\n * @dev The signature has an invalid length.\n */\n error ECDSAInvalidSignatureLength(uint256 length);\n\n /**\n * @dev The signature has an S value that is in the upper half order.\n */\n error ECDSAInvalidSignatureS(bytes32 s);\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\n * and a bytes32 providing additional information about the error.\n *\n * If no error is returned, then the address can be used for verification purposes.\n *\n * The `ecrecover` EVM precompile 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 {MessageHashUtils-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 function tryRecover(\n bytes32 hash,\n bytes memory signature\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 (\"memory-safe\") {\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 {\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\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 precompile 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 {MessageHashUtils-toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\n _throwError(error, errorArg);\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[ERC-2098 short signatures]\n */\n function tryRecover(\n bytes32 hash,\n bytes32 r,\n bytes32 vs\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\n unchecked {\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n // We do not check for an overflow here since the shift operation results in 0 or 1.\n uint8 v = uint8((uint256(vs) >> 255) + 27);\n return tryRecover(hash, v, r, s);\n }\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n */\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\n _throwError(error, errorArg);\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 function tryRecover(\n bytes32 hash,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 ÷ 2 + 1, and for v in (302): v ∈ {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, s);\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, bytes32(0));\n }\n\n return (signer, RecoverError.NoError, bytes32(0));\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `v`,\n * `r` and `s` signature fields separately.\n */\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\n _throwError(error, errorArg);\n return recovered;\n }\n\n /**\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\n */\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\n if (error == RecoverError.NoError) {\n return; // no error: do nothing\n } else if (error == RecoverError.InvalidSignature) {\n revert ECDSAInvalidSignature();\n } else if (error == RecoverError.InvalidSignatureLength) {\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\n } else if (error == RecoverError.InvalidSignatureS) {\n revert ECDSAInvalidSignatureS(errorArg);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV4.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {EIP712Upgradeable} from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {ECDSA} from \"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\";\nimport \"./ICurvyVault.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ncontract CurvyVaultV4 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH = keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"2.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Private functions\n\n function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {\n bytes32 structHash = keccak256(\n abi.encode(\n CURVY_META_TRANSACTION_TYPE_HASH,\n _nonces[metaTransaction.from],\n metaTransaction.from,\n metaTransaction.to,\n metaTransaction.tokenId,\n metaTransaction.amount,\n metaTransaction.gasFee,\n metaTransaction.metaTransactionType\n )\n );\n\n // Add domain data to the hash\n bytes32 hash = _hashTypedDataV4(structHash);\n\n // Check that the metaTransaction is signed by metaTransaction.from\n address signer = ECDSA.recover(hash, signature);\n require(signer == metaTransaction.from, \"CurvyVault#_validateSignature: Invalid signature!\");\n\n // Increment nonce\n _nonces[signer]++;\n emit NonceChange(signer, _nonces[signer]);\n }\n\n function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n if (metaTransaction.to == address(0)) revert InvalidRecipient();\n if (metaTransaction.metaTransactionType != CurvyTypes.MetaTransactionType.Transfer) {\n revert InvalidTransactionType();\n }\n\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (transferFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);\n }\n\n function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_withdraw: Invalid withdraw recipient!\");\n require(\n metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,\n \"CurvyVault#withdraw: Wrong type for meta transaction!\"\n );\n\n // Burn wrapped tokens\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n\n uint256 amountAfterFees = metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n amountAfterFees -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (withdrawalFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;\n amountAfterFees -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n // Withdraw\n if (metaTransaction.tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];\n IERC20(tokenAddress).safeTransfer(metaTransaction.to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success,) = metaTransaction.to.call{value: amountAfterFees}(\"\");\n require(success, \"CurvyVault#_withdraw: ETH withdrawal failed!\");\n }\n\n emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);\n }\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n require(_tokenAddressToTokenId[tokenAddress] == 0, \"CurvyVault#registerToken: Token already registered!\");\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {\n if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {\n depositFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {\n transferFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {\n withdrawalFee = fee;\n } else {\n revert(\"CurvyVault#setFeeAmount: Unknown fee type!\");\n }\n\n emit FeeChange(metaTransactionType, fee);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n require(msg.sender == _curvyAggregator, \"Only CurvyAggregator can do vault deposits through portal autoShield\");\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n require(msg.value == 0, \"CurvyVault#deposit: Don't send ETH with ERC20 deposit!\");\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n } else {\n // We are depositing ETH\n require(amount == msg.value, \"CurvyVault#deposit: Incorrect deposit value!\");\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)\n if (gasSponsorshipAmount != 0) {\n _balances[to][tokenId] -= gasSponsorshipAmount;\n _balances[owner()][tokenId] += gasSponsorshipAmount;\n }\n\n emit Transfer(address(0x0), to, tokenId, amount);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _transfer(metaTransaction);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _transfer(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _withdraw(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _withdraw(metaTransaction);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n require(tokenAddress != address(0x0), \"CurvyVault:#getIdAddress: Unregistered token!\");\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault:#getTokenID: Unregistered token!\");\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n function balanceOfBatch(address[] memory owners, uint256[] memory tokenIds)\n external\n view\n returns (uint256[] memory)\n {\n require(owners.length == tokenIds.length, \"CurvyVault#balanceOfBatch: Invalid array length!\");\n\n // Variables\n uint256[] memory batchBalances = new uint256[](owners.length);\n\n // Iterate over each owner and token ID\n for (uint256 i = 0; i < owners.length; i++) {\n batchBalances[i] = _balances[owners[i]][tokenIds[i]];\n }\n\n return batchBalances;\n }\n\n function getNonce(address _signer) external view returns (uint256 nonce) {\n return _nonces[_signer];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf.json
deleted file mode 100644
index 22242df..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyInsertionVerifierAlpha_2_2 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 20307802206310835049281446719619406914403408233534023009065534288114617826473;\n uint256 constant alphay = 5124923528349004096804802867681163296253794121526069691105337288056989236534;\n uint256 constant betax1 = 17665584761811172121608977391651659832381211132533915972221722990910032624526;\n uint256 constant betax2 = 20634947832892786903702098392181315569158565212553131507288743678171240259127;\n uint256 constant betay1 = 14170370701364050801543403272076467220544732849936498879655467551776691049762;\n uint256 constant betay2 = 3981022164671254524634818017405389124636055168959450938940336390298178068387;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 8324458164872580116890275898155248989588293942324575877012805566566499276728;\n uint256 constant deltax2 = 8315309777885305610111807473453936168191945213991206111039245717203885893351;\n uint256 constant deltay1 = 7882777314230858165213889738077912354123609446151206037361232958412563127686;\n uint256 constant deltay2 = 12547494205828438908997366082022218578006480853790971582035574650149105921917;\n\n\n uint256 constant IC0x = 6892060391983583930786695607356201710633476603378493079140130305061253027956;\n uint256 constant IC0y = 19080513010577291544096152944295682098544960004869191446276625294423342895423;\n\n uint256 constant IC1x = 2963012065475003042271739402030206132721261823221997567008785725181941320123;\n uint256 constant IC1y = 9577798803486024577782087417325886468350268769123545804460990397049802395332;\n\n uint256 constant IC2x = 896693100646333969295278520057034307353923912762387119798142505789755794910;\n uint256 constant IC2y = 18401215118615681028646813305991791500210052969133418321764793803415915217356;\n\n uint256 constant IC3x = 8678736677087893343210029059877270687079384428934088844145551630105386635454;\n uint256 constant IC3y = 7641653529471813483495008224199427350806682431466620696180348099838063513182;\n\n uint256 constant IC4x = 1419338030980550849687672964605247848460934958329247722331319767569137152200;\n uint256 constant IC4y = 2768820051961925877239732948059596900621163756977367880461149400586087247362;\n\n\n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[4] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n\n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n\n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n\n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n\n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n\n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n\n checkField(calldataload(add(_pubSignals, 0)))\n\n checkField(calldataload(add(_pubSignals, 32)))\n\n checkField(calldataload(add(_pubSignals, 64)))\n\n checkField(calldataload(add(_pubSignals, 96)))\n\n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-afcc26c0e2a098ed3d6af1f251e333e826a18474.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-afcc26c0e2a098ed3d6af1f251e333e826a18474.json
deleted file mode 100644
index c20cdec..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-afcc26c0e2a098ed3d6af1f251e333e826a18474.json
+++ /dev/null
@@ -1,112 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-afcc26c0e2a098ed3d6af1f251e333e826a18474",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { PoseidonT4 } from \"./utils/PoseidonT4.sol\";\n\nimport { ICurvyAggregatorAlpha } from \"./ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport {\n ICurvyInsertionVerifier,\n ICurvyAggregationVerifier,\n ICurvyWithdrawVerifier\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV3 is ICurvyAggregatorAlpha, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner, address curvyVaultProxyAddress) public initializer {\n maxDeposits = 2;\n maxWithdrawals = 2;\n maxAggregations = 2;\n\n __Ownable_init(initialOwner);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdate memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);\n }\n // TODO: We probably don't need this.\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVault(_update.curvyVault);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable {\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);\n IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);\n }\n\n curvyVault.deposit{ value: msg.value }(tokenAddress, address(this), note.amount, 0);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function depositNote(address from, CurvyTypes.Note memory note, bytes memory signature) public {\n // TODO: Gas fee\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n from,\n address(this),\n note.token,\n note.amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n ),\n signature\n );\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n require(\n _pendingIdsQueue[noteId],\n \"CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!\"\n );\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n require(\n _notesTreeRoot == publicInputs[numPublicInputs - 2],\n \"CurvyAggregator#commitDepositBatch: Invalid notes root!\"\n );\n\n require(\n insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitDepositBatch: Invalid proof!\"\n );\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n require(\n _notesTreeRoot == oldNotesTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!\"\n );\n require(\n _nullifiersTreeRoot == oldNullifiersTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!\"\n );\n\n require(\n aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitAggregationBatch: Invalid proof!\"\n );\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[10] memory publicInputs\n ) public returns (bool) {\n require(\n publicInputs[3] == _nullifiersTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!\"\n );\n require(\n publicInputs[2] == _notesTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!\"\n );\n\n require(\n withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!\"\n );\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[4 + i];\n address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n destinationAddress,\n publicInputs[numPublicInputs - 1],\n amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n }\n }\n\n // Fee collection\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n owner(),\n publicInputs[numPublicInputs - 1],\n publicInputs[1],\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74.json
deleted file mode 100644
index 5c0e081..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74.json
+++ /dev/null
@@ -1,118 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport \"../portal/IPortalFactory.sol\";\nimport {\n ICurvyInsertionVerifier,\n ICurvyAggregationVerifier,\n ICurvyWithdrawVerifier,\n ICurvyWithdrawVerifierV3\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"./ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {ICurvyVaultV2} from \"../vault/ICurvyVaultV2.sol\";\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {PoseidonT4} from \"./utils/PoseidonT4.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV5 is ICurvyAggregatorAlphaV2, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations in one aggregation batch proof\n uint256 public maxAggregations;\n // Maximum number of withdrawals in one withdrawal batch proof\n uint256 public maxWithdrawals;\n\n // Queue of commited note ids waiting for proof verification and deposit batch commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVaultV2 public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifierV3 public withdrawVerifier;\n\n // Curvy's portal factory contract;\n IPortalFactory public portalFactory;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n __Ownable_init(initialOwner);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdateV2 memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifierV3(_update.withdrawVerifier);\n }\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVaultV2(_update.curvyVault);\n }\n if (_update.portalFactory != address(0)) {\n portalFactory = IPortalFactory(_update.portalFactory);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n /*\n * @dev This function allows the owner to reset the roots of the notes and nullifiers trees to a known state.\n * @notice Only to be used in emergency cases where the contract is in a bad state and cannot be recovered\n * through normal operation (i.e. proof verification and batch commitments).\n */\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable {\n // Only allow auto shielding of portals that were deployed through the portalFactory\n if (!portalFactory.portalIsRegistered(msg.sender)) revert PortalNotRegistered();\n\n // This will revert if tokenId is not found.\n address tokenAddress = curvyVault.getTokenAddress(note.token);\n\n if (tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);\n IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);\n }\n\n curvyVault.deposit{value: msg.value}(tokenAddress, address(this), note.amount);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n if (!_pendingIdsQueue[noteId]) revert NoteNotScheduledForDeposit();\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n if (_notesTreeRoot != publicInputs[numPublicInputs - 2]) revert InvalidNotesRoot();\n\n if (!insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n if (_notesTreeRoot != oldNotesTreeRoot) revert CurrentNoteTreeRootMismatch();\n if (_nullifiersTreeRoot != oldNullifiersTreeRoot) revert CurrentNullifierTreeRootMismatch();\n\n if (!aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[9] memory publicInputs\n ) public {\n if (publicInputs[2] != _nullifiersTreeRoot) {\n revert CurrentNullifierTreeRootMismatch();\n }\n if (publicInputs[1] != _notesTreeRoot) revert CurrentNoteTreeRootMismatch();\n\n if (!withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[3 + i];\n address destinationAddress = address(uint160(publicInputs[3 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.withdraw(\n publicInputs[numPublicInputs - 1], // tokenId\n destinationAddress,\n amount\n );\n }\n }\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifiersTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\ninterface ICurvyWithdrawVerifierV3 {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[9] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV2 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenDeregistered(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAlreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount) external payable;\n function deregisterToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf.json
deleted file mode 100644
index dfc32e1..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf.json
+++ /dev/null
@@ -1,130 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV5.sol": "project/contracts/vault/CurvyVaultV5.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV5.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {EIP712Upgradeable} from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport \"./ICurvyVaultV2.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ncontract CurvyVaultV5 is ICurvyVaultV2, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n // DEPRECATED: This is no longer used, but because of storage layout it *MUST* not be deleted\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH = keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n // DEPRECATED: This is no longer used, but because of storage layout it *MUST* not be deleted\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @dev DO NOT REMOVE THIS FUNCTION.\n * This function does not affect existing deployments during an upgrade. The `initializer`\n * modifier guarantees it can only be executed once per proxy. When an existing proxy is\n * upgraded to this version, its state is already marked as initialized, making this\n * function safely uncallable and preventing any accidental state resets.\n *\n * The transferFee is unused anymore, but it is kept for storage layout reasons.\n */\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"1.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0;\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n if (_tokenAddressToTokenId[tokenAddress] != 0) revert TokenAlreadyRegistered();\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function deregisterToken(address tokenAddress) external onlyOwner {\n uint256 tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n\n // Remove from both mappings\n _tokenAddressToTokenId[tokenAddress] = 0;\n _tokenIdToTokenAddress[tokenId] = address(0);\n\n emit TokenDeregistered(tokenAddress, tokenId);\n }\n\n /**\n * @dev This function is used to set the fees for the vault.\n * @notice If you want to keep the current fee, pass the current fee values.\n */\n function setFeeAmount(CurvyTypes.FeeUpdate calldata feeUpdate) external onlyOwner {\n depositFee = feeUpdate.depositFee;\n withdrawalFee = feeUpdate.withdrawalFee;\n\n emit FeeChange(feeUpdate);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n function collectFees(uint256 tokenId) external onlyOwner {\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) {\n revert TokenNotRegistered();\n }\n\n uint256 amount = _balances[msg.sender][tokenId];\n\n // Burn wrapped tokens\n _balances[msg.sender][tokenId] = 0;\n\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(msg.sender, amount);\n } else {\n // We are withdrawing ETH\n (bool success,) = msg.sender.call{value: amount}(\"\");\n if (!success) revert ETHTransferFailed();\n }\n }\n\n //#endregion\n\n //#region Public functions\n\n function deposit(address tokenAddress, address to, uint256 amount) public payable {\n if (msg.sender != _curvyAggregator) revert NotCurvyAggregator();\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n if (msg.value != 0) revert ERC20TransferFailed();\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n } else {\n // We are depositing ETH\n if (amount != msg.value) revert ETHTransferFailed();\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n emit Deposit(tokenAddress, to, amount);\n }\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external {\n if (msg.sender != _curvyAggregator && msg.sender != owner()) revert NotCurvyAggregatorOrOwner();\n if (to == address(0)) revert InvalidRecipient();\n\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n\n _balances[msg.sender][tokenId] -= amount;\n\n uint256 amountAfterFees = amount;\n\n if (withdrawalFee != 0) {\n uint256 feeAmount = (amount * withdrawalFee) / FEE_DENOMINATOR;\n _balances[owner()][tokenId] += feeAmount;\n\n amountAfterFees -= feeAmount;\n }\n\n // Withdraw\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success,) = to.call{value: amountAfterFees}(\"\");\n if (!success) revert ETHTransferFailed();\n }\n\n emit Withdraw(tokenAddress, to, amount);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV2 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenDeregistered(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAlreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount) external payable;\n function deregisterToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139.json
deleted file mode 100644
index d60dd44..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyWithdrawVerifierAlpha_2_2 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 12397805951025518106727837530396484148707566518486264449692018677592715552738;\n uint256 constant alphay = 15955090815437592355277639300964029657297847031418701683987115570774046891084;\n uint256 constant betax1 = 4558033428938724707702173270530051784881875483362452783309319477109892316105;\n uint256 constant betax2 = 562684918113878349440529415978735829020597426398767547815813179569677877300;\n uint256 constant betay1 = 20489741225546273474807268360309498543857989566183651420924474108165432690449;\n uint256 constant betay2 = 454381379487956449014758402076019864127573099149576738294140161985720735727;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 1942957736037963101203219158469259529546799241990758433727523856964538100073;\n uint256 constant deltax2 = 18751923381200656298966034357393007161012447906702590224817337765901518639673;\n uint256 constant deltay1 = 1133999629005264953340361763833931385589890012974815573425435607942024998386;\n uint256 constant deltay2 = 14471269438293025701528144565650621453664657630625879213448935801370895962940;\n\n\n uint256 constant IC0x = 11968520527261008482201395429648269043035616497073888658724571012437789293939;\n uint256 constant IC0y = 5136251148319110970366250455217987647549782888975639692208545140414393137884;\n\n uint256 constant IC1x = 5975241901947889428732629350826663755899042053573889198253119292209887821040;\n uint256 constant IC1y = 2685690711649235809807871684645747831411670364944637928549630358451580743776;\n\n uint256 constant IC2x = 21457725883524874632812608873663348299725989674105072179521462800873159704544;\n uint256 constant IC2y = 19168217719060062389194429118110295922878525697032925549314953343761367307141;\n\n uint256 constant IC3x = 17554887761244498448299647193645089417418333466521419290903975536912994480102;\n uint256 constant IC3y = 6828503642628660310065798863926994844602749634343008753314631578060116317289;\n\n uint256 constant IC4x = 18045958587858551125780098548280608486861406147719724376886960587385758892570;\n uint256 constant IC4y = 1460992944153042284168728471643688563838047682787154519800969757480118977318;\n\n uint256 constant IC5x = 8036932202895490274341216374336553590284129118220623742481357002018210069085;\n uint256 constant IC5y = 18124381701282194246396478048337342484804646549782698384328525226734865874217;\n\n uint256 constant IC6x = 20732565017826841759780149484537562794481082473815326973722686385643825053232;\n uint256 constant IC6y = 1578295143682207919150217030105921698678835562616948345397787740004184473466;\n\n uint256 constant IC7x = 13336419499841102064953828107563315860524065147821200507183965277570290809701;\n uint256 constant IC7y = 15646739618986350809196316363572210110061458933904816195180902726350713059476;\n\n uint256 constant IC8x = 3781871953990367480957688085798233518568839779161221598822628397760557895286;\n uint256 constant IC8y = 12817226393979548789463163683773821122513428271793963480322864256370266927153;\n\n uint256 constant IC9x = 2926575412652084811061107906584177183682681890851185080729303468987134565693;\n uint256 constant IC9y = 6977667946282706236499241992533773181650515025258779907882853261697686173390;\n\n uint256 constant IC10x = 13730737400268905683628732665166925183849825441370098666588386862696253859993;\n uint256 constant IC10y = 21232995117437150082021144389671781866736648491602691192891602074767930210292;\n\n\n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[10] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n\n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n\n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n\n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n\n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n\n g1_mulAccC(_pVk, IC5x, IC5y, calldataload(add(pubSignals, 128)))\n\n g1_mulAccC(_pVk, IC6x, IC6y, calldataload(add(pubSignals, 160)))\n\n g1_mulAccC(_pVk, IC7x, IC7y, calldataload(add(pubSignals, 192)))\n\n g1_mulAccC(_pVk, IC8x, IC8y, calldataload(add(pubSignals, 224)))\n\n g1_mulAccC(_pVk, IC9x, IC9y, calldataload(add(pubSignals, 256)))\n\n g1_mulAccC(_pVk, IC10x, IC10y, calldataload(add(pubSignals, 288)))\n\n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n\n checkField(calldataload(add(_pubSignals, 0)))\n\n checkField(calldataload(add(_pubSignals, 32)))\n\n checkField(calldataload(add(_pubSignals, 64)))\n\n checkField(calldataload(add(_pubSignals, 96)))\n\n checkField(calldataload(add(_pubSignals, 128)))\n\n checkField(calldataload(add(_pubSignals, 160)))\n\n checkField(calldataload(add(_pubSignals, 192)))\n\n checkField(calldataload(add(_pubSignals, 224)))\n\n checkField(calldataload(add(_pubSignals, 256)))\n\n checkField(calldataload(add(_pubSignals, 288)))\n\n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f.json
deleted file mode 100644
index 190f7aa..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyAggregationVerifierAlpha_2_2_2 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 12397805951025518106727837530396484148707566518486264449692018677592715552738;\n uint256 constant alphay = 15955090815437592355277639300964029657297847031418701683987115570774046891084;\n uint256 constant betax1 = 4558033428938724707702173270530051784881875483362452783309319477109892316105;\n uint256 constant betax2 = 562684918113878349440529415978735829020597426398767547815813179569677877300;\n uint256 constant betay1 = 20489741225546273474807268360309498543857989566183651420924474108165432690449;\n uint256 constant betay2 = 454381379487956449014758402076019864127573099149576738294140161985720735727;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 14247188116453405673621645482734779597271943579236786988002822486035578351827;\n uint256 constant deltax2 = 19127457743533062382695057246317969331583652196516180652505167533941470596184;\n uint256 constant deltay1 = 1120896676694033813888539165134426369540073925998956380068766205657266649164;\n uint256 constant deltay2 = 11509882780442288397461078955924788953216456968851718873762534083798685470176;\n\n\n uint256 constant IC0x = 29462445247651336873197670218881433811515270657621608123062437811400729293;\n uint256 constant IC0y = 18171755157403336899093830921271746363256651403384351735695773262049736733550;\n\n uint256 constant IC1x = 20155116508805270335695092444982456411255426185965433598991038764554589237491;\n uint256 constant IC1y = 15100236777573876942404435988104314855338324214411252535388491438352277620011;\n\n uint256 constant IC2x = 10211871721893502392904500352667359944639931168739288628275746498444439334624;\n uint256 constant IC2y = 14857576678067996171949154311157731596082175516312363029732523714738213679225;\n\n uint256 constant IC3x = 17681178928244319555205465208759196004958135576922343337773782176967565453923;\n uint256 constant IC3y = 12020350826305074268886914285212991819930696406522096455169685411373063924283;\n\n uint256 constant IC4x = 15990091135939845008053796985720708958381089922139813153004307037770120415376;\n uint256 constant IC4y = 14686431646476347283962842352013379254853767901657891326891810060612370131980;\n\n uint256 constant IC5x = 9836802977203983623311722609159922779452226468276418069924737841205211059775;\n uint256 constant IC5y = 5851543777081950781696453016189466308824375346225749203286800288308819146995;\n\n uint256 constant IC6x = 20494598241570455849918685888437752184000806835792517335988569390529750670399;\n uint256 constant IC6y = 5118171864497209081972949748612803357992268865433760622407683235582888296730;\n\n uint256 constant IC7x = 4161116648736026602325932141983145072422766799723371889670488259084982158410;\n uint256 constant IC7y = 9823852613097441041513408079495633594306721875095369575303676346788966932542;\n\n uint256 constant IC8x = 18765382825961060386998956112280419451294524096891700144870842762014869263482;\n uint256 constant IC8y = 19072335486260980952513432441473964489080839652759276569808438095375047060405;\n\n uint256 constant IC9x = 13461757427291354529150925761759132586768268951212262050759971788739599457371;\n uint256 constant IC9y = 4798781689873879774176109834716065302885296520372365401475518178120364765053;\n\n uint256 constant IC10x = 2825946145004188674530444966368925818974257222272928787863708902753465126277;\n uint256 constant IC10y = 1132081428014299195407240376318746218027138258204471169466177788741899724649;\n\n uint256 constant IC11x = 6037061286657655112833173191022971038494250639700090848969212974351407272955;\n uint256 constant IC11y = 14288245102826282599683294768365607032501106839126325328556517607105285011189;\n\n uint256 constant IC12x = 16666416945139505069027327107503900232722595465132986777080649891257196764894;\n uint256 constant IC12y = 16479310741244346892769904991381444059360278176600162038328339853031393579364;\n\n uint256 constant IC13x = 8457614266693283160896406297631606953977487470037761765606926637481574421021;\n uint256 constant IC13y = 7268797945103287108426579652981774503857175386562341294721963484244801300809;\n\n uint256 constant IC14x = 17506341415928441858395452534096119812461333575351484400640668498682876605148;\n uint256 constant IC14y = 3698938041800489752726811068263827706724617934585101138986055289302086103389;\n\n\n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[14] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n\n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n\n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n\n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n\n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n\n g1_mulAccC(_pVk, IC5x, IC5y, calldataload(add(pubSignals, 128)))\n\n g1_mulAccC(_pVk, IC6x, IC6y, calldataload(add(pubSignals, 160)))\n\n g1_mulAccC(_pVk, IC7x, IC7y, calldataload(add(pubSignals, 192)))\n\n g1_mulAccC(_pVk, IC8x, IC8y, calldataload(add(pubSignals, 224)))\n\n g1_mulAccC(_pVk, IC9x, IC9y, calldataload(add(pubSignals, 256)))\n\n g1_mulAccC(_pVk, IC10x, IC10y, calldataload(add(pubSignals, 288)))\n\n g1_mulAccC(_pVk, IC11x, IC11y, calldataload(add(pubSignals, 320)))\n\n g1_mulAccC(_pVk, IC12x, IC12y, calldataload(add(pubSignals, 352)))\n\n g1_mulAccC(_pVk, IC13x, IC13y, calldataload(add(pubSignals, 384)))\n\n g1_mulAccC(_pVk, IC14x, IC14y, calldataload(add(pubSignals, 416)))\n\n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n\n checkField(calldataload(add(_pubSignals, 0)))\n\n checkField(calldataload(add(_pubSignals, 32)))\n\n checkField(calldataload(add(_pubSignals, 64)))\n\n checkField(calldataload(add(_pubSignals, 96)))\n\n checkField(calldataload(add(_pubSignals, 128)))\n\n checkField(calldataload(add(_pubSignals, 160)))\n\n checkField(calldataload(add(_pubSignals, 192)))\n\n checkField(calldataload(add(_pubSignals, 224)))\n\n checkField(calldataload(add(_pubSignals, 256)))\n\n checkField(calldataload(add(_pubSignals, 288)))\n\n checkField(calldataload(add(_pubSignals, 320)))\n\n checkField(calldataload(add(_pubSignals, 352)))\n\n checkField(calldataload(add(_pubSignals, 384)))\n\n checkField(calldataload(add(_pubSignals, 416)))\n\n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f.json
deleted file mode 100644
index f734896..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol": {
- "content": "//\n// Copyright 2017 Christian Reitwiessner\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n//\n// 2019 OKIMS\n// ported to solidity 0.6\n// fixed linter warnings\n// added requiere error messages\n//\n//\n// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.28;\nlibrary Pairing {\n struct G1Point {\n uint X;\n uint Y;\n }\n // Encoding of field elements is: X[0] * z + X[1]\n struct G2Point {\n uint[2] X;\n uint[2] Y;\n }\n /// @return the generator of G1\n function P1() internal pure returns (G1Point memory) {\n return G1Point(1, 2);\n }\n /// @return the generator of G2\n function P2() internal pure returns (G2Point memory) {\n // Original code point\n return\n G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n\n /*\n // Changed by Jordi point\n return G2Point(\n [10857046999023057135944570762232829481370756359578518086990519993285655852781,\n 11559732032986387107991004021392285783925812861821192530917403151452391805634],\n [8495653923123431417604973247489272438418190587263600148770280649306958101930,\n 4082367875863433681332203403145435568316851327593401208105741076214120093531]\n );\n*/\n }\n /// @return r the negation of p, i.e. p.addition(p.negate()) should be zero.\n function negate(G1Point memory p) internal pure returns (G1Point memory r) {\n // The prime q in the base field F_q for G1\n uint q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n if (p.X == 0 && p.Y == 0) return G1Point(0, 0);\n return G1Point(p.X, q - (p.Y % q));\n }\n /// @return r the sum of two points of G1\n function addition(G1Point memory p1, G1Point memory p2) internal view returns (G1Point memory r) {\n uint[4] memory input;\n input[0] = p1.X;\n input[1] = p1.Y;\n input[2] = p2.X;\n input[3] = p2.Y;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-add-failed\");\n }\n /// @return r the product of a point on G1 and a scalar, i.e.\n /// p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.\n function scalar_mul(G1Point memory p, uint s) internal view returns (G1Point memory r) {\n uint[3] memory input;\n input[0] = p.X;\n input[1] = p.Y;\n input[2] = s;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-mul-failed\");\n }\n /// @return the result of computing the pairing check\n /// e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n /// For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n /// return true.\n function pairing(G1Point[] memory p1, G2Point[] memory p2) internal view returns (bool) {\n require(p1.length == p2.length, \"pairing-lengths-failed\");\n uint elements = p1.length;\n uint inputSize = elements * 6;\n uint[] memory input = new uint[](inputSize);\n for (uint i = 0; i < elements; i++) {\n input[i * 6 + 0] = p1[i].X;\n input[i * 6 + 1] = p1[i].Y;\n input[i * 6 + 2] = p2[i].X[0];\n input[i * 6 + 3] = p2[i].X[1];\n input[i * 6 + 4] = p2[i].Y[0];\n input[i * 6 + 5] = p2[i].Y[1];\n }\n uint[1] memory out;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-opcode-failed\");\n return out[0] != 0;\n }\n /// Convenience method for a pairing check for two pairs.\n function pairingProd2(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](2);\n G2Point[] memory p2 = new G2Point[](2);\n p1[0] = a1;\n p1[1] = b1;\n p2[0] = a2;\n p2[1] = b2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for three pairs.\n function pairingProd3(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](3);\n G2Point[] memory p2 = new G2Point[](3);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for four pairs.\n function pairingProd4(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2,\n G1Point memory d1,\n G2Point memory d2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](4);\n G2Point[] memory p2 = new G2Point[](4);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p1[3] = d1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n p2[3] = d2;\n return pairing(p1, p2);\n }\n}\ncontract CurvyAggregationVerifierAlpha_2 {\n using Pairing for *;\n struct VerifyingKey {\n Pairing.G1Point alfa1;\n Pairing.G2Point beta2;\n Pairing.G2Point gamma2;\n Pairing.G2Point delta2;\n Pairing.G1Point[] IC;\n }\n struct Proof {\n Pairing.G1Point A;\n Pairing.G2Point B;\n Pairing.G1Point C;\n }\n function verifyingKey() internal pure returns (VerifyingKey memory vk) {\n vk.alfa1 = Pairing.G1Point(\n 16428432848801857252194528405604668803277877773566238944394625302971855135431,\n 16846502678714586896801519656441059708016666274385668027902869494772365009666\n );\n\n vk.beta2 = Pairing.G2Point(\n [\n 3182164110458002340215786955198810119980427837186618912744689678939861918171,\n 16348171800823588416173124589066524623406261996681292662100840445103873053252\n ],\n [\n 4920802715848186258981584729175884379674325733638798907835771393452862684714,\n 19687132236965066906216944365591810874384658708175106803089633851114028275753\n ]\n );\n vk.gamma2 = Pairing.G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n vk.delta2 = Pairing.G2Point(\n [\n 1825820289445528230748516471303857211851647812178238644398694711892060335102,\n 4501157781715747347326168237438946199631233637039603190454156790024140170532\n ],\n [\n 2976320905856289398462407715158750554758711795923018343152013782540268573338,\n 8065057629097218075468818461668875107508867318519822752109695059605063759743\n ]\n );\n vk.IC = new Pairing.G1Point[](15);\n\n vk.IC[0] = Pairing.G1Point(\n 11200124153184451635609882308695941695299065822515604818428490874957516968544,\n 351599459091154081834565481907831295536571009664154516711371514507534537924\n );\n\n vk.IC[1] = Pairing.G1Point(\n 17523841805234438479622380916346797360075392171607980673630575387049417242504,\n 13289142455981019844666631116997357642308096477675875239365376390530915636565\n );\n\n vk.IC[2] = Pairing.G1Point(\n 16746757079611460155423717702821756597011979265569706823451544529394680331569,\n 5895458274955609861385562616131856787903006372495797294609570835562705630636\n );\n\n vk.IC[3] = Pairing.G1Point(\n 14127482189652462155064731555835502755013656834412536971159921420581690974934,\n 20972656051236665024151562033324700560519205436455326893079525751320282585826\n );\n\n vk.IC[4] = Pairing.G1Point(\n 14580157399388369037332019611784129511147010464280832254037678387990510320216,\n 1156244037397095377907506151159747807385598085151953095125221542232459781707\n );\n\n vk.IC[5] = Pairing.G1Point(\n 14590871185281906275792434443685212134229407115720576014231924109918532363423,\n 5959209397832805552448947593117074559622964817162361505512971088303811736123\n );\n\n vk.IC[6] = Pairing.G1Point(\n 20201034757384523034750370638651840799381923260057426513046720249367942927662,\n 13310240425583744609524200316716161773019379466271897428566996672193783474644\n );\n\n vk.IC[7] = Pairing.G1Point(\n 12993571855859323326789126599640048145924820083081470964551627062894104638932,\n 2521467008216835644009977822413367714654763996963405057427943471742378187229\n );\n\n vk.IC[8] = Pairing.G1Point(\n 644479126338776177875611439307149801940697823408876598202163177696812056230,\n 3259608218321073927123799071684570288276186889110648470965811205442418453318\n );\n\n vk.IC[9] = Pairing.G1Point(\n 18616248727979558767963045303042732245655414233405863537147546654506877648919,\n 21007181885380641107567124859608576630313975132949218965313917530068026034348\n );\n\n vk.IC[10] = Pairing.G1Point(\n 16542765496795800099762929935049082290142877961245786125523420623234647385136,\n 20936230615665064995225716565795322981492740487463861151827401558596300599229\n );\n\n vk.IC[11] = Pairing.G1Point(\n 9256351824249849328111189255216609819183023880083950734211844506616465067031,\n 7708821775396992189236181896073504806661486656527392329166820850192121208270\n );\n\n vk.IC[12] = Pairing.G1Point(\n 194682654485999029052793081152618414270293252026507044373168224453479917315,\n 3149660330041749446855662611494401400910302078867553834930485587333418413096\n );\n\n vk.IC[13] = Pairing.G1Point(\n 740646390511892530424670165807113591122942423540196858609773072637607592792,\n 4800156649851932114269991997960979152383472708142020802762828152081927430386\n );\n\n vk.IC[14] = Pairing.G1Point(\n 4813266068119240960813116245992549920458196449520670498440968746560888020985,\n 8202677805642766197766182170871009520342188751173046950187476642267562851673\n );\n }\n function verify(uint[] memory input, Proof memory proof) internal view returns (uint) {\n uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n VerifyingKey memory vk = verifyingKey();\n require(input.length + 1 == vk.IC.length, \"verifier-bad-input\");\n // Compute the linear combination vk_x\n Pairing.G1Point memory vk_x = Pairing.G1Point(0, 0);\n for (uint i = 0; i < input.length; i++) {\n require(input[i] < snark_scalar_field, \"verifier-gte-snark-scalar-field\");\n vk_x = Pairing.addition(vk_x, Pairing.scalar_mul(vk.IC[i + 1], input[i]));\n }\n vk_x = Pairing.addition(vk_x, vk.IC[0]);\n if (\n !Pairing.pairingProd4(\n Pairing.negate(proof.A),\n proof.B,\n vk.alfa1,\n vk.beta2,\n vk_x,\n vk.gamma2,\n proof.C,\n vk.delta2\n )\n ) return 1;\n return 0;\n }\n /// @return r bool true if proof is valid\n function verifyProof(\n uint[2] memory a,\n uint[2][2] memory b,\n uint[2] memory c,\n uint[14] memory input\n ) public view returns (bool r) {\n Proof memory proof;\n proof.A = Pairing.G1Point(a[0], a[1]);\n proof.B = Pairing.G2Point([b[0][0], b[0][1]], [b[1][0], b[1][1]]);\n proof.C = Pairing.G1Point(c[0], c[1]);\n uint[] memory inputValues = new uint[](input.length);\n for (uint i = 0; i < input.length; i++) {\n inputValues[i] = input[i];\n }\n if (verify(inputValues, proof) == 0) {\n return true;\n } else {\n return false;\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477.json
deleted file mode 100644
index e538733..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_30.sol": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_30.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_30.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyInsertionVerifierAlpha_2_30 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 6409627461027314381187468885143279306198448876048297566463301954058327510814;\n uint256 constant alphay = 12640837106096309059951908366270479311827929827962903462162212783594404420318;\n uint256 constant betax1 = 5549494384221185918318645225448751739016405918291851539409691184048609234995;\n uint256 constant betax2 = 8231530609589765620572345306193536337315037298983907898646122212897803219552;\n uint256 constant betay1 = 18178257033245058400722845292582229521725560892668828752442725877662722404413;\n uint256 constant betay2 = 11567528303928621672875082759207269099998905446359254464834566777644442986764;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 13150187827804098580167194353396651525401190924161928452717195968979198279667;\n uint256 constant deltax2 = 19659687456793278204393856162384522848917490025047546228310774933303031363859;\n uint256 constant deltay1 = 18599301451010334650893181475001684113283131999338606595494535648225928516680;\n uint256 constant deltay2 = 175693180205772694080223110192202412843423206625032649564534105696047342305;\n\n \n uint256 constant IC0x = 4135656527027618943839187826965702424585853129588027519355769429239703878811;\n uint256 constant IC0y = 13490848697663523098413137617593516625231121353036010990327157308917327084274;\n \n uint256 constant IC1x = 4277342632844015816144163412031098603531813411267905296660058137054759162265;\n uint256 constant IC1y = 12281413836847143766162883406525148477888833200311739953868211971043788013083;\n \n uint256 constant IC2x = 11729591549821466135250610177646826646615835478231762444594923545825176910658;\n uint256 constant IC2y = 21137417387833128216038636590746800605445709838492046953316924336043862960363;\n \n uint256 constant IC3x = 21815948384521701101362279090949311073966738683038664301487749963410452873180;\n uint256 constant IC3y = 2473977254957273979077603512259814337713693644954267768429404391046322680925;\n \n uint256 constant IC4x = 10876006368643772253894605942973519414689312177049486195205521130863288506162;\n uint256 constant IC4y = 11400330890729911598144462415260556565988610300976556417263527604260649187032;\n \n \n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[4] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n \n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n \n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n \n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n \n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n \n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n \n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n \n checkField(calldataload(add(_pubSignals, 0)))\n \n checkField(calldataload(add(_pubSignals, 32)))\n \n checkField(calldataload(add(_pubSignals, 64)))\n \n checkField(calldataload(add(_pubSignals, 96)))\n \n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n }\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-f0322ae6d51b4110e2b55c267b545c35f2b0fd20.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-f0322ae6d51b4110e2b55c267b545c35f2b0fd20.json
deleted file mode 100644
index 757c3fe..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-f0322ae6d51b4110e2b55c267b545c35f2b0fd20.json
+++ /dev/null
@@ -1,134 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-f0322ae6d51b4110e2b55c267b545c35f2b0fd20",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV2.sol": "project/contracts/vault/CurvyVaultV2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/ECDSA.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.20;\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 }\n\n /**\n * @dev The signature derives the `address(0)`.\n */\n error ECDSAInvalidSignature();\n\n /**\n * @dev The signature has an invalid length.\n */\n error ECDSAInvalidSignatureLength(uint256 length);\n\n /**\n * @dev The signature has an S value that is in the upper half order.\n */\n error ECDSAInvalidSignatureS(bytes32 s);\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\n * and a bytes32 providing additional information about the error.\n *\n * If no error is returned, then the address can be used for verification purposes.\n *\n * The `ecrecover` EVM precompile 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 {MessageHashUtils-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 function tryRecover(\n bytes32 hash,\n bytes memory signature\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 (\"memory-safe\") {\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 {\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\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 precompile 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 {MessageHashUtils-toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\n _throwError(error, errorArg);\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[ERC-2098 short signatures]\n */\n function tryRecover(\n bytes32 hash,\n bytes32 r,\n bytes32 vs\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\n unchecked {\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n // We do not check for an overflow here since the shift operation results in 0 or 1.\n uint8 v = uint8((uint256(vs) >> 255) + 27);\n return tryRecover(hash, v, r, s);\n }\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n */\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\n _throwError(error, errorArg);\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 function tryRecover(\n bytes32 hash,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 ÷ 2 + 1, and for v in (302): v ∈ {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, s);\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, bytes32(0));\n }\n\n return (signer, RecoverError.NoError, bytes32(0));\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `v`,\n * `r` and `s` signature fields separately.\n */\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\n _throwError(error, errorArg);\n return recovered;\n }\n\n /**\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\n */\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\n if (error == RecoverError.NoError) {\n return; // no error: do nothing\n } else if (error == RecoverError.InvalidSignature) {\n revert ECDSAInvalidSignature();\n } else if (error == RecoverError.InvalidSignatureLength) {\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\n } else if (error == RecoverError.InvalidSignatureS) {\n revert ECDSAInvalidSignatureS(errorArg);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { EIP712Upgradeable } from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { ECDSA } from \"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\";\nimport \"./ICurvyVault.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract CurvyVaultV2 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH =\n keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"2.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Private functions\n\n function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {\n bytes32 structHash = keccak256(\n abi.encode(\n CURVY_META_TRANSACTION_TYPE_HASH,\n _nonces[metaTransaction.from],\n metaTransaction.from,\n metaTransaction.to,\n metaTransaction.tokenId,\n metaTransaction.amount,\n metaTransaction.gasFee,\n metaTransaction.metaTransactionType\n )\n );\n\n // Add domain data to the hash\n bytes32 hash = _hashTypedDataV4(structHash);\n\n // Check that the metaTransaction is signed by metaTransaction.from\n address signer = ECDSA.recover(hash, signature);\n require(signer == metaTransaction.from, \"CurvyVault#_validateSignature: Invalid signature!\");\n\n // Increment nonce\n _nonces[signer]++;\n emit NonceChange(signer, _nonces[signer]);\n }\n\n function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n if (metaTransaction.to == address(0)) revert InvalidRecipient();\n if (metaTransaction.metaTransactionType != CurvyTypes.MetaTransactionType.Transfer)\n revert InvalidTransactionType();\n\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.to][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (transferFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);\n }\n\n function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_withdraw: Invalid withdraw recipient!\");\n require(\n metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,\n \"CurvyVault#withdraw: Wrong type for meta transaction!\"\n );\n\n // Burn wrapped tokens\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n\n uint256 amountAfterFees = metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n amountAfterFees -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (withdrawalFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;\n amountAfterFees -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n // Withdraw\n if (metaTransaction.tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];\n IERC20(tokenAddress).safeTransfer(metaTransaction.to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success, ) = metaTransaction.to.call{ value: amountAfterFees }(\"\");\n require(success, \"CurvyVault#_withdraw: ETH withdrawal failed!\");\n }\n\n emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);\n }\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n require(_tokenAddressToTokenId[tokenAddress] == 0, \"CurvyVault#registerToken: Token already registered!\");\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {\n if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {\n depositFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {\n transferFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {\n withdrawalFee = fee;\n } else {\n revert(\"CurvyVault#setFeeAmount: Unknown fee type!\");\n }\n\n emit FeeChange(metaTransactionType, fee);\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n require(msg.value == 0, \"CurvyVault#deposit: Don't send ETH with ERC20 deposit!\");\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n } else {\n // We are depositing ETH\n require(amount == msg.value, \"CurvyVault#deposit: Incorrect deposit value!\");\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)\n if (gasSponsorshipAmount != 0) {\n _balances[to][tokenId] -= gasSponsorshipAmount;\n _balances[owner()][tokenId] += gasSponsorshipAmount;\n }\n\n emit Transfer(address(0x0), to, tokenId, amount);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _transfer(metaTransaction);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _transfer(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _withdraw(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _withdraw(metaTransaction);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n require(tokenAddress != address(0x0), \"CurvyVault:#getIdAddress: Unregistered token!\");\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault:#getTokenID: Unregistered token!\");\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n function balanceOfBatch(\n address[] memory owners,\n uint256[] memory tokenIds\n ) external view returns (uint256[] memory) {\n require(owners.length == tokenIds.length, \"CurvyVault#balanceOfBatch: Invalid array length!\");\n\n // Variables\n uint256[] memory batchBalances = new uint256[](owners.length);\n\n // Iterate over each owner and token ID\n for (uint256 i = 0; i < owners.length; i++) {\n batchBalances[i] = _balances[owners[i]][tokenIds[i]];\n }\n\n return batchBalances;\n }\n\n function getNonce(address _signer) external view returns (uint256 nonce) {\n return _nonces[_signer];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd.json b/ignition/deployments/production_sepolia/build-info/solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd.json
deleted file mode 100644
index 74d5a07..0000000
--- a/ignition/deployments/production_sepolia/build-info/solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport \"../portal/IPortalFactory.sol\";\nimport {\nICurvyInsertionVerifier,\nICurvyAggregationVerifier,\nICurvyWithdrawVerifier\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"./ICurvyAggregatorAlpha.sol\";\n\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {PoseidonT4} from \"./utils/PoseidonT4.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV4 is ICurvyAggregatorAlpha, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n // Curvy's portal factory contract;\n IPortalFactory public portalFactory;\n\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n __Ownable_init(initialOwner);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdateV2 memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);\n }\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVault(_update.curvyVault);\n }\n if (_update.portalFactory != address(0)) {\n portalFactory = IPortalFactory(_update.portalFactory);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable {\n // Only allow auto shielding of portals that were deployed through the portalFactory\n require(portalFactory.portalIsRegistered(msg.sender), \"CurvyAggregator: portal is not registered\");\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);\n IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);\n }\n\n curvyVault.deposit{ value: msg.value }(tokenAddress, address(this), note.amount, 0);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function depositNote(address from, CurvyTypes.Note memory note, bytes memory signature) public {\n // TODO: Gas fee\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n from,\n address(this),\n note.token,\n note.amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n ),\n signature\n );\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n require(\n _pendingIdsQueue[noteId],\n \"CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!\"\n );\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n require(\n _notesTreeRoot == publicInputs[numPublicInputs - 2],\n \"CurvyAggregator#commitDepositBatch: Invalid notes root!\"\n );\n\n require(\n insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitDepositBatch: Invalid proof!\"\n );\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n require(\n _notesTreeRoot == oldNotesTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!\"\n );\n require(\n _nullifiersTreeRoot == oldNullifiersTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!\"\n );\n\n require(\n aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitAggregationBatch: Invalid proof!\"\n );\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[10] memory publicInputs\n ) public returns (bool) {\n require(\n publicInputs[3] == _nullifiersTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!\"\n );\n require(\n publicInputs[2] == _notesTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!\"\n );\n\n require(\n withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!\"\n );\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[4 + i];\n address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n destinationAddress,\n publicInputs[numPublicInputs - 1],\n amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n }\n }\n\n // Fee collection\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n owner(),\n publicInputs[numPublicInputs - 1],\n publicInputs[1],\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address recovery) external pure returns (bytes memory);\n\n function getPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) external;\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/production_sepolia/deployed_addresses.json b/ignition/deployments/production_sepolia/deployed_addresses.json
deleted file mode 100644
index 9ab5d8d..0000000
--- a/ignition/deployments/production_sepolia/deployed_addresses.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "PortalFactory#CreateX": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
- "CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2": "0x9493Cb84D6D37302676495B975DB92FbB5f4e51F",
- "CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2": "0xc38CFF93C02F8C05D9e800b808b61C6a159Fb633",
- "CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2": "0x98407b14a486584c308991b9a44835a9D071f10a",
- "CurvyAggregatorAlpha#PoseidonT4": "0xEa16Fb67A4Bb4a90598FDf03e68091ecD33614ae",
- "CurvyVault#CurvyVaultV1Implementation": "0x2aBAf45eA01566F756cB3EB7E9A16D592303FDE1",
- "CurvyVault#CurvyVaultV2Implementation": "0xF3913Fa76d0E0B3B6645f8471C9799C3CED47328",
- "CurvyVault#CurvyVaultV3Implementation": "0x603Da3323C3881236C4157f6a1440697e2ba36A9",
- "TokenBridgeModule#TokenBridge": "0xe72378c626Ed6b998b5319FF301cf31549Fb2A1c",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation": "0x56412C92455aED0c8c1e53B7e2323fE0fC99E6a0",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation": "0x93d0e174e6fa34528DC04CD3Ea90976DbDb18E98",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation": "0x7B2a3a6A5f311193c5c01734A78FB1C7CeD5C6D7",
- "CurvyVault#ERC1967Proxy": "0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5",
- "CurvyVault#CurvyVaultV1": "0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5",
- "CurvyVault#CurvyVaultV2": "0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5",
- "CurvyVault#CurvyVaultV3": "0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5",
- "PortalFactory#PortalFactory": "0xfE02b0a1eBEc81faAC4C09e3F4EaeFE568833718",
- "CurvyAggregatorAlpha#ERC1967Proxy": "0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV1": "0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV2": "0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV3": "0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV4": "0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB",
- "CurvyAggregatorAlpha#NewInsertionVerifier_v2": "0x0887f15D62cADE29503815328760447FF60d6916",
- "CurvyAggregatorAlpha#NewAggregationVerifier_v2": "0x799409D5066b0b3CB5cE1398Bf208587b5B9285C",
- "CurvyAggregatorAlpha#NewWithdrawVerifier_v2": "0xC80bBc0C209C3d62397c88CE47Ddf31272E69F6b",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation": "0x655e119C92f39CEc144A8AC41224fECC145bf059",
- "CurvyVault#CurvyVaultV4": "0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5",
- "CurvyVault#CurvyVaultV4Implementation": "0xc4d31f0d91B40Fe24d6416e546323AeceEfDAA5B",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV5": "0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB",
- "CurvyVault#CurvyVaultV5": "0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5",
- "CurvyVault#CurvyVaultV5Implementation": "0xBE5dC54703aA0a2e6e538F338224db56a3302756",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation": "0xf511ca174ef4092ecb0a7594C1e307C0AD1cFcBc",
- "CurvyAggregatorAlpha#withdrawVerifierV3": "0x458C5A6995d514e6f9eaDCEE68Aa47F74E3D0Cfb",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV6": "0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB",
- "CurvyVault#CurvyVaultV6": "0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation": "0xef717c61b32Dbd3Eb2f3E699C99B37F412380621",
- "CurvyVault#CurvyVaultV6Implementation": "0xE64a2B55B255E9b55568F777b98d0d897059CA10",
- "CurvyAggregatorAlpha#insertionVerifierDepth30": "0xa6D3b318da6Fd65930A6d7C55cfA8808949a574D",
- "CurvyAggregatorAlpha#aggregationVerifierDepth30": "0x08a47629b8D25Cdd27878eFD4FbDF2d32B7b85c3",
- "CurvyAggregatorAlpha#withdrawVerifierDepth30": "0x31f4D0573F445038CeAc254c880F2B2FF1663423"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2.json
deleted file mode 100644
index 8536a77..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregationVerifierAlpha_2_2_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "_pubSignals",
- "type": "uint256[14]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b50610a0c8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610974565b610054565b604051901515815260200160405180910390f35b5f610881565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7e10acd6d4ce082a72b623deeac4b4c1c526b8ab76ab54f82d13b63a6f23e2cd85527f282cd953fc7bc024a80710dd645d4cd8e4ef6d10eb7403a76618f96eddb5336e60208601525f608086018661018d87357f21626e5f52776516ac007ae23e14ca016f4e7623b79f63f4ab59482e4872c52b7f2c8f6445390acb60223f07dcf516fee816534c9940dc8d59595786b35106f0f38461008c565b6101dd60208801357f20d91723fc6a5cff2a4d8bd53db8c7647c86b9245b27d7042634dd317becf0797f1693b6ee023f9ef0c9e7cb1d290717e3df5f6d2154ba30f3a6a833f3171c2ee08461008c565b61022d60408801357f1a9347082efac79b5d64033c95c7f2190984cd2a19884b4ad26162ea47e0ea3b7f27173150520b68cc7844935166da0f68924aeccc8a30ae9ca0768eb597cf2a638461008c565b61027d60608801357f207839c9f296371e642b17ab83a64fca9b9044d10b0f6a5319ae0e2ee2a76c0c7f235a1223ea30a75c93efd51c3abd465c611878ebc52d9830e61978f914d7c8908461008c565b6102cd60808801357f0cefdb3db08f930f2ed5534a797dc304a1189c61a2835aabb6c5831f0ca838f37f15bf6ee50fbb6b6a07695b99fa739330553161a7de0b0380556b61ebe950563f8461008c565b61031d60a08801357f0b50c85999c665bad3101fb618ca967aa4860c1c07f4c54bcf692b7b30b2c11a7f2d4f881288f63fa77f63eaad252bd5efbbbda01e21976fb645aaadd286929c3f8461008c565b61036d60c08801357f15b81a815c06b38295623648d75372799d4755f7a0b74f7bd655f5f64715a03e7f09331bcaac14f8bcf495ed09470e01f3c268f1fdb4e019c19c836e2c8310044a8461008c565b6103bd60e08801357f2a2a8f30efa6592960fa69f190f96c5f0b432948973a9c53269de3e6b8abebb57f297cd48dfb07dc7ad0120ed8151942d511ebca1b71a736b61ac6375e2a51947a8461008c565b61040e6101008801357f0a9c03a1994f221c057f75855cb14a95329dde81e32a7a8660a3828c46e4af7d7f1dc315ae7bd487ac77c690ee6e5d2fe7bbfd5ae36935ffac15114a4f2748dc5b8461008c565b61045f6101208801357f0280bc41f56d2038589161b139f5c3704eeb19e9da2f170a5b4e977678a727697f063f6dc839c18a58049574763b3de59bc2c20609b01907e66dcfe264b091cd858461008c565b6104b06101408801357f1f96dc322de85ba0a31ce878d61f5047eba9ad25489230b888ede7739aeb36f57f0d58db0890c2f6ee0bda8261a76d6ad9da96e539d0df7046cd0799f0176a53fb8461008c565b6105016101608801357f246ef5979ae9aea616e30dbab411c28406510a656ddd2043a5b9211d31edd1647f24d8db926da6b7c4a17804818d83058eb0f5dfa6163c3922aa9a7edeb4b85ede8461008c565b6105526101808801357f1011fe6c75f7c6cf1a8a62ff71387fef8a19e46d0af37193380a7c603f7529497f12b2d70c94e401c6f3822578fb27c67f97bf1827a1b9e0cc1c2fb34a68a6521d8461008c565b6105a36101a08801357f082d86555b48de36b698d5bc0cb44148b3a0eb1d3b992638453070deb120b15d7f26b43cf48f595a8e3e2a3b8515b7df9db6ffebecbc968995b4071e0f2dad32dc8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1f7f9f69ea5e04a56ee102635a0fcdbefd57b4c7f37a1e0d903ba69281a5f0d36102808201527f2a49c1e717e044ad7bc38e0b841e28e08eebe51b906016be33a2ff2d74f10c586102a08201527f027a67b0798b9350cd04c5ce09117b7e660dbe3e1449f667ea13c3c43255f84c6102c08201527f19725ce00771a3c317cb70a3c5856f91c6ac2313426f5863fcd93969d2384de06102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108985f84013561005a565b6108a5602084013561005a565b6108b2604084013561005a565b6108bf606084013561005a565b6108cc608084013561005a565b6108d960a084013561005a565b6108e660c084013561005a565b6108f360e084013561005a565b61090161010084013561005a565b61090f61012084013561005a565b61091d61014084013561005a565b61092b61016084013561005a565b61093961018084013561005a565b6109476101a084013561005a565b610954818486888a6100f2565b9050805f5260205ff35b806040810183101561096e575f5ffd5b92915050565b5f5f5f5f6102c08587031215610988575f5ffd5b610992868661095e565b935060c08501868111156109a4575f5ffd5b6040860193506109b4878261095e565b925050856102c0860111156109c7575f5ffd5b5091949093509091610100019056fea2646970667358221220c5df5a746d614b72f69595bc69601e5559fe5a1a70d66d8b1723b65d65e2b55c64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610974565b610054565b604051901515815260200160405180910390f35b5f610881565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7e10acd6d4ce082a72b623deeac4b4c1c526b8ab76ab54f82d13b63a6f23e2cd85527f282cd953fc7bc024a80710dd645d4cd8e4ef6d10eb7403a76618f96eddb5336e60208601525f608086018661018d87357f21626e5f52776516ac007ae23e14ca016f4e7623b79f63f4ab59482e4872c52b7f2c8f6445390acb60223f07dcf516fee816534c9940dc8d59595786b35106f0f38461008c565b6101dd60208801357f20d91723fc6a5cff2a4d8bd53db8c7647c86b9245b27d7042634dd317becf0797f1693b6ee023f9ef0c9e7cb1d290717e3df5f6d2154ba30f3a6a833f3171c2ee08461008c565b61022d60408801357f1a9347082efac79b5d64033c95c7f2190984cd2a19884b4ad26162ea47e0ea3b7f27173150520b68cc7844935166da0f68924aeccc8a30ae9ca0768eb597cf2a638461008c565b61027d60608801357f207839c9f296371e642b17ab83a64fca9b9044d10b0f6a5319ae0e2ee2a76c0c7f235a1223ea30a75c93efd51c3abd465c611878ebc52d9830e61978f914d7c8908461008c565b6102cd60808801357f0cefdb3db08f930f2ed5534a797dc304a1189c61a2835aabb6c5831f0ca838f37f15bf6ee50fbb6b6a07695b99fa739330553161a7de0b0380556b61ebe950563f8461008c565b61031d60a08801357f0b50c85999c665bad3101fb618ca967aa4860c1c07f4c54bcf692b7b30b2c11a7f2d4f881288f63fa77f63eaad252bd5efbbbda01e21976fb645aaadd286929c3f8461008c565b61036d60c08801357f15b81a815c06b38295623648d75372799d4755f7a0b74f7bd655f5f64715a03e7f09331bcaac14f8bcf495ed09470e01f3c268f1fdb4e019c19c836e2c8310044a8461008c565b6103bd60e08801357f2a2a8f30efa6592960fa69f190f96c5f0b432948973a9c53269de3e6b8abebb57f297cd48dfb07dc7ad0120ed8151942d511ebca1b71a736b61ac6375e2a51947a8461008c565b61040e6101008801357f0a9c03a1994f221c057f75855cb14a95329dde81e32a7a8660a3828c46e4af7d7f1dc315ae7bd487ac77c690ee6e5d2fe7bbfd5ae36935ffac15114a4f2748dc5b8461008c565b61045f6101208801357f0280bc41f56d2038589161b139f5c3704eeb19e9da2f170a5b4e977678a727697f063f6dc839c18a58049574763b3de59bc2c20609b01907e66dcfe264b091cd858461008c565b6104b06101408801357f1f96dc322de85ba0a31ce878d61f5047eba9ad25489230b888ede7739aeb36f57f0d58db0890c2f6ee0bda8261a76d6ad9da96e539d0df7046cd0799f0176a53fb8461008c565b6105016101608801357f246ef5979ae9aea616e30dbab411c28406510a656ddd2043a5b9211d31edd1647f24d8db926da6b7c4a17804818d83058eb0f5dfa6163c3922aa9a7edeb4b85ede8461008c565b6105526101808801357f1011fe6c75f7c6cf1a8a62ff71387fef8a19e46d0af37193380a7c603f7529497f12b2d70c94e401c6f3822578fb27c67f97bf1827a1b9e0cc1c2fb34a68a6521d8461008c565b6105a36101a08801357f082d86555b48de36b698d5bc0cb44148b3a0eb1d3b992638453070deb120b15d7f26b43cf48f595a8e3e2a3b8515b7df9db6ffebecbc968995b4071e0f2dad32dc8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1f7f9f69ea5e04a56ee102635a0fcdbefd57b4c7f37a1e0d903ba69281a5f0d36102808201527f2a49c1e717e044ad7bc38e0b841e28e08eebe51b906016be33a2ff2d74f10c586102a08201527f027a67b0798b9350cd04c5ce09117b7e660dbe3e1449f667ea13c3c43255f84c6102c08201527f19725ce00771a3c317cb70a3c5856f91c6ac2313426f5863fcd93969d2384de06102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108985f84013561005a565b6108a5602084013561005a565b6108b2604084013561005a565b6108bf606084013561005a565b6108cc608084013561005a565b6108d960a084013561005a565b6108e660c084013561005a565b6108f360e084013561005a565b61090161010084013561005a565b61090f61012084013561005a565b61091d61014084013561005a565b61092b61016084013561005a565b61093961018084013561005a565b6109476101a084013561005a565b610954818486888a6100f2565b9050805f5260205ff35b806040810183101561096e575f5ffd5b92915050565b5f5f5f5f6102c08587031215610988575f5ffd5b610992868661095e565b935060c08501868111156109a4575f5ffd5b6040860193506109b4878261095e565b925050856102c0860111156109c7575f5ffd5b5091949093509091610100019056fea2646970667358221220c5df5a746d614b72f69595bc69601e5559fe5a1a70d66d8b1723b65d65e2b55c64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol",
- "buildInfoId": "solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json
deleted file mode 100644
index 108efa0..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json
+++ /dev/null
@@ -1,637 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV1",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c8a1428597d493cbe694c55d3c3140f6d4feec8584d111946bcfbdce984afdd264736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c8a1428597d493cbe694c55d3c3140f6d4feec8584d111946bcfbdce984afdd264736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1487
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1238
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4794
- },
- {
- "length": 32,
- "start": 4835
- },
- {
- "length": 32,
- "start": 5159
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "buildInfoId": "solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json
deleted file mode 100644
index 108efa0..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json
+++ /dev/null
@@ -1,637 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV1",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c8a1428597d493cbe694c55d3c3140f6d4feec8584d111946bcfbdce984afdd264736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c8a1428597d493cbe694c55d3c3140f6d4feec8584d111946bcfbdce984afdd264736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1487
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1238
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4794
- },
- {
- "length": 32,
- "start": 4835
- },
- {
- "length": 32,
- "start": 5159
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "buildInfoId": "solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json
deleted file mode 100644
index c563db4..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json
+++ /dev/null
@@ -1,637 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV2",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220203f460927dd492ae23c6a846bacc1b688b31d219b7fe1d56291d876ca96db2b64736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220203f460927dd492ae23c6a846bacc1b688b31d219b7fe1d56291d876ca96db2b64736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1487
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1238
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4796
- },
- {
- "length": 32,
- "start": 4837
- },
- {
- "length": 32,
- "start": 5161
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "buildInfoId": "solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json
deleted file mode 100644
index c563db4..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json
+++ /dev/null
@@ -1,637 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV2",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220203f460927dd492ae23c6a846bacc1b688b31d219b7fe1d56291d876ca96db2b64736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220203f460927dd492ae23c6a846bacc1b688b31d219b7fe1d56291d876ca96db2b64736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1487
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1238
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4796
- },
- {
- "length": 32,
- "start": 4837
- },
- {
- "length": 32,
- "start": 5161
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "buildInfoId": "solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json
deleted file mode 100644
index 5d0a1f2..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json
+++ /dev/null
@@ -1,691 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV3",
- "sourceName": "contracts/aggregator-alpha/CurvyAggreagtorAlphaV3.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f0441967b61bb7c9eaf6fe1a9ae8c5a96daae9d27479e149eb70a7db8ab360764736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f0441967b61bb7c9eaf6fe1a9ae8c5a96daae9d27479e149eb70a7db8ab360764736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1517
- },
- {
- "length": 20,
- "start": 3824
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1268
- },
- {
- "length": 20,
- "start": 3575
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5556
- },
- {
- "length": 32,
- "start": 5597
- },
- {
- "length": 32,
- "start": 5921
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggreagtorAlphaV3.sol",
- "buildInfoId": "solc-0_8_28-7338cabb151a669954fee94ce75c2a9f3b86c1ff"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json
deleted file mode 100644
index 5d0a1f2..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json
+++ /dev/null
@@ -1,691 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV3",
- "sourceName": "contracts/aggregator-alpha/CurvyAggreagtorAlphaV3.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f0441967b61bb7c9eaf6fe1a9ae8c5a96daae9d27479e149eb70a7db8ab360764736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f0441967b61bb7c9eaf6fe1a9ae8c5a96daae9d27479e149eb70a7db8ab360764736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1517
- },
- {
- "length": 20,
- "start": 3824
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1268
- },
- {
- "length": 20,
- "start": 3575
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5556
- },
- {
- "length": 32,
- "start": 5597
- },
- {
- "length": 32,
- "start": 5921
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggreagtorAlphaV3.sol",
- "buildInfoId": "solc-0_8_28-7338cabb151a669954fee94ce75c2a9f3b86c1ff"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.json
deleted file mode 100644
index 0355bda..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.json
+++ /dev/null
@@ -1,704 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV4",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516124506100f95f395f818161168a015281816116b301526117f701526124505ff3fe608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1574
- },
- {
- "length": 20,
- "start": 4081
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1325
- },
- {
- "length": 20,
- "start": 3832
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5770
- },
- {
- "length": 32,
- "start": 5811
- },
- {
- "length": 32,
- "start": 6135
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol",
- "buildInfoId": "solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.json
deleted file mode 100644
index e69c420..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.json
+++ /dev/null
@@ -1,668 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV5",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNoteTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNullifierTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidNotesRoot",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidWithdrawProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NoteNotScheduledForDeposit",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "PortalNotRegistered",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "publicInputs",
- "type": "uint256[9]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVaultV2",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifiersTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifierV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d506100f95f395f8181610f9f01528181610fc8015261110c0152611d505ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3290
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3041
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 3999
- },
- {
- "length": 32,
- "start": 4040
- },
- {
- "length": 32,
- "start": 4364
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol",
- "buildInfoId": "solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6.json
deleted file mode 100644
index 18895d9..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6.json
+++ /dev/null
@@ -1,668 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV6",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNoteTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNullifierTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidNotesRoot",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidWithdrawProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NoteNotScheduledForDeposit",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "PortalNotRegistered",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "publicInputs",
- "type": "uint256[9]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVaultV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifiersTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifierV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611e4b6100f95f395f81816110500152818161107901526111bd0152611e4b5ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3406
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3157
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4176
- },
- {
- "length": 32,
- "start": 4217
- },
- {
- "length": 32,
- "start": 4541
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol",
- "buildInfoId": "solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2.json
deleted file mode 100644
index 74a22ca..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyInsertionVerifierAlpha_2_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "_pubSignals",
- "type": "uint256[4]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506106648061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d7565b610054565b604051901515815260200160405180910390f35b5f61055c565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0f3cc497f7f2ad2db9f9a01e1d1e237e7bd547ee48d3698641bae08ce37c187485527f2a2f300a2bc9b5576e8d348d9542dedfce1dd7566c9f7ad0c7936e9508f2d13f60208601525f608086018661018e87357f152cd78e51c23961af90e069fcceb20b0358a4c13f4d05ad78f5554803410ec47f068d0161c738b8256d8f80c113a6f2adc60bf92724e5ba844434551f353109bb8461008c565b6101de60208801357f28aeb7fafb1d5864b489fac2ac75795429a84564ed301367b95bdbbda22e41cc7f01fb82a3a457b9782065bddb3961e014b8602fe337a83a253a4edbe7f9eca5de8461008c565b61022e60408801357f10e505cabab95d2954811e50e0c907e6e27d3ea37df4576cb85d2b024b758e5e7f132ffdaaa0e5fbd39240ae81be15c78f27d1a5e9f0b046bc50a19ebd0e1f50be8461008c565b61027e60608801357f061f18bbab38fe7f8eca85f2017b25f057fb908ca68d0965746884ca8b0b2e027f0323511d8b4f23d71a970779314d464e5993156eaed0970a246cd2a43da830c88461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f2ce5cf088183ccc73bfeb1244cdee7ae92ceb0e007194b0bf6c6e9819a863ca960c08201527f0b549a9abb46bc0c3ed48341aa21baa4532bca1fb1ff7a8ef409d3384eb73d3660e08201527f270e5ddc8a3d6e364fae6b353c6deedc579e522582d3d1d60036e9c43428bb8e6101008201527f2d9ef7723573eb05565ba62424d4b2f2d5a0e68d542f8c45daadb2f10a5cde376101208201527f1f542545a1550702631817615d0eac929e73ccc384d92ac156c7d3577e01d5226101408201527f08cd2dbefe01d914cd9826b6a1309de1d3c645a028b69cc3c690a05c183a9fa36101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f126779f2434a76e4e37da855f43a1df5648908e4e91eebf1e086544970eed7b86102808201527f12624c6dbae3875cc0583ab185cb81fc69d606519eef4d6140b7ac67aa6e26e76102a08201527f116d7e6cfc0480d16acdcebb03bef4a46abe3cff28a3aa60d1bf691b43679d866102c08201527f1bbda14ad6f8f4d5d33363f1d50fd72bf4b3b25d615b896c9e050098f5016f7d6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105735f84013561005a565b610580602084013561005a565b61058d604084013561005a565b61059a606084013561005a565b6105a7818486888a6100f2565b9050805f5260205ff35b80604081018310156105c1575f5ffd5b92915050565b80608081018310156105c1575f5ffd5b5f5f5f5f61018085870312156105eb575f5ffd5b6105f586866105b1565b935061060486604087016105c7565b92506106138660c087016105b1565b91506106238661010087016105c7565b90509295919450925056fea26469706673582212206f782de436746e389d2f3f8eeac94b985e369b9a2c08f0f7a2167fc9a1fa233d64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d7565b610054565b604051901515815260200160405180910390f35b5f61055c565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0f3cc497f7f2ad2db9f9a01e1d1e237e7bd547ee48d3698641bae08ce37c187485527f2a2f300a2bc9b5576e8d348d9542dedfce1dd7566c9f7ad0c7936e9508f2d13f60208601525f608086018661018e87357f152cd78e51c23961af90e069fcceb20b0358a4c13f4d05ad78f5554803410ec47f068d0161c738b8256d8f80c113a6f2adc60bf92724e5ba844434551f353109bb8461008c565b6101de60208801357f28aeb7fafb1d5864b489fac2ac75795429a84564ed301367b95bdbbda22e41cc7f01fb82a3a457b9782065bddb3961e014b8602fe337a83a253a4edbe7f9eca5de8461008c565b61022e60408801357f10e505cabab95d2954811e50e0c907e6e27d3ea37df4576cb85d2b024b758e5e7f132ffdaaa0e5fbd39240ae81be15c78f27d1a5e9f0b046bc50a19ebd0e1f50be8461008c565b61027e60608801357f061f18bbab38fe7f8eca85f2017b25f057fb908ca68d0965746884ca8b0b2e027f0323511d8b4f23d71a970779314d464e5993156eaed0970a246cd2a43da830c88461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f2ce5cf088183ccc73bfeb1244cdee7ae92ceb0e007194b0bf6c6e9819a863ca960c08201527f0b549a9abb46bc0c3ed48341aa21baa4532bca1fb1ff7a8ef409d3384eb73d3660e08201527f270e5ddc8a3d6e364fae6b353c6deedc579e522582d3d1d60036e9c43428bb8e6101008201527f2d9ef7723573eb05565ba62424d4b2f2d5a0e68d542f8c45daadb2f10a5cde376101208201527f1f542545a1550702631817615d0eac929e73ccc384d92ac156c7d3577e01d5226101408201527f08cd2dbefe01d914cd9826b6a1309de1d3c645a028b69cc3c690a05c183a9fa36101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f126779f2434a76e4e37da855f43a1df5648908e4e91eebf1e086544970eed7b86102808201527f12624c6dbae3875cc0583ab185cb81fc69d606519eef4d6140b7ac67aa6e26e76102a08201527f116d7e6cfc0480d16acdcebb03bef4a46abe3cff28a3aa60d1bf691b43679d866102c08201527f1bbda14ad6f8f4d5d33363f1d50fd72bf4b3b25d615b896c9e050098f5016f7d6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105735f84013561005a565b610580602084013561005a565b61058d604084013561005a565b61059a606084013561005a565b6105a7818486888a6100f2565b9050805f5260205ff35b80604081018310156105c1575f5ffd5b92915050565b80608081018310156105c1575f5ffd5b5f5f5f5f61018085870312156105eb575f5ffd5b6105f586866105b1565b935061060486604087016105c7565b92506106138660c087016105b1565b91506106238661010087016105c7565b90509295919450925056fea26469706673582212206f782de436746e389d2f3f8eeac94b985e369b9a2c08f0f7a2167fc9a1fa233d64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol",
- "buildInfoId": "solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2.json
deleted file mode 100644
index db29871..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyWithdrawVerifierAlpha_2_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "_pubSignals",
- "type": "uint256[10]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506108918061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b3660046107f9565b610054565b604051901515815260200160405180910390f35b5f61073e565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f1a75f14b8b1faa4b851f07b25985339af1f9563cb229396803fd379fead2bd7385527f0b5b03df8219c60d5be03ad52394f3d6330cf3e7cea9e656bc22982dd15cbadc60208601525f608086018661018e87357f05f00c0d109f87a8cf18b9d3052caae6027871b0d6fea2f54ca225891e16b0607f0d35ddf8253fb232d095057744ccb6f9d5887bee97ea61f885d511934169bcf08461008c565b6101de60208801357f2a60d3a69ccee567e2b57a0a42bcf19ba0d2335ceb81a2dcb71439314fea13857f2f70a47844f43803cbb4ce9a69cd5b3db4647da90f325d2ef456abea72d0bfe08461008c565b61022e60408801357f0f18cbcd1cbf7d154a35393c17382058e4b30517ab8be123af7d1951c671d4697f26cfb6e0961b50d6d1f534baef948730bec2a603ebf189eaaf72036e2a4d2fe68461008c565b61027e60608801357f033ae488254843311cd5bb9676251b2c80852d467355d37f443e17d049a503267f27e5a68de42fcbcbadd940c39e2013830c75dbb9ad6714cb768ba7d14af9421a8461008c565b6102ce60808801357f28120958d688c8a0d58372b242df5ec1c75aa124ab6f19c90c4b76b81057fd297f11c4be0f98ac33b680d4607a898dc72cdfc6d9946943b3e9f0080fe825263a5d8461008c565b61031e60a08801357f037d488c8ba35a919f4cfd44b1a9be07a0ca1ea689695c6b238ad364c47bbf7a7f2dd63748d624fd0124f265891b52eeb7d5565727b674658be4378d6e5b46be308461008c565b61036e60c08801357f2297bda45459480a6a488bd3386537b38ae11ffecb6beaec43e291d33dd2f8947f1d7c255c5e9cfa6d8457dc20e4af90332c6550fa6bea6ac80b2fcae91e31fb658461008c565b6103be60e08801357f1c564b05c0c5fc1db338de776a71a9b6408e0f1062ee5eec1ead8fe1fb68f0317f085c76b320e78e8fc1c30cd9a86ee083c737af478c344a985ff23109398c4e768461008c565b61040f6101008801357f0f6d3858a35815b73d414424416d4e35babb3e0141641fb6f11c5899b96ff6ce7f0678620b35e9ade6b5807cf7ccd5210ae099894132f0bff6345ba129e944dd3d8461008c565b6104606101208801357f2ef17308df02f12bcd04a63c4f9642e6a21bbfecd79bc266d9278cba32c0b7f47f1e5b526c2f7dbd765611c3117d2aa8924597b68d5b8d3654c375174d6affa8998461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f044bacd3d9b251fa2cdcb89c1e71c78d2d0ff824d43403d616a47c804c0469696102808201527f297536676d7cec34d41955f24cc5034a5b79d92b20c48c6d8073bc32016612396102a08201527f0281d22ffce2cf0ca8b4109517cf30ceed20be4d2ed307fda036ad8ef5e12df26102c08201527f1ffe72c016746c242459c1973b77d50d6415bb22ce31c61ee504c42c65b3d33c6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107555f84013561005a565b610762602084013561005a565b61076f604084013561005a565b61077c606084013561005a565b610789608084013561005a565b61079660a084013561005a565b6107a360c084013561005a565b6107b060e084013561005a565b6107be61010084013561005a565b6107cc61012084013561005a565b6107d9818486888a6100f2565b9050805f5260205ff35b80604081018310156107f3575f5ffd5b92915050565b5f5f5f5f610240858703121561080d575f5ffd5b61081786866107e3565b935060c0850186811115610829575f5ffd5b60408601935061083987826107e3565b925050856102408601111561084c575f5ffd5b5091949093509091610100019056fea2646970667358221220703faca2770b9c9f7e9a23c6d18d7c741c60c3262a4a3449160cfe04d5d9618164736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b3660046107f9565b610054565b604051901515815260200160405180910390f35b5f61073e565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f1a75f14b8b1faa4b851f07b25985339af1f9563cb229396803fd379fead2bd7385527f0b5b03df8219c60d5be03ad52394f3d6330cf3e7cea9e656bc22982dd15cbadc60208601525f608086018661018e87357f05f00c0d109f87a8cf18b9d3052caae6027871b0d6fea2f54ca225891e16b0607f0d35ddf8253fb232d095057744ccb6f9d5887bee97ea61f885d511934169bcf08461008c565b6101de60208801357f2a60d3a69ccee567e2b57a0a42bcf19ba0d2335ceb81a2dcb71439314fea13857f2f70a47844f43803cbb4ce9a69cd5b3db4647da90f325d2ef456abea72d0bfe08461008c565b61022e60408801357f0f18cbcd1cbf7d154a35393c17382058e4b30517ab8be123af7d1951c671d4697f26cfb6e0961b50d6d1f534baef948730bec2a603ebf189eaaf72036e2a4d2fe68461008c565b61027e60608801357f033ae488254843311cd5bb9676251b2c80852d467355d37f443e17d049a503267f27e5a68de42fcbcbadd940c39e2013830c75dbb9ad6714cb768ba7d14af9421a8461008c565b6102ce60808801357f28120958d688c8a0d58372b242df5ec1c75aa124ab6f19c90c4b76b81057fd297f11c4be0f98ac33b680d4607a898dc72cdfc6d9946943b3e9f0080fe825263a5d8461008c565b61031e60a08801357f037d488c8ba35a919f4cfd44b1a9be07a0ca1ea689695c6b238ad364c47bbf7a7f2dd63748d624fd0124f265891b52eeb7d5565727b674658be4378d6e5b46be308461008c565b61036e60c08801357f2297bda45459480a6a488bd3386537b38ae11ffecb6beaec43e291d33dd2f8947f1d7c255c5e9cfa6d8457dc20e4af90332c6550fa6bea6ac80b2fcae91e31fb658461008c565b6103be60e08801357f1c564b05c0c5fc1db338de776a71a9b6408e0f1062ee5eec1ead8fe1fb68f0317f085c76b320e78e8fc1c30cd9a86ee083c737af478c344a985ff23109398c4e768461008c565b61040f6101008801357f0f6d3858a35815b73d414424416d4e35babb3e0141641fb6f11c5899b96ff6ce7f0678620b35e9ade6b5807cf7ccd5210ae099894132f0bff6345ba129e944dd3d8461008c565b6104606101208801357f2ef17308df02f12bcd04a63c4f9642e6a21bbfecd79bc266d9278cba32c0b7f47f1e5b526c2f7dbd765611c3117d2aa8924597b68d5b8d3654c375174d6affa8998461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f044bacd3d9b251fa2cdcb89c1e71c78d2d0ff824d43403d616a47c804c0469696102808201527f297536676d7cec34d41955f24cc5034a5b79d92b20c48c6d8073bc32016612396102a08201527f0281d22ffce2cf0ca8b4109517cf30ceed20be4d2ed307fda036ad8ef5e12df26102c08201527f1ffe72c016746c242459c1973b77d50d6415bb22ce31c61ee504c42c65b3d33c6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107555f84013561005a565b610762602084013561005a565b61076f604084013561005a565b61077c606084013561005a565b610789608084013561005a565b61079660a084013561005a565b6107a360c084013561005a565b6107b060e084013561005a565b6107be61010084013561005a565b6107cc61012084013561005a565b6107d9818486888a6100f2565b9050805f5260205ff35b80604081018310156107f3575f5ffd5b92915050565b5f5f5f5f610240858703121561080d575f5ffd5b61081786866107e3565b935060c0850186811115610829575f5ffd5b60408601935061083987826107e3565b925050856102408601111561084c575f5ffd5b5091949093509091610100019056fea2646970667358221220703faca2770b9c9f7e9a23c6d18d7c741c60c3262a4a3449160cfe04d5d9618164736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol",
- "buildInfoId": "solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#ERC1967Proxy.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#ERC1967Proxy.json
deleted file mode 100644
index ad99af7..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#ERC1967Proxy.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ERC1967Proxy",
- "sourceName": "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "_data",
- "type": "bytes"
- }
- ],
- "stateMutability": "payable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "stateMutability": "payable",
- "type": "fallback"
- }
- ],
- "bytecode": "0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033",
- "deployedBytecode": "0x6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Proxy.sol",
- "buildInfoId": "solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#NewAggregationVerifier_v2.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#NewAggregationVerifier_v2.json
deleted file mode 100644
index ef94579..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#NewAggregationVerifier_v2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregationVerifierAlpha_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "input",
- "type": "uint256[14]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "r",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506116ed8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004611553565b610054565b604051901515815260200160405180910390f35b5f61005d61137a565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600e8082526101e082019093525f92909182016101c0803683370190505090505f5b600e811015610133578481600e811061010957610109611633565b602002015182828151811061012057610120611633565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061165b565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611633565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061165b565b8151811061029557610295611633565b60200260200101518a85815181106102af576102af611633565b6020026020010151610ce7565b610d7b565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611633565b6020026020010151610d7b565b9050610327610304865f0151610e12565b8660200151845f015185602001518587604001518b604001518960600151610eae565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6113c8565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f040960ae7a0345676e57477fe153547dac4996ccff6cd8bdbfab68194176ebfe8185019081527f09f390a54aa2c22bc7ab1273ccbfba2d124f277c4b7858b7e6b2b215264b2524828401528152835180850185527f069489b61aadf82d080f5b031e40c78265091ce5230bde1c6b129bd6ee8f929a81527f11d4a92da28cae8798f897d046ec7d2b818431d18ca7d7b30c720a5a4320777f8185015281840152908401528151600f8082526102008201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f18c30badf97bca79e0290e1e2709c180d796014d89846a50fdf83edb9a5f126081527ec6ff8cc32c2c88d6a18abf5d8474acb27c8174ed0969d8641896bb65bc14c46020820152905180515f9061065857610658611633565b602002602001018190525060405180604001604052807f26be249a1394d006fdb707e50aafdbfae0abcdd8424b6e9ecfaad5546f97f78881526020017f1d61635959d20e223664b32f4564dc44e3b7b360b37d388f9f7f51585800155581525081608001516001815181106106cf576106cf611633565b602002602001018190525060405180604001604052807f2506541fa33baf46747051d8ebe51a91b929a728a707a75f0cdeafd7f739fd3181526020017f0d08b60cf224252ab06e146a2272e4c007567054b6e83778161343ae31deb5ac815250816080015160028151811061074657610746611633565b602002602001018190525060405180604001604052807f1f3bdf1e50dc24be846513f7f74068a55438ca5acb4f64c3d3921bde7468a2d681526020017f2e5e1a4837097500979c5d1cf152f067e70c896ac860ba29651b02f6e79edae281525081608001516003815181106107bd576107bd611633565b602002602001018190525060405180604001604052807f203c139f09bbb742c8d4c51234494498c24d56884f24f6545086e2238e763a5881526020017f028e6932f3bc2561b30d7fe76c6de6bebf4c8ea0621bbb6ad41882df5eb7264b815250816080015160048151811061083457610834611633565b602002602001018190525060405180604001604052807f204223f3717fb8cd7ebd1a98a872f75b82e0ef94fa940335abd65568db85649f81526020017f0d2ccb01844a345701f9b1f27c633fdb9ad135aeaa0fae0fd831d08edcdc323b81525081608001516005815181106108ab576108ab611633565b602002602001018190525060405180604001604052807f2ca96167b9316ee5855a83bb4a92112653444fffa0bf5725ae9b090bb288152e81526020017f1d6d5440897b2ec044f2aaecdab5e507c4d69f8c7ca8813db13ce819e79129d4815250816080015160068151811061092257610922611633565b602002602001018190525060405180604001604052807f1cba19de78b5c7c47d2407121e7e86d0d70c63aaee0ce04ca5fecaee97ab75d481526020017f059319895b38a350849d8c25b406b951743ab1c6237a63b648f07c5f3e7e19dd815250816080015160078151811061099957610999611633565b602002602001018190525060405180604001604052807f016cc32364e0c0823d4b34edc52852c6665a421cd8867fbd190170fab867bea681526020017f0734df7485b401e47cbd1c3ab7024be0250f9fa13ab7ec9b3b40d83178eb2b468152508160800151600881518110610a1057610a10611633565b602002602001018190525060405180604001604052807f29286c62d871cffa08e84997e6180455e1edca20d681ef29656ef4d6d45b001781526020017f2e71a4c29421434de9ed5e921a2b6a23816a740d99b6f135fd01cad64bd288ac8152508160800151600981518110610a8757610a87611633565b602002602001018190525060405180604001604052807f2492df9b4d0ad2639c6f34096692d29d2f9ed9ee57d9e9c3ba303e9dbcdae43081526020017f2e497c91b7e5e3a2a9b9f7fe9cdfe78c9e72037bb7552e29d54813a4566c6fbd8152508160800151600a81518110610afe57610afe611633565b602002602001018190525060405180604001604052807f1476e8d331c072345e564de7e0c1b051b0b0b18531bdd1e7441e0257090a0c1781526020017f110b09db70453d4ec6bed001ab95fcb5ce4b8e21a0c4f4c26b91dc8059aa1dce8152508160800151600b81518110610b7557610b75611633565b602002602001018190525060405180604001604052807e6e2fbcfe989d63aea84d90addc8537a921948b213ef36ec5fa0cbb5b68670381526020017f06f6a502b00b2945dd9841eca5ab5f69654f4992777102c600ca5402c35d6c288152508160800151600c81518110610beb57610beb611633565b602002602001018190525060405180604001604052807f01a330e578c215a80aaf5fc3208956611670affa4560f2dd1f7892698b50c35881526020017f0a9ccad9b2edacd7bbb8a5c460a47d7a114166eace7c8cfe32c7a4243c30e0f28152508160800151600d81518110610c6257610c62611633565b602002602001018190525060405180604001604052807f0aa436490c317254e1444ad76cac634937ea2fa0d0730983455fed54f43c9ff981526020017f12228d15b01f07e1d77acd2c2c609c7e4c9a70503e071ec4963191e6d4d13d598152508160800151600e81518110610cd957610cd9611633565b602002602001018190525090565b604080518082019091525f8082526020820152610d02611418565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610d3057fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610d96611436565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610dcf57fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610e5857506020830151155b15610e77575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610e9b919061166e565b610ea5908461168d565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610ec857505060408051600480825260a082019092529192505f9190602082015b610f10611454565b815260200190600190039081610f085790505090508a825f81518110610f3857610f38611633565b60200260200101819052508882600181518110610f5757610f57611633565b60200260200101819052508682600281518110610f7657610f76611633565b60200260200101819052508482600381518110610f9557610f95611633565b602002602001018190525089815f81518110610fb357610fb3611633565b60200260200101819052508781600181518110610fd257610fd2611633565b60200260200101819052508581600281518110610ff157610ff1611633565b6020026020010181905250838160038151811061101057611010611633565b60200260200101819052506110258282611034565b9b9a5050505050505050505050565b5f815183511461107f5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f61108d8260066116a0565b90505f8167ffffffffffffffff8111156110a9576110a96114b0565b6040519080825280602002602001820160405280156110d2578160200160208202803683370190505b5090505f5b838110156112ff578681815181106110f1576110f1611633565b60200260200101515f01518282600661110a91906116a0565b611114905f61165b565b8151811061112457611124611633565b60200260200101818152505086818151811061114257611142611633565b6020026020010151602001518282600661115c91906116a0565b61116790600161165b565b8151811061117757611177611633565b60200260200101818152505085818151811061119557611195611633565b60209081029190910101515151826111ae8360066116a0565b6111b990600261165b565b815181106111c9576111c9611633565b6020026020010181815250508581815181106111e7576111e7611633565b602090810291909101810151510151826112028360066116a0565b61120d90600361165b565b8151811061121d5761121d611633565b60200260200101818152505085818151811061123b5761123b611633565b6020026020010151602001515f6002811061125857611258611633565b6020020151826112698360066116a0565b61127490600461165b565b8151811061128457611284611633565b6020026020010181815250508581815181106112a2576112a2611633565b6020026020010151602001516001600281106112c0576112c0611633565b6020020151826112d18360066116a0565b6112dc90600561165b565b815181106112ec576112ec611633565b60209081029190910101526001016110d7565b50611308611474565b5f602082602086026020860160086107d05a03fa9050808061132657fe5b508061136c5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016113a3611454565b81526020016113c360405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c08301919091528152602081016113f1611454565b81526020016113fe611454565b815260200161140b611454565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280611467611492565b81526020016113c3611492565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156114f957634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611510575f5ffd5b5f61151b60406114c4565b905080604084018581111561152e575f5ffd5b845b81811015611548578035835260209283019201611530565b509195945050505050565b5f5f5f5f6102c08587031215611567575f5ffd5b6115718686611501565b935085605f860112611581575f5ffd5b604061158c816114c4565b8060c088018981111561159d575f5ffd5b604089015b818110156115c3576115b48b82611501565b845260209093019284016115a2565b508196506115d18a82611501565b95505050505061010085015f87601f8301126115eb575f5ffd5b5f6101c06115f8816114c4565b91508301818a821115611609575f5ffd5b5b8185101561162257843581526020948501940161160a565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e611647565b5f8261168857634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e611647565b808202811582820484141761033e5761033e61164756fea26469706673582212208ecec3b58f8c69288c925191a76554c85a5d679e9a34b2047785e1439c8c3d1d64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004611553565b610054565b604051901515815260200160405180910390f35b5f61005d61137a565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600e8082526101e082019093525f92909182016101c0803683370190505090505f5b600e811015610133578481600e811061010957610109611633565b602002015182828151811061012057610120611633565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061165b565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611633565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061165b565b8151811061029557610295611633565b60200260200101518a85815181106102af576102af611633565b6020026020010151610ce7565b610d7b565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611633565b6020026020010151610d7b565b9050610327610304865f0151610e12565b8660200151845f015185602001518587604001518b604001518960600151610eae565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6113c8565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f040960ae7a0345676e57477fe153547dac4996ccff6cd8bdbfab68194176ebfe8185019081527f09f390a54aa2c22bc7ab1273ccbfba2d124f277c4b7858b7e6b2b215264b2524828401528152835180850185527f069489b61aadf82d080f5b031e40c78265091ce5230bde1c6b129bd6ee8f929a81527f11d4a92da28cae8798f897d046ec7d2b818431d18ca7d7b30c720a5a4320777f8185015281840152908401528151600f8082526102008201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f18c30badf97bca79e0290e1e2709c180d796014d89846a50fdf83edb9a5f126081527ec6ff8cc32c2c88d6a18abf5d8474acb27c8174ed0969d8641896bb65bc14c46020820152905180515f9061065857610658611633565b602002602001018190525060405180604001604052807f26be249a1394d006fdb707e50aafdbfae0abcdd8424b6e9ecfaad5546f97f78881526020017f1d61635959d20e223664b32f4564dc44e3b7b360b37d388f9f7f51585800155581525081608001516001815181106106cf576106cf611633565b602002602001018190525060405180604001604052807f2506541fa33baf46747051d8ebe51a91b929a728a707a75f0cdeafd7f739fd3181526020017f0d08b60cf224252ab06e146a2272e4c007567054b6e83778161343ae31deb5ac815250816080015160028151811061074657610746611633565b602002602001018190525060405180604001604052807f1f3bdf1e50dc24be846513f7f74068a55438ca5acb4f64c3d3921bde7468a2d681526020017f2e5e1a4837097500979c5d1cf152f067e70c896ac860ba29651b02f6e79edae281525081608001516003815181106107bd576107bd611633565b602002602001018190525060405180604001604052807f203c139f09bbb742c8d4c51234494498c24d56884f24f6545086e2238e763a5881526020017f028e6932f3bc2561b30d7fe76c6de6bebf4c8ea0621bbb6ad41882df5eb7264b815250816080015160048151811061083457610834611633565b602002602001018190525060405180604001604052807f204223f3717fb8cd7ebd1a98a872f75b82e0ef94fa940335abd65568db85649f81526020017f0d2ccb01844a345701f9b1f27c633fdb9ad135aeaa0fae0fd831d08edcdc323b81525081608001516005815181106108ab576108ab611633565b602002602001018190525060405180604001604052807f2ca96167b9316ee5855a83bb4a92112653444fffa0bf5725ae9b090bb288152e81526020017f1d6d5440897b2ec044f2aaecdab5e507c4d69f8c7ca8813db13ce819e79129d4815250816080015160068151811061092257610922611633565b602002602001018190525060405180604001604052807f1cba19de78b5c7c47d2407121e7e86d0d70c63aaee0ce04ca5fecaee97ab75d481526020017f059319895b38a350849d8c25b406b951743ab1c6237a63b648f07c5f3e7e19dd815250816080015160078151811061099957610999611633565b602002602001018190525060405180604001604052807f016cc32364e0c0823d4b34edc52852c6665a421cd8867fbd190170fab867bea681526020017f0734df7485b401e47cbd1c3ab7024be0250f9fa13ab7ec9b3b40d83178eb2b468152508160800151600881518110610a1057610a10611633565b602002602001018190525060405180604001604052807f29286c62d871cffa08e84997e6180455e1edca20d681ef29656ef4d6d45b001781526020017f2e71a4c29421434de9ed5e921a2b6a23816a740d99b6f135fd01cad64bd288ac8152508160800151600981518110610a8757610a87611633565b602002602001018190525060405180604001604052807f2492df9b4d0ad2639c6f34096692d29d2f9ed9ee57d9e9c3ba303e9dbcdae43081526020017f2e497c91b7e5e3a2a9b9f7fe9cdfe78c9e72037bb7552e29d54813a4566c6fbd8152508160800151600a81518110610afe57610afe611633565b602002602001018190525060405180604001604052807f1476e8d331c072345e564de7e0c1b051b0b0b18531bdd1e7441e0257090a0c1781526020017f110b09db70453d4ec6bed001ab95fcb5ce4b8e21a0c4f4c26b91dc8059aa1dce8152508160800151600b81518110610b7557610b75611633565b602002602001018190525060405180604001604052807e6e2fbcfe989d63aea84d90addc8537a921948b213ef36ec5fa0cbb5b68670381526020017f06f6a502b00b2945dd9841eca5ab5f69654f4992777102c600ca5402c35d6c288152508160800151600c81518110610beb57610beb611633565b602002602001018190525060405180604001604052807f01a330e578c215a80aaf5fc3208956611670affa4560f2dd1f7892698b50c35881526020017f0a9ccad9b2edacd7bbb8a5c460a47d7a114166eace7c8cfe32c7a4243c30e0f28152508160800151600d81518110610c6257610c62611633565b602002602001018190525060405180604001604052807f0aa436490c317254e1444ad76cac634937ea2fa0d0730983455fed54f43c9ff981526020017f12228d15b01f07e1d77acd2c2c609c7e4c9a70503e071ec4963191e6d4d13d598152508160800151600e81518110610cd957610cd9611633565b602002602001018190525090565b604080518082019091525f8082526020820152610d02611418565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610d3057fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610d96611436565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610dcf57fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610e5857506020830151155b15610e77575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610e9b919061166e565b610ea5908461168d565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610ec857505060408051600480825260a082019092529192505f9190602082015b610f10611454565b815260200190600190039081610f085790505090508a825f81518110610f3857610f38611633565b60200260200101819052508882600181518110610f5757610f57611633565b60200260200101819052508682600281518110610f7657610f76611633565b60200260200101819052508482600381518110610f9557610f95611633565b602002602001018190525089815f81518110610fb357610fb3611633565b60200260200101819052508781600181518110610fd257610fd2611633565b60200260200101819052508581600281518110610ff157610ff1611633565b6020026020010181905250838160038151811061101057611010611633565b60200260200101819052506110258282611034565b9b9a5050505050505050505050565b5f815183511461107f5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f61108d8260066116a0565b90505f8167ffffffffffffffff8111156110a9576110a96114b0565b6040519080825280602002602001820160405280156110d2578160200160208202803683370190505b5090505f5b838110156112ff578681815181106110f1576110f1611633565b60200260200101515f01518282600661110a91906116a0565b611114905f61165b565b8151811061112457611124611633565b60200260200101818152505086818151811061114257611142611633565b6020026020010151602001518282600661115c91906116a0565b61116790600161165b565b8151811061117757611177611633565b60200260200101818152505085818151811061119557611195611633565b60209081029190910101515151826111ae8360066116a0565b6111b990600261165b565b815181106111c9576111c9611633565b6020026020010181815250508581815181106111e7576111e7611633565b602090810291909101810151510151826112028360066116a0565b61120d90600361165b565b8151811061121d5761121d611633565b60200260200101818152505085818151811061123b5761123b611633565b6020026020010151602001515f6002811061125857611258611633565b6020020151826112698360066116a0565b61127490600461165b565b8151811061128457611284611633565b6020026020010181815250508581815181106112a2576112a2611633565b6020026020010151602001516001600281106112c0576112c0611633565b6020020151826112d18360066116a0565b6112dc90600561165b565b815181106112ec576112ec611633565b60209081029190910101526001016110d7565b50611308611474565b5f602082602086026020860160086107d05a03fa9050808061132657fe5b508061136c5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016113a3611454565b81526020016113c360405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c08301919091528152602081016113f1611454565b81526020016113fe611454565b815260200161140b611454565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280611467611492565b81526020016113c3611492565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156114f957634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611510575f5ffd5b5f61151b60406114c4565b905080604084018581111561152e575f5ffd5b845b81811015611548578035835260209283019201611530565b509195945050505050565b5f5f5f5f6102c08587031215611567575f5ffd5b6115718686611501565b935085605f860112611581575f5ffd5b604061158c816114c4565b8060c088018981111561159d575f5ffd5b604089015b818110156115c3576115b48b82611501565b845260209093019284016115a2565b508196506115d18a82611501565b95505050505061010085015f87601f8301126115eb575f5ffd5b5f6101c06115f8816114c4565b91508301818a821115611609575f5ffd5b5b8185101561162257843581526020948501940161160a565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e611647565b5f8261168857634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e611647565b808202811582820484141761033e5761033e61164756fea26469706673582212208ecec3b58f8c69288c925191a76554c85a5d679e9a34b2047785e1439c8c3d1d64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol",
- "buildInfoId": "solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#NewInsertionVerifier_v2.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#NewInsertionVerifier_v2.json
deleted file mode 100644
index a6fa56e..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#NewInsertionVerifier_v2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyInsertionVerifierAlpha_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "input",
- "type": "uint256[4]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "r",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b5061124e8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046110b1565b610054565b604051901515815260200160405180910390f35b5f61005d610ed8565b60408051808201825287518152602080890151818301529083528151608080820184528851518285019081528951840151606084015282528351808501855289840180515182525184015181850152828401528483019190915282518084018452875181528783015181840152848401528251600480825260a082019094525f939092909190830190803683370190505090505f5b60048110156101375784816004811061010d5761010d611194565b602002015182828151811061012457610124611194565b60209081029190910101526001016100f2565b506101428183610161565b5f0361015357600192505050610159565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018161018c610348565b9050806080015151855160016101a291906111bc565b146101e95760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cf578387828151811061021b5761021b611194565b6020026020010151106102705760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101e0565b6102c5826102c0856080015184600161028991906111bc565b8151811061029957610299611194565b60200260200101518a85815181106102b3576102b3611194565b6020026020010151610845565b6108d9565b91506001016101ff565b506102f78183608001515f815181106102ea576102ea611194565b60200260200101516108d9565b905061032b610308865f0151610970565b8660200151845f015185602001518587604001518b604001518960600151610a0c565b61033b5760019350505050610342565b5f93505050505b92915050565b610350610f26565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f2933c663723e3630bea92f14ce272046739c1de9ac0de5108d9f97504796bcdd8185019081527f2d9d46b72cb758726c5730268fdedefe18f1b55f5b935a82ecf821c05b252da1828401528152835180850185527f0d673c337136dbf082c467ce378ee3bce333a36c5f27cc01edf54179d6e7dc6081527f0c907c5922e46c3cadc99de46a7b8d01770eded5cef85379f58252ab65cb80ad8185015281840152908401528151600580825260c08201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105cb57505060808201908152604080518082019091527f0cdbf7f6fb2cf15ec81a44a104d6490ebeeeea7bf9a0cbf4d695c2a5e7ef7d8481527e5eff6d3e9efe8e7e1fc61c474ed76a4e42f9233e0e5c1054caa772f3b03c396020820152905180515f9061065b5761065b611194565b602002602001018190525060405180604001604052807f24aa7ee61e4ad8e6faf43e12eeb8b33081498ee103385743f2f357bf8b0c6af181526020017f22d171354b9d3a5d983212b596739d62f1cc42aff5df6db8475e4b887902146581525081608001516001815181106106d2576106d2611194565b602002602001018190525060405180604001604052807f3037fd725c311a8a59dc660d0fa266e188928bef08015840cf45d7998b747a1881526020017f20918eb8f6b9ca00d9004f42b7bd61a3703ea034983fa552ba34fcbde0d59bc2815250816080015160028151811061074957610749611194565b602002602001018190525060405180604001604052807f1b5c870d21c274d5bdf96cd309bdbda13661a47c01ce8483bd3682fcc1d58a3081526020017f2f4600674aa2b704715e8f62433edcae3bae85557d27e74af090ebcdbc0b195e81525081608001516003815181106107c0576107c0611194565b602002602001018190525060405180604001604052807f199fcda69c0bfd4d6f2db0f385bd0fcf78f0074be4d5eeb7f75f32963269d8d981526020017f1638a9aa5129a8fa9964966f9545941fbceb843dd14aa0f40531c6197da17578815250816080015160048151811061083757610837611194565b602002602001018190525090565b604080518082019091525f8082526020820152610860610f76565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa9050808061088e57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101e0565b505092915050565b604080518082019091525f80825260208201526108f4610f94565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa9050808061092d57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101e0565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47901580156109b657506020830151155b156109d5575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f015181526020018285602001516109f991906111cf565b610a0390846111ee565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610a2657505060408051600480825260a082019092529192505f9190602082015b610a6e610fb2565b815260200190600190039081610a665790505090508a825f81518110610a9657610a96611194565b60200260200101819052508882600181518110610ab557610ab5611194565b60200260200101819052508682600281518110610ad457610ad4611194565b60200260200101819052508482600381518110610af357610af3611194565b602002602001018190525089815f81518110610b1157610b11611194565b60200260200101819052508781600181518110610b3057610b30611194565b60200260200101819052508581600281518110610b4f57610b4f611194565b60200260200101819052508381600381518110610b6e57610b6e611194565b6020026020010181905250610b838282610b92565b9b9a5050505050505050505050565b5f8151835114610bdd5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101e0565b82515f610beb826006611201565b90505f8167ffffffffffffffff811115610c0757610c0761100e565b604051908082528060200260200182016040528015610c30578160200160208202803683370190505b5090505f5b83811015610e5d57868181518110610c4f57610c4f611194565b60200260200101515f015182826006610c689190611201565b610c72905f6111bc565b81518110610c8257610c82611194565b602002602001018181525050868181518110610ca057610ca0611194565b60200260200101516020015182826006610cba9190611201565b610cc59060016111bc565b81518110610cd557610cd5611194565b602002602001018181525050858181518110610cf357610cf3611194565b6020908102919091010151515182610d0c836006611201565b610d179060026111bc565b81518110610d2757610d27611194565b602002602001018181525050858181518110610d4557610d45611194565b60209081029190910181015151015182610d60836006611201565b610d6b9060036111bc565b81518110610d7b57610d7b611194565b602002602001018181525050858181518110610d9957610d99611194565b6020026020010151602001515f60028110610db657610db6611194565b602002015182610dc7836006611201565b610dd29060046111bc565b81518110610de257610de2611194565b602002602001018181525050858181518110610e0057610e00611194565b602002602001015160200151600160028110610e1e57610e1e611194565b602002015182610e2f836006611201565b610e3a9060056111bc565b81518110610e4a57610e4a611194565b6020908102919091010152600101610c35565b50610e66610fd2565b5f602082602086026020860160086107d05a03fa90508080610e8457fe5b5080610eca5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101e0565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101610f01610fb2565b8152602001610f2160405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101610f4f610fb2565b8152602001610f5c610fb2565b8152602001610f69610fb2565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280610fc5610ff0565b8152602001610f21610ff0565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561105757634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f83011261106e575f5ffd5b5f6110796040611022565b905080604084018581111561108c575f5ffd5b845b818110156110a657803583526020928301920161108e565b509195945050505050565b5f5f5f5f61018085870312156110c5575f5ffd5b6110cf868661105f565b935085605f8601126110df575f5ffd5b60406110ea81611022565b8060c08801898111156110fb575f5ffd5b604089015b81811015611121576111128b8261105f565b84526020909301928401611100565b5081965061112f8a8261105f565b95505050505061010085015f87601f830112611149575f5ffd5b5f6111546080611022565b905080608084018a811115611167575f5ffd5b5b80851015611183578435825260209485019490910190611168565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610342576103426111a8565b5f826111e957634e487b7160e01b5f52601260045260245ffd5b500690565b81810381811115610342576103426111a8565b8082028115828204841417610342576103426111a856fea264697066735822122052b8c89d46e40ccc60f13c59a59ab39c0a5084d1333d84af2fe13436741f62ef64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046110b1565b610054565b604051901515815260200160405180910390f35b5f61005d610ed8565b60408051808201825287518152602080890151818301529083528151608080820184528851518285019081528951840151606084015282528351808501855289840180515182525184015181850152828401528483019190915282518084018452875181528783015181840152848401528251600480825260a082019094525f939092909190830190803683370190505090505f5b60048110156101375784816004811061010d5761010d611194565b602002015182828151811061012457610124611194565b60209081029190910101526001016100f2565b506101428183610161565b5f0361015357600192505050610159565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018161018c610348565b9050806080015151855160016101a291906111bc565b146101e95760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cf578387828151811061021b5761021b611194565b6020026020010151106102705760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101e0565b6102c5826102c0856080015184600161028991906111bc565b8151811061029957610299611194565b60200260200101518a85815181106102b3576102b3611194565b6020026020010151610845565b6108d9565b91506001016101ff565b506102f78183608001515f815181106102ea576102ea611194565b60200260200101516108d9565b905061032b610308865f0151610970565b8660200151845f015185602001518587604001518b604001518960600151610a0c565b61033b5760019350505050610342565b5f93505050505b92915050565b610350610f26565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f2933c663723e3630bea92f14ce272046739c1de9ac0de5108d9f97504796bcdd8185019081527f2d9d46b72cb758726c5730268fdedefe18f1b55f5b935a82ecf821c05b252da1828401528152835180850185527f0d673c337136dbf082c467ce378ee3bce333a36c5f27cc01edf54179d6e7dc6081527f0c907c5922e46c3cadc99de46a7b8d01770eded5cef85379f58252ab65cb80ad8185015281840152908401528151600580825260c08201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105cb57505060808201908152604080518082019091527f0cdbf7f6fb2cf15ec81a44a104d6490ebeeeea7bf9a0cbf4d695c2a5e7ef7d8481527e5eff6d3e9efe8e7e1fc61c474ed76a4e42f9233e0e5c1054caa772f3b03c396020820152905180515f9061065b5761065b611194565b602002602001018190525060405180604001604052807f24aa7ee61e4ad8e6faf43e12eeb8b33081498ee103385743f2f357bf8b0c6af181526020017f22d171354b9d3a5d983212b596739d62f1cc42aff5df6db8475e4b887902146581525081608001516001815181106106d2576106d2611194565b602002602001018190525060405180604001604052807f3037fd725c311a8a59dc660d0fa266e188928bef08015840cf45d7998b747a1881526020017f20918eb8f6b9ca00d9004f42b7bd61a3703ea034983fa552ba34fcbde0d59bc2815250816080015160028151811061074957610749611194565b602002602001018190525060405180604001604052807f1b5c870d21c274d5bdf96cd309bdbda13661a47c01ce8483bd3682fcc1d58a3081526020017f2f4600674aa2b704715e8f62433edcae3bae85557d27e74af090ebcdbc0b195e81525081608001516003815181106107c0576107c0611194565b602002602001018190525060405180604001604052807f199fcda69c0bfd4d6f2db0f385bd0fcf78f0074be4d5eeb7f75f32963269d8d981526020017f1638a9aa5129a8fa9964966f9545941fbceb843dd14aa0f40531c6197da17578815250816080015160048151811061083757610837611194565b602002602001018190525090565b604080518082019091525f8082526020820152610860610f76565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa9050808061088e57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101e0565b505092915050565b604080518082019091525f80825260208201526108f4610f94565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa9050808061092d57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101e0565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47901580156109b657506020830151155b156109d5575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f015181526020018285602001516109f991906111cf565b610a0390846111ee565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610a2657505060408051600480825260a082019092529192505f9190602082015b610a6e610fb2565b815260200190600190039081610a665790505090508a825f81518110610a9657610a96611194565b60200260200101819052508882600181518110610ab557610ab5611194565b60200260200101819052508682600281518110610ad457610ad4611194565b60200260200101819052508482600381518110610af357610af3611194565b602002602001018190525089815f81518110610b1157610b11611194565b60200260200101819052508781600181518110610b3057610b30611194565b60200260200101819052508581600281518110610b4f57610b4f611194565b60200260200101819052508381600381518110610b6e57610b6e611194565b6020026020010181905250610b838282610b92565b9b9a5050505050505050505050565b5f8151835114610bdd5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101e0565b82515f610beb826006611201565b90505f8167ffffffffffffffff811115610c0757610c0761100e565b604051908082528060200260200182016040528015610c30578160200160208202803683370190505b5090505f5b83811015610e5d57868181518110610c4f57610c4f611194565b60200260200101515f015182826006610c689190611201565b610c72905f6111bc565b81518110610c8257610c82611194565b602002602001018181525050868181518110610ca057610ca0611194565b60200260200101516020015182826006610cba9190611201565b610cc59060016111bc565b81518110610cd557610cd5611194565b602002602001018181525050858181518110610cf357610cf3611194565b6020908102919091010151515182610d0c836006611201565b610d179060026111bc565b81518110610d2757610d27611194565b602002602001018181525050858181518110610d4557610d45611194565b60209081029190910181015151015182610d60836006611201565b610d6b9060036111bc565b81518110610d7b57610d7b611194565b602002602001018181525050858181518110610d9957610d99611194565b6020026020010151602001515f60028110610db657610db6611194565b602002015182610dc7836006611201565b610dd29060046111bc565b81518110610de257610de2611194565b602002602001018181525050858181518110610e0057610e00611194565b602002602001015160200151600160028110610e1e57610e1e611194565b602002015182610e2f836006611201565b610e3a9060056111bc565b81518110610e4a57610e4a611194565b6020908102919091010152600101610c35565b50610e66610fd2565b5f602082602086026020860160086107d05a03fa90508080610e8457fe5b5080610eca5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101e0565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101610f01610fb2565b8152602001610f2160405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101610f4f610fb2565b8152602001610f5c610fb2565b8152602001610f69610fb2565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280610fc5610ff0565b8152602001610f21610ff0565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561105757634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f83011261106e575f5ffd5b5f6110796040611022565b905080604084018581111561108c575f5ffd5b845b818110156110a657803583526020928301920161108e565b509195945050505050565b5f5f5f5f61018085870312156110c5575f5ffd5b6110cf868661105f565b935085605f8601126110df575f5ffd5b60406110ea81611022565b8060c08801898111156110fb575f5ffd5b604089015b81811015611121576111128b8261105f565b84526020909301928401611100565b5081965061112f8a8261105f565b95505050505061010085015f87601f830112611149575f5ffd5b5f6111546080611022565b905080608084018a811115611167575f5ffd5b5b80851015611183578435825260209485019490910190611168565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610342576103426111a8565b5f826111e957634e487b7160e01b5f52601260045260245ffd5b500690565b81810381811115610342576103426111a8565b8082028115828204841417610342576103426111a856fea264697066735822122052b8c89d46e40ccc60f13c59a59ab39c0a5084d1333d84af2fe13436741f62ef64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol",
- "buildInfoId": "solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#NewWithdrawVerifier_v2.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#NewWithdrawVerifier_v2.json
deleted file mode 100644
index 56dc797..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#NewWithdrawVerifier_v2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyWithdrawVerifierAlpha_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "input",
- "type": "uint256[10]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "r",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506115118061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b366004611377565b610054565b604051901515815260200160405180910390f35b5f61005d61119e565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600a80825261016082019093525f9290918201610140803683370190505090505f5b600a811015610133578481600a811061010957610109611457565b602002015182828151811061012057610120611457565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061147f565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611457565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061147f565b8151811061029557610295611457565b60200260200101518a85815181106102af576102af611457565b6020026020010151610b0b565b610b9f565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611457565b6020026020010151610b9f565b9050610327610304865f0151610c36565b8660200151845f015185602001518587604001518b604001518960600151610cd2565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6111ec565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f0b5a45bbb3d9f21c42579fd5a810f82f25e696fb3b00ef64b8ca2d17d89fe4ed8185019081527f0f79b405819a9900f7edb3f309c9b73a45673c17366eeb72361c23f957680a89828401528152835180850185527f23b107da251eb5c5dd3c157a900388d73f64a4394faf6a12ae2077766d720b0881527f2188bf40a163dba1ba12fc061d0a6fc9d7246af5e912fcbb23b59a53823b7c048185015281840152908401528151600b8082526101808201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f118592ce705cf3d21e870156a4dc6cff3b2a01fca2c8e60a402fc01dd47341de81527f1fe6c8cb2c02b9ddf7ed360fd3ba99867e54e590d7ca62b57d839ef26d549f0c6020820152905180515f9061065957610659611457565b602002602001018190525060405180604001604052807f154574f61b1a23d66f35533910d332b8ab9bffc6274ce4ffb0bf3b7f1210090781526020017f1ac6f7f35d927f760afe3efc726d0d1ab8ab6514d018630e92a11b5079108b9a81525081608001516001815181106106d0576106d0611457565b602002602001018190525060405180604001604052807f102a84a54eb42169d68f30c781aabd282a341b2b4c25cd55fdae5e3479b4182a81526020017f1b8113a1108e05880a85ae50fdaa0f86926095751a6c3f0130cee222578c7911815250816080015160028151811061074757610747611457565b602002602001018190525060405180604001604052807f25504b6ec89efe8110a42f0ffda2f64b4c0b63b83a776f2146c23ddb2b9c346081526020017e1bd1b27eb32e5c1ecc7f9b08d87e6c7eff72e21014bd87c5badb37e82d50c781525081608001516003815181106107bd576107bd611457565b602002602001018190525060405180604001604052807f2955cc92eefc93c0bb8f2a726fbcbadbedd59c2f68b3701defa2ac66e1c1643f81526020017f1a8bfc29eefca9fd267806f814daf245aa0fb67048fbc16761d5fc39282f7336815250816080015160048151811061083457610834611457565b602002602001018190525060405180604001604052807f0acefb487079ce3764bf9e0af6b69a939b8f43cb3cce80262ebd68167a86afa881526020017f2500ee5fc51d1ed187adfe4cb25ef69610207eefc41a868d14a519b58c99286081525081608001516005815181106108ab576108ab611457565b602002602001018190525060405180604001604052807f1eca69b2e86127c29cd324a9b13cf89c0e657596c9e37dc05eec008c8fa84fdb81526020017f2f11a966ac185bf5d584d386b3e8a555d66e51913d8801fb9189542b4bcd3624815250816080015160068151811061092257610922611457565b602002602001018190525060405180604001604052807ee8670dd1e30ffd6e6d42b6f98d3cd5ebb1a6c2a726f4024e6c27b555683cf881526020017f152894c1731fbedba470963903d414e8c210a8b846aedba229071fa832e882fa815250816080015160078151811061099857610998611457565b602002602001018190525060405180604001604052807f2354fe17a8632ee331a1459f6df0806153f19ed6c1645906895e966cea47cab981526020017f27700ede44b18910d2a31045a1d448bb930ba1c39cc918aa3f4b093a610e45b58152508160800151600881518110610a0f57610a0f611457565b602002602001018190525060405180604001604052807f2f583f76ad789e51575f9168446813e1e5655c1f444ed4f8bd2c38c8c438a52e81526020017f21e4aa608b395b9eaf98de7f2c77baac96da672aedab46f36e4a732fbefdaa328152508160800151600981518110610a8657610a86611457565b602002602001018190525060405180604001604052807f29b71cd418de446ac259b14d47ccbc6c7bf3021aa56d6d3ab3fc80becde42ba281526020017f1671437c4af2a055de0faf52bad6da5b1c1f37d53e279ef8d7a04b401b8f00b18152508160800151600a81518110610afd57610afd611457565b602002602001018190525090565b604080518082019091525f8082526020820152610b2661123c565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610b5457fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610bba61125a565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610bf357fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c7c57506020830151155b15610c9b575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610cbf9190611492565b610cc990846114b1565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610cec57505060408051600480825260a082019092529192505f9190602082015b610d34611278565b815260200190600190039081610d2c5790505090508a825f81518110610d5c57610d5c611457565b60200260200101819052508882600181518110610d7b57610d7b611457565b60200260200101819052508682600281518110610d9a57610d9a611457565b60200260200101819052508482600381518110610db957610db9611457565b602002602001018190525089815f81518110610dd757610dd7611457565b60200260200101819052508781600181518110610df657610df6611457565b60200260200101819052508581600281518110610e1557610e15611457565b60200260200101819052508381600381518110610e3457610e34611457565b6020026020010181905250610e498282610e58565b9b9a5050505050505050505050565b5f8151835114610ea35760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610eb18260066114c4565b90505f8167ffffffffffffffff811115610ecd57610ecd6112d4565b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b5090505f5b8381101561112357868181518110610f1557610f15611457565b60200260200101515f015182826006610f2e91906114c4565b610f38905f61147f565b81518110610f4857610f48611457565b602002602001018181525050868181518110610f6657610f66611457565b60200260200101516020015182826006610f8091906114c4565b610f8b90600161147f565b81518110610f9b57610f9b611457565b602002602001018181525050858181518110610fb957610fb9611457565b6020908102919091010151515182610fd28360066114c4565b610fdd90600261147f565b81518110610fed57610fed611457565b60200260200101818152505085818151811061100b5761100b611457565b602090810291909101810151510151826110268360066114c4565b61103190600361147f565b8151811061104157611041611457565b60200260200101818152505085818151811061105f5761105f611457565b6020026020010151602001515f6002811061107c5761107c611457565b60200201518261108d8360066114c4565b61109890600461147f565b815181106110a8576110a8611457565b6020026020010181815250508581815181106110c6576110c6611457565b6020026020010151602001516001600281106110e4576110e4611457565b6020020151826110f58360066114c4565b61110090600561147f565b8151811061111057611110611457565b6020908102919091010152600101610efb565b5061112c611298565b5f602082602086026020860160086107d05a03fa9050808061114a57fe5b50806111905760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016111c7611278565b81526020016111e760405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101611215611278565b8152602001611222611278565b815260200161122f611278565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061128b6112b6565b81526020016111e76112b6565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561131d57634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611334575f5ffd5b5f61133f60406112e8565b9050806040840185811115611352575f5ffd5b845b8181101561136c578035835260209283019201611354565b509195945050505050565b5f5f5f5f610240858703121561138b575f5ffd5b6113958686611325565b935085605f8601126113a5575f5ffd5b60406113b0816112e8565b8060c08801898111156113c1575f5ffd5b604089015b818110156113e7576113d88b82611325565b845260209093019284016113c6565b508196506113f58a82611325565b95505050505061010085015f87601f83011261140f575f5ffd5b5f61014061141c816112e8565b91508301818a82111561142d575f5ffd5b5b8185101561144657843581526020948501940161142e565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e61146b565b5f826114ac57634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e61146b565b808202811582820484141761033e5761033e61146b56fea2646970667358221220dcff813b86dd38808694958c9a737d51423f91e9af2ee777888630650f47d44264736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b366004611377565b610054565b604051901515815260200160405180910390f35b5f61005d61119e565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600a80825261016082019093525f9290918201610140803683370190505090505f5b600a811015610133578481600a811061010957610109611457565b602002015182828151811061012057610120611457565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061147f565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611457565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061147f565b8151811061029557610295611457565b60200260200101518a85815181106102af576102af611457565b6020026020010151610b0b565b610b9f565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611457565b6020026020010151610b9f565b9050610327610304865f0151610c36565b8660200151845f015185602001518587604001518b604001518960600151610cd2565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6111ec565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f0b5a45bbb3d9f21c42579fd5a810f82f25e696fb3b00ef64b8ca2d17d89fe4ed8185019081527f0f79b405819a9900f7edb3f309c9b73a45673c17366eeb72361c23f957680a89828401528152835180850185527f23b107da251eb5c5dd3c157a900388d73f64a4394faf6a12ae2077766d720b0881527f2188bf40a163dba1ba12fc061d0a6fc9d7246af5e912fcbb23b59a53823b7c048185015281840152908401528151600b8082526101808201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f118592ce705cf3d21e870156a4dc6cff3b2a01fca2c8e60a402fc01dd47341de81527f1fe6c8cb2c02b9ddf7ed360fd3ba99867e54e590d7ca62b57d839ef26d549f0c6020820152905180515f9061065957610659611457565b602002602001018190525060405180604001604052807f154574f61b1a23d66f35533910d332b8ab9bffc6274ce4ffb0bf3b7f1210090781526020017f1ac6f7f35d927f760afe3efc726d0d1ab8ab6514d018630e92a11b5079108b9a81525081608001516001815181106106d0576106d0611457565b602002602001018190525060405180604001604052807f102a84a54eb42169d68f30c781aabd282a341b2b4c25cd55fdae5e3479b4182a81526020017f1b8113a1108e05880a85ae50fdaa0f86926095751a6c3f0130cee222578c7911815250816080015160028151811061074757610747611457565b602002602001018190525060405180604001604052807f25504b6ec89efe8110a42f0ffda2f64b4c0b63b83a776f2146c23ddb2b9c346081526020017e1bd1b27eb32e5c1ecc7f9b08d87e6c7eff72e21014bd87c5badb37e82d50c781525081608001516003815181106107bd576107bd611457565b602002602001018190525060405180604001604052807f2955cc92eefc93c0bb8f2a726fbcbadbedd59c2f68b3701defa2ac66e1c1643f81526020017f1a8bfc29eefca9fd267806f814daf245aa0fb67048fbc16761d5fc39282f7336815250816080015160048151811061083457610834611457565b602002602001018190525060405180604001604052807f0acefb487079ce3764bf9e0af6b69a939b8f43cb3cce80262ebd68167a86afa881526020017f2500ee5fc51d1ed187adfe4cb25ef69610207eefc41a868d14a519b58c99286081525081608001516005815181106108ab576108ab611457565b602002602001018190525060405180604001604052807f1eca69b2e86127c29cd324a9b13cf89c0e657596c9e37dc05eec008c8fa84fdb81526020017f2f11a966ac185bf5d584d386b3e8a555d66e51913d8801fb9189542b4bcd3624815250816080015160068151811061092257610922611457565b602002602001018190525060405180604001604052807ee8670dd1e30ffd6e6d42b6f98d3cd5ebb1a6c2a726f4024e6c27b555683cf881526020017f152894c1731fbedba470963903d414e8c210a8b846aedba229071fa832e882fa815250816080015160078151811061099857610998611457565b602002602001018190525060405180604001604052807f2354fe17a8632ee331a1459f6df0806153f19ed6c1645906895e966cea47cab981526020017f27700ede44b18910d2a31045a1d448bb930ba1c39cc918aa3f4b093a610e45b58152508160800151600881518110610a0f57610a0f611457565b602002602001018190525060405180604001604052807f2f583f76ad789e51575f9168446813e1e5655c1f444ed4f8bd2c38c8c438a52e81526020017f21e4aa608b395b9eaf98de7f2c77baac96da672aedab46f36e4a732fbefdaa328152508160800151600981518110610a8657610a86611457565b602002602001018190525060405180604001604052807f29b71cd418de446ac259b14d47ccbc6c7bf3021aa56d6d3ab3fc80becde42ba281526020017f1671437c4af2a055de0faf52bad6da5b1c1f37d53e279ef8d7a04b401b8f00b18152508160800151600a81518110610afd57610afd611457565b602002602001018190525090565b604080518082019091525f8082526020820152610b2661123c565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610b5457fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610bba61125a565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610bf357fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c7c57506020830151155b15610c9b575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610cbf9190611492565b610cc990846114b1565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610cec57505060408051600480825260a082019092529192505f9190602082015b610d34611278565b815260200190600190039081610d2c5790505090508a825f81518110610d5c57610d5c611457565b60200260200101819052508882600181518110610d7b57610d7b611457565b60200260200101819052508682600281518110610d9a57610d9a611457565b60200260200101819052508482600381518110610db957610db9611457565b602002602001018190525089815f81518110610dd757610dd7611457565b60200260200101819052508781600181518110610df657610df6611457565b60200260200101819052508581600281518110610e1557610e15611457565b60200260200101819052508381600381518110610e3457610e34611457565b6020026020010181905250610e498282610e58565b9b9a5050505050505050505050565b5f8151835114610ea35760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610eb18260066114c4565b90505f8167ffffffffffffffff811115610ecd57610ecd6112d4565b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b5090505f5b8381101561112357868181518110610f1557610f15611457565b60200260200101515f015182826006610f2e91906114c4565b610f38905f61147f565b81518110610f4857610f48611457565b602002602001018181525050868181518110610f6657610f66611457565b60200260200101516020015182826006610f8091906114c4565b610f8b90600161147f565b81518110610f9b57610f9b611457565b602002602001018181525050858181518110610fb957610fb9611457565b6020908102919091010151515182610fd28360066114c4565b610fdd90600261147f565b81518110610fed57610fed611457565b60200260200101818152505085818151811061100b5761100b611457565b602090810291909101810151510151826110268360066114c4565b61103190600361147f565b8151811061104157611041611457565b60200260200101818152505085818151811061105f5761105f611457565b6020026020010151602001515f6002811061107c5761107c611457565b60200201518261108d8360066114c4565b61109890600461147f565b815181106110a8576110a8611457565b6020026020010181815250508581815181106110c6576110c6611457565b6020026020010151602001516001600281106110e4576110e4611457565b6020020151826110f58360066114c4565b61110090600561147f565b8151811061111057611110611457565b6020908102919091010152600101610efb565b5061112c611298565b5f602082602086026020860160086107d05a03fa9050808061114a57fe5b50806111905760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016111c7611278565b81526020016111e760405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101611215611278565b8152602001611222611278565b815260200161122f611278565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061128b6112b6565b81526020016111e76112b6565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561131d57634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611334575f5ffd5b5f61133f60406112e8565b9050806040840185811115611352575f5ffd5b845b8181101561136c578035835260209283019201611354565b509195945050505050565b5f5f5f5f610240858703121561138b575f5ffd5b6113958686611325565b935085605f8601126113a5575f5ffd5b60406113b0816112e8565b8060c08801898111156113c1575f5ffd5b604089015b818110156113e7576113d88b82611325565b845260209093019284016113c6565b508196506113f58a82611325565b95505050505061010085015f87601f83011261140f575f5ffd5b5f61014061141c816112e8565b91508301818a82111561142d575f5ffd5b5b8185101561144657843581526020948501940161142e565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e61146b565b5f826114ac57634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e61146b565b808202811582820484141761033e5761033e61146b56fea2646970667358221220dcff813b86dd38808694958c9a737d51423f91e9af2ee777888630650f47d44264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol",
- "buildInfoId": "solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#PoseidonT4.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#PoseidonT4.json
deleted file mode 100644
index 6767884..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#PoseidonT4.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PoseidonT4",
- "sourceName": "contracts/aggregator-alpha/utils/PoseidonT4.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[3]",
- "name": "",
- "type": "uint256[3]"
- }
- ],
- "name": "hash",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- }
- ],
- "bytecode": "0x6130c0610034600b8282823980515f1a607314602857634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe7300000000000000000000000000000000000000003014608060405260043610610034575f3560e01c806320cf0a3714610038575b5f5ffd5b61004b610046366004612f90565b61005d565b60405190815260200160405180910390f35b5f610793565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f52838409099450505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f528384090994505f51602061302b5f395f51905f5284850990505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528384090993505f51602061302b5f395f51905f5283840990505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528384090992505f51602061302b5f395f51905f5282830990505f51602061302b5f395f51905f52825f51602061302b5f395f51905f52838409099150505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b5f7f265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d65f51602061302b5f395f51905f5260805106017f199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa5f51602061302b5f395f51905f5260a05106017f157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf85f51602061302b5f395f51905f5260c05106015f51602061302b5f395f51905f5283840993505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528687090992505f51602061302b5f395f51905f5282830993505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528687090991505f51602061302b5f395f51905f5281820993505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528687090990505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287097f211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87097f19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87097f21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87097f26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be30101010660a052505050610c167f13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e7f251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b9967f0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e7f2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac949026103aa565b610ca27f04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b7f0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f3675497f011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca067f0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd47386103aa565b610d2e7f0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd69414324477f28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a17f259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f7f0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e86103aa565b610dba7f1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c57f26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee757f123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf8117f0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf610063565b610e467f2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a57f2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c7f011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e55747f1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0610063565b610ed27f179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb7f1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d857f192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b7f0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d610063565b610f5e7f10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b877f064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd597f225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e087f29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c610063565b610fea7f2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db7f1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b7f1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb7f0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c610063565b6110767f20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d7f0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b7f062100eb485db06269655cf186a68532985275428450359adc99cec6960711b87f2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926610063565b6111027f26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce57f22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e07f23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b7f25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a610063565b61118e7f1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa7f248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d7297f12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da7f070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9610063565b6112197f2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde1877f04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d657e94975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e7f28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf610063565b6112a47f159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a7eb7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b647f03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b07f2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3610063565b6113307f0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb1737f2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f7f1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d7f1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f610063565b6113bc7f22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea97f0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a7f0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed7057f02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16610063565b6114487f2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d835057f2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e57f1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d07f25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16610063565b6114d47f0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac7f02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a68003557f227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a53190257f044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d610063565b6115607f25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f7f1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c7f0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e57f1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38610063565b6115ec7f21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f9597f2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce7f13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a967f0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a610063565b6116787f09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f14557f0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf7f0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a47f05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b610063565b6117047f176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c4047f1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df7f2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b7f0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335610063565b6117907f2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c77f14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def7f226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a7f2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db610063565b61181c7f0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c7f03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f37f0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c297f2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7610063565b6118a77e780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef3631821857f0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa7f1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa91467f203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78610063565b6119327f222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c7e544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac167f10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e87f10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5610063565b6119be7f04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d7f06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf047467f062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b7f2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5610063565b611a4a7f14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f13647f0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae7f011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f17f13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a610063565b611ad67f2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a7f16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d582597f278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b6077f1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106610063565b611b627f02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe67692500420257f16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf7f15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c9847f29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8610063565b611bee7f1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec7f0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de89907f1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a427f05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119610063565b611c7a7f0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf7f2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d07f09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb96507f25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d610063565b611d067f24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d00567f1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f835297f2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f627f25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2610063565b611d927f2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f639257f06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f57f23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d7f25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74610063565b611e1e7f17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd7f13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be7f265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e7f15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5610063565b611eaa7f2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e7f2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e887f18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c7f21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d610063565b611f367f11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f57f0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c7f0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe57f277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7610063565b611fc27f30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad47f221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f4217f0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb8247f224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6610063565b61204e7f1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b317f0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc7f2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b7f23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0610063565b6120da7f1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b877f174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d77f22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d27f26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3610063565b6121667f2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c8755267f29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e7f0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade4577f1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1610063565b6121f27f0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad7257f1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f7f2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac7063641137f12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2610063565b61227e7f1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a7f2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e7f08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a37f07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492610063565b61230a7f265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e7f2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff7f2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d197f18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb610063565b6123967f01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf57f2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b87f094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf604177f2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c610063565b6124227f2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd8064617f27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d0287727f154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc747f0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb610063565b6124ae7f0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c7377f1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa957f298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc7f301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71610063565b61253a7f01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b7f1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d7f0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee7f0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279610063565b6125c67f2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe597f19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d7f23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c47f2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32610063565b6126527f0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c87f19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb07f0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b357f2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267610063565b6126de7f2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d7f0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af7f240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b7f16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca610063565b61276a7f242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d17f089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c377027f18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f7f166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6610063565b6127f67f0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e9617f1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b27f17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b7f174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b610063565b6128817eccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d1587f292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e7f12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec67f2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f610063565b61290d7f1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e87f0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e7f14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f7f185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b610063565b6129997f29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c0087f05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c0146047f2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c87f0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024610063565b612a257f1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f7f1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b7f1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc7f2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314610063565b612ab07f0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d7e6e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b7f191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c7f1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5610063565b612b3c7f0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc7f16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae7f12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a7f25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d610063565b612bc87f13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc8247f11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde547f03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b767f1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089610063565b612c547f2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec7f2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e7f1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db47f0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b6103aa565b612ce07f1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b7f2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd6073687f065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc33947f2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb3876103aa565b612d6b7eb4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd790787f0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f7f2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb7f027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd6103aa565b7f1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd55f51017f12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6602051017f13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db608051017f163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d560a051015f51602061302b5f395f51905f5284850994505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528788090993505f51602061302b5f395f51905f5283840994505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528788090992505f51602061302b5f395f51905f5282830994505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528788090991505f51602061302b5f395f51905f5281820994505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528788090990505f51602061302b5f395f51905f52805f51602061302b5f395f51905f525f51602061300b5f395f51905f5284095f51602061302b5f395f51905f525f51602061306b5f395f51905f5286095f51602061302b5f395f51905f525f51602061304b5f395f51905f5288095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8a0901010106065f5260205ff35b634e487b7160e01b5f52604160045260245ffd5b5f60608284031215612fa0575f5ffd5b82601f830112612fae575f5ffd5b6040516060810181811067ffffffffffffffff82111715612fd157612fd1612f7c565b604052806060840185811115612fe5575f5ffd5b845b81811015612fff578035835260209283019201612fe7565b50919594505050505056fe1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c130644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62a2646970667358221220f6d5cfe9ef56c84b95ece8760d16164e8a9649e1f378cc0d39152a9bac67d08e64736f6c634300081c0033",
- "deployedBytecode": "0x7300000000000000000000000000000000000000003014608060405260043610610034575f3560e01c806320cf0a3714610038575b5f5ffd5b61004b610046366004612f90565b61005d565b60405190815260200160405180910390f35b5f610793565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f52838409099450505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f528384090994505f51602061302b5f395f51905f5284850990505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528384090993505f51602061302b5f395f51905f5283840990505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528384090992505f51602061302b5f395f51905f5282830990505f51602061302b5f395f51905f52825f51602061302b5f395f51905f52838409099150505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b5f7f265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d65f51602061302b5f395f51905f5260805106017f199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa5f51602061302b5f395f51905f5260a05106017f157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf85f51602061302b5f395f51905f5260c05106015f51602061302b5f395f51905f5283840993505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528687090992505f51602061302b5f395f51905f5282830993505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528687090991505f51602061302b5f395f51905f5281820993505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528687090990505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287097f211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87097f19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87097f21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87097f26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be30101010660a052505050610c167f13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e7f251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b9967f0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e7f2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac949026103aa565b610ca27f04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b7f0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f3675497f011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca067f0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd47386103aa565b610d2e7f0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd69414324477f28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a17f259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f7f0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e86103aa565b610dba7f1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c57f26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee757f123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf8117f0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf610063565b610e467f2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a57f2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c7f011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e55747f1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0610063565b610ed27f179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb7f1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d857f192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b7f0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d610063565b610f5e7f10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b877f064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd597f225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e087f29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c610063565b610fea7f2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db7f1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b7f1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb7f0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c610063565b6110767f20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d7f0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b7f062100eb485db06269655cf186a68532985275428450359adc99cec6960711b87f2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926610063565b6111027f26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce57f22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e07f23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b7f25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a610063565b61118e7f1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa7f248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d7297f12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da7f070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9610063565b6112197f2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde1877f04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d657e94975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e7f28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf610063565b6112a47f159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a7eb7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b647f03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b07f2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3610063565b6113307f0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb1737f2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f7f1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d7f1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f610063565b6113bc7f22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea97f0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a7f0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed7057f02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16610063565b6114487f2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d835057f2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e57f1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d07f25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16610063565b6114d47f0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac7f02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a68003557f227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a53190257f044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d610063565b6115607f25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f7f1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c7f0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e57f1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38610063565b6115ec7f21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f9597f2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce7f13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a967f0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a610063565b6116787f09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f14557f0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf7f0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a47f05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b610063565b6117047f176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c4047f1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df7f2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b7f0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335610063565b6117907f2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c77f14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def7f226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a7f2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db610063565b61181c7f0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c7f03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f37f0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c297f2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7610063565b6118a77e780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef3631821857f0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa7f1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa91467f203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78610063565b6119327f222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c7e544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac167f10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e87f10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5610063565b6119be7f04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d7f06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf047467f062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b7f2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5610063565b611a4a7f14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f13647f0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae7f011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f17f13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a610063565b611ad67f2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a7f16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d582597f278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b6077f1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106610063565b611b627f02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe67692500420257f16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf7f15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c9847f29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8610063565b611bee7f1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec7f0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de89907f1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a427f05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119610063565b611c7a7f0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf7f2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d07f09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb96507f25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d610063565b611d067f24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d00567f1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f835297f2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f627f25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2610063565b611d927f2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f639257f06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f57f23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d7f25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74610063565b611e1e7f17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd7f13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be7f265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e7f15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5610063565b611eaa7f2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e7f2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e887f18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c7f21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d610063565b611f367f11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f57f0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c7f0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe57f277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7610063565b611fc27f30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad47f221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f4217f0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb8247f224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6610063565b61204e7f1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b317f0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc7f2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b7f23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0610063565b6120da7f1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b877f174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d77f22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d27f26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3610063565b6121667f2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c8755267f29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e7f0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade4577f1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1610063565b6121f27f0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad7257f1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f7f2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac7063641137f12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2610063565b61227e7f1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a7f2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e7f08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a37f07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492610063565b61230a7f265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e7f2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff7f2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d197f18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb610063565b6123967f01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf57f2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b87f094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf604177f2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c610063565b6124227f2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd8064617f27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d0287727f154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc747f0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb610063565b6124ae7f0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c7377f1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa957f298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc7f301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71610063565b61253a7f01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b7f1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d7f0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee7f0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279610063565b6125c67f2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe597f19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d7f23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c47f2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32610063565b6126527f0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c87f19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb07f0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b357f2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267610063565b6126de7f2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d7f0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af7f240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b7f16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca610063565b61276a7f242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d17f089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c377027f18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f7f166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6610063565b6127f67f0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e9617f1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b27f17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b7f174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b610063565b6128817eccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d1587f292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e7f12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec67f2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f610063565b61290d7f1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e87f0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e7f14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f7f185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b610063565b6129997f29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c0087f05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c0146047f2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c87f0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024610063565b612a257f1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f7f1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b7f1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc7f2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314610063565b612ab07f0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d7e6e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b7f191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c7f1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5610063565b612b3c7f0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc7f16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae7f12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a7f25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d610063565b612bc87f13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc8247f11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde547f03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b767f1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089610063565b612c547f2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec7f2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e7f1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db47f0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b6103aa565b612ce07f1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b7f2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd6073687f065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc33947f2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb3876103aa565b612d6b7eb4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd790787f0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f7f2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb7f027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd6103aa565b7f1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd55f51017f12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6602051017f13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db608051017f163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d560a051015f51602061302b5f395f51905f5284850994505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528788090993505f51602061302b5f395f51905f5283840994505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528788090992505f51602061302b5f395f51905f5282830994505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528788090991505f51602061302b5f395f51905f5281820994505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528788090990505f51602061302b5f395f51905f52805f51602061302b5f395f51905f525f51602061300b5f395f51905f5284095f51602061302b5f395f51905f525f51602061306b5f395f51905f5286095f51602061302b5f395f51905f525f51602061304b5f395f51905f5288095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8a0901010106065f5260205ff35b634e487b7160e01b5f52604160045260245ffd5b5f60608284031215612fa0575f5ffd5b82601f830112612fae575f5ffd5b6040516060810181811067ffffffffffffffff82111715612fd157612fd1612f7c565b604052806060840185811115612fe5575f5ffd5b845b81811015612fff578035835260209283019201612fe7565b50919594505050505056fe1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c130644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62a2646970667358221220f6d5cfe9ef56c84b95ece8760d16164e8a9649e1f378cc0d39152a9bac67d08e64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/utils/PoseidonT4.sol",
- "buildInfoId": "solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#aggregationVerifierDepth30.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#aggregationVerifierDepth30.json
deleted file mode 100644
index d311771..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#aggregationVerifierDepth30.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregationVerifierAlpha_2_2_2_30",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2_30.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "_pubSignals",
- "type": "uint256[14]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b50610a0d8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610975565b610054565b604051901515815260200160405180910390f35b5f610882565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f2677d6c999b93ce8836a26f68400342d9206d0042e5bef74384d97668d4fbd7185527f1c6dffd717c92db39b15ffaac7f1ca0896359f64d86ddbde53a9a724d53d687f60208601525f608086018661018e87357f1588203686d2c659beac6e6b6a0696c9a73b43167a1c23dcd156cd423a3486617f2a9a27b4754629f464e15757a6e1795285c772d60b824c8f1dcf721853505b648461008c565b6101de60208801357f0e7ef5047b47aa90a649bd18cea070121bf160cd07d5fb6f059d7f85959093037f0ad8fc97f11c92c12ec509d473fb3a2131cd46398b83b0f6931d5a316885bf4c8461008c565b61022e60408801357f1f360486c53217bd225c170d2c9bff57ce0401a846932d5998b0985302d0d0297f1f0d2c4008add8e5f828066af26a4893d22ede59ce5ed922805bbf72172f926f8461008c565b61027e60608801357f19038ac1aeb7fff5205df6e24fb20b79efc3e47b23ba901c6133a077fd25a41f7f06a8f121ae5a14cd6561c3d301b7a599cd187d66b69ec0dca5b594c90d359db18461008c565b6102ce60808801357f14392ad2a968554f2e9be3192822ee370df3835437d6bdd824f7c02486a799757f1a901b29f21dd86a23814194667419cdb034a8f419cce6f36219ebe12f1d03ce8461008c565b61031e60a08801357f222b41b2066c2e18de2ce8f1b38e21067945bf3a523068d9be283bdeb0b090ca7f260b831c981e5d0edf7c4a1ce05d34b900e8e771b704ff94f52c9945a1227a038461008c565b61036e60c08801357f03ba99acc272296f6b5e8b46fdd80641dc68056bf1f1d058d7b0ae82673e6e0a7f1a49fe52f86e2ce468118842968ef83a85cc11ca735d1707594d03c0fcc5f7a48461008c565b6103be60e08801357f1bb356cda8bd9d21ca448a588e9fe402a48c2c090cc2d9028aabebf7eae7f18f7f2ba484140c7672e35cc296b012b1c06c9d65fa7daf76d898d54502b9dd6e8f298461008c565b61040f6101008801357f158100efe205b2ae041cd2722595c576d8ad554efd549c541c0235ddb95cc70d7f16532b0559581e1c0ff25d04ef22b687551e792d5f5d2134877bffd292114f998461008c565b6104606101208801357f1ecea9cf3060c8c3e065cd2f2f05fe405f4d81a6e4a067c43f65de122d4a8ecc7f0271befe332df95f1520c793b30ab4bbc373b49d736fdf4954fa8129851d9e288461008c565b6104b16101408801357f01886e15dd9ecac1445aca0b7c14420423ce79e0e7b5e5e7ca612fdbbbb0c77f7f17567d5e10acb1c359a4936a01b981b1e6fb9b2bf8746cfa36232c503fd055d18461008c565b6105026101608801357f0fa31e0ed9c1e3ebd3ff073c06bd5ec2056806962a50a4f9490d9d2d3c9125d47f12de630747fad5d0d0b137586691387df79e8a34d3b2968dc56f775ab6b3f4788461008c565b6105536101808801357f0675adf13437ce0b6c1853a85e1ce69404e9b79fc48e04a0757066da7650c6007f25415c817f8b5a1b4b8b1fbaba8a708d3c69f7a1aa35a3834e454b146a0a719a8461008c565b6105a46101a08801357f21c1a157c26e7368b687ff48228bde51af963a5337385f672bf794b1e734c4de7f10d8fd6daf436328532c048653ff83bc1192914754b7a5c907de1869768706848461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f039e6c254fdbfdddb550d7b28587b6e3359a0978a174c832f180238460bf67f660c08201527f05a7b274497c5b63c2aa9486e0610bf9c9fa32e70ac3453f26f181300106533a60e08201527f0e5775bf946735d1ab10bc0fe721dac812003a0756b73371686b39a0c8e0a59a6101008201527f2e63b48c5263b864a5ac08e86eda8c54b609edde10946cdd944dd04bf8f706996101208201527f2a68fdf476b29776ff77059d8292dbdef8bf3835b1d0b8c5e61a8e9f9065804c6101408201527f1b6deed70cfcb89383c60b8d413374d552260ab753beccb04e2077b09a6b69216101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f158d15b191dda264a993425059ebfd021c32c1730e3d254e31fd87de0ab46bac6102808201527f250bca34a48b272729deaec79ae6cc9a702ed03a18a0b5dbd03e9355f52480a56102a08201527f1a999fb6f30f5cc719a772e575a1effffd30eac8e14132c3759716b124d6750b6102c08201527f1db0c59f9dd26d6b1e665961792353cbd44351a6e5108cc13ee1aae16c3734046102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108995f84013561005a565b6108a6602084013561005a565b6108b3604084013561005a565b6108c0606084013561005a565b6108cd608084013561005a565b6108da60a084013561005a565b6108e760c084013561005a565b6108f460e084013561005a565b61090261010084013561005a565b61091061012084013561005a565b61091e61014084013561005a565b61092c61016084013561005a565b61093a61018084013561005a565b6109486101a084013561005a565b610955818486888a6100f2565b9050805f5260205ff35b806040810183101561096f575f5ffd5b92915050565b5f5f5f5f6102c08587031215610989575f5ffd5b610993868661095f565b935060c08501868111156109a5575f5ffd5b6040860193506109b5878261095f565b925050856102c0860111156109c8575f5ffd5b5091949093509091610100019056fea2646970667358221220478778d0335dd646856137a27c3acb70f813b5d21368e81d0f8aa12044b1af5b64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610975565b610054565b604051901515815260200160405180910390f35b5f610882565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f2677d6c999b93ce8836a26f68400342d9206d0042e5bef74384d97668d4fbd7185527f1c6dffd717c92db39b15ffaac7f1ca0896359f64d86ddbde53a9a724d53d687f60208601525f608086018661018e87357f1588203686d2c659beac6e6b6a0696c9a73b43167a1c23dcd156cd423a3486617f2a9a27b4754629f464e15757a6e1795285c772d60b824c8f1dcf721853505b648461008c565b6101de60208801357f0e7ef5047b47aa90a649bd18cea070121bf160cd07d5fb6f059d7f85959093037f0ad8fc97f11c92c12ec509d473fb3a2131cd46398b83b0f6931d5a316885bf4c8461008c565b61022e60408801357f1f360486c53217bd225c170d2c9bff57ce0401a846932d5998b0985302d0d0297f1f0d2c4008add8e5f828066af26a4893d22ede59ce5ed922805bbf72172f926f8461008c565b61027e60608801357f19038ac1aeb7fff5205df6e24fb20b79efc3e47b23ba901c6133a077fd25a41f7f06a8f121ae5a14cd6561c3d301b7a599cd187d66b69ec0dca5b594c90d359db18461008c565b6102ce60808801357f14392ad2a968554f2e9be3192822ee370df3835437d6bdd824f7c02486a799757f1a901b29f21dd86a23814194667419cdb034a8f419cce6f36219ebe12f1d03ce8461008c565b61031e60a08801357f222b41b2066c2e18de2ce8f1b38e21067945bf3a523068d9be283bdeb0b090ca7f260b831c981e5d0edf7c4a1ce05d34b900e8e771b704ff94f52c9945a1227a038461008c565b61036e60c08801357f03ba99acc272296f6b5e8b46fdd80641dc68056bf1f1d058d7b0ae82673e6e0a7f1a49fe52f86e2ce468118842968ef83a85cc11ca735d1707594d03c0fcc5f7a48461008c565b6103be60e08801357f1bb356cda8bd9d21ca448a588e9fe402a48c2c090cc2d9028aabebf7eae7f18f7f2ba484140c7672e35cc296b012b1c06c9d65fa7daf76d898d54502b9dd6e8f298461008c565b61040f6101008801357f158100efe205b2ae041cd2722595c576d8ad554efd549c541c0235ddb95cc70d7f16532b0559581e1c0ff25d04ef22b687551e792d5f5d2134877bffd292114f998461008c565b6104606101208801357f1ecea9cf3060c8c3e065cd2f2f05fe405f4d81a6e4a067c43f65de122d4a8ecc7f0271befe332df95f1520c793b30ab4bbc373b49d736fdf4954fa8129851d9e288461008c565b6104b16101408801357f01886e15dd9ecac1445aca0b7c14420423ce79e0e7b5e5e7ca612fdbbbb0c77f7f17567d5e10acb1c359a4936a01b981b1e6fb9b2bf8746cfa36232c503fd055d18461008c565b6105026101608801357f0fa31e0ed9c1e3ebd3ff073c06bd5ec2056806962a50a4f9490d9d2d3c9125d47f12de630747fad5d0d0b137586691387df79e8a34d3b2968dc56f775ab6b3f4788461008c565b6105536101808801357f0675adf13437ce0b6c1853a85e1ce69404e9b79fc48e04a0757066da7650c6007f25415c817f8b5a1b4b8b1fbaba8a708d3c69f7a1aa35a3834e454b146a0a719a8461008c565b6105a46101a08801357f21c1a157c26e7368b687ff48228bde51af963a5337385f672bf794b1e734c4de7f10d8fd6daf436328532c048653ff83bc1192914754b7a5c907de1869768706848461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f039e6c254fdbfdddb550d7b28587b6e3359a0978a174c832f180238460bf67f660c08201527f05a7b274497c5b63c2aa9486e0610bf9c9fa32e70ac3453f26f181300106533a60e08201527f0e5775bf946735d1ab10bc0fe721dac812003a0756b73371686b39a0c8e0a59a6101008201527f2e63b48c5263b864a5ac08e86eda8c54b609edde10946cdd944dd04bf8f706996101208201527f2a68fdf476b29776ff77059d8292dbdef8bf3835b1d0b8c5e61a8e9f9065804c6101408201527f1b6deed70cfcb89383c60b8d413374d552260ab753beccb04e2077b09a6b69216101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f158d15b191dda264a993425059ebfd021c32c1730e3d254e31fd87de0ab46bac6102808201527f250bca34a48b272729deaec79ae6cc9a702ed03a18a0b5dbd03e9355f52480a56102a08201527f1a999fb6f30f5cc719a772e575a1effffd30eac8e14132c3759716b124d6750b6102c08201527f1db0c59f9dd26d6b1e665961792353cbd44351a6e5108cc13ee1aae16c3734046102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108995f84013561005a565b6108a6602084013561005a565b6108b3604084013561005a565b6108c0606084013561005a565b6108cd608084013561005a565b6108da60a084013561005a565b6108e760c084013561005a565b6108f460e084013561005a565b61090261010084013561005a565b61091061012084013561005a565b61091e61014084013561005a565b61092c61016084013561005a565b61093a61018084013561005a565b6109486101a084013561005a565b610955818486888a6100f2565b9050805f5260205ff35b806040810183101561096f575f5ffd5b92915050565b5f5f5f5f6102c08587031215610989575f5ffd5b610993868661095f565b935060c08501868111156109a5575f5ffd5b6040860193506109b5878261095f565b925050856102c0860111156109c8575f5ffd5b5091949093509091610100019056fea2646970667358221220478778d0335dd646856137a27c3acb70f813b5d21368e81d0f8aa12044b1af5b64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2_30.sol",
- "buildInfoId": "solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#insertionVerifierDepth30.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#insertionVerifierDepth30.json
deleted file mode 100644
index c37893e..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#insertionVerifierDepth30.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyInsertionVerifierAlpha_2_30",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_30.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "_pubSignals",
- "type": "uint256[4]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506106638061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d6565b610054565b604051901515815260200160405180910390f35b5f61055b565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0924b2da45959e3db416d37c294a404744951be16e42f1d992acb2f9b1653c9b85527f1dd38cbdac759717b0ac22a4684a67b9dde133900fd0de04e84649d362c43af260208601525f608086018661018e87357f1b2708ad6d7e6be283e7de6a744c951d2b8e5364548e69df7856c3c97b573e1b7f0974e3e005ff370d47e3fdb7ccdf534091ef1e4a005206d2d1231e67b90511998461008c565b6101de60208801357f2ebb5ab1d89212403b8779a300f9ddc2d940387f8a35748b528e34a8ba9aa8eb7f19eeb6ab376be1165cb0ec80572317e9f5c4518602464a5713c215c980fefb428461008c565b61022e60408801357f057838b481ea687ebdd9e99e7b0a647b9fde53a265abb2ebf10f786977fd745d7f303b63a34f398feec2ee236d526cf0b1152e7c0322e5ff4d253c0a3a8bf17fdc8461008c565b61027e60608801357f19345bce990107cbcf966676e877fb4f5ca5266f5d57adab7678620d605636d87f180b99f92cc59f1eabdbad0ff4a62544fa9bf0cab8f5912f5a847c5640c1d7328461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f0e2bb878054469b448cc0e33dc738b287d43fe65e576af5b3b04e591fdb54f1e60c08201527f1bf275d3700d3f50dca59951ba350ffa3ea2372d0196c425caa92a9e67899ade60e08201527f0c44e70b0815f8e0e28ce0457dc505fe56b05e59d49b5ae4e11b055a806910336101008201527f1232e197aaa7b2d91e891300fac64a73564b798a3db3fa5fb3abf383bf2032606101208201527f28308763f703530f89d2cf0bfa677e8d6cee8f7d9027e414164185b9819db03d6101408201527f1992fd2f54f2bb493054e09c96436be20ea7137974f126e81c09c2b32f70290c6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1d12be17bc61349a2fa4a78986dc0c65250840b18d469b5239a06678fdaffff36102808201527f2b76fd205a71da739792da15aa42bf4e6e549970f2c5d27f19456ed6ef65f9136102a08201527f291ed4e167e08d61ceb08cb301209e3431b16f87170ed88f5265b625d5e194486102c08201527e6370563f1ca56b9f3f3329c4a4724e95130020346360fa7e450ed7315a22e16102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105725f84013561005a565b61057f602084013561005a565b61058c604084013561005a565b610599606084013561005a565b6105a6818486888a6100f2565b9050805f5260205ff35b80604081018310156105c0575f5ffd5b92915050565b80608081018310156105c0575f5ffd5b5f5f5f5f61018085870312156105ea575f5ffd5b6105f486866105b0565b935061060386604087016105c6565b92506106128660c087016105b0565b91506106228661010087016105c6565b90509295919450925056fea26469706673582212205a855661bcf2b5e7a6820e1e0d44203c68c61e39b2b0c99faac2b30e34af037964736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d6565b610054565b604051901515815260200160405180910390f35b5f61055b565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0924b2da45959e3db416d37c294a404744951be16e42f1d992acb2f9b1653c9b85527f1dd38cbdac759717b0ac22a4684a67b9dde133900fd0de04e84649d362c43af260208601525f608086018661018e87357f1b2708ad6d7e6be283e7de6a744c951d2b8e5364548e69df7856c3c97b573e1b7f0974e3e005ff370d47e3fdb7ccdf534091ef1e4a005206d2d1231e67b90511998461008c565b6101de60208801357f2ebb5ab1d89212403b8779a300f9ddc2d940387f8a35748b528e34a8ba9aa8eb7f19eeb6ab376be1165cb0ec80572317e9f5c4518602464a5713c215c980fefb428461008c565b61022e60408801357f057838b481ea687ebdd9e99e7b0a647b9fde53a265abb2ebf10f786977fd745d7f303b63a34f398feec2ee236d526cf0b1152e7c0322e5ff4d253c0a3a8bf17fdc8461008c565b61027e60608801357f19345bce990107cbcf966676e877fb4f5ca5266f5d57adab7678620d605636d87f180b99f92cc59f1eabdbad0ff4a62544fa9bf0cab8f5912f5a847c5640c1d7328461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f0e2bb878054469b448cc0e33dc738b287d43fe65e576af5b3b04e591fdb54f1e60c08201527f1bf275d3700d3f50dca59951ba350ffa3ea2372d0196c425caa92a9e67899ade60e08201527f0c44e70b0815f8e0e28ce0457dc505fe56b05e59d49b5ae4e11b055a806910336101008201527f1232e197aaa7b2d91e891300fac64a73564b798a3db3fa5fb3abf383bf2032606101208201527f28308763f703530f89d2cf0bfa677e8d6cee8f7d9027e414164185b9819db03d6101408201527f1992fd2f54f2bb493054e09c96436be20ea7137974f126e81c09c2b32f70290c6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1d12be17bc61349a2fa4a78986dc0c65250840b18d469b5239a06678fdaffff36102808201527f2b76fd205a71da739792da15aa42bf4e6e549970f2c5d27f19456ed6ef65f9136102a08201527f291ed4e167e08d61ceb08cb301209e3431b16f87170ed88f5265b625d5e194486102c08201527e6370563f1ca56b9f3f3329c4a4724e95130020346360fa7e450ed7315a22e16102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105725f84013561005a565b61057f602084013561005a565b61058c604084013561005a565b610599606084013561005a565b6105a6818486888a6100f2565b9050805f5260205ff35b80604081018310156105c0575f5ffd5b92915050565b80608081018310156105c0575f5ffd5b5f5f5f5f61018085870312156105ea575f5ffd5b6105f486866105b0565b935061060386604087016105c6565b92506106128660c087016105b0565b91506106228661010087016105c6565b90509295919450925056fea26469706673582212205a855661bcf2b5e7a6820e1e0d44203c68c61e39b2b0c99faac2b30e34af037964736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_30.sol",
- "buildInfoId": "solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#withdrawVerifierDepth30.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#withdrawVerifierDepth30.json
deleted file mode 100644
index 608fd52..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#withdrawVerifierDepth30.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyWithdrawVerifierAlpha_2_2_30",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2_30.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "_pubSignals",
- "type": "uint256[9]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506108328061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b36600461079a565b610054565b604051901515815260200160405180910390f35b5f6106ed565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f03760d22d9f2d34545c9e1914bb1ce7a6044769221030d98d87baf999cce726d85527f156ecf9f5c2610839d6d385378a656c0efd32e94a04ebc9c7089f4fe125b838260208601525f608086018661018e87357f2b2c117485e91a1ea632fe27385f77f9331e1db2672e42e9c86a2f802d6f4a577f022aa120b95ee1b256867106394adb6006f30068c06b3ea2e7a6a5bd396d32b88461008c565b6101de60208801357f190133b406f620e57f93dac97d795ee3e6c1cd5c1380ff8efa9bb5ae36eb6f027f201b5a5bcdd373439d8e242f31c140092f2e5e54fd22a0cd50775e373802199e8461008c565b61022e60408801357f1dacf0b93a0b74bacc711d37c038bc8c83ade754b2ce6b8d14bdab54c5267fcf7f27793f520413175bff070cb1cf2a66e303cb460fc50eae4788cc70e37947189e8461008c565b61027e60608801357f20c614098c5807d4d609bcda798ec95ffb84ea0fc6b97e2383149f4797c4071c7f1fcbb72508f88430df9f833ac15e753e438b391af9ded7d805815264fb92b9a18461008c565b6102ce60808801357f0f412826e324f04afe142e271f643cfd1191362dbd52c4ab1027b6dc5f4505197f251f4cfcfa4754144730a6dc064fe7159ceceaa24682c33fa9ec26df30314a098461008c565b61031e60a08801357f0a87b48bf8cd64b224ef5e524ccc422db4d1a2ddc4c6a52bf1354155dbfaca107f11ba886ae51f5da62f1ef74ebc2d941ffe1c84c0cc86a039eea59d753cf737e58461008c565b61036e60c08801357f0eb0f1a445dc5bdf6debee9f4b65306030a8c1c70c87aa910f111314550ff7ca7f0497eac083a6ae9671da1e9e67b4d81eb1890f772f559945e8db07f731b89b948461008c565b6103be60e08801357f27d71145b77c48dc3f37b04048a4952390eff92adf283803d939a5ef357469fa7f2f1d2ecb7da3238e91f60101a82f95a2a0cf3f18513a3efea2ef960e0f1b05038461008c565b61040f6101008801357f1232a2dd4a7f2a4eb7706e0ef2ac142d17bdd99c74cac407523c83ae2c0b14bf7f3013a3053bd7992674a30da3c9e0d99c8b16d930ea2986caa9428a2b843bcf9e8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1e16c25ab763d8d1477730a7d1ccef12a682cea336a50d06e8fbf5c6179e17d460c08201527f075447418c2d22c69113fa9cdfa0d27ef53317ffdee3259adcd492ba271bc6d460e08201527f2cc1fb86ad7b8be8587556a4b94dc9e84e3b8666d59c51208ee844733934e6696101008201527f27d109e11d2b06dc95900781efaa5ef1fc6dfbdb31e61283628e962fd17fe8c16101208201527f2f8043381982846eac492d6f3a1d39a682c65bfa8dd02e323e7a95df562cf9c96101408201527f29b9eff97456a285bf27898a846691a82071d53474301e1ca6b49892eb4499a56101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f02eed0745f7d7332ae3ac78bd0254d1d2a4f9c1ce849e2228ea68328f9861bab6102808201527f0a53e8207852cc09b290c2038962e161eb338f5b97cb2e1df58d5d4dd059cbdd6102a08201527f251e2c5b50852e3d17871d61fea2a638e7bd6669af35a7a4239e571588856f356102c08201527f1a01f4782436380d4ee0769723d43073f4888b316a973df0e33004b2ded19df76102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107045f84013561005a565b610711602084013561005a565b61071e604084013561005a565b61072b606084013561005a565b610738608084013561005a565b61074560a084013561005a565b61075260c084013561005a565b61075f60e084013561005a565b61076d61010084013561005a565b61077a818486888a6100f2565b9050805f5260205ff35b8060408101831015610794575f5ffd5b92915050565b5f5f5f5f61022085870312156107ae575f5ffd5b6107b88686610784565b935060c08501868111156107ca575f5ffd5b6040860193506107da8782610784565b92505085610220860111156107ed575f5ffd5b5091949093509091610100019056fea2646970667358221220aa1cf904b8465ae86135852d29b474903154ff35037e293a5f977b17164b752c64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b36600461079a565b610054565b604051901515815260200160405180910390f35b5f6106ed565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f03760d22d9f2d34545c9e1914bb1ce7a6044769221030d98d87baf999cce726d85527f156ecf9f5c2610839d6d385378a656c0efd32e94a04ebc9c7089f4fe125b838260208601525f608086018661018e87357f2b2c117485e91a1ea632fe27385f77f9331e1db2672e42e9c86a2f802d6f4a577f022aa120b95ee1b256867106394adb6006f30068c06b3ea2e7a6a5bd396d32b88461008c565b6101de60208801357f190133b406f620e57f93dac97d795ee3e6c1cd5c1380ff8efa9bb5ae36eb6f027f201b5a5bcdd373439d8e242f31c140092f2e5e54fd22a0cd50775e373802199e8461008c565b61022e60408801357f1dacf0b93a0b74bacc711d37c038bc8c83ade754b2ce6b8d14bdab54c5267fcf7f27793f520413175bff070cb1cf2a66e303cb460fc50eae4788cc70e37947189e8461008c565b61027e60608801357f20c614098c5807d4d609bcda798ec95ffb84ea0fc6b97e2383149f4797c4071c7f1fcbb72508f88430df9f833ac15e753e438b391af9ded7d805815264fb92b9a18461008c565b6102ce60808801357f0f412826e324f04afe142e271f643cfd1191362dbd52c4ab1027b6dc5f4505197f251f4cfcfa4754144730a6dc064fe7159ceceaa24682c33fa9ec26df30314a098461008c565b61031e60a08801357f0a87b48bf8cd64b224ef5e524ccc422db4d1a2ddc4c6a52bf1354155dbfaca107f11ba886ae51f5da62f1ef74ebc2d941ffe1c84c0cc86a039eea59d753cf737e58461008c565b61036e60c08801357f0eb0f1a445dc5bdf6debee9f4b65306030a8c1c70c87aa910f111314550ff7ca7f0497eac083a6ae9671da1e9e67b4d81eb1890f772f559945e8db07f731b89b948461008c565b6103be60e08801357f27d71145b77c48dc3f37b04048a4952390eff92adf283803d939a5ef357469fa7f2f1d2ecb7da3238e91f60101a82f95a2a0cf3f18513a3efea2ef960e0f1b05038461008c565b61040f6101008801357f1232a2dd4a7f2a4eb7706e0ef2ac142d17bdd99c74cac407523c83ae2c0b14bf7f3013a3053bd7992674a30da3c9e0d99c8b16d930ea2986caa9428a2b843bcf9e8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1e16c25ab763d8d1477730a7d1ccef12a682cea336a50d06e8fbf5c6179e17d460c08201527f075447418c2d22c69113fa9cdfa0d27ef53317ffdee3259adcd492ba271bc6d460e08201527f2cc1fb86ad7b8be8587556a4b94dc9e84e3b8666d59c51208ee844733934e6696101008201527f27d109e11d2b06dc95900781efaa5ef1fc6dfbdb31e61283628e962fd17fe8c16101208201527f2f8043381982846eac492d6f3a1d39a682c65bfa8dd02e323e7a95df562cf9c96101408201527f29b9eff97456a285bf27898a846691a82071d53474301e1ca6b49892eb4499a56101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f02eed0745f7d7332ae3ac78bd0254d1d2a4f9c1ce849e2228ea68328f9861bab6102808201527f0a53e8207852cc09b290c2038962e161eb338f5b97cb2e1df58d5d4dd059cbdd6102a08201527f251e2c5b50852e3d17871d61fea2a638e7bd6669af35a7a4239e571588856f356102c08201527f1a01f4782436380d4ee0769723d43073f4888b316a973df0e33004b2ded19df76102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107045f84013561005a565b610711602084013561005a565b61071e604084013561005a565b61072b606084013561005a565b610738608084013561005a565b61074560a084013561005a565b61075260c084013561005a565b61075f60e084013561005a565b61076d61010084013561005a565b61077a818486888a6100f2565b9050805f5260205ff35b8060408101831015610794575f5ffd5b92915050565b5f5f5f5f61022085870312156107ae575f5ffd5b6107b88686610784565b935060c08501868111156107ca575f5ffd5b6040860193506107da8782610784565b92505085610220860111156107ed575f5ffd5b5091949093509091610100019056fea2646970667358221220aa1cf904b8465ae86135852d29b474903154ff35037e293a5f977b17164b752c64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2_30.sol",
- "buildInfoId": "solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#withdrawVerifierV3.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#withdrawVerifierV3.json
deleted file mode 100644
index 59b357b..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyAggregatorAlpha#withdrawVerifierV3.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyWithdrawVerifierAlphaV3_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlphaV3_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "input",
- "type": "uint256[9]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "r",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b5061149a8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b366004611300565b610054565b604051901515815260200160405180910390f35b5f61005d611127565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600980825261014082019093525f9290918201610120803683370190505090505f5b600981101561013357848160098110610109576101096113e0565b6020020151828281518110610120576101206113e0565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e9190611408565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb5783878281518110610217576102176113e0565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc85608001518460016102859190611408565b81518110610295576102956113e0565b60200260200101518a85815181106102af576102af6113e0565b6020026020010151610a94565b610b28565b91506001016101fb565b506102f38183608001515f815181106102e6576102e66113e0565b6020026020010151610b28565b9050610327610304865f0151610bbf565b8660200151845f015185602001518587604001518b604001518960600151610c5b565b610337576001935050505061033e565b5f93505050505b92915050565b61034c611175565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f05d000ba4551c1fa877c7a46107992624c3d99a3e6bdd57c50698771b613cc298185019081527f1ecc95a1dbdbe4f8cef976bf22affb6de7fa33cb89b48d77bead7102ad139892828401528152835180850185527f21db75587cbe02e9192f9b5f2b763c99648c02dd6b6a4c96c20df72fb841418a81527f2af9f7e11a5a29cdcb4b532c39193095513331f2834798b89072b995ad356a898185015281840152908401528151600a8082526101608201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f2660af19967ed5580208a84497fbdd099f460ed85561c98f23edb4a0384dcf7f81527f210fa1941084636ec27feec1eb19e46b9b48bfa53b306d017ae5963efad52a436020820152905180515f90610659576106596113e0565b602002602001018190525060405180604001604052807f2083fd8b0b70f84ff529e805d135f4a43429faa7993c7722807ae7a190df845581526020017f28811e77761972df5b4960cb74319c488f4edbeddc48333c6d4d1a6bf413ca3481525081608001516001815181106106d0576106d06113e0565b602002602001018190525060405180604001604052807f13dfc5473a9989ab659e0b9a6334f6941bc90555d51e4bca722dae72810e989881526020017f013b58637f2dae5dcc9fc8fbebfc8b1381840813185e0fb647f05168c697540c8152508160800151600281518110610747576107476113e0565b602002602001018190525060405180604001604052807f1c44dcfc07f5f9ae2c637ff60d5a89d2c1713bca6aff265abcb28620a852c34281526020017f19330ccf92e4c27c2b591f021a828cca5edab6049a9d1062686fd796b6d3f52d81525081608001516003815181106107be576107be6113e0565b602002602001018190525060405180604001604052807f23d7191b87dd317ce4294b631c1ce03e454f61c038c5d9c601c8abcc5003816b81526020017f21b455e02d8d7aa7549f9e769915f44c954cbc965220a0c8f61c0c1a367509818152508160800151600481518110610835576108356113e0565b602002602001018190525060405180604001604052807f2226e11fa0ed282b86920337d75253929cdead5afa79adbc98bbf0786a21503081526020017eab0bd68fd9de0ee282bc419521c647a219f5075248f5ebfb2016464f50ba1a81525081608001516005815181106108ab576108ab6113e0565b602002602001018190525060405180604001604052807f21a6f2274e37865052daf09f57ee7d7dafbc1d60cc54e26ab82120b995ed12f481526020017f0b5c832b69ae80552e1d9402009efab37ce39eb97825b4b343f5ea9581b31c1b8152508160800151600681518110610922576109226113e0565b602002602001018190525060405180604001604052807f091ecf7419c3a24ba36564b86a4859fd8f00157103bb0759ea5ba4928bfe460b81526020017f105c38b8731b3cbeed64c9c7e1aa313538e21302828e2f95fb3b05d777a0f7d88152508160800151600781518110610999576109996113e0565b602002602001018190525060405180604001604052807f100d9113bd2a6d16e7682a168a313a92f111d97fa62ab66b9b60339ab7edd8cf81526020017f0db625617d7f1e384b7fd3bfa6625ce178ced385ea8bef33da11938d7ebc389d8152508160800151600881518110610a1057610a106113e0565b602002602001018190525060405180604001604052807ec8fdc7d85d6600498e56ca6e7082bef46e29858708e318188919835ac6878881526020017f0c567e014f5306e60d7e0d42f3e9216db8a9837c77f300ff203b05060360a30a8152508160800151600981518110610a8657610a866113e0565b602002602001018190525090565b604080518082019091525f8082526020820152610aaf6111c5565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610add57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610b436111e3565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610b7c57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c0557506020830151155b15610c24575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610c48919061141b565b610c52908461143a565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610c7557505060408051600480825260a082019092529192505f9190602082015b610cbd611201565b815260200190600190039081610cb55790505090508a825f81518110610ce557610ce56113e0565b60200260200101819052508882600181518110610d0457610d046113e0565b60200260200101819052508682600281518110610d2357610d236113e0565b60200260200101819052508482600381518110610d4257610d426113e0565b602002602001018190525089815f81518110610d6057610d606113e0565b60200260200101819052508781600181518110610d7f57610d7f6113e0565b60200260200101819052508581600281518110610d9e57610d9e6113e0565b60200260200101819052508381600381518110610dbd57610dbd6113e0565b6020026020010181905250610dd28282610de1565b9b9a5050505050505050505050565b5f8151835114610e2c5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610e3a82600661144d565b90505f8167ffffffffffffffff811115610e5657610e5661125d565b604051908082528060200260200182016040528015610e7f578160200160208202803683370190505b5090505f5b838110156110ac57868181518110610e9e57610e9e6113e0565b60200260200101515f015182826006610eb7919061144d565b610ec1905f611408565b81518110610ed157610ed16113e0565b602002602001018181525050868181518110610eef57610eef6113e0565b60200260200101516020015182826006610f09919061144d565b610f14906001611408565b81518110610f2457610f246113e0565b602002602001018181525050858181518110610f4257610f426113e0565b6020908102919091010151515182610f5b83600661144d565b610f66906002611408565b81518110610f7657610f766113e0565b602002602001018181525050858181518110610f9457610f946113e0565b60209081029190910181015151015182610faf83600661144d565b610fba906003611408565b81518110610fca57610fca6113e0565b602002602001018181525050858181518110610fe857610fe86113e0565b6020026020010151602001515f60028110611005576110056113e0565b60200201518261101683600661144d565b611021906004611408565b81518110611031576110316113e0565b60200260200101818152505085818151811061104f5761104f6113e0565b60200260200101516020015160016002811061106d5761106d6113e0565b60200201518261107e83600661144d565b611089906005611408565b81518110611099576110996113e0565b6020908102919091010152600101610e84565b506110b5611221565b5f602082602086026020860160086107d05a03fa905080806110d357fe5b50806111195760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101611150611201565b815260200161117060405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c083019190915281526020810161119e611201565b81526020016111ab611201565b81526020016111b8611201565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061121461123f565b815260200161117061123f565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156112a657634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f8301126112bd575f5ffd5b5f6112c86040611271565b90508060408401858111156112db575f5ffd5b845b818110156112f55780358352602092830192016112dd565b509195945050505050565b5f5f5f5f6102208587031215611314575f5ffd5b61131e86866112ae565b935085605f86011261132e575f5ffd5b604061133981611271565b8060c088018981111561134a575f5ffd5b604089015b81811015611370576113618b826112ae565b8452602090930192840161134f565b5081965061137e8a826112ae565b95505050505061010085015f87601f830112611398575f5ffd5b5f6101206113a581611271565b91508301818a8211156113b6575f5ffd5b5b818510156113cf5784358152602094850194016113b7565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e6113f4565b5f8261143557634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e6113f4565b808202811582820484141761033e5761033e6113f456fea2646970667358221220ee56b55b73586c11a0ad84b93a1c92445f7a65f7be9aeed3d1e4fbaef2220a4364736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b366004611300565b610054565b604051901515815260200160405180910390f35b5f61005d611127565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600980825261014082019093525f9290918201610120803683370190505090505f5b600981101561013357848160098110610109576101096113e0565b6020020151828281518110610120576101206113e0565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e9190611408565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb5783878281518110610217576102176113e0565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc85608001518460016102859190611408565b81518110610295576102956113e0565b60200260200101518a85815181106102af576102af6113e0565b6020026020010151610a94565b610b28565b91506001016101fb565b506102f38183608001515f815181106102e6576102e66113e0565b6020026020010151610b28565b9050610327610304865f0151610bbf565b8660200151845f015185602001518587604001518b604001518960600151610c5b565b610337576001935050505061033e565b5f93505050505b92915050565b61034c611175565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f05d000ba4551c1fa877c7a46107992624c3d99a3e6bdd57c50698771b613cc298185019081527f1ecc95a1dbdbe4f8cef976bf22affb6de7fa33cb89b48d77bead7102ad139892828401528152835180850185527f21db75587cbe02e9192f9b5f2b763c99648c02dd6b6a4c96c20df72fb841418a81527f2af9f7e11a5a29cdcb4b532c39193095513331f2834798b89072b995ad356a898185015281840152908401528151600a8082526101608201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f2660af19967ed5580208a84497fbdd099f460ed85561c98f23edb4a0384dcf7f81527f210fa1941084636ec27feec1eb19e46b9b48bfa53b306d017ae5963efad52a436020820152905180515f90610659576106596113e0565b602002602001018190525060405180604001604052807f2083fd8b0b70f84ff529e805d135f4a43429faa7993c7722807ae7a190df845581526020017f28811e77761972df5b4960cb74319c488f4edbeddc48333c6d4d1a6bf413ca3481525081608001516001815181106106d0576106d06113e0565b602002602001018190525060405180604001604052807f13dfc5473a9989ab659e0b9a6334f6941bc90555d51e4bca722dae72810e989881526020017f013b58637f2dae5dcc9fc8fbebfc8b1381840813185e0fb647f05168c697540c8152508160800151600281518110610747576107476113e0565b602002602001018190525060405180604001604052807f1c44dcfc07f5f9ae2c637ff60d5a89d2c1713bca6aff265abcb28620a852c34281526020017f19330ccf92e4c27c2b591f021a828cca5edab6049a9d1062686fd796b6d3f52d81525081608001516003815181106107be576107be6113e0565b602002602001018190525060405180604001604052807f23d7191b87dd317ce4294b631c1ce03e454f61c038c5d9c601c8abcc5003816b81526020017f21b455e02d8d7aa7549f9e769915f44c954cbc965220a0c8f61c0c1a367509818152508160800151600481518110610835576108356113e0565b602002602001018190525060405180604001604052807f2226e11fa0ed282b86920337d75253929cdead5afa79adbc98bbf0786a21503081526020017eab0bd68fd9de0ee282bc419521c647a219f5075248f5ebfb2016464f50ba1a81525081608001516005815181106108ab576108ab6113e0565b602002602001018190525060405180604001604052807f21a6f2274e37865052daf09f57ee7d7dafbc1d60cc54e26ab82120b995ed12f481526020017f0b5c832b69ae80552e1d9402009efab37ce39eb97825b4b343f5ea9581b31c1b8152508160800151600681518110610922576109226113e0565b602002602001018190525060405180604001604052807f091ecf7419c3a24ba36564b86a4859fd8f00157103bb0759ea5ba4928bfe460b81526020017f105c38b8731b3cbeed64c9c7e1aa313538e21302828e2f95fb3b05d777a0f7d88152508160800151600781518110610999576109996113e0565b602002602001018190525060405180604001604052807f100d9113bd2a6d16e7682a168a313a92f111d97fa62ab66b9b60339ab7edd8cf81526020017f0db625617d7f1e384b7fd3bfa6625ce178ced385ea8bef33da11938d7ebc389d8152508160800151600881518110610a1057610a106113e0565b602002602001018190525060405180604001604052807ec8fdc7d85d6600498e56ca6e7082bef46e29858708e318188919835ac6878881526020017f0c567e014f5306e60d7e0d42f3e9216db8a9837c77f300ff203b05060360a30a8152508160800151600981518110610a8657610a866113e0565b602002602001018190525090565b604080518082019091525f8082526020820152610aaf6111c5565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610add57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610b436111e3565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610b7c57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c0557506020830151155b15610c24575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610c48919061141b565b610c52908461143a565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610c7557505060408051600480825260a082019092529192505f9190602082015b610cbd611201565b815260200190600190039081610cb55790505090508a825f81518110610ce557610ce56113e0565b60200260200101819052508882600181518110610d0457610d046113e0565b60200260200101819052508682600281518110610d2357610d236113e0565b60200260200101819052508482600381518110610d4257610d426113e0565b602002602001018190525089815f81518110610d6057610d606113e0565b60200260200101819052508781600181518110610d7f57610d7f6113e0565b60200260200101819052508581600281518110610d9e57610d9e6113e0565b60200260200101819052508381600381518110610dbd57610dbd6113e0565b6020026020010181905250610dd28282610de1565b9b9a5050505050505050505050565b5f8151835114610e2c5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610e3a82600661144d565b90505f8167ffffffffffffffff811115610e5657610e5661125d565b604051908082528060200260200182016040528015610e7f578160200160208202803683370190505b5090505f5b838110156110ac57868181518110610e9e57610e9e6113e0565b60200260200101515f015182826006610eb7919061144d565b610ec1905f611408565b81518110610ed157610ed16113e0565b602002602001018181525050868181518110610eef57610eef6113e0565b60200260200101516020015182826006610f09919061144d565b610f14906001611408565b81518110610f2457610f246113e0565b602002602001018181525050858181518110610f4257610f426113e0565b6020908102919091010151515182610f5b83600661144d565b610f66906002611408565b81518110610f7657610f766113e0565b602002602001018181525050858181518110610f9457610f946113e0565b60209081029190910181015151015182610faf83600661144d565b610fba906003611408565b81518110610fca57610fca6113e0565b602002602001018181525050858181518110610fe857610fe86113e0565b6020026020010151602001515f60028110611005576110056113e0565b60200201518261101683600661144d565b611021906004611408565b81518110611031576110316113e0565b60200260200101818152505085818151811061104f5761104f6113e0565b60200260200101516020015160016002811061106d5761106d6113e0565b60200201518261107e83600661144d565b611089906005611408565b81518110611099576110996113e0565b6020908102919091010152600101610e84565b506110b5611221565b5f602082602086026020860160086107d05a03fa905080806110d357fe5b50806111195760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101611150611201565b815260200161117060405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c083019190915281526020810161119e611201565b81526020016111ab611201565b81526020016111b8611201565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061121461123f565b815260200161117061123f565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156112a657634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f8301126112bd575f5ffd5b5f6112c86040611271565b90508060408401858111156112db575f5ffd5b845b818110156112f55780358352602092830192016112dd565b509195945050505050565b5f5f5f5f6102208587031215611314575f5ffd5b61131e86866112ae565b935085605f86011261132e575f5ffd5b604061133981611271565b8060c088018981111561134a575f5ffd5b604089015b81811015611370576113618b826112ae565b8452602090930192840161134f565b5081965061137e8a826112ae565b95505050505061010085015f87601f830112611398575f5ffd5b5f6101206113a581611271565b91508301818a8211156113b6575f5ffd5b5b818510156113cf5784358152602094850194016113b7565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e6113f4565b5f8261143557634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e6113f4565b808202811582820484141761033e5761033e6113f456fea2646970667358221220ee56b55b73586c11a0ad84b93a1c92445f7a65f7be9aeed3d1e4fbaef2220a4364736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlphaV3_2.sol",
- "buildInfoId": "solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV1.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV1.json
deleted file mode 100644
index 3691ecd..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV1.json
+++ /dev/null
@@ -1,834 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV1",
- "sourceName": "contracts/vault/CurvyVaultV1.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205e1d810006e1c4a45d4280de3a8894a26644a7669555e5011d3a8b7d576e098564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205e1d810006e1c4a45d4280de3a8894a26644a7669555e5011d3a8b7d576e098564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6484
- },
- {
- "length": 32,
- "start": 6525
- },
- {
- "length": 32,
- "start": 6849
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV1.sol",
- "buildInfoId": "solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV1Implementation.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV1Implementation.json
deleted file mode 100644
index 3691ecd..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV1Implementation.json
+++ /dev/null
@@ -1,834 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV1",
- "sourceName": "contracts/vault/CurvyVaultV1.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205e1d810006e1c4a45d4280de3a8894a26644a7669555e5011d3a8b7d576e098564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205e1d810006e1c4a45d4280de3a8894a26644a7669555e5011d3a8b7d576e098564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6484
- },
- {
- "length": 32,
- "start": 6525
- },
- {
- "length": 32,
- "start": 6849
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV1.sol",
- "buildInfoId": "solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV2Implementation.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV2Implementation.json
deleted file mode 100644
index 45e9d6b..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV2Implementation.json
+++ /dev/null
@@ -1,898 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV2",
- "sourceName": "contracts/vault/CurvyVaultV2.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212202a778473814d79a7a9c68762ac7b88d037ffd9a5579e8017bdea83dab1cac6c664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212202a778473814d79a7a9c68762ac7b88d037ffd9a5579e8017bdea83dab1cac6c664736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5829
- },
- {
- "length": 32,
- "start": 5870
- },
- {
- "length": 32,
- "start": 6194
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV2.sol",
- "buildInfoId": "solc-0_8_28-f0322ae6d51b4110e2b55c267b545c35f2b0fd20"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV3.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV3.json
deleted file mode 100644
index 5545902..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV3.json
+++ /dev/null
@@ -1,911 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV3",
- "sourceName": "contracts/vault/CurvyVaultV3.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5f6100f95f395f81816117f20152818161181b015261195f0152612d5f5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6130
- },
- {
- "length": 32,
- "start": 6171
- },
- {
- "length": 32,
- "start": 6495
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV3.sol",
- "buildInfoId": "solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV4.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV4.json
deleted file mode 100644
index 8c91cae..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV4.json
+++ /dev/null
@@ -1,911 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV4",
- "sourceName": "contracts/vault/CurvyVaultV4.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5c6100f95f395f81816117ef01528181611818015261195c0152612d5c5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6127
- },
- {
- "length": 32,
- "start": 6168
- },
- {
- "length": 32,
- "start": 6492
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV4.sol",
- "buildInfoId": "solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV5.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV5.json
deleted file mode 100644
index dcf48aa..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV5.json
+++ /dev/null
@@ -1,717 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV5",
- "sourceName": "contracts/vault/CurvyVaultV5.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC20TransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidDestinationAddress",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregator",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregatorOrOwner",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenAlreadyRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "WithdrawalFeeNotSet",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Deposit",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "indexed": false,
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": false,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "TokenDeregistered",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Withdraw",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "collectFees",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "deregisterToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fd491bda775b94cc947797bcd0ac41b752963a10eb8562367f9c41712eda766664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fd491bda775b94cc947797bcd0ac41b752963a10eb8562367f9c41712eda766664736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4162
- },
- {
- "length": 32,
- "start": 4203
- },
- {
- "length": 32,
- "start": 4522
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV5.sol",
- "buildInfoId": "solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV5Implementation.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV5Implementation.json
deleted file mode 100644
index dcf48aa..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV5Implementation.json
+++ /dev/null
@@ -1,717 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV5",
- "sourceName": "contracts/vault/CurvyVaultV5.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC20TransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidDestinationAddress",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregator",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregatorOrOwner",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenAlreadyRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "WithdrawalFeeNotSet",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Deposit",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "indexed": false,
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": false,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "TokenDeregistered",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Withdraw",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "collectFees",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "deregisterToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fd491bda775b94cc947797bcd0ac41b752963a10eb8562367f9c41712eda766664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fd491bda775b94cc947797bcd0ac41b752963a10eb8562367f9c41712eda766664736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4162
- },
- {
- "length": 32,
- "start": 4203
- },
- {
- "length": 32,
- "start": 4522
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV5.sol",
- "buildInfoId": "solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV6.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV6.json
deleted file mode 100644
index d4479df..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV6.json
+++ /dev/null
@@ -1,717 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV6",
- "sourceName": "contracts/vault/CurvyVaultV6.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC20TransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidDestinationAddress",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregator",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregatorOrOwner",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenAlreadyRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "WithdrawalFeeNotSet",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Deposit",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "indexed": false,
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": false,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "TokenDeregistered",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Withdraw",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "collectFees",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "deregisterToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220abf4833af5f4eaf00c587d9249e43bdb81105120a948ba55ef3190468959dffb64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220abf4833af5f4eaf00c587d9249e43bdb81105120a948ba55ef3190468959dffb64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4162
- },
- {
- "length": 32,
- "start": 4203
- },
- {
- "length": 32,
- "start": 4522
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV6.sol",
- "buildInfoId": "solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV6Implementation.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV6Implementation.json
deleted file mode 100644
index d4479df..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#CurvyVaultV6Implementation.json
+++ /dev/null
@@ -1,717 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV6",
- "sourceName": "contracts/vault/CurvyVaultV6.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC20TransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidDestinationAddress",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregator",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregatorOrOwner",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenAlreadyRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "WithdrawalFeeNotSet",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Deposit",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "indexed": false,
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": false,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "TokenDeregistered",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Withdraw",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "collectFees",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "deregisterToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220abf4833af5f4eaf00c587d9249e43bdb81105120a948ba55ef3190468959dffb64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220abf4833af5f4eaf00c587d9249e43bdb81105120a948ba55ef3190468959dffb64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4162
- },
- {
- "length": 32,
- "start": 4203
- },
- {
- "length": 32,
- "start": 4522
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV6.sol",
- "buildInfoId": "solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#ERC1967Proxy.json b/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#ERC1967Proxy.json
deleted file mode 100644
index ad99af7..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/CurvyVault#ERC1967Proxy.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ERC1967Proxy",
- "sourceName": "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "_data",
- "type": "bytes"
- }
- ],
- "stateMutability": "payable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "stateMutability": "payable",
- "type": "fallback"
- }
- ],
- "bytecode": "0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033",
- "deployedBytecode": "0x6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Proxy.sol",
- "buildInfoId": "solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#CreateX.json b/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#CreateX.json
deleted file mode 100644
index 5d6f263..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#CreateX.json
+++ /dev/null
@@ -1,906 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "FailedContractCreation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedContractInitialisation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedEtherTransfer",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidNonceValue",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidSalt",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "Create3ProxyContractCreation",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreateClone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "bytecode": "0x",
- "deployedBytecode": "0x",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json b/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
deleted file mode 100644
index 6dc459e..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
+++ /dev/null
@@ -1,357 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#PortalFactory_V3.json b/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#PortalFactory_V3.json
deleted file mode 100644
index 0e873ff..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#PortalFactory_V3.json
+++ /dev/null
@@ -1,367 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#PortalFactory_V4.json b/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#PortalFactory_V4.json
deleted file mode 100644
index a7b61e5..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#PortalFactory_V4.json
+++ /dev/null
@@ -1,367 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#PortalFactory_V5.json b/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#PortalFactory_V5.json
deleted file mode 100644
index eaef0d8..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/PortalFactory#PortalFactory_V5.json
+++ /dev/null
@@ -1,382 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForLiFiBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/PortalFactoryAggregatorModule#PortalFactory.json b/ignition/deployments/staging_arbitrum/artifacts/PortalFactoryAggregatorModule#PortalFactory.json
deleted file mode 100644
index 18aa92f..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/PortalFactoryAggregatorModule#PortalFactory.json
+++ /dev/null
@@ -1,275 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "initializeConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateLifiDiamondAddress",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116a63803806116a683398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611564806101425f395ff3fe608060405260043610610084575f3560e01c8063715018a611610057578063715018a61461011c5780638da5cb5b14610130578063d465ea5814610160578063efc44aa61461017f578063f2fde38b1461019e575f5ffd5b80633942b0ad1461008857806343398648146100bc578063485907d8146100e857806352982f3b146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a23660046106f7565b6101bd565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610717565b6101ea565b6040516100b39190610741565b6100fb6100f63660046107d9565b610263565b005b348015610108575f5ffd5b506100a7610117366004610802565b6103f2565b348015610127575f5ffd5b506100fb61043e565b34801561013b575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561016b575f5ffd5b5061014861017a366004610717565b610451565b34801561018a575f5ffd5b506100fb610199366004610842565b6104c1565b3480156101a9575f5ffd5b506100fb6101b83660046106f7565b61061c565b5f6101c6610659565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b60605f604051806020016101fd906106d4565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061024a90839083906080016108f8565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061028457506003546001600160a01b0316155b156102f35760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610301835f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b03821661036b5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b1580156103d5575f5ffd5b505af11580156103e7573d5f5f3e3d5ffd5b505050505050505050565b5f6103fb610659565b50600280546001600160a01b039485166001600160a01b031991821617909155600380549385169382169390931790925560048054919093169116179055600190565b610446610659565b61044f5f610685565b565b5f5f61045d84846101ea565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105355760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084016102ea565b5f610543845f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b0382166105ad5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105e5939216918d918d918d918d9101610914565b5f604051808303815f87803b1580156105fc575f5ffd5b505af115801561060e573d5f5f3e3d5ffd5b505050505050505050505050565b610624610659565b6001600160a01b03811661064d57604051631e4fbdf760e01b81525f60048201526024016102ea565b61065681610685565b50565b5f546001600160a01b0316331461044f5760405163118cdaa760e01b81523360048201526024016102ea565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098a83390190565b80356001600160a01b03811681146101e5575f5ffd5b5f60208284031215610707575f5ffd5b610710826106e1565b9392505050565b5f5f60408385031215610728575f5ffd5b82359150610738602084016106e1565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60608284031215610786575f5ffd5b6040516060810181811067ffffffffffffffff821117156107b557634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156107ea575f5ffd5b6107f48484610776565b9150610738606084016106e1565b5f5f5f60608486031215610814575f5ffd5b61081d846106e1565b925061082b602085016106e1565b9150610839604085016106e1565b90509250925092565b5f5f5f5f5f60c08688031215610856575f5ffd5b853567ffffffffffffffff81111561086c575f5ffd5b8601601f8101881361087c575f5ffd5b803567ffffffffffffffff811115610892575f5ffd5b8860208284010111156108a3575f5ffd5b6020918201965094506108b99088908801610776565b92506108c7608087016106e1565b91506108d560a087016106e1565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61090c61090683866108e1565b846108e1565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096e60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a26469706673582212203606601acb0b023e36c60b268a0307ecd89114117ed619c689865d43a46264bf64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610084575f3560e01c8063715018a611610057578063715018a61461011c5780638da5cb5b14610130578063d465ea5814610160578063efc44aa61461017f578063f2fde38b1461019e575f5ffd5b80633942b0ad1461008857806343398648146100bc578063485907d8146100e857806352982f3b146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a23660046106f7565b6101bd565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610717565b6101ea565b6040516100b39190610741565b6100fb6100f63660046107d9565b610263565b005b348015610108575f5ffd5b506100a7610117366004610802565b6103f2565b348015610127575f5ffd5b506100fb61043e565b34801561013b575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561016b575f5ffd5b5061014861017a366004610717565b610451565b34801561018a575f5ffd5b506100fb610199366004610842565b6104c1565b3480156101a9575f5ffd5b506100fb6101b83660046106f7565b61061c565b5f6101c6610659565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b60605f604051806020016101fd906106d4565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061024a90839083906080016108f8565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061028457506003546001600160a01b0316155b156102f35760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610301835f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b03821661036b5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b1580156103d5575f5ffd5b505af11580156103e7573d5f5f3e3d5ffd5b505050505050505050565b5f6103fb610659565b50600280546001600160a01b039485166001600160a01b031991821617909155600380549385169382169390931790925560048054919093169116179055600190565b610446610659565b61044f5f610685565b565b5f5f61045d84846101ea565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105355760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084016102ea565b5f610543845f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b0382166105ad5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105e5939216918d918d918d918d9101610914565b5f604051808303815f87803b1580156105fc575f5ffd5b505af115801561060e573d5f5f3e3d5ffd5b505050505050505050505050565b610624610659565b6001600160a01b03811661064d57604051631e4fbdf760e01b81525f60048201526024016102ea565b61065681610685565b50565b5f546001600160a01b0316331461044f5760405163118cdaa760e01b81523360048201526024016102ea565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098a83390190565b80356001600160a01b03811681146101e5575f5ffd5b5f60208284031215610707575f5ffd5b610710826106e1565b9392505050565b5f5f60408385031215610728575f5ffd5b82359150610738602084016106e1565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60608284031215610786575f5ffd5b6040516060810181811067ffffffffffffffff821117156107b557634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156107ea575f5ffd5b6107f48484610776565b9150610738606084016106e1565b5f5f5f60608486031215610814575f5ffd5b61081d846106e1565b925061082b602085016106e1565b9150610839604085016106e1565b90509250925092565b5f5f5f5f5f60c08688031215610856575f5ffd5b853567ffffffffffffffff81111561086c575f5ffd5b8601601f8101881361087c575f5ffd5b803567ffffffffffffffff811115610892575f5ffd5b8860208284010111156108a3575f5ffd5b6020918201965094506108b99088908801610776565b92506108c7608087016106e1565b91506108d560a087016106e1565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61090c61090683866108e1565b846108e1565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096e60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a26469706673582212203606601acb0b023e36c60b268a0307ecd89114117ed619c689865d43a46264bf64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/PortalFactoryModule#PortalFactory.json b/ignition/deployments/staging_arbitrum/artifacts/PortalFactoryModule#PortalFactory.json
deleted file mode 100644
index 467c840..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/PortalFactoryModule#PortalFactory.json
+++ /dev/null
@@ -1,256 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/artifacts/TokenBridgeModule#TokenBridge.json b/ignition/deployments/staging_arbitrum/artifacts/TokenBridgeModule#TokenBridge.json
deleted file mode 100644
index 0ca6446..0000000
--- a/ignition/deployments/staging_arbitrum/artifacts/TokenBridgeModule#TokenBridge.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "TokenBridge",
- "sourceName": "contracts/smart-account/TokenBridge.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "_lifiDiamondAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- }
- ],
- "name": "bridgeFullBalance",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405234801561000f575f5ffd5b5060405161068f38038061068f83398101604081905261002e9161003f565b6001600160a01b031660805261006c565b5f6020828403121561004f575f5ffd5b81516001600160a01b0381168114610065575f5ffd5b9392505050565b6080516105f161009e5f395f8181603d015281816092015281816101d1015281816101f901526102d301526105f15ff3fe608060405234801561000f575f5ffd5b5060043610610034575f3560e01c80632b8c45ca14610038578063bfe24a741461007b575b5f5ffd5b61005f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b61008e61008936600461050a565b610090565b005b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166101165760405162461bcd60e51b815260206004820152602260248201527f546f6b656e4272696467653a20496e76616c6964204c492e4649206164647265604482015261737360f01b60648201526084015b60405180910390fd5b6001600160a01b0383161580159061014b57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156102c9576040516370a0823160e01b815230600482015283905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610196573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101ba9190610595565b905080156102c2576101f66001600160a01b0383167f0000000000000000000000000000000000000000000000000000000000000000836103a2565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031685856040516102319291906105ac565b5f604051808303815f865af19150503d805f811461026a576040519150601f19603f3d011682016040523d82523d5f602084013e61026f565b606091505b50509050806102c05760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b505b5050505050565b47801561039c575f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682858560405161030c9291906105ac565b5f6040518083038185875af1925050503d805f8114610346576040519150601f19603f3d011682016040523d82523d5f602084013e61034b565b606091505b50509050806102c25760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526103f38482610455565b61039c57604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261044b90859061049e565b61039c848261049e565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610494575081156104865780600114610494565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af1806104bd576040513d5f823e3d81fd5b50505f513d915081156104d45780600114156104e1565b6001600160a01b0384163b155b1561039c57604051635274afe760e01b81526001600160a01b038516600482015260240161010d565b5f5f5f6040848603121561051c575f5ffd5b83356001600160a01b0381168114610532575f5ffd5b9250602084013567ffffffffffffffff81111561054d575f5ffd5b8401601f8101861361055d575f5ffd5b803567ffffffffffffffff811115610573575f5ffd5b866020828401011115610584575f5ffd5b939660209190910195509293505050565b5f602082840312156105a5575f5ffd5b5051919050565b818382375f910190815291905056fea264697066735822122024b79e0e8ad787a3d9372fa489b74bacaa38a30e0b87794cfbd941ed4010f11664736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610034575f3560e01c80632b8c45ca14610038578063bfe24a741461007b575b5f5ffd5b61005f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b61008e61008936600461050a565b610090565b005b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166101165760405162461bcd60e51b815260206004820152602260248201527f546f6b656e4272696467653a20496e76616c6964204c492e4649206164647265604482015261737360f01b60648201526084015b60405180910390fd5b6001600160a01b0383161580159061014b57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156102c9576040516370a0823160e01b815230600482015283905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610196573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101ba9190610595565b905080156102c2576101f66001600160a01b0383167f0000000000000000000000000000000000000000000000000000000000000000836103a2565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031685856040516102319291906105ac565b5f604051808303815f865af19150503d805f811461026a576040519150601f19603f3d011682016040523d82523d5f602084013e61026f565b606091505b50509050806102c05760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b505b5050505050565b47801561039c575f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682858560405161030c9291906105ac565b5f6040518083038185875af1925050503d805f8114610346576040519150601f19603f3d011682016040523d82523d5f602084013e61034b565b606091505b50509050806102c25760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526103f38482610455565b61039c57604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261044b90859061049e565b61039c848261049e565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610494575081156104865780600114610494565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af1806104bd576040513d5f823e3d81fd5b50505f513d915081156104d45780600114156104e1565b6001600160a01b0384163b155b1561039c57604051635274afe760e01b81526001600160a01b038516600482015260240161010d565b5f5f5f6040848603121561051c575f5ffd5b83356001600160a01b0381168114610532575f5ffd5b9250602084013567ffffffffffffffff81111561054d575f5ffd5b8401601f8101861361055d575f5ffd5b803567ffffffffffffffff811115610573575f5ffd5b866020828401011115610584575f5ffd5b939660209190910195509293505050565b5f602082840312156105a5575f5ffd5b5051919050565b818382375f910190815291905056fea264697066735822122024b79e0e8ad787a3d9372fa489b74bacaa38a30e0b87794cfbd941ed4010f11664736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "657": [
- {
- "length": 32,
- "start": 61
- },
- {
- "length": 32,
- "start": 146
- },
- {
- "length": 32,
- "start": 465
- },
- {
- "length": 32,
- "start": 505
- },
- {
- "length": 32,
- "start": 723
- }
- ]
- },
- "inputSourceName": "project/contracts/smart-account/TokenBridge.sol",
- "buildInfoId": "solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03.json
deleted file mode 100644
index d5575ec..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03.json
+++ /dev/null
@@ -1,134 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-0194b33f03c6dae904a4799d3dbd868dfa795e03",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV1.sol": "project/contracts/vault/CurvyVaultV1.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/ECDSA.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.20;\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 }\n\n /**\n * @dev The signature derives the `address(0)`.\n */\n error ECDSAInvalidSignature();\n\n /**\n * @dev The signature has an invalid length.\n */\n error ECDSAInvalidSignatureLength(uint256 length);\n\n /**\n * @dev The signature has an S value that is in the upper half order.\n */\n error ECDSAInvalidSignatureS(bytes32 s);\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\n * and a bytes32 providing additional information about the error.\n *\n * If no error is returned, then the address can be used for verification purposes.\n *\n * The `ecrecover` EVM precompile 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 {MessageHashUtils-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 function tryRecover(\n bytes32 hash,\n bytes memory signature\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 (\"memory-safe\") {\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 {\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\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 precompile 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 {MessageHashUtils-toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\n _throwError(error, errorArg);\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[ERC-2098 short signatures]\n */\n function tryRecover(\n bytes32 hash,\n bytes32 r,\n bytes32 vs\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\n unchecked {\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n // We do not check for an overflow here since the shift operation results in 0 or 1.\n uint8 v = uint8((uint256(vs) >> 255) + 27);\n return tryRecover(hash, v, r, s);\n }\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n */\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\n _throwError(error, errorArg);\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 function tryRecover(\n bytes32 hash,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 ÷ 2 + 1, and for v in (302): v ∈ {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, s);\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, bytes32(0));\n }\n\n return (signer, RecoverError.NoError, bytes32(0));\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `v`,\n * `r` and `s` signature fields separately.\n */\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\n _throwError(error, errorArg);\n return recovered;\n }\n\n /**\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\n */\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\n if (error == RecoverError.NoError) {\n return; // no error: do nothing\n } else if (error == RecoverError.InvalidSignature) {\n revert ECDSAInvalidSignature();\n } else if (error == RecoverError.InvalidSignatureLength) {\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\n } else if (error == RecoverError.InvalidSignatureS) {\n revert ECDSAInvalidSignatureS(errorArg);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {Withdraw, Transfer, Deposit}\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV1.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { EIP712Upgradeable } from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { ECDSA } from \"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\";\nimport \"./ICurvyVault.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract CurvyVaultV1 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 constant private ETH_ID = 0x1;\n address constant private ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 constant private FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH = keccak256(\"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\");\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"1.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Private functions\n\n function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {\n bytes32 structHash = keccak256(\n abi.encode(\n CURVY_META_TRANSACTION_TYPE_HASH,\n _nonces[metaTransaction.from],\n metaTransaction.from,\n metaTransaction.to,\n metaTransaction.tokenId,\n metaTransaction.amount,\n metaTransaction.gasFee,\n metaTransaction.metaTransactionType\n )\n );\n\n // Add domain data to the hash\n bytes32 hash = _hashTypedDataV4(structHash);\n\n // Check that the metaTransaction is signed by metaTransaction.from\n address signer = ECDSA.recover(hash, signature);\n require(signer == metaTransaction.from, \"CurvyVault#_validateSignature: Invalid signature!\");\n\n // Increment nonce\n _nonces[signer]++;\n emit NonceChange(signer, _nonces[signer]);\n }\n\n function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_transfer: Invalid recipient for transfer!\");\n require(metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Transfer, \"CurvyVault#transfer: Wrong type for meta transaction!\");\n\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.to][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (transferFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);\n }\n\n function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_withdraw: Invalid withdraw recipient!\");\n require(metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw, \"CurvyVault#withdraw: Wrong type for meta transaction!\");\n\n // Burn wrapped tokens\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (withdrawalFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n // Withdraw\n if (metaTransaction.tokenId != ETH_ID) { // We are withdrawing ERC20s\n address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];\n IERC20(tokenAddress).safeTransfer(metaTransaction.to, metaTransaction.amount);\n } else { // We are withdrawing ETH\n (bool success,) = metaTransaction.to.call{value: metaTransaction.amount}(\"\");\n require(success, \"CurvyVault#_withdraw: ETH withdrawal failed!\");\n }\n\n emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);\n }\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n require(_tokenAddressToTokenId[tokenAddress] == 0, \"CurvyVault#registerToken: Token already registered!\");\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {\n if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {\n depositFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {\n transferFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {\n withdrawalFee = fee;\n } else {\n revert(\"CurvyVault#setFeeAmount: Unknown fee type!\");\n }\n\n emit FeeChange(metaTransactionType, fee);\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n require(to != address(0x0), \"CurvyVault#deposit: Invalid recipient for deposit!\");\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) { // We are depositing ERC20\n require(msg.value == 0, \"CurvyVault#deposit: Don't send ETH with ERC20 deposit!\");\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault#deposit: Token address not registered!\");\n } else { // We are depositing ETH\n require(amount == msg.value, \"CurvyVault#deposit: Incorrect deposit value!\");\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)\n if (gasSponsorshipAmount != 0) {\n _balances[to][tokenId] -= gasSponsorshipAmount;\n _balances[owner()][tokenId] += gasSponsorshipAmount;\n }\n\n emit Transfer(address(0x0), to, tokenId, amount);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n require(msg.sender == metaTransaction.from, \"CurvyVault#transfer: Invalid msg.sender!\");\n require(metaTransaction.gasFee == 0, \"CurvyVault#transfer: gasFee must be 0 when not relaying metaTransaction for others!\");\n\n _transfer(metaTransaction);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _transfer(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n require(msg.sender == metaTransaction.from, \"CurvyVault#withdraw: Invalid msg.sender!\");\n require(metaTransaction.gasFee == 0, \"CurvyVault#withdraw: gasFee must be 0 when not relaying metaTransaction for others!\");\n\n _withdraw(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _withdraw(metaTransaction);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n require(tokenAddress != address(0x0), \"CurvyVault:#getIdAddress: Unregistered token!\");\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault:#getTokenID: Unregistered token!\");\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n function balanceOfBatch(address[] memory owners, uint256[] memory tokenIds) external view returns (uint256[] memory) {\n require(owners.length == tokenIds.length, \"CurvyVault#balanceOfBatch: Invalid array length!\");\n\n // Variables\n uint256[] memory batchBalances = new uint256[](owners.length);\n\n // Iterate over each owner and token ID\n for (uint256 i = 0; i < owners.length; i++) {\n batchBalances[i] = _balances[owners[i]][tokenIds[i]];\n }\n\n return batchBalances;\n }\n\n function getNonce(address _signer) external view returns (uint256 nonce)\n {\n return _nonces[_signer];\n }\n\n //#endregion\n}"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-2345d7baa923964c5828a297965392391e6113b8.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-2345d7baa923964c5828a297965392391e6113b8.json
deleted file mode 100644
index 1faf141..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-2345d7baa923964c5828a297965392391e6113b8.json
+++ /dev/null
@@ -1,118 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-2345d7baa923964c5828a297965392391e6113b8",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport \"../portal/IPortalFactory.sol\";\nimport {\nICurvyInsertionVerifier,\nICurvyAggregationVerifier,\nICurvyWithdrawVerifier,\nICurvyWithdrawVerifierV3\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"./ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {ICurvyVaultV2} from \"../vault/ICurvyVaultV2.sol\";\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {PoseidonT4} from \"./utils/PoseidonT4.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV5 is ICurvyAggregatorAlpha, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n // Curvy's portal factory contract;\n IPortalFactory public portalFactory;\n\n ICurvyVaultV2 public curvyVaultV2;\n\n ICurvyWithdrawVerifierV3 public withdrawVerifierV3;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n __Ownable_init(initialOwner);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdateV2 memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifierV3 = ICurvyWithdrawVerifierV3(_update.withdrawVerifier);\n }\n if (_update.curvyVault != address(0)) {\n curvyVaultV2 = ICurvyVaultV2(_update.curvyVault);\n }\n if (_update.portalFactory != address(0)) {\n portalFactory = IPortalFactory(_update.portalFactory);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable {\n // Only allow auto shielding of portals that were deployed through the portalFactory\n if (!portalFactory.portalIsRegistered(msg.sender)) revert PortalNotRegistered();\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);\n IERC20(tokenAddress).forceApprove(address(curvyVaultV2), note.amount);\n }\n\n curvyVaultV2.deposit{ value: msg.value }(tokenAddress, address(this), note.amount, 0);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n if (!_pendingIdsQueue[noteId]) revert NoteNotScheduledForDeposit();\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n if (_notesTreeRoot != publicInputs[numPublicInputs - 2]) revert InvalidNotesRoot();\n\n if (!insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n if (_notesTreeRoot != oldNotesTreeRoot) revert CurrentNoteTreeRootMismatch();\n if (_nullifiersTreeRoot != oldNullifiersTreeRoot) revert CurrentNullifierTreeRootMismatch();\n\n if (!aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[9] memory publicInputs\n ) public returns (bool) {\n if (publicInputs[2] != _nullifiersTreeRoot) revert CurrentNullifierTreeRootMismatch();\n if (publicInputs[1] != _notesTreeRoot) revert CurrentNoteTreeRootMismatch();\n\n if (!withdrawVerifierV3.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[3 + i];\n address destinationAddress = address(uint160(publicInputs[3 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVaultV2.withdraw(\n publicInputs[numPublicInputs - 1], // tokenId\n destinationAddress,\n amount\n );\n }\n }\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\ninterface ICurvyWithdrawVerifierV3 {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[9] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV2 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount, uint256 gasSponsorshipAmount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenUnsupported(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAllreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error NoFeeUpdate();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n function unsupportToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd.json
deleted file mode 100644
index c5914f3..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2_30.sol": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2_30.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2_30.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyAggregationVerifierAlpha_2_2_2_30 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 1636846776518434317996733932951972378772913817912419917762768475702381471734;\n uint256 constant alphay = 2557859348676819025385346933609180330308687626659434893060052940731235849018;\n uint256 constant betax1 = 6486908244102514188758219539984059501831627243372326134761579522465959290266;\n uint256 constant betax2 = 20982554991654900079360939570217720062255973982399814758284443662932208191129;\n uint256 constant betay1 = 19182644467787183843647819985681434389712148315951713380764435963668492288076;\n uint256 constant betay2 = 12406681655195816859272397663108739861438627022123343846745568062489563457825;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 9747844980327646408377936853901576964882208162979095558491855258874644032428;\n uint256 constant deltax2 = 16756406287301157016584371495328426384230959009782353619418027108198900859045;\n uint256 constant deltay1 = 12031563974052658626813022123817729103548385673602489380797509408050168362251;\n uint256 constant deltay2 = 13429401639598153332715865509706776334046884142780191754811231453515278136324;\n\n \n uint256 constant IC0x = 17399625455729226858193731763381735313995214152427932693079209346443273813361;\n uint256 constant IC0y = 12859111834604210549529111813676435741477721204446408540561580131023612373119;\n \n uint256 constant IC1x = 19269508121721386291058841803585817118599674808849286017476018587604958075748;\n uint256 constant IC1y = 9739083346977226558755028796693364133601235625996618276883249540221132637793;\n \n uint256 constant IC2x = 4906510788248149510349692841186321223500356486988078983311568678766686617420;\n uint256 constant IC2y = 6556693659005449888057044633727477467849788892491025455409405901466816779011;\n \n uint256 constant IC3x = 14044972721113237465916458767885969838881931162770098020949856358124091314799;\n uint256 constant IC3y = 14117139287964659766273454103382038851225246363664392925580043228576662736937;\n \n uint256 constant IC4x = 3012371627291579470375119311705692169706993162491904502205704114402133122481;\n uint256 constant IC4y = 11314079418441590611909244855959271743770501270574709172645731877756340642847;\n \n uint256 constant IC5x = 12014747518500042396257254926854732905212065822893454718881040190806844834766;\n uint256 constant IC5y = 9147262807133758476810323056110110965120211575681576794111913832114045819253;\n \n uint256 constant IC6x = 17208228463546580386283793027479680747415863706121256054456908792476918249987;\n uint256 constant IC6y = 15455064688675952318632388873661983654124978426049461390082396053486080921802;\n \n uint256 constant IC7x = 11890869179344231511453890841634284101019213344221032352195689057090808444836;\n uint256 constant IC7y = 1686632724578012404026531741296202004554825601863464229764451159902739394058;\n \n uint256 constant IC8x = 19740126978733293930114609559282015871184836365480012469082695053739727687465;\n uint256 constant IC8y = 12529311631088881627469970608969522997871884804075518341540042128460362543503;\n \n uint256 constant IC9x = 10097827894510155216618449121665995035774394468628598818421588397182493478809;\n uint256 constant IC9y = 9726499558835181108437959744805754000607141454601461826622961981576422672141;\n \n uint256 constant IC10x = 1105597600508673395153704990296305545165923034140397026472508603328041426472;\n uint256 constant IC10y = 13934527933778711255168756830771167066267892265285651597997494803168274058956;\n \n uint256 constant IC11x = 10556009619270442534492625284926806630007434804571327583511131615527605130705;\n uint256 constant IC11y = 693363830989493332783658305850455646188088196371520355545151751865010014079;\n \n uint256 constant IC12x = 8534554792067915579614604389696182629499240739879062333502112419263796212856;\n uint256 constant IC12y = 7072896253070058670565264175517999411490551474277670667755271140222925088212;\n \n uint256 constant IC13x = 16851058908720463266568610634766740724322613878197515393707044621237493592474;\n uint256 constant IC13y = 2921798703043006803004466566848382014657571511688478540130957201734680757760;\n \n uint256 constant IC14x = 7620393642241690544543596497893247026112057615774774075422598527638630237828;\n uint256 constant IC14y = 15268439033903233729000463443675295853249877185817343709378544191244820858078;\n \n \n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[14] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n \n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n \n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n \n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n \n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n \n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n \n g1_mulAccC(_pVk, IC5x, IC5y, calldataload(add(pubSignals, 128)))\n \n g1_mulAccC(_pVk, IC6x, IC6y, calldataload(add(pubSignals, 160)))\n \n g1_mulAccC(_pVk, IC7x, IC7y, calldataload(add(pubSignals, 192)))\n \n g1_mulAccC(_pVk, IC8x, IC8y, calldataload(add(pubSignals, 224)))\n \n g1_mulAccC(_pVk, IC9x, IC9y, calldataload(add(pubSignals, 256)))\n \n g1_mulAccC(_pVk, IC10x, IC10y, calldataload(add(pubSignals, 288)))\n \n g1_mulAccC(_pVk, IC11x, IC11y, calldataload(add(pubSignals, 320)))\n \n g1_mulAccC(_pVk, IC12x, IC12y, calldataload(add(pubSignals, 352)))\n \n g1_mulAccC(_pVk, IC13x, IC13y, calldataload(add(pubSignals, 384)))\n \n g1_mulAccC(_pVk, IC14x, IC14y, calldataload(add(pubSignals, 416)))\n \n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n \n checkField(calldataload(add(_pubSignals, 0)))\n \n checkField(calldataload(add(_pubSignals, 32)))\n \n checkField(calldataload(add(_pubSignals, 64)))\n \n checkField(calldataload(add(_pubSignals, 96)))\n \n checkField(calldataload(add(_pubSignals, 128)))\n \n checkField(calldataload(add(_pubSignals, 160)))\n \n checkField(calldataload(add(_pubSignals, 192)))\n \n checkField(calldataload(add(_pubSignals, 224)))\n \n checkField(calldataload(add(_pubSignals, 256)))\n \n checkField(calldataload(add(_pubSignals, 288)))\n \n checkField(calldataload(add(_pubSignals, 320)))\n \n checkField(calldataload(add(_pubSignals, 352)))\n \n checkField(calldataload(add(_pubSignals, 384)))\n \n checkField(calldataload(add(_pubSignals, 416)))\n \n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n }\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json
deleted file mode 100644
index 8a2c60d..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external onlyOnce {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-3c42c26a2ac69c8c9fe1a01db43c15fd10461781.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-3c42c26a2ac69c8c9fe1a01db43c15fd10461781.json
deleted file mode 100644
index 6cf6f8b..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-3c42c26a2ac69c8c9fe1a01db43c15fd10461781.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-3c42c26a2ac69c8c9fe1a01db43c15fd10461781",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/smart-account/TokenBridge.sol": "project/contracts/smart-account/TokenBridge.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/smart-account/TokenBridge.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\ncontract TokenBridge {\n using SafeERC20 for IERC20;\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n address private _lifiDiamondAddress;\n\n constructor(address lifiDiamondAddress) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n function bridgeFullBalance(address tokenAddress, bytes calldata bridgeData) external {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"TokenBridge: Invalid LI.FI address\");\n }\n\n IERC20 token = IERC20(tokenAddress);\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n uint256 balance = token.balanceOf(address(this));\n if (balance > 0) {\n token.forceApprove(_lifiDiamondAddress, balance);\n (bool success, ) = _lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert(\"TokenBridge: Bridge call failed\");\n }\n }\n }\n }\n}"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-3ef82ff417c69c039cc95b3eda5a58b15364ef49.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-3ef82ff417c69c039cc95b3eda5a58b15364ef49.json
deleted file mode 100644
index e6b6fd2..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-3ef82ff417c69c039cc95b3eda5a58b15364ef49.json
+++ /dev/null
@@ -1,130 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-3ef82ff417c69c039cc95b3eda5a58b15364ef49",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV5.sol": "project/contracts/vault/CurvyVaultV5.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV5.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { EIP712Upgradeable } from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport \"./ICurvyVaultV2.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract CurvyVaultV5 is ICurvyVaultV2, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH =\n keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n if (_tokenAddressToTokenId[tokenAddress] != 0) revert TokenAllreadyRegistered();\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function unsupportToken(address tokenAddress) external onlyOwner {\n uint256 tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n\n // Remove from both mappings\n _tokenAddressToTokenId[tokenAddress] = 0;\n _tokenIdToTokenAddress[tokenId] = address(0);\n\n emit TokenUnsupported(tokenAddress, tokenId);\n }\n\n function setFeeAmount(CurvyTypes.FeeUpdate calldata feeUpdate) external onlyOwner {\n if (feeUpdate.depositFee != 0) depositFee = feeUpdate.depositFee;\n else if (feeUpdate.withdrawalFee != 0) withdrawalFee = feeUpdate.withdrawalFee;\n else revert NoFeeUpdate();\n\n emit FeeChange(feeUpdate);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n function forceWithdrawal(uint256 amount, address destinationAddress, uint256 tokenId) external onlyOwner {\n if (destinationAddress == address(0)) revert InvalidDestinationAddress();\n\n // Burn wrapped tokens\n _balances[destinationAddress][tokenId] -= amount;\n\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) {\n revert TokenNotRegistered();\n }\n\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(destinationAddress, amount);\n } else {\n // We are withdrawing ETH\n (bool success, ) = destinationAddress.call{ value: amount }(\"\");\n if (!success) revert ETHTransferFailed();\n }\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n if (msg.sender != _curvyAggregator) revert NotCurvyAggregator();\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n if (msg.value != 0) revert ERC20TransferFailed();\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n } else {\n // We are depositing ETH\n if (amount != msg.value) revert ETHTransferFailed();\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // No fees or gas sponsorship deducted from balance (removed per requirements)\n\n emit Deposit(tokenAddress, to, amount, gasSponsorshipAmount);\n }\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external {\n if (msg.sender != _curvyAggregator && msg.sender != owner()) revert NotCurvyAggregatorOrOwner();\n if (to == address(0)) revert InvalidRecipient();\n if (withdrawalFee == 0) revert NoFeeUpdate();\n\n uint256 feeAmount = (amount * withdrawalFee) / FEE_DENOMINATOR;\n // Burn wrapped tokens\n _balances[msg.sender][tokenId] -= amount;\n _balances[owner()][tokenId] += feeAmount;\n\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n\n // Withdraw\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(to, amount - feeAmount);\n } else {\n // We are withdrawing ETH\n (bool success, ) = to.call{ value: amount - feeAmount }(\"\");\n if (!success) revert ETHTransferFailed();\n }\n\n emit Withdraw(tokenAddress, to, amount);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV2 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount, uint256 gasSponsorshipAmount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenUnsupported(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAllreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error NoFeeUpdate();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n function unsupportToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-3f327cda7e2027584a2dfd0d5fca93cecc58f268.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-3f327cda7e2027584a2dfd0d5fca93cecc58f268.json
deleted file mode 100644
index 5563775..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-3f327cda7e2027584a2dfd0d5fca93cecc58f268.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-3f327cda7e2027584a2dfd0d5fca93cecc58f268",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/smart-account/TokenBridge.sol": "project/contracts/smart-account/TokenBridge.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/smart-account/TokenBridge.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\ncontract TokenBridge {\n using SafeERC20 for IERC20;\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n address private _lifiDiamondAddress;\n\n constructor(address lifiDiamondAddress) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n function bridgeFullBalance(address tokenAddress, bytes calldata bridgeData) external {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"TokenBridge: Invalid LI.FI address\");\n }\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20 token = IERC20(tokenAddress);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance > 0) {\n token.forceApprove(_lifiDiamondAddress, balance);\n (bool success, ) = _lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert(\"TokenBridge: Bridge call failed\");\n }\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance > 0) {\n (bool success, ) = _lifiDiamondAddress.call{ value: balance }(bridgeData);\n\n if (!success) {\n revert(\"TokenBridge: Bridge call failed\");\n }\n }\n }\n }\n}"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
deleted file mode 100644
index 4b57fc4..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/devenv/ICreateX.sol": {
- "content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10.json
deleted file mode 100644
index e1581a6..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-51c6c737b03b2f7ebc5cafe457f7a6865ae07e10",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { PoseidonT4} from \"./utils/PoseidonT4.sol\";\n\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { ICurvyInsertionVerifier, ICurvyAggregationVerifier, ICurvyWithdrawVerifier } from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV1 is Initializable, UUPSUpgradeable, OwnableUpgradeable {\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner, address curvyVaultProxyAddress) public initializer {\n maxDeposits = 2;\n maxWithdrawals = 2;\n maxAggregations = 2;\n\n __Ownable_init(initialOwner);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdate memory _update) external onlyOwner returns (bool)\n {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);\n }\n // TODO: We probably don't need this.\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVault(_update.curvyVault);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function depositNote(\n address from,\n CurvyTypes.Note memory note,\n bytes memory signature\n ) public {\n // TODO: Gas fee\n curvyVault.transfer(CurvyTypes.MetaTransaction(from, address(this), note.token, note.amount, 0, CurvyTypes.MetaTransactionType.Transfer), signature);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n require(_pendingIdsQueue[noteId], \"CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!\");\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n require(\n _notesTreeRoot == publicInputs[numPublicInputs - 2],\n \"CurvyAggregator#commitDepositBatch: Invalid notes root!\"\n );\n\n require(\n insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitDepositBatch: Invalid proof!\"\n );\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n require(_notesTreeRoot == oldNotesTreeRoot, \"CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!\");\n require(_nullifiersTreeRoot == oldNullifiersTreeRoot, \"CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!\");\n\n require(\n aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitAggregationBatch: Invalid proof!\"\n );\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[10] memory publicInputs\n ) public returns (bool) {\n\n require(publicInputs[3] == _nullifiersTreeRoot, \"CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!\");\n require(publicInputs[2] == _notesTreeRoot, \"CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!\");\n\n require(\n withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!\"\n );\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[4 + i];\n address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n destinationAddress,\n publicInputs[numPublicInputs - 1],\n amount,\n 0,\n CurvyTypes.MetaTransactionType.Withdraw\n )\n );\n }\n }\n\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n owner(),\n publicInputs[numPublicInputs - 1],\n publicInputs[1],\n 0,\n CurvyTypes.MetaTransactionType.Withdraw\n )\n );\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {Withdraw, Transfer, Deposit}\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-562d871246bca4936e583b1e48d6b3183bd6bb39.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-562d871246bca4936e583b1e48d6b3183bd6bb39.json
deleted file mode 100644
index aa92aa9..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-562d871246bca4936e583b1e48d6b3183bd6bb39.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-562d871246bca4936e583b1e48d6b3183bd6bb39",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV5.sol": "project/contracts/vault/CurvyVaultV5.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV5.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport \"./ICurvyVaultV2.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract CurvyVaultV5 is ICurvyVaultV2, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH =\n keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n if (_tokenAddressToTokenId[tokenAddress] != 0) revert TokenAllreadyRegistered();\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function unsupportToken(address tokenAddress) external onlyOwner {\n uint256 tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n\n // Remove from both mappings\n _tokenAddressToTokenId[tokenAddress] = 0;\n _tokenIdToTokenAddress[tokenId] = address(0);\n\n emit TokenUnsupported(tokenAddress, tokenId);\n }\n\n function setFeeAmount(CurvyTypes.FeeUpdate calldata feeUpdate) external onlyOwner {\n if (feeUpdate.depositFee != 0) depositFee = feeUpdate.depositFee;\n else if (feeUpdate.withdrawalFee != 0) withdrawalFee = feeUpdate.withdrawalFee;\n else revert NoFeeUpdate();\n\n emit FeeChange(feeUpdate);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n function forceWithdrawal(uint256 amount, address destinationAddress, uint256 tokenId) external onlyOwner {\n if (destinationAddress == address(0)) revert InvalidDestinationAddress();\n\n // Burn wrapped tokens\n _balances[destinationAddress][tokenId] -= amount;\n\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) {\n revert TokenNotRegistered();\n }\n\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(destinationAddress, amount);\n } else {\n // We are withdrawing ETH\n (bool success, ) = destinationAddress.call{ value: amount }(\"\");\n if (!success) revert ETHTransferFailed();\n }\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n if (msg.sender != _curvyAggregator) revert NotCurvyAggregator();\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n if (msg.value != 0) revert ERC20TransferFailed();\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n } else {\n // We are depositing ETH\n if (amount != msg.value) revert ETHTransferFailed();\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // No fees or gas sponsorship deducted from balance (removed per requirements)\n\n emit Deposit(tokenAddress, to, amount, gasSponsorshipAmount);\n }\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external {\n if (msg.sender != _curvyAggregator && msg.sender != owner()) revert NotCurvyAggregatorOrOwner();\n if (to == address(0)) revert InvalidRecipient();\n if (withdrawalFee == 0) revert NoFeeUpdate();\n\n uint256 feeAmount = (amount * withdrawalFee) / FEE_DENOMINATOR;\n // Burn wrapped tokens\n _balances[msg.sender][tokenId] -= amount;\n _balances[owner()][tokenId] += feeAmount;\n\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n\n // Withdraw\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(to, amount - feeAmount);\n } else {\n // We are withdrawing ETH\n (bool success, ) = to.call{ value: amount - feeAmount }(\"\");\n if (!success) revert ETHTransferFailed();\n }\n\n emit Withdraw(tokenAddress, to, amount);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV2 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount, uint256 gasSponsorshipAmount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenUnsupported(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAllreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error NoFeeUpdate();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n function unsupportToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e.json
deleted file mode 100644
index 6e1588a..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport \"../portal/IPortalFactory.sol\";\nimport {\nICurvyInsertionVerifier,\nICurvyAggregationVerifier,\nICurvyWithdrawVerifier,\nICurvyWithdrawVerifierV3\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"./ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVaultV3} from \"../vault/ICurvyVaultV3.sol\";\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {PoseidonT4} from \"./utils/PoseidonT4.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV6 is ICurvyAggregatorAlphaV2, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations in one aggregation batch proof\n uint256 public maxAggregations;\n // Maximum number of withdrawals in one withdrawal batch proof\n uint256 public maxWithdrawals;\n\n // Queue of commited note ids waiting for proof verification and deposit batch commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVaultV3 public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifierV3 public withdrawVerifier;\n\n // Curvy's portal factory contract;\n IPortalFactory public portalFactory;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n __Ownable_init(initialOwner);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdateV2 memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifierV3(_update.withdrawVerifier);\n }\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVaultV3(_update.curvyVault);\n }\n if (_update.portalFactory != address(0)) {\n portalFactory = IPortalFactory(_update.portalFactory);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n /*\n * @dev This function allows the owner to reset the roots of the notes and nullifiers trees to a known state.\n * @notice Only to be used in emergency cases where the contract is in a bad state and cannot be recovered\n * through normal operation (i.e. proof verification and batch commitments).\n */\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable {\n // Only allow auto shielding of portals that were deployed through the portalFactory\n if (!portalFactory.portalIsRegistered(msg.sender)) revert PortalNotRegistered();\n\n // This will revert if tokenId is not found.\n address tokenAddress = curvyVault.getTokenAddress(note.token);\n\n if (tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);\n IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);\n }\n\n curvyVault.deposit{value: msg.value}(tokenAddress, address(this), note.amount);\n\n uint256 feeAmount = note.amount * curvyVault.depositFee() / 10000;\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount - feeAmount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n if (!_pendingIdsQueue[noteId]) revert NoteNotScheduledForDeposit();\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n if (_notesTreeRoot != publicInputs[numPublicInputs - 2]) revert InvalidNotesRoot();\n\n if (!insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n if (_notesTreeRoot != oldNotesTreeRoot) revert CurrentNoteTreeRootMismatch();\n if (_nullifiersTreeRoot != oldNullifiersTreeRoot) revert CurrentNullifierTreeRootMismatch();\n\n if (!aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[9] memory publicInputs\n ) public {\n if (publicInputs[2] != _nullifiersTreeRoot) {\n revert CurrentNullifierTreeRootMismatch();\n }\n if (publicInputs[1] != _notesTreeRoot) revert CurrentNoteTreeRootMismatch();\n\n if (!withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[3 + i];\n address destinationAddress = address(uint160(publicInputs[3 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.withdraw(\n publicInputs[numPublicInputs - 1], // tokenId\n destinationAddress,\n amount\n );\n }\n }\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifiersTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\ninterface ICurvyWithdrawVerifierV3 {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[9] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV3.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV3 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenDeregistered(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAlreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount) external payable;\n function deregisterToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n function depositFee() external view returns (uint96);\n function withdrawalFee() external view returns (uint96);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6.json
deleted file mode 100644
index 14dfbff..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol": {
- "content": "//\n// Copyright 2017 Christian Reitwiessner\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n//\n// 2019 OKIMS\n// ported to solidity 0.6\n// fixed linter warnings\n// added requiere error messages\n//\n//\n// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.28;\nlibrary Pairing {\n struct G1Point {\n uint X;\n uint Y;\n }\n // Encoding of field elements is: X[0] * z + X[1]\n struct G2Point {\n uint[2] X;\n uint[2] Y;\n }\n /// @return the generator of G1\n function P1() internal pure returns (G1Point memory) {\n return G1Point(1, 2);\n }\n /// @return the generator of G2\n function P2() internal pure returns (G2Point memory) {\n // Original code point\n return\n G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n\n /*\n // Changed by Jordi point\n return G2Point(\n [10857046999023057135944570762232829481370756359578518086990519993285655852781,\n 11559732032986387107991004021392285783925812861821192530917403151452391805634],\n [8495653923123431417604973247489272438418190587263600148770280649306958101930,\n 4082367875863433681332203403145435568316851327593401208105741076214120093531]\n );\n*/\n }\n /// @return r the negation of p, i.e. p.addition(p.negate()) should be zero.\n function negate(G1Point memory p) internal pure returns (G1Point memory r) {\n // The prime q in the base field F_q for G1\n uint q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n if (p.X == 0 && p.Y == 0) return G1Point(0, 0);\n return G1Point(p.X, q - (p.Y % q));\n }\n /// @return r the sum of two points of G1\n function addition(G1Point memory p1, G1Point memory p2) internal view returns (G1Point memory r) {\n uint[4] memory input;\n input[0] = p1.X;\n input[1] = p1.Y;\n input[2] = p2.X;\n input[3] = p2.Y;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-add-failed\");\n }\n /// @return r the product of a point on G1 and a scalar, i.e.\n /// p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.\n function scalar_mul(G1Point memory p, uint s) internal view returns (G1Point memory r) {\n uint[3] memory input;\n input[0] = p.X;\n input[1] = p.Y;\n input[2] = s;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-mul-failed\");\n }\n /// @return the result of computing the pairing check\n /// e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n /// For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n /// return true.\n function pairing(G1Point[] memory p1, G2Point[] memory p2) internal view returns (bool) {\n require(p1.length == p2.length, \"pairing-lengths-failed\");\n uint elements = p1.length;\n uint inputSize = elements * 6;\n uint[] memory input = new uint[](inputSize);\n for (uint i = 0; i < elements; i++) {\n input[i * 6 + 0] = p1[i].X;\n input[i * 6 + 1] = p1[i].Y;\n input[i * 6 + 2] = p2[i].X[0];\n input[i * 6 + 3] = p2[i].X[1];\n input[i * 6 + 4] = p2[i].Y[0];\n input[i * 6 + 5] = p2[i].Y[1];\n }\n uint[1] memory out;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-opcode-failed\");\n return out[0] != 0;\n }\n /// Convenience method for a pairing check for two pairs.\n function pairingProd2(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](2);\n G2Point[] memory p2 = new G2Point[](2);\n p1[0] = a1;\n p1[1] = b1;\n p2[0] = a2;\n p2[1] = b2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for three pairs.\n function pairingProd3(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](3);\n G2Point[] memory p2 = new G2Point[](3);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for four pairs.\n function pairingProd4(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2,\n G1Point memory d1,\n G2Point memory d2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](4);\n G2Point[] memory p2 = new G2Point[](4);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p1[3] = d1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n p2[3] = d2;\n return pairing(p1, p2);\n }\n}\ncontract CurvyWithdrawVerifierAlpha_2 {\n using Pairing for *;\n struct VerifyingKey {\n Pairing.G1Point alfa1;\n Pairing.G2Point beta2;\n Pairing.G2Point gamma2;\n Pairing.G2Point delta2;\n Pairing.G1Point[] IC;\n }\n struct Proof {\n Pairing.G1Point A;\n Pairing.G2Point B;\n Pairing.G1Point C;\n }\n function verifyingKey() internal pure returns (VerifyingKey memory vk) {\n vk.alfa1 = Pairing.G1Point(\n 16428432848801857252194528405604668803277877773566238944394625302971855135431,\n 16846502678714586896801519656441059708016666274385668027902869494772365009666\n );\n\n vk.beta2 = Pairing.G2Point(\n [\n 3182164110458002340215786955198810119980427837186618912744689678939861918171,\n 16348171800823588416173124589066524623406261996681292662100840445103873053252\n ],\n [\n 4920802715848186258981584729175884379674325733638798907835771393452862684714,\n 19687132236965066906216944365591810874384658708175106803089633851114028275753\n ]\n );\n vk.gamma2 = Pairing.G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n vk.delta2 = Pairing.G2Point(\n [\n 5134938851194498055138716288113036625141602053184981412733799136644539868397,\n 6999723686378219385015083566752410343544958362147775310371915283489773587081\n ],\n [\n 16143735824282086765904813373481689877955881811585622208150907274317775637256,\n 15167935180042832911506376747898747793167371423428120959483422819862011673604\n ]\n );\n vk.IC = new Pairing.G1Point[](11);\n\n vk.IC[0] = Pairing.G1Point(\n 7925322306079913650107293273085723111079883500364968736523058081294372258270,\n 14429458957753680242266563605661071578200444399506227155307129052603861999372\n );\n\n vk.IC[1] = Pairing.G1Point(\n 9621289505295595742569558738283422269339012970483732592198024818005547944199,\n 12111681074460052445442106828868414387187667992458469408832440570807241968538\n );\n\n vk.IC[2] = Pairing.G1Point(\n 7312128641250390938630229823853164701825981217883024106709148533481658390570,\n 12440505658580027463676844388904074300845923000490442514545302362020951914769\n );\n\n vk.IC[3] = Pairing.G1Point(\n 16877443780461134531177127919731997699796382227971205250997579019059067630688,\n 49152147949061934121116331361525073710464700984994035213208262218202566855\n );\n\n vk.IC[4] = Pairing.G1Point(\n 18696420709995272904249742465996319382995593873083879239060307166953665029183,\n 12007466175774591460576490507161035255928488364053833728962686940733506548534\n );\n\n vk.IC[5] = Pairing.G1Point(\n 4888833272471300078669542579753876773143068450802251901446392823653767491496,\n 16737220595164826793433974502199440968696340680754227465404664862229923440736\n );\n\n vk.IC[6] = Pairing.G1Point(\n 13927018071292564092594216699177107983276050775453219388810810008345720147931,\n 21289909446685655410617670235198232729874074282712000770937342029481198302756\n );\n\n vk.IC[7] = Pairing.G1Point(\n 410619771485288302733238769884660429689150676831325313990328694222201830648,\n 9570270376692734191686217026556366896517764137093201149479185260147900973818\n );\n\n vk.IC[8] = Pairing.G1Point(\n 15981118535239832607798426652562238258797467538556791923525133698106219023033,\n 17838190582793853033041876784548510169542454211941522962331441193096118683061\n );\n\n vk.IC[9] = Pairing.G1Point(\n 21414624434676218606022320224607110391590369224829219206993574118162544764206,\n 15330341033713101095090980677285886777683712546677347512441970386287355341362\n );\n\n vk.IC[10] = Pairing.G1Point(\n 18868358771793700272243668633223006755697535655297431894870707368785053232034,\n 10151002155083359926185957008537320894287083103144507387393430057508383162545\n );\n }\n function verify(uint[] memory input, Proof memory proof) internal view returns (uint) {\n uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n VerifyingKey memory vk = verifyingKey();\n require(input.length + 1 == vk.IC.length, \"verifier-bad-input\");\n // Compute the linear combination vk_x\n Pairing.G1Point memory vk_x = Pairing.G1Point(0, 0);\n for (uint i = 0; i < input.length; i++) {\n require(input[i] < snark_scalar_field, \"verifier-gte-snark-scalar-field\");\n vk_x = Pairing.addition(vk_x, Pairing.scalar_mul(vk.IC[i + 1], input[i]));\n }\n vk_x = Pairing.addition(vk_x, vk.IC[0]);\n if (\n !Pairing.pairingProd4(\n Pairing.negate(proof.A),\n proof.B,\n vk.alfa1,\n vk.beta2,\n vk_x,\n vk.gamma2,\n proof.C,\n vk.delta2\n )\n ) return 1;\n return 0;\n }\n /// @return r bool true if proof is valid\n function verifyProof(\n uint[2] memory a,\n uint[2][2] memory b,\n uint[2] memory c,\n uint[10] memory input\n ) public view returns (bool r) {\n Proof memory proof;\n proof.A = Pairing.G1Point(a[0], a[1]);\n proof.B = Pairing.G2Point([b[0][0], b[0][1]], [b[1][0], b[1][1]]);\n proof.C = Pairing.G1Point(c[0], c[1]);\n uint[] memory inputValues = new uint[](input.length);\n for (uint i = 0; i < input.length; i++) {\n inputValues[i] = input[i];\n }\n if (verify(inputValues, proof) == 0) {\n return true;\n } else {\n return false;\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-7338cabb151a669954fee94ce75c2a9f3b86c1ff.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-7338cabb151a669954fee94ce75c2a9f3b86c1ff.json
deleted file mode 100644
index 043864d..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-7338cabb151a669954fee94ce75c2a9f3b86c1ff.json
+++ /dev/null
@@ -1,112 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-7338cabb151a669954fee94ce75c2a9f3b86c1ff",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggreagtorAlphaV3.sol": "project/contracts/aggregator-alpha/CurvyAggreagtorAlphaV3.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggreagtorAlphaV3.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { PoseidonT4 } from \"./utils/PoseidonT4.sol\";\n\nimport { ICurvyAggregatorAlpha } from \"./ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport {\n ICurvyInsertionVerifier,\n ICurvyAggregationVerifier,\n ICurvyWithdrawVerifier\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV3 is ICurvyAggregatorAlpha, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner, address curvyVaultProxyAddress) public initializer {\n maxDeposits = 2;\n maxWithdrawals = 2;\n maxAggregations = 2;\n\n __Ownable_init(initialOwner);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdate memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);\n }\n // TODO: We probably don't need this.\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVault(_update.curvyVault);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable {\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);\n IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);\n }\n\n curvyVault.deposit{ value: msg.value }(tokenAddress, address(this), note.amount, 0);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function depositNote(address from, CurvyTypes.Note memory note, bytes memory signature) public {\n // TODO: Gas fee\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n from,\n address(this),\n note.token,\n note.amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n ),\n signature\n );\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n require(\n _pendingIdsQueue[noteId],\n \"CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!\"\n );\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n require(\n _notesTreeRoot == publicInputs[numPublicInputs - 2],\n \"CurvyAggregator#commitDepositBatch: Invalid notes root!\"\n );\n\n require(\n insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitDepositBatch: Invalid proof!\"\n );\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n require(\n _notesTreeRoot == oldNotesTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!\"\n );\n require(\n _nullifiersTreeRoot == oldNullifiersTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!\"\n );\n\n require(\n aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitAggregationBatch: Invalid proof!\"\n );\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[10] memory publicInputs\n ) public returns (bool) {\n require(\n publicInputs[3] == _nullifiersTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!\"\n );\n require(\n publicInputs[2] == _notesTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!\"\n );\n\n require(\n withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!\"\n );\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[4 + i];\n address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n destinationAddress,\n publicInputs[numPublicInputs - 1],\n amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n }\n }\n\n // Fee collection\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n owner(),\n publicInputs[numPublicInputs - 1],\n publicInputs[1],\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(\n address indexed from,\n address indexed to,\n uint256 token_id,\n uint256 amount\n );\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(\n CurvyTypes.MetaTransactionType metaTransactionType,\n uint96 fee\n );\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(\n CurvyTypes.MetaTransaction calldata metaTransaction\n ) external;\n function transfer(\n CurvyTypes.MetaTransaction calldata metaTransaction,\n bytes memory signature\n ) external;\n function deposit(\n address tokenAddress,\n address to,\n uint256 amount,\n uint256 gasSponsorshipAmount\n ) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440.json
deleted file mode 100644
index f3d5251..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440.json
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol": "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Proxy.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Proxy.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.2.0) (proxy/ERC1967/ERC1967Proxy.sol)\n\npragma solidity ^0.8.22;\n\nimport {Proxy} from \"../Proxy.sol\";\nimport {ERC1967Utils} from \"./ERC1967Utils.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[ERC-1967], so that it doesn't conflict with the storage layout of the\n * implementation behind the proxy.\n */\ncontract ERC1967Proxy is Proxy {\n /**\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `implementation`.\n *\n * If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will typically be an\n * encoded function call, and allows initializing the storage of the proxy like a Solidity constructor.\n *\n * Requirements:\n *\n * - If `data` is empty, `msg.value` must be zero.\n */\n constructor(address implementation, bytes memory _data) payable {\n ERC1967Utils.upgradeToAndCall(implementation, _data);\n }\n\n /**\n * @dev Returns the current implementation address.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\n */\n function _implementation() internal view virtual override returns (address) {\n return ERC1967Utils.getImplementation();\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/Proxy.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)\n\npragma solidity ^0.8.20;\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 internal 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 overridden so it returns the address to which the fallback\n * function 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 internal call site, it will return directly to the external caller.\n */\n function _fallback() internal virtual {\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6.json
deleted file mode 100644
index ee14c1d..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlphaV3_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlphaV3_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlphaV3_2.sol": {
- "content": "//\n// Copyright 2017 Christian Reitwiessner\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n//\n// 2019 OKIMS\n// ported to solidity 0.6\n// fixed linter warnings\n// added requiere error messages\n//\n//\n// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.28;\nlibrary Pairing {\n struct G1Point {\n uint X;\n uint Y;\n }\n // Encoding of field elements is: X[0] * z + X[1]\n struct G2Point {\n uint[2] X;\n uint[2] Y;\n }\n /// @return the generator of G1\n function P1() internal pure returns (G1Point memory) {\n return G1Point(1, 2);\n }\n /// @return the generator of G2\n function P2() internal pure returns (G2Point memory) {\n // Original code point\n return G2Point(\n [11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781],\n [4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930]\n );\n\n/*\n // Changed by Jordi point\n return G2Point(\n [10857046999023057135944570762232829481370756359578518086990519993285655852781,\n 11559732032986387107991004021392285783925812861821192530917403151452391805634],\n [8495653923123431417604973247489272438418190587263600148770280649306958101930,\n 4082367875863433681332203403145435568316851327593401208105741076214120093531]\n );\n*/\n }\n /// @return r the negation of p, i.e. p.addition(p.negate()) should be zero.\n function negate(G1Point memory p) internal pure returns (G1Point memory r) {\n // The prime q in the base field F_q for G1\n uint q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n if (p.X == 0 && p.Y == 0)\n return G1Point(0, 0);\n return G1Point(p.X, q - (p.Y % q));\n }\n /// @return r the sum of two points of G1\n function addition(G1Point memory p1, G1Point memory p2) internal view returns (G1Point memory r) {\n uint[4] memory input;\n input[0] = p1.X;\n input[1] = p1.Y;\n input[2] = p2.X;\n input[3] = p2.Y;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success case 0 { invalid() }\n }\n require(success,\"pairing-add-failed\");\n }\n /// @return r the product of a point on G1 and a scalar, i.e.\n /// p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.\n function scalar_mul(G1Point memory p, uint s) internal view returns (G1Point memory r) {\n uint[3] memory input;\n input[0] = p.X;\n input[1] = p.Y;\n input[2] = s;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success case 0 { invalid() }\n }\n require (success,\"pairing-mul-failed\");\n }\n /// @return the result of computing the pairing check\n /// e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n /// For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n /// return true.\n function pairing(G1Point[] memory p1, G2Point[] memory p2) internal view returns (bool) {\n require(p1.length == p2.length,\"pairing-lengths-failed\");\n uint elements = p1.length;\n uint inputSize = elements * 6;\n uint[] memory input = new uint[](inputSize);\n for (uint i = 0; i < elements; i++)\n {\n input[i * 6 + 0] = p1[i].X;\n input[i * 6 + 1] = p1[i].Y;\n input[i * 6 + 2] = p2[i].X[0];\n input[i * 6 + 3] = p2[i].X[1];\n input[i * 6 + 4] = p2[i].Y[0];\n input[i * 6 + 5] = p2[i].Y[1];\n }\n uint[1] memory out;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)\n // Use \"invalid\" to make gas estimation work\n switch success case 0 { invalid() }\n }\n require(success,\"pairing-opcode-failed\");\n return out[0] != 0;\n }\n /// Convenience method for a pairing check for two pairs.\n function pairingProd2(G1Point memory a1, G2Point memory a2, G1Point memory b1, G2Point memory b2) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](2);\n G2Point[] memory p2 = new G2Point[](2);\n p1[0] = a1;\n p1[1] = b1;\n p2[0] = a2;\n p2[1] = b2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for three pairs.\n function pairingProd3(\n G1Point memory a1, G2Point memory a2,\n G1Point memory b1, G2Point memory b2,\n G1Point memory c1, G2Point memory c2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](3);\n G2Point[] memory p2 = new G2Point[](3);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for four pairs.\n function pairingProd4(\n G1Point memory a1, G2Point memory a2,\n G1Point memory b1, G2Point memory b2,\n G1Point memory c1, G2Point memory c2,\n G1Point memory d1, G2Point memory d2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](4);\n G2Point[] memory p2 = new G2Point[](4);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p1[3] = d1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n p2[3] = d2;\n return pairing(p1, p2);\n }\n}\ncontract CurvyWithdrawVerifierAlphaV3_2 {\n using Pairing for *;\n struct VerifyingKey {\n Pairing.G1Point alfa1;\n Pairing.G2Point beta2;\n Pairing.G2Point gamma2;\n Pairing.G2Point delta2;\n Pairing.G1Point[] IC;\n }\n struct Proof {\n Pairing.G1Point A;\n Pairing.G2Point B;\n Pairing.G1Point C;\n }\n function verifyingKey() internal pure returns (VerifyingKey memory vk) {\n vk.alfa1 = Pairing.G1Point(\n 16428432848801857252194528405604668803277877773566238944394625302971855135431,\n 16846502678714586896801519656441059708016666274385668027902869494772365009666\n );\n\n vk.beta2 = Pairing.G2Point(\n [3182164110458002340215786955198810119980427837186618912744689678939861918171,\n 16348171800823588416173124589066524623406261996681292662100840445103873053252],\n [4920802715848186258981584729175884379674325733638798907835771393452862684714,\n 19687132236965066906216944365591810874384658708175106803089633851114028275753]\n );\n vk.gamma2 = Pairing.G2Point(\n [11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781],\n [4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930]\n );\n vk.delta2 = Pairing.G2Point(\n [2629073454240497276495237582203958829928240345954183892004220964215350086697,\n 13930854982623718453289732752136762003664282184105307951538851480572039239826],\n [15314073400369028500150070590166851671533164583934476504023782450681671139722,\n 19438795359737874000067950561613485070810449804447213710393780245436629871241]\n );\n vk.IC = new Pairing.G1Point[](10);\n \n vk.IC[0] = Pairing.G1Point( \n 17358714059841222655332555531812235894109831895939288822209597786484194004863,\n 14953941882192864699533120346316451540864449764432844191250995386043174562371\n ); \n \n vk.IC[1] = Pairing.G1Point( \n 14707218010613725880195470048650004212134541938119801136114039008326030689365,\n 18320647487748443634631050211111359198105608565369585954318403602972339849780\n ); \n \n vk.IC[2] = Pairing.G1Point( \n 8989312582885446885833748175655560409482657795311180950160518326342472603800,\n 557166861511881845529531194055084633607831351270765224971413965507323712524\n ); \n \n vk.IC[3] = Pairing.G1Point( \n 12786430539677617471552158293457307249781165226142263249913950566815750079298,\n 11398018832020179765870491364908913120010438413632357901814163805845358638381\n ); \n \n vk.IC[4] = Pairing.G1Point( \n 16210995105227059027055214569324979655672241758449305148063470834785622131051,\n 15244949167172684892832934586361646130136907223866787595966498705221149329793\n ); \n \n vk.IC[5] = Pairing.G1Point( \n 15447330785926537730466425182615917999104443954774877515677926064602210193456,\n 302212551864788351314950467567028950946317878468902126254042783216156326426\n ); \n \n vk.IC[6] = Pairing.G1Point( \n 15221291898292046222050336984382082815006716106268892115367982579336029737716,\n 5138896563554254177957933723143979887729763268835353232886728990578894380059\n ); \n \n vk.IC[7] = Pairing.G1Point( \n 4125252840753634499061230047644851300426147657383250128263001332984745707019,\n 7399946977839598911983525055350660162234308704827113722327110715122546440152\n ); \n \n vk.IC[8] = Pairing.G1Point( \n 7260975874555128741095427413685646957107200617415339174800132586489819027663,\n 6201891190318116751084429033679404898210718148112816120902223799122160007325\n ); \n \n vk.IC[9] = Pairing.G1Point( \n 355120942596678532382372578286663626822260096543361710393946745790670473096,\n 5580572685923606338084839985253731998127719266704886204917037156330299761418\n ); \n \n }\n function verify(uint[] memory input, Proof memory proof) internal view returns (uint) {\n uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n VerifyingKey memory vk = verifyingKey();\n require(input.length + 1 == vk.IC.length,\"verifier-bad-input\");\n // Compute the linear combination vk_x\n Pairing.G1Point memory vk_x = Pairing.G1Point(0, 0);\n for (uint i = 0; i < input.length; i++) {\n require(input[i] < snark_scalar_field,\"verifier-gte-snark-scalar-field\");\n vk_x = Pairing.addition(vk_x, Pairing.scalar_mul(vk.IC[i + 1], input[i]));\n }\n vk_x = Pairing.addition(vk_x, vk.IC[0]);\n if (!Pairing.pairingProd4(\n Pairing.negate(proof.A), proof.B,\n vk.alfa1, vk.beta2,\n vk_x, vk.gamma2,\n proof.C, vk.delta2\n )) return 1;\n return 0;\n }\n /// @return r bool true if proof is valid\n function verifyProof(\n uint[2] memory a,\n uint[2][2] memory b,\n uint[2] memory c,\n uint[9] memory input\n ) public view returns (bool r) {\n Proof memory proof;\n proof.A = Pairing.G1Point(a[0], a[1]);\n proof.B = Pairing.G2Point([b[0][0], b[0][1]], [b[1][0], b[1][1]]);\n proof.C = Pairing.G1Point(c[0], c[1]);\n uint[] memory inputValues = new uint[](input.length);\n for(uint i = 0; i < input.length; i++){\n inputValues[i] = input[i];\n }\n if (verify(inputValues, proof) == 0) {\n return true;\n } else {\n return false;\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
deleted file mode 100644
index 156f127..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n // TODO: Emit shielding failed and if that event is detected in the simulation, then we will mark the shielding as failed.\n return; // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
deleted file mode 100644
index 6ea1fae..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f.json
deleted file mode 100644
index f9024c3..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f.json
+++ /dev/null
@@ -1,130 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV6.sol": "project/contracts/vault/CurvyVaultV6.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV6.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {EIP712Upgradeable} from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport \"./ICurvyVaultV3.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ncontract CurvyVaultV6 is ICurvyVaultV3, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n // DEPRECATED: This is no longer used, but because of storage layout it *MUST* not be deleted\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH = keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n // DEPRECATED: This is no longer used, but because of storage layout it *MUST* not be deleted\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @dev DO NOT REMOVE THIS FUNCTION.\n * This function does not affect existing deployments during an upgrade. The `initializer`\n * modifier guarantees it can only be executed once per proxy. When an existing proxy is\n * upgraded to this version, its state is already marked as initialized, making this\n * function safely uncallable and preventing any accidental state resets.\n *\n * The transferFee is unused anymore, but it is kept for storage layout reasons.\n */\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"1.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0;\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n if (_tokenAddressToTokenId[tokenAddress] != 0) revert TokenAlreadyRegistered();\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function deregisterToken(address tokenAddress) external onlyOwner {\n uint256 tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n\n // Remove from both mappings\n _tokenAddressToTokenId[tokenAddress] = 0;\n _tokenIdToTokenAddress[tokenId] = address(0);\n\n emit TokenDeregistered(tokenAddress, tokenId);\n }\n\n /**\n * @dev This function is used to set the fees for the vault.\n * @notice If you want to keep the current fee, pass the current fee values.\n */\n function setFeeAmount(CurvyTypes.FeeUpdate calldata feeUpdate) external onlyOwner {\n depositFee = feeUpdate.depositFee;\n withdrawalFee = feeUpdate.withdrawalFee;\n\n emit FeeChange(feeUpdate);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n function collectFees(uint256 tokenId) external onlyOwner {\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) {\n revert TokenNotRegistered();\n }\n\n uint256 amount = _balances[msg.sender][tokenId];\n\n // Burn wrapped tokens\n _balances[msg.sender][tokenId] = 0;\n\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(msg.sender, amount);\n } else {\n // We are withdrawing ETH\n (bool success,) = msg.sender.call{value: amount}(\"\");\n if (!success) revert ETHTransferFailed();\n }\n }\n\n //#endregion\n\n //#region Public functions\n\n function deposit(address tokenAddress, address to, uint256 amount) public payable {\n if (msg.sender != _curvyAggregator) revert NotCurvyAggregator();\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n if (msg.value != 0) revert ERC20TransferFailed();\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n } else {\n // We are depositing ETH\n if (amount != msg.value) revert ETHTransferFailed();\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n emit Deposit(tokenAddress, to, amount);\n }\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external {\n if (msg.sender != _curvyAggregator && msg.sender != owner()) revert NotCurvyAggregatorOrOwner();\n if (to == address(0)) revert InvalidRecipient();\n\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n\n _balances[msg.sender][tokenId] -= amount;\n\n uint256 amountAfterFees = amount;\n\n if (withdrawalFee != 0) {\n uint256 feeAmount = (amount * withdrawalFee) / FEE_DENOMINATOR;\n _balances[owner()][tokenId] += feeAmount;\n\n amountAfterFees -= feeAmount;\n }\n\n // Withdraw\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success,) = to.call{value: amountAfterFees}(\"\");\n if (!success) revert ETHTransferFailed();\n }\n\n emit Withdraw(tokenAddress, to, amount);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV3.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV3 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenDeregistered(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAlreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount) external payable;\n function deregisterToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n function depositFee() external view returns (uint96);\n function withdrawalFee() external view returns (uint96);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c.json
deleted file mode 100644
index af16376..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/smart-account/TokenBridge.sol": "project/contracts/smart-account/TokenBridge.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/smart-account/TokenBridge.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\ncontract TokenBridge {\n using SafeERC20 for IERC20;\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n address public immutable _lifiDiamondAddress;\n\n constructor(address lifiDiamondAddress) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n function bridgeFullBalance(address tokenAddress, bytes calldata bridgeData) external {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"TokenBridge: Invalid LI.FI address\");\n }\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20 token = IERC20(tokenAddress);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance > 0) {\n token.forceApprove(_lifiDiamondAddress, balance);\n (bool success, ) = _lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert(\"TokenBridge: Bridge call failed\");\n }\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance > 0) {\n (bool success, ) = _lifiDiamondAddress.call{ value: balance }(bridgeData);\n\n if (!success) {\n revert(\"TokenBridge: Bridge call failed\");\n }\n }\n }\n }\n}"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3.json
deleted file mode 100644
index 3d088ca..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol": {
- "content": "//\n// Copyright 2017 Christian Reitwiessner\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n//\n// 2019 OKIMS\n// ported to solidity 0.6\n// fixed linter warnings\n// added requiere error messages\n//\n//\n// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.28;\nlibrary Pairing {\n struct G1Point {\n uint X;\n uint Y;\n }\n // Encoding of field elements is: X[0] * z + X[1]\n struct G2Point {\n uint[2] X;\n uint[2] Y;\n }\n /// @return the generator of G1\n function P1() internal pure returns (G1Point memory) {\n return G1Point(1, 2);\n }\n /// @return the generator of G2\n function P2() internal pure returns (G2Point memory) {\n // Original code point\n return\n G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n\n /*\n // Changed by Jordi point\n return G2Point(\n [10857046999023057135944570762232829481370756359578518086990519993285655852781,\n 11559732032986387107991004021392285783925812861821192530917403151452391805634],\n [8495653923123431417604973247489272438418190587263600148770280649306958101930,\n 4082367875863433681332203403145435568316851327593401208105741076214120093531]\n );\n*/\n }\n /// @return r the negation of p, i.e. p.addition(p.negate()) should be zero.\n function negate(G1Point memory p) internal pure returns (G1Point memory r) {\n // The prime q in the base field F_q for G1\n uint q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n if (p.X == 0 && p.Y == 0) return G1Point(0, 0);\n return G1Point(p.X, q - (p.Y % q));\n }\n /// @return r the sum of two points of G1\n function addition(G1Point memory p1, G1Point memory p2) internal view returns (G1Point memory r) {\n uint[4] memory input;\n input[0] = p1.X;\n input[1] = p1.Y;\n input[2] = p2.X;\n input[3] = p2.Y;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-add-failed\");\n }\n /// @return r the product of a point on G1 and a scalar, i.e.\n /// p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.\n function scalar_mul(G1Point memory p, uint s) internal view returns (G1Point memory r) {\n uint[3] memory input;\n input[0] = p.X;\n input[1] = p.Y;\n input[2] = s;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-mul-failed\");\n }\n /// @return the result of computing the pairing check\n /// e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n /// For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n /// return true.\n function pairing(G1Point[] memory p1, G2Point[] memory p2) internal view returns (bool) {\n require(p1.length == p2.length, \"pairing-lengths-failed\");\n uint elements = p1.length;\n uint inputSize = elements * 6;\n uint[] memory input = new uint[](inputSize);\n for (uint i = 0; i < elements; i++) {\n input[i * 6 + 0] = p1[i].X;\n input[i * 6 + 1] = p1[i].Y;\n input[i * 6 + 2] = p2[i].X[0];\n input[i * 6 + 3] = p2[i].X[1];\n input[i * 6 + 4] = p2[i].Y[0];\n input[i * 6 + 5] = p2[i].Y[1];\n }\n uint[1] memory out;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-opcode-failed\");\n return out[0] != 0;\n }\n /// Convenience method for a pairing check for two pairs.\n function pairingProd2(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](2);\n G2Point[] memory p2 = new G2Point[](2);\n p1[0] = a1;\n p1[1] = b1;\n p2[0] = a2;\n p2[1] = b2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for three pairs.\n function pairingProd3(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](3);\n G2Point[] memory p2 = new G2Point[](3);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for four pairs.\n function pairingProd4(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2,\n G1Point memory d1,\n G2Point memory d2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](4);\n G2Point[] memory p2 = new G2Point[](4);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p1[3] = d1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n p2[3] = d2;\n return pairing(p1, p2);\n }\n}\ncontract CurvyInsertionVerifierAlpha_2 {\n using Pairing for *;\n struct VerifyingKey {\n Pairing.G1Point alfa1;\n Pairing.G2Point beta2;\n Pairing.G2Point gamma2;\n Pairing.G2Point delta2;\n Pairing.G1Point[] IC;\n }\n struct Proof {\n Pairing.G1Point A;\n Pairing.G2Point B;\n Pairing.G1Point C;\n }\n function verifyingKey() internal pure returns (VerifyingKey memory vk) {\n vk.alfa1 = Pairing.G1Point(\n 16428432848801857252194528405604668803277877773566238944394625302971855135431,\n 16846502678714586896801519656441059708016666274385668027902869494772365009666\n );\n\n vk.beta2 = Pairing.G2Point(\n [\n 3182164110458002340215786955198810119980427837186618912744689678939861918171,\n 16348171800823588416173124589066524623406261996681292662100840445103873053252\n ],\n [\n 4920802715848186258981584729175884379674325733638798907835771393452862684714,\n 19687132236965066906216944365591810874384658708175106803089633851114028275753\n ]\n );\n vk.gamma2 = Pairing.G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n vk.delta2 = Pairing.G2Point(\n [\n 18636305219060197755142552798859754992691237779368175144321965215614772886749,\n 20631961236040874040284325043922269483493386739263319339179566539669024091553\n ],\n [\n 6062467770915580792523479562164363142131272842624386565050670208025880943712,\n 5683038379984125016950864290616138890020909462459316831254293410267557232813\n ]\n );\n vk.IC = new Pairing.G1Point[](5);\n\n vk.IC[0] = Pairing.G1Point(\n 5816405080132073842932636331548798060287333642513578277180259722519592795524,\n 167846514636555010335339211314249629625345112505210789316691533712824745017\n );\n\n vk.IC[1] = Pairing.G1Point(\n 16584502374027503506024692833264286792457678958231145828389358929597017385713,\n 15748689222547201941193319824722912430230667032882892650015734892750472090725\n );\n\n vk.IC[2] = Pairing.G1Point(\n 21809942545528186761024818449976149188699553835331594187000245837157587253784,\n 14731189013652074114558457413733648844549518028992110266510193006020163640258\n );\n\n vk.IC[3] = Pairing.G1Point(\n 12375928931499227586057462745689681279605957098146559032552961095082288974384,\n 21382385962682560488728021197264829649373546209573568813651131435191806663006\n );\n\n vk.IC[4] = Pairing.G1Point(\n 11590169247667311309535152367467028564534113649694348861287888388789778372825,\n 10050997091330424673052365058770795074460689984708190359138561322568592225656\n );\n }\n function verify(uint[] memory input, Proof memory proof) internal view returns (uint) {\n uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n VerifyingKey memory vk = verifyingKey();\n require(input.length + 1 == vk.IC.length, \"verifier-bad-input\");\n // Compute the linear combination vk_x\n Pairing.G1Point memory vk_x = Pairing.G1Point(0, 0);\n for (uint i = 0; i < input.length; i++) {\n require(input[i] < snark_scalar_field, \"verifier-gte-snark-scalar-field\");\n vk_x = Pairing.addition(vk_x, Pairing.scalar_mul(vk.IC[i + 1], input[i]));\n }\n vk_x = Pairing.addition(vk_x, vk.IC[0]);\n if (\n !Pairing.pairingProd4(\n Pairing.negate(proof.A),\n proof.B,\n vk.alfa1,\n vk.beta2,\n vk_x,\n vk.gamma2,\n proof.C,\n vk.delta2\n )\n ) return 1;\n return 0;\n }\n /// @return r bool true if proof is valid\n function verifyProof(\n uint[2] memory a,\n uint[2][2] memory b,\n uint[2] memory c,\n uint[4] memory input\n ) public view returns (bool r) {\n Proof memory proof;\n proof.A = Pairing.G1Point(a[0], a[1]);\n proof.B = Pairing.G2Point([b[0][0], b[0][1]], [b[1][0], b[1][1]]);\n proof.C = Pairing.G1Point(c[0], c[1]);\n uint[] memory inputValues = new uint[](input.length);\n for (uint i = 0; i < input.length; i++) {\n inputValues[i] = input[i];\n }\n if (verify(inputValues, proof) == 0) {\n return true;\n } else {\n return false;\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a.json
deleted file mode 100644
index 959d02b..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2_30.sol": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2_30.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2_30.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyWithdrawVerifierAlpha_2_2_30 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 13609597477422817544806719940578211239660138492812767741570640666225907996628;\n uint256 constant alphay = 3315096884673693139303582008970220799715870802021815302955257248960229394132;\n uint256 constant betax1 = 20244502790401697640374985581353359627000854646412500262318694555628864857705;\n uint256 constant betax2 = 18009540316062949354047865494362899064185820891461168067970621853171214969025;\n uint256 constant betay1 = 21485324237153900776296822920524193097954549703233921348239585839570605636041;\n uint256 constant betay2 = 18873349741553391434573540024886497503852362769056818998084383144689457732005;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 1326573999234008915860970255668288665544687867246129633383511223618949749675;\n uint256 constant deltax2 = 4671378872751554262593117516718744941438728548819807763673365133047577037789;\n uint256 constant deltay1 = 16788886948198384057861007888463049568905967713972406315720808677012605857589;\n uint256 constant deltay2 = 11763588175345468321335670711599742080686820706950268603977732622497589861879;\n\n \n uint256 constant IC0x = 1565517161687003293015203570982904294478626690646768701975043216594621592173;\n uint256 constant IC0y = 9694355955203911819720634547311219374077692615266951917112047220710786696066;\n \n uint256 constant IC1x = 979945337289157544465183094998207304988359546651753529054442854403648860856;\n uint256 constant IC1y = 19527314231074839844772667723668224759674402860087649048034186839079758285399;\n \n uint256 constant IC2x = 14522339657615904046051278782672208276707120841768130534814843332473328376222;\n uint256 constant IC2y = 11309944904233649642419513097668591526894933049496988389467872182124635975426;\n \n uint256 constant IC3x = 17854426610750151012676330172911429119329082369774743182642967443717533145246;\n uint256 constant IC3y = 13422631716882796157367980767149467009150631687579343367693154869559844831183;\n \n uint256 constant IC4x = 14381632278275491454733551438059761643253582687536284462920350647287073126817;\n uint256 constant IC4y = 14823985165837034859254520683016322640783231019809121812600711785852273166108;\n \n uint256 constant IC5x = 16790879009575318221954224842324031534536849545047916454607058538194724276745;\n uint256 constant IC5y = 6899814906212521666943103904395568640983758257879132097464129073206566126873;\n \n uint256 constant IC6x = 8018893499351236263103155285420032758820796440251410495471541816315495266277;\n uint256 constant IC6y = 4762898927554697058046729761410725160386295046666187561218166645241266489872;\n \n uint256 constant IC7x = 2077665499933989871395901398270067713684599048254726261637808647152187513748;\n uint256 constant IC7y = 6645012713224753527444993508873936964659179606799301448287822376656176150474;\n \n uint256 constant IC8x = 21310265414724367103657686595975716121777979372889010619048140799543879599363;\n uint256 constant IC8y = 18020192422922234349073163820329272314687512021497633628908475759070524238330;\n \n uint256 constant IC9x = 21745711951983953323143648715757143291929632148515174524254308490186139094942;\n uint256 constant IC9y = 8231097676639530057501848745731491430367422729950269437691529859914575582399;\n \n \n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[9] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n \n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n \n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n \n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n \n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n \n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n \n g1_mulAccC(_pVk, IC5x, IC5y, calldataload(add(pubSignals, 128)))\n \n g1_mulAccC(_pVk, IC6x, IC6y, calldataload(add(pubSignals, 160)))\n \n g1_mulAccC(_pVk, IC7x, IC7y, calldataload(add(pubSignals, 192)))\n \n g1_mulAccC(_pVk, IC8x, IC8y, calldataload(add(pubSignals, 224)))\n \n g1_mulAccC(_pVk, IC9x, IC9y, calldataload(add(pubSignals, 256)))\n \n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n \n checkField(calldataload(add(_pubSignals, 0)))\n \n checkField(calldataload(add(_pubSignals, 32)))\n \n checkField(calldataload(add(_pubSignals, 64)))\n \n checkField(calldataload(add(_pubSignals, 96)))\n \n checkField(calldataload(add(_pubSignals, 128)))\n \n checkField(calldataload(add(_pubSignals, 160)))\n \n checkField(calldataload(add(_pubSignals, 192)))\n \n checkField(calldataload(add(_pubSignals, 224)))\n \n checkField(calldataload(add(_pubSignals, 256)))\n \n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n }\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14.json
deleted file mode 100644
index 2a021b6..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/utils/PoseidonT4.sol": "project/contracts/aggregator-alpha/utils/PoseidonT4.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-a1ec8ae54ec3c3e75deb5eb53ae32bde7c84db32.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-a1ec8ae54ec3c3e75deb5eb53ae32bde7c84db32.json
deleted file mode 100644
index 3744963..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-a1ec8ae54ec3c3e75deb5eb53ae32bde7c84db32.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-a1ec8ae54ec3c3e75deb5eb53ae32bde7c84db32",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n constructor(uint256 ownerHash) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress = curvyVault.getTokenAddress(note.token);\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function initializeConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function updateLifiDiamondAddress(address lifiDiamondAddress) external onlyOwner returns (bool) {\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function getCreationCode(uint256 ownerHash) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(bytes calldata bridgeData, CurvyTypes.Note memory note, address tokenAddress) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(\n address indexed from,\n address indexed to,\n uint256 token_id,\n uint256 amount\n );\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(\n CurvyTypes.MetaTransactionType metaTransactionType,\n uint96 fee\n );\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(\n CurvyTypes.MetaTransaction calldata metaTransaction\n ) external;\n function transfer(\n CurvyTypes.MetaTransaction calldata metaTransaction,\n bytes memory signature\n ) external;\n function deposit(\n address tokenAddress,\n address to,\n uint256 amount,\n uint256 gasSponsorshipAmount\n ) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf.json
deleted file mode 100644
index 22242df..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyInsertionVerifierAlpha_2_2 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 20307802206310835049281446719619406914403408233534023009065534288114617826473;\n uint256 constant alphay = 5124923528349004096804802867681163296253794121526069691105337288056989236534;\n uint256 constant betax1 = 17665584761811172121608977391651659832381211132533915972221722990910032624526;\n uint256 constant betax2 = 20634947832892786903702098392181315569158565212553131507288743678171240259127;\n uint256 constant betay1 = 14170370701364050801543403272076467220544732849936498879655467551776691049762;\n uint256 constant betay2 = 3981022164671254524634818017405389124636055168959450938940336390298178068387;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 8324458164872580116890275898155248989588293942324575877012805566566499276728;\n uint256 constant deltax2 = 8315309777885305610111807473453936168191945213991206111039245717203885893351;\n uint256 constant deltay1 = 7882777314230858165213889738077912354123609446151206037361232958412563127686;\n uint256 constant deltay2 = 12547494205828438908997366082022218578006480853790971582035574650149105921917;\n\n\n uint256 constant IC0x = 6892060391983583930786695607356201710633476603378493079140130305061253027956;\n uint256 constant IC0y = 19080513010577291544096152944295682098544960004869191446276625294423342895423;\n\n uint256 constant IC1x = 2963012065475003042271739402030206132721261823221997567008785725181941320123;\n uint256 constant IC1y = 9577798803486024577782087417325886468350268769123545804460990397049802395332;\n\n uint256 constant IC2x = 896693100646333969295278520057034307353923912762387119798142505789755794910;\n uint256 constant IC2y = 18401215118615681028646813305991791500210052969133418321764793803415915217356;\n\n uint256 constant IC3x = 8678736677087893343210029059877270687079384428934088844145551630105386635454;\n uint256 constant IC3y = 7641653529471813483495008224199427350806682431466620696180348099838063513182;\n\n uint256 constant IC4x = 1419338030980550849687672964605247848460934958329247722331319767569137152200;\n uint256 constant IC4y = 2768820051961925877239732948059596900621163756977367880461149400586087247362;\n\n\n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[4] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n\n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n\n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n\n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n\n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n\n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n\n checkField(calldataload(add(_pubSignals, 0)))\n\n checkField(calldataload(add(_pubSignals, 32)))\n\n checkField(calldataload(add(_pubSignals, 64)))\n\n checkField(calldataload(add(_pubSignals, 96)))\n\n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json
deleted file mode 100644
index 26ef1c9..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function initializeConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function updateLifiDiamondAddress(address lifiDiamondAddress) external onlyOwner returns (bool) {\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74.json
deleted file mode 100644
index 5c0e081..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74.json
+++ /dev/null
@@ -1,118 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport \"../portal/IPortalFactory.sol\";\nimport {\n ICurvyInsertionVerifier,\n ICurvyAggregationVerifier,\n ICurvyWithdrawVerifier,\n ICurvyWithdrawVerifierV3\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"./ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {ICurvyVaultV2} from \"../vault/ICurvyVaultV2.sol\";\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {PoseidonT4} from \"./utils/PoseidonT4.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV5 is ICurvyAggregatorAlphaV2, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations in one aggregation batch proof\n uint256 public maxAggregations;\n // Maximum number of withdrawals in one withdrawal batch proof\n uint256 public maxWithdrawals;\n\n // Queue of commited note ids waiting for proof verification and deposit batch commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVaultV2 public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifierV3 public withdrawVerifier;\n\n // Curvy's portal factory contract;\n IPortalFactory public portalFactory;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n __Ownable_init(initialOwner);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdateV2 memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifierV3(_update.withdrawVerifier);\n }\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVaultV2(_update.curvyVault);\n }\n if (_update.portalFactory != address(0)) {\n portalFactory = IPortalFactory(_update.portalFactory);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n /*\n * @dev This function allows the owner to reset the roots of the notes and nullifiers trees to a known state.\n * @notice Only to be used in emergency cases where the contract is in a bad state and cannot be recovered\n * through normal operation (i.e. proof verification and batch commitments).\n */\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable {\n // Only allow auto shielding of portals that were deployed through the portalFactory\n if (!portalFactory.portalIsRegistered(msg.sender)) revert PortalNotRegistered();\n\n // This will revert if tokenId is not found.\n address tokenAddress = curvyVault.getTokenAddress(note.token);\n\n if (tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);\n IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);\n }\n\n curvyVault.deposit{value: msg.value}(tokenAddress, address(this), note.amount);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n if (!_pendingIdsQueue[noteId]) revert NoteNotScheduledForDeposit();\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n if (_notesTreeRoot != publicInputs[numPublicInputs - 2]) revert InvalidNotesRoot();\n\n if (!insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n if (_notesTreeRoot != oldNotesTreeRoot) revert CurrentNoteTreeRootMismatch();\n if (_nullifiersTreeRoot != oldNullifiersTreeRoot) revert CurrentNullifierTreeRootMismatch();\n\n if (!aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[9] memory publicInputs\n ) public {\n if (publicInputs[2] != _nullifiersTreeRoot) {\n revert CurrentNullifierTreeRootMismatch();\n }\n if (publicInputs[1] != _notesTreeRoot) revert CurrentNoteTreeRootMismatch();\n\n if (!withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[3 + i];\n address destinationAddress = address(uint160(publicInputs[3 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.withdraw(\n publicInputs[numPublicInputs - 1], // tokenId\n destinationAddress,\n amount\n );\n }\n }\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifiersTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\ninterface ICurvyWithdrawVerifierV3 {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[9] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV2 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenDeregistered(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAlreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount) external payable;\n function deregisterToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-b3a1d648d32b12f0484789e87380bb6347a2a2ec.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-b3a1d648d32b12f0484789e87380bb6347a2a2ec.json
deleted file mode 100644
index aefc6ff..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-b3a1d648d32b12f0484789e87380bb6347a2a2ec.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b3a1d648d32b12f0484789e87380bb6347a2a2ec",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/smart-account/TokenBridge.sol": "project/contracts/smart-account/TokenBridge.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/smart-account/TokenBridge.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\ncontract TokenBridge {\n using SafeERC20 for IERC20;\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n address private _lifiDiamondAddress;\n\n constructor(address lifiDiamondAddress) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n function bridgeAllTokens(address tokenAddress, bytes calldata bridgeData) external {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"TokenBridge: Invalid LI.FI address\");\n }\n\n IERC20 token = IERC20(tokenAddress);\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n uint256 balance = token.balanceOf(address(this));\n if (balance > 0) {\n token.forceApprove(_lifiDiamondAddress, balance);\n (bool success, ) = _lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n }\n }\n}"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
deleted file mode 100644
index e4ce59c..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf.json
deleted file mode 100644
index dfc32e1..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf.json
+++ /dev/null
@@ -1,130 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV5.sol": "project/contracts/vault/CurvyVaultV5.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV5.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {EIP712Upgradeable} from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport \"./ICurvyVaultV2.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ncontract CurvyVaultV5 is ICurvyVaultV2, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n // DEPRECATED: This is no longer used, but because of storage layout it *MUST* not be deleted\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH = keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n // DEPRECATED: This is no longer used, but because of storage layout it *MUST* not be deleted\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @dev DO NOT REMOVE THIS FUNCTION.\n * This function does not affect existing deployments during an upgrade. The `initializer`\n * modifier guarantees it can only be executed once per proxy. When an existing proxy is\n * upgraded to this version, its state is already marked as initialized, making this\n * function safely uncallable and preventing any accidental state resets.\n *\n * The transferFee is unused anymore, but it is kept for storage layout reasons.\n */\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"1.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0;\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n if (_tokenAddressToTokenId[tokenAddress] != 0) revert TokenAlreadyRegistered();\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function deregisterToken(address tokenAddress) external onlyOwner {\n uint256 tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n\n // Remove from both mappings\n _tokenAddressToTokenId[tokenAddress] = 0;\n _tokenIdToTokenAddress[tokenId] = address(0);\n\n emit TokenDeregistered(tokenAddress, tokenId);\n }\n\n /**\n * @dev This function is used to set the fees for the vault.\n * @notice If you want to keep the current fee, pass the current fee values.\n */\n function setFeeAmount(CurvyTypes.FeeUpdate calldata feeUpdate) external onlyOwner {\n depositFee = feeUpdate.depositFee;\n withdrawalFee = feeUpdate.withdrawalFee;\n\n emit FeeChange(feeUpdate);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n function collectFees(uint256 tokenId) external onlyOwner {\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) {\n revert TokenNotRegistered();\n }\n\n uint256 amount = _balances[msg.sender][tokenId];\n\n // Burn wrapped tokens\n _balances[msg.sender][tokenId] = 0;\n\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(msg.sender, amount);\n } else {\n // We are withdrawing ETH\n (bool success,) = msg.sender.call{value: amount}(\"\");\n if (!success) revert ETHTransferFailed();\n }\n }\n\n //#endregion\n\n //#region Public functions\n\n function deposit(address tokenAddress, address to, uint256 amount) public payable {\n if (msg.sender != _curvyAggregator) revert NotCurvyAggregator();\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n if (msg.value != 0) revert ERC20TransferFailed();\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n } else {\n // We are depositing ETH\n if (amount != msg.value) revert ETHTransferFailed();\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n emit Deposit(tokenAddress, to, amount);\n }\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external {\n if (msg.sender != _curvyAggregator && msg.sender != owner()) revert NotCurvyAggregatorOrOwner();\n if (to == address(0)) revert InvalidRecipient();\n\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n\n _balances[msg.sender][tokenId] -= amount;\n\n uint256 amountAfterFees = amount;\n\n if (withdrawalFee != 0) {\n uint256 feeAmount = (amount * withdrawalFee) / FEE_DENOMINATOR;\n _balances[owner()][tokenId] += feeAmount;\n\n amountAfterFees -= feeAmount;\n }\n\n // Withdraw\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success,) = to.call{value: amountAfterFees}(\"\");\n if (!success) revert ETHTransferFailed();\n }\n\n emit Withdraw(tokenAddress, to, amount);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV2 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenDeregistered(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAlreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount) external payable;\n function deregisterToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139.json
deleted file mode 100644
index d60dd44..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyWithdrawVerifierAlpha_2_2 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 12397805951025518106727837530396484148707566518486264449692018677592715552738;\n uint256 constant alphay = 15955090815437592355277639300964029657297847031418701683987115570774046891084;\n uint256 constant betax1 = 4558033428938724707702173270530051784881875483362452783309319477109892316105;\n uint256 constant betax2 = 562684918113878349440529415978735829020597426398767547815813179569677877300;\n uint256 constant betay1 = 20489741225546273474807268360309498543857989566183651420924474108165432690449;\n uint256 constant betay2 = 454381379487956449014758402076019864127573099149576738294140161985720735727;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 1942957736037963101203219158469259529546799241990758433727523856964538100073;\n uint256 constant deltax2 = 18751923381200656298966034357393007161012447906702590224817337765901518639673;\n uint256 constant deltay1 = 1133999629005264953340361763833931385589890012974815573425435607942024998386;\n uint256 constant deltay2 = 14471269438293025701528144565650621453664657630625879213448935801370895962940;\n\n\n uint256 constant IC0x = 11968520527261008482201395429648269043035616497073888658724571012437789293939;\n uint256 constant IC0y = 5136251148319110970366250455217987647549782888975639692208545140414393137884;\n\n uint256 constant IC1x = 5975241901947889428732629350826663755899042053573889198253119292209887821040;\n uint256 constant IC1y = 2685690711649235809807871684645747831411670364944637928549630358451580743776;\n\n uint256 constant IC2x = 21457725883524874632812608873663348299725989674105072179521462800873159704544;\n uint256 constant IC2y = 19168217719060062389194429118110295922878525697032925549314953343761367307141;\n\n uint256 constant IC3x = 17554887761244498448299647193645089417418333466521419290903975536912994480102;\n uint256 constant IC3y = 6828503642628660310065798863926994844602749634343008753314631578060116317289;\n\n uint256 constant IC4x = 18045958587858551125780098548280608486861406147719724376886960587385758892570;\n uint256 constant IC4y = 1460992944153042284168728471643688563838047682787154519800969757480118977318;\n\n uint256 constant IC5x = 8036932202895490274341216374336553590284129118220623742481357002018210069085;\n uint256 constant IC5y = 18124381701282194246396478048337342484804646549782698384328525226734865874217;\n\n uint256 constant IC6x = 20732565017826841759780149484537562794481082473815326973722686385643825053232;\n uint256 constant IC6y = 1578295143682207919150217030105921698678835562616948345397787740004184473466;\n\n uint256 constant IC7x = 13336419499841102064953828107563315860524065147821200507183965277570290809701;\n uint256 constant IC7y = 15646739618986350809196316363572210110061458933904816195180902726350713059476;\n\n uint256 constant IC8x = 3781871953990367480957688085798233518568839779161221598822628397760557895286;\n uint256 constant IC8y = 12817226393979548789463163683773821122513428271793963480322864256370266927153;\n\n uint256 constant IC9x = 2926575412652084811061107906584177183682681890851185080729303468987134565693;\n uint256 constant IC9y = 6977667946282706236499241992533773181650515025258779907882853261697686173390;\n\n uint256 constant IC10x = 13730737400268905683628732665166925183849825441370098666588386862696253859993;\n uint256 constant IC10y = 21232995117437150082021144389671781866736648491602691192891602074767930210292;\n\n\n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[10] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n\n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n\n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n\n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n\n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n\n g1_mulAccC(_pVk, IC5x, IC5y, calldataload(add(pubSignals, 128)))\n\n g1_mulAccC(_pVk, IC6x, IC6y, calldataload(add(pubSignals, 160)))\n\n g1_mulAccC(_pVk, IC7x, IC7y, calldataload(add(pubSignals, 192)))\n\n g1_mulAccC(_pVk, IC8x, IC8y, calldataload(add(pubSignals, 224)))\n\n g1_mulAccC(_pVk, IC9x, IC9y, calldataload(add(pubSignals, 256)))\n\n g1_mulAccC(_pVk, IC10x, IC10y, calldataload(add(pubSignals, 288)))\n\n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n\n checkField(calldataload(add(_pubSignals, 0)))\n\n checkField(calldataload(add(_pubSignals, 32)))\n\n checkField(calldataload(add(_pubSignals, 64)))\n\n checkField(calldataload(add(_pubSignals, 96)))\n\n checkField(calldataload(add(_pubSignals, 128)))\n\n checkField(calldataload(add(_pubSignals, 160)))\n\n checkField(calldataload(add(_pubSignals, 192)))\n\n checkField(calldataload(add(_pubSignals, 224)))\n\n checkField(calldataload(add(_pubSignals, 256)))\n\n checkField(calldataload(add(_pubSignals, 288)))\n\n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f.json
deleted file mode 100644
index 190f7aa..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyAggregationVerifierAlpha_2_2_2 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 12397805951025518106727837530396484148707566518486264449692018677592715552738;\n uint256 constant alphay = 15955090815437592355277639300964029657297847031418701683987115570774046891084;\n uint256 constant betax1 = 4558033428938724707702173270530051784881875483362452783309319477109892316105;\n uint256 constant betax2 = 562684918113878349440529415978735829020597426398767547815813179569677877300;\n uint256 constant betay1 = 20489741225546273474807268360309498543857989566183651420924474108165432690449;\n uint256 constant betay2 = 454381379487956449014758402076019864127573099149576738294140161985720735727;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 14247188116453405673621645482734779597271943579236786988002822486035578351827;\n uint256 constant deltax2 = 19127457743533062382695057246317969331583652196516180652505167533941470596184;\n uint256 constant deltay1 = 1120896676694033813888539165134426369540073925998956380068766205657266649164;\n uint256 constant deltay2 = 11509882780442288397461078955924788953216456968851718873762534083798685470176;\n\n\n uint256 constant IC0x = 29462445247651336873197670218881433811515270657621608123062437811400729293;\n uint256 constant IC0y = 18171755157403336899093830921271746363256651403384351735695773262049736733550;\n\n uint256 constant IC1x = 20155116508805270335695092444982456411255426185965433598991038764554589237491;\n uint256 constant IC1y = 15100236777573876942404435988104314855338324214411252535388491438352277620011;\n\n uint256 constant IC2x = 10211871721893502392904500352667359944639931168739288628275746498444439334624;\n uint256 constant IC2y = 14857576678067996171949154311157731596082175516312363029732523714738213679225;\n\n uint256 constant IC3x = 17681178928244319555205465208759196004958135576922343337773782176967565453923;\n uint256 constant IC3y = 12020350826305074268886914285212991819930696406522096455169685411373063924283;\n\n uint256 constant IC4x = 15990091135939845008053796985720708958381089922139813153004307037770120415376;\n uint256 constant IC4y = 14686431646476347283962842352013379254853767901657891326891810060612370131980;\n\n uint256 constant IC5x = 9836802977203983623311722609159922779452226468276418069924737841205211059775;\n uint256 constant IC5y = 5851543777081950781696453016189466308824375346225749203286800288308819146995;\n\n uint256 constant IC6x = 20494598241570455849918685888437752184000806835792517335988569390529750670399;\n uint256 constant IC6y = 5118171864497209081972949748612803357992268865433760622407683235582888296730;\n\n uint256 constant IC7x = 4161116648736026602325932141983145072422766799723371889670488259084982158410;\n uint256 constant IC7y = 9823852613097441041513408079495633594306721875095369575303676346788966932542;\n\n uint256 constant IC8x = 18765382825961060386998956112280419451294524096891700144870842762014869263482;\n uint256 constant IC8y = 19072335486260980952513432441473964489080839652759276569808438095375047060405;\n\n uint256 constant IC9x = 13461757427291354529150925761759132586768268951212262050759971788739599457371;\n uint256 constant IC9y = 4798781689873879774176109834716065302885296520372365401475518178120364765053;\n\n uint256 constant IC10x = 2825946145004188674530444966368925818974257222272928787863708902753465126277;\n uint256 constant IC10y = 1132081428014299195407240376318746218027138258204471169466177788741899724649;\n\n uint256 constant IC11x = 6037061286657655112833173191022971038494250639700090848969212974351407272955;\n uint256 constant IC11y = 14288245102826282599683294768365607032501106839126325328556517607105285011189;\n\n uint256 constant IC12x = 16666416945139505069027327107503900232722595465132986777080649891257196764894;\n uint256 constant IC12y = 16479310741244346892769904991381444059360278176600162038328339853031393579364;\n\n uint256 constant IC13x = 8457614266693283160896406297631606953977487470037761765606926637481574421021;\n uint256 constant IC13y = 7268797945103287108426579652981774503857175386562341294721963484244801300809;\n\n uint256 constant IC14x = 17506341415928441858395452534096119812461333575351484400640668498682876605148;\n uint256 constant IC14y = 3698938041800489752726811068263827706724617934585101138986055289302086103389;\n\n\n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[14] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n\n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n\n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n\n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n\n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n\n g1_mulAccC(_pVk, IC5x, IC5y, calldataload(add(pubSignals, 128)))\n\n g1_mulAccC(_pVk, IC6x, IC6y, calldataload(add(pubSignals, 160)))\n\n g1_mulAccC(_pVk, IC7x, IC7y, calldataload(add(pubSignals, 192)))\n\n g1_mulAccC(_pVk, IC8x, IC8y, calldataload(add(pubSignals, 224)))\n\n g1_mulAccC(_pVk, IC9x, IC9y, calldataload(add(pubSignals, 256)))\n\n g1_mulAccC(_pVk, IC10x, IC10y, calldataload(add(pubSignals, 288)))\n\n g1_mulAccC(_pVk, IC11x, IC11y, calldataload(add(pubSignals, 320)))\n\n g1_mulAccC(_pVk, IC12x, IC12y, calldataload(add(pubSignals, 352)))\n\n g1_mulAccC(_pVk, IC13x, IC13y, calldataload(add(pubSignals, 384)))\n\n g1_mulAccC(_pVk, IC14x, IC14y, calldataload(add(pubSignals, 416)))\n\n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n\n checkField(calldataload(add(_pubSignals, 0)))\n\n checkField(calldataload(add(_pubSignals, 32)))\n\n checkField(calldataload(add(_pubSignals, 64)))\n\n checkField(calldataload(add(_pubSignals, 96)))\n\n checkField(calldataload(add(_pubSignals, 128)))\n\n checkField(calldataload(add(_pubSignals, 160)))\n\n checkField(calldataload(add(_pubSignals, 192)))\n\n checkField(calldataload(add(_pubSignals, 224)))\n\n checkField(calldataload(add(_pubSignals, 256)))\n\n checkField(calldataload(add(_pubSignals, 288)))\n\n checkField(calldataload(add(_pubSignals, 320)))\n\n checkField(calldataload(add(_pubSignals, 352)))\n\n checkField(calldataload(add(_pubSignals, 384)))\n\n checkField(calldataload(add(_pubSignals, 416)))\n\n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
deleted file mode 100644
index 7489326..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note) external;\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is purely the ABI-encoded struct\n * (e.g., it was encoded using abi.encode(bridgeData))\n */\n function _decodeBridgeDataStruct(bytes calldata bridgeCallData) internal pure returns (LiFiBridgeData memory) {\n return abi.decode(bridgeCallData, (LiFiBridgeData));\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, address sendingAssetId, uint256 amount) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (sendingAssetId != address(0) && sendingAssetId != NATIVE_ETH) {\n IERC20 token = IERC20(sendingAssetId);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, note.amount);\n }\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeDataStruct(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, amount);\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, amount, bridgeData);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f.json
deleted file mode 100644
index f734896..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol": {
- "content": "//\n// Copyright 2017 Christian Reitwiessner\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n//\n// 2019 OKIMS\n// ported to solidity 0.6\n// fixed linter warnings\n// added requiere error messages\n//\n//\n// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.28;\nlibrary Pairing {\n struct G1Point {\n uint X;\n uint Y;\n }\n // Encoding of field elements is: X[0] * z + X[1]\n struct G2Point {\n uint[2] X;\n uint[2] Y;\n }\n /// @return the generator of G1\n function P1() internal pure returns (G1Point memory) {\n return G1Point(1, 2);\n }\n /// @return the generator of G2\n function P2() internal pure returns (G2Point memory) {\n // Original code point\n return\n G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n\n /*\n // Changed by Jordi point\n return G2Point(\n [10857046999023057135944570762232829481370756359578518086990519993285655852781,\n 11559732032986387107991004021392285783925812861821192530917403151452391805634],\n [8495653923123431417604973247489272438418190587263600148770280649306958101930,\n 4082367875863433681332203403145435568316851327593401208105741076214120093531]\n );\n*/\n }\n /// @return r the negation of p, i.e. p.addition(p.negate()) should be zero.\n function negate(G1Point memory p) internal pure returns (G1Point memory r) {\n // The prime q in the base field F_q for G1\n uint q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n if (p.X == 0 && p.Y == 0) return G1Point(0, 0);\n return G1Point(p.X, q - (p.Y % q));\n }\n /// @return r the sum of two points of G1\n function addition(G1Point memory p1, G1Point memory p2) internal view returns (G1Point memory r) {\n uint[4] memory input;\n input[0] = p1.X;\n input[1] = p1.Y;\n input[2] = p2.X;\n input[3] = p2.Y;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-add-failed\");\n }\n /// @return r the product of a point on G1 and a scalar, i.e.\n /// p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.\n function scalar_mul(G1Point memory p, uint s) internal view returns (G1Point memory r) {\n uint[3] memory input;\n input[0] = p.X;\n input[1] = p.Y;\n input[2] = s;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-mul-failed\");\n }\n /// @return the result of computing the pairing check\n /// e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n /// For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n /// return true.\n function pairing(G1Point[] memory p1, G2Point[] memory p2) internal view returns (bool) {\n require(p1.length == p2.length, \"pairing-lengths-failed\");\n uint elements = p1.length;\n uint inputSize = elements * 6;\n uint[] memory input = new uint[](inputSize);\n for (uint i = 0; i < elements; i++) {\n input[i * 6 + 0] = p1[i].X;\n input[i * 6 + 1] = p1[i].Y;\n input[i * 6 + 2] = p2[i].X[0];\n input[i * 6 + 3] = p2[i].X[1];\n input[i * 6 + 4] = p2[i].Y[0];\n input[i * 6 + 5] = p2[i].Y[1];\n }\n uint[1] memory out;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-opcode-failed\");\n return out[0] != 0;\n }\n /// Convenience method for a pairing check for two pairs.\n function pairingProd2(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](2);\n G2Point[] memory p2 = new G2Point[](2);\n p1[0] = a1;\n p1[1] = b1;\n p2[0] = a2;\n p2[1] = b2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for three pairs.\n function pairingProd3(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](3);\n G2Point[] memory p2 = new G2Point[](3);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for four pairs.\n function pairingProd4(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2,\n G1Point memory d1,\n G2Point memory d2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](4);\n G2Point[] memory p2 = new G2Point[](4);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p1[3] = d1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n p2[3] = d2;\n return pairing(p1, p2);\n }\n}\ncontract CurvyAggregationVerifierAlpha_2 {\n using Pairing for *;\n struct VerifyingKey {\n Pairing.G1Point alfa1;\n Pairing.G2Point beta2;\n Pairing.G2Point gamma2;\n Pairing.G2Point delta2;\n Pairing.G1Point[] IC;\n }\n struct Proof {\n Pairing.G1Point A;\n Pairing.G2Point B;\n Pairing.G1Point C;\n }\n function verifyingKey() internal pure returns (VerifyingKey memory vk) {\n vk.alfa1 = Pairing.G1Point(\n 16428432848801857252194528405604668803277877773566238944394625302971855135431,\n 16846502678714586896801519656441059708016666274385668027902869494772365009666\n );\n\n vk.beta2 = Pairing.G2Point(\n [\n 3182164110458002340215786955198810119980427837186618912744689678939861918171,\n 16348171800823588416173124589066524623406261996681292662100840445103873053252\n ],\n [\n 4920802715848186258981584729175884379674325733638798907835771393452862684714,\n 19687132236965066906216944365591810874384658708175106803089633851114028275753\n ]\n );\n vk.gamma2 = Pairing.G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n vk.delta2 = Pairing.G2Point(\n [\n 1825820289445528230748516471303857211851647812178238644398694711892060335102,\n 4501157781715747347326168237438946199631233637039603190454156790024140170532\n ],\n [\n 2976320905856289398462407715158750554758711795923018343152013782540268573338,\n 8065057629097218075468818461668875107508867318519822752109695059605063759743\n ]\n );\n vk.IC = new Pairing.G1Point[](15);\n\n vk.IC[0] = Pairing.G1Point(\n 11200124153184451635609882308695941695299065822515604818428490874957516968544,\n 351599459091154081834565481907831295536571009664154516711371514507534537924\n );\n\n vk.IC[1] = Pairing.G1Point(\n 17523841805234438479622380916346797360075392171607980673630575387049417242504,\n 13289142455981019844666631116997357642308096477675875239365376390530915636565\n );\n\n vk.IC[2] = Pairing.G1Point(\n 16746757079611460155423717702821756597011979265569706823451544529394680331569,\n 5895458274955609861385562616131856787903006372495797294609570835562705630636\n );\n\n vk.IC[3] = Pairing.G1Point(\n 14127482189652462155064731555835502755013656834412536971159921420581690974934,\n 20972656051236665024151562033324700560519205436455326893079525751320282585826\n );\n\n vk.IC[4] = Pairing.G1Point(\n 14580157399388369037332019611784129511147010464280832254037678387990510320216,\n 1156244037397095377907506151159747807385598085151953095125221542232459781707\n );\n\n vk.IC[5] = Pairing.G1Point(\n 14590871185281906275792434443685212134229407115720576014231924109918532363423,\n 5959209397832805552448947593117074559622964817162361505512971088303811736123\n );\n\n vk.IC[6] = Pairing.G1Point(\n 20201034757384523034750370638651840799381923260057426513046720249367942927662,\n 13310240425583744609524200316716161773019379466271897428566996672193783474644\n );\n\n vk.IC[7] = Pairing.G1Point(\n 12993571855859323326789126599640048145924820083081470964551627062894104638932,\n 2521467008216835644009977822413367714654763996963405057427943471742378187229\n );\n\n vk.IC[8] = Pairing.G1Point(\n 644479126338776177875611439307149801940697823408876598202163177696812056230,\n 3259608218321073927123799071684570288276186889110648470965811205442418453318\n );\n\n vk.IC[9] = Pairing.G1Point(\n 18616248727979558767963045303042732245655414233405863537147546654506877648919,\n 21007181885380641107567124859608576630313975132949218965313917530068026034348\n );\n\n vk.IC[10] = Pairing.G1Point(\n 16542765496795800099762929935049082290142877961245786125523420623234647385136,\n 20936230615665064995225716565795322981492740487463861151827401558596300599229\n );\n\n vk.IC[11] = Pairing.G1Point(\n 9256351824249849328111189255216609819183023880083950734211844506616465067031,\n 7708821775396992189236181896073504806661486656527392329166820850192121208270\n );\n\n vk.IC[12] = Pairing.G1Point(\n 194682654485999029052793081152618414270293252026507044373168224453479917315,\n 3149660330041749446855662611494401400910302078867553834930485587333418413096\n );\n\n vk.IC[13] = Pairing.G1Point(\n 740646390511892530424670165807113591122942423540196858609773072637607592792,\n 4800156649851932114269991997960979152383472708142020802762828152081927430386\n );\n\n vk.IC[14] = Pairing.G1Point(\n 4813266068119240960813116245992549920458196449520670498440968746560888020985,\n 8202677805642766197766182170871009520342188751173046950187476642267562851673\n );\n }\n function verify(uint[] memory input, Proof memory proof) internal view returns (uint) {\n uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n VerifyingKey memory vk = verifyingKey();\n require(input.length + 1 == vk.IC.length, \"verifier-bad-input\");\n // Compute the linear combination vk_x\n Pairing.G1Point memory vk_x = Pairing.G1Point(0, 0);\n for (uint i = 0; i < input.length; i++) {\n require(input[i] < snark_scalar_field, \"verifier-gte-snark-scalar-field\");\n vk_x = Pairing.addition(vk_x, Pairing.scalar_mul(vk.IC[i + 1], input[i]));\n }\n vk_x = Pairing.addition(vk_x, vk.IC[0]);\n if (\n !Pairing.pairingProd4(\n Pairing.negate(proof.A),\n proof.B,\n vk.alfa1,\n vk.beta2,\n vk_x,\n vk.gamma2,\n proof.C,\n vk.delta2\n )\n ) return 1;\n return 0;\n }\n /// @return r bool true if proof is valid\n function verifyProof(\n uint[2] memory a,\n uint[2][2] memory b,\n uint[2] memory c,\n uint[14] memory input\n ) public view returns (bool r) {\n Proof memory proof;\n proof.A = Pairing.G1Point(a[0], a[1]);\n proof.B = Pairing.G2Point([b[0][0], b[0][1]], [b[1][0], b[1][1]]);\n proof.C = Pairing.G1Point(c[0], c[1]);\n uint[] memory inputValues = new uint[](input.length);\n for (uint i = 0; i < input.length; i++) {\n inputValues[i] = input[i];\n }\n if (verify(inputValues, proof) == 0) {\n return true;\n } else {\n return false;\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477.json
deleted file mode 100644
index e538733..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_30.sol": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_30.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_30.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyInsertionVerifierAlpha_2_30 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 6409627461027314381187468885143279306198448876048297566463301954058327510814;\n uint256 constant alphay = 12640837106096309059951908366270479311827929827962903462162212783594404420318;\n uint256 constant betax1 = 5549494384221185918318645225448751739016405918291851539409691184048609234995;\n uint256 constant betax2 = 8231530609589765620572345306193536337315037298983907898646122212897803219552;\n uint256 constant betay1 = 18178257033245058400722845292582229521725560892668828752442725877662722404413;\n uint256 constant betay2 = 11567528303928621672875082759207269099998905446359254464834566777644442986764;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 13150187827804098580167194353396651525401190924161928452717195968979198279667;\n uint256 constant deltax2 = 19659687456793278204393856162384522848917490025047546228310774933303031363859;\n uint256 constant deltay1 = 18599301451010334650893181475001684113283131999338606595494535648225928516680;\n uint256 constant deltay2 = 175693180205772694080223110192202412843423206625032649564534105696047342305;\n\n \n uint256 constant IC0x = 4135656527027618943839187826965702424585853129588027519355769429239703878811;\n uint256 constant IC0y = 13490848697663523098413137617593516625231121353036010990327157308917327084274;\n \n uint256 constant IC1x = 4277342632844015816144163412031098603531813411267905296660058137054759162265;\n uint256 constant IC1y = 12281413836847143766162883406525148477888833200311739953868211971043788013083;\n \n uint256 constant IC2x = 11729591549821466135250610177646826646615835478231762444594923545825176910658;\n uint256 constant IC2y = 21137417387833128216038636590746800605445709838492046953316924336043862960363;\n \n uint256 constant IC3x = 21815948384521701101362279090949311073966738683038664301487749963410452873180;\n uint256 constant IC3y = 2473977254957273979077603512259814337713693644954267768429404391046322680925;\n \n uint256 constant IC4x = 10876006368643772253894605942973519414689312177049486195205521130863288506162;\n uint256 constant IC4y = 11400330890729911598144462415260556565988610300976556417263527604260649187032;\n \n \n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[4] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n \n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n \n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n \n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n \n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n \n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n \n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n \n checkField(calldataload(add(_pubSignals, 0)))\n \n checkField(calldataload(add(_pubSignals, 32)))\n \n checkField(calldataload(add(_pubSignals, 64)))\n \n checkField(calldataload(add(_pubSignals, 96)))\n \n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n }\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8.json
deleted file mode 100644
index 1f0ad7e..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-e813415d1ee651045593f993605e003a0de18ea8",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { PoseidonT4} from \"./utils/PoseidonT4.sol\";\n\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { ICurvyInsertionVerifier, ICurvyAggregationVerifier, ICurvyWithdrawVerifier } from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV2 is Initializable, UUPSUpgradeable, OwnableUpgradeable {\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner, address curvyVaultProxyAddress) public initializer {\n maxDeposits = 2;\n maxWithdrawals = 2;\n maxAggregations = 2;\n\n __Ownable_init(initialOwner);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdate memory _update) external onlyOwner returns (bool)\n {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);\n }\n // TODO: We probably don't need this.\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVault(_update.curvyVault);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function depositNote(\n address from,\n CurvyTypes.Note memory note,\n bytes memory signature\n ) public {\n // TODO: Gas fee\n curvyVault.transfer(CurvyTypes.MetaTransaction(from, address(this), note.token, note.amount, 0, CurvyTypes.MetaTransactionType.Transfer), signature);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n require(_pendingIdsQueue[noteId], \"CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!\");\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n require(\n _notesTreeRoot == publicInputs[numPublicInputs - 2],\n \"CurvyAggregator#commitDepositBatch: Invalid notes root!\"\n );\n\n require(\n insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitDepositBatch: Invalid proof!\"\n );\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n require(_notesTreeRoot == oldNotesTreeRoot, \"CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!\");\n require(_nullifiersTreeRoot == oldNullifiersTreeRoot, \"CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!\");\n\n require(\n aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitAggregationBatch: Invalid proof!\"\n );\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[10] memory publicInputs\n ) public returns (bool) {\n\n require(publicInputs[3] == _nullifiersTreeRoot, \"CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!\");\n require(publicInputs[2] == _notesTreeRoot, \"CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!\");\n\n require(\n withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!\"\n );\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[4 + i];\n address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n destinationAddress,\n publicInputs[numPublicInputs - 1],\n amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n }\n }\n\n // Fee collection\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n owner(),\n publicInputs[numPublicInputs - 1],\n publicInputs[1],\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {Withdraw, Transfer, Deposit}\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json
deleted file mode 100644
index 2ee23a8..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency) external;\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is purely the ABI-encoded struct\n * (e.g., it was encoded using abi.encode(bridgeData))\n */\n function _decodeBridgeDataStruct(bytes calldata bridgeCallData) internal pure returns (LiFiBridgeData memory) {\n return abi.decode(bridgeCallData, (LiFiBridgeData));\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency ) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, note.amount,currency );\n }\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeDataStruct(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, amount,currency );\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json b/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
deleted file mode 100644
index 2d07272..0000000
--- a/ignition/deployments/staging_arbitrum/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency) external;\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency ) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, note.amount,currency );\n }\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, amount,currency );\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/deployed_addresses.json b/ignition/deployments/staging_arbitrum/deployed_addresses.json
deleted file mode 100644
index 1ef057d..0000000
--- a/ignition/deployments/staging_arbitrum/deployed_addresses.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "CurvyVault#CurvyVaultV1Implementation": "0xCD5e8B264789cF0734B6EF79E15CC3bafbC70eD7",
- "CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2": "0xaa0BA2493b394c1e283A97f1Ee63768567fa400E",
- "CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2": "0xC1Fc1076f19334ADAe7284c6F153c6EB6c1B60ec",
- "CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2": "0x467145b12F6b619B362d1a6A68549F2fE887fD1F",
- "CurvyAggregatorAlpha#PoseidonT4": "0xfAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B10",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation": "0x82DA09E5477FDe323aa7197091d9443e1F0838f5",
- "CurvyVault#ERC1967Proxy": "0xB61F0c208356Df565Bde02dCEd33C896F6b0F939",
- "CurvyVault#CurvyVaultV1": "0xB61F0c208356Df565Bde02dCEd33C896F6b0F939",
- "CurvyAggregatorAlpha#ERC1967Proxy": "0xE01eE56C613175502c8e677774eaCbBB2738674C",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV1": "0xE01eE56C613175502c8e677774eaCbBB2738674C",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV2": "0xE01eE56C613175502c8e677774eaCbBB2738674C",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation": "0x59368007DD7926a88b32d51d3CB2fA8b90178165",
- "CurvyVault#CurvyVaultV2": "0xB61F0c208356Df565Bde02dCEd33C896F6b0F939",
- "CurvyVault#CurvyVaultV2Implementation": "0x1e77277b522d3C38691555B6Db7E5FfdC3883f4e",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV3": "0xE01eE56C613175502c8e677774eaCbBB2738674C",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation": "0xAF7b8C7Ac94C22429c10053B3c05AE69941f2294",
- "TokenBridgeModule#TokenBridge": "0xC0aB03047280098739a431cD3dceC0f13599F637",
- "CurvyAggregatorAlpha#NewAggregationVerifier_v2": "0xcEef822fbca715B42fCf515b560680f2F581bEBD",
- "CurvyAggregatorAlpha#NewInsertionVerifier_v2": "0x4918b9fB8cf1469d791C0A186398A57d0506f6E0",
- "CurvyAggregatorAlpha#NewWithdrawVerifier_v2": "0x251B92B82AD3B9936edf964474Ea51947F29A8dD",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV4": "0xE01eE56C613175502c8e677774eaCbBB2738674C",
- "CurvyVault#CurvyVaultV3": "0xB61F0c208356Df565Bde02dCEd33C896F6b0F939",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation": "0xa88ABD8A87C6e7a20FbB15d0a8dD643471809aA8",
- "CurvyVault#CurvyVaultV3Implementation": "0x462cCE3584E47380Ae71E08f4999d069C337F5B5",
- "CurvyVault#CurvyVaultV4": "0xB61F0c208356Df565Bde02dCEd33C896F6b0F939",
- "CurvyVault#CurvyVaultV4Implementation": "0x17D28314B184e924574132E4454A345378bE5336",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV5": "0xE01eE56C613175502c8e677774eaCbBB2738674C",
- "CurvyVault#CurvyVaultV5": "0xB61F0c208356Df565Bde02dCEd33C896F6b0F939",
- "CurvyVault#CurvyVaultV5Implementation": "0xa573d954f7db86b08Bd6aeDAa3eB24375Ea508bd",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation": "0xa4d33955253d18411f30EddB5d28171722415C85",
- "CurvyAggregatorAlpha#withdrawVerifierV3": "0xF1FE678F3035aF4C01503B9118C3693DF3A052aA",
- "PortalFactory#PortalFactory": "0x7125Ed21e90A790090245748A47753F3BE54Ccb3",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV6": "0xE01eE56C613175502c8e677774eaCbBB2738674C",
- "CurvyVault#CurvyVaultV6": "0xB61F0c208356Df565Bde02dCEd33C896F6b0F939",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation": "0x34371A30a9634B6b0c95F34bcDF76b7a6Fc53d37",
- "CurvyVault#CurvyVaultV6Implementation": "0x52D578E440F590BD588e63E941E6053FaCd324c1",
- "CurvyAggregatorAlpha#insertionVerifierDepth30": "0x4a4434F8fFA7D5a917554c2584B1e1a4851F265e",
- "CurvyAggregatorAlpha#aggregationVerifierDepth30": "0xd0B943918d8F7362dCb2E80FD50D373F450Fa473",
- "CurvyAggregatorAlpha#withdrawVerifierDepth30": "0x05b8675641d44ca1402ae66cB8412cda4cb1402D"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_arbitrum/journal.jsonl b/ignition/deployments/staging_arbitrum/journal.jsonl
deleted file mode 100644
index e9675b3..0000000
--- a/ignition/deployments/staging_arbitrum/journal.jsonl
+++ /dev/null
@@ -1,680 +0,0 @@
-
-{"chainId":42161,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","constructorArgs":[],"contractName":"CurvyAggregationVerifierAlpha_2_2_2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b50610a0c8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610974565b610054565b604051901515815260200160405180910390f35b5f610881565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7e10acd6d4ce082a72b623deeac4b4c1c526b8ab76ab54f82d13b63a6f23e2cd85527f282cd953fc7bc024a80710dd645d4cd8e4ef6d10eb7403a76618f96eddb5336e60208601525f608086018661018d87357f21626e5f52776516ac007ae23e14ca016f4e7623b79f63f4ab59482e4872c52b7f2c8f6445390acb60223f07dcf516fee816534c9940dc8d59595786b35106f0f38461008c565b6101dd60208801357f20d91723fc6a5cff2a4d8bd53db8c7647c86b9245b27d7042634dd317becf0797f1693b6ee023f9ef0c9e7cb1d290717e3df5f6d2154ba30f3a6a833f3171c2ee08461008c565b61022d60408801357f1a9347082efac79b5d64033c95c7f2190984cd2a19884b4ad26162ea47e0ea3b7f27173150520b68cc7844935166da0f68924aeccc8a30ae9ca0768eb597cf2a638461008c565b61027d60608801357f207839c9f296371e642b17ab83a64fca9b9044d10b0f6a5319ae0e2ee2a76c0c7f235a1223ea30a75c93efd51c3abd465c611878ebc52d9830e61978f914d7c8908461008c565b6102cd60808801357f0cefdb3db08f930f2ed5534a797dc304a1189c61a2835aabb6c5831f0ca838f37f15bf6ee50fbb6b6a07695b99fa739330553161a7de0b0380556b61ebe950563f8461008c565b61031d60a08801357f0b50c85999c665bad3101fb618ca967aa4860c1c07f4c54bcf692b7b30b2c11a7f2d4f881288f63fa77f63eaad252bd5efbbbda01e21976fb645aaadd286929c3f8461008c565b61036d60c08801357f15b81a815c06b38295623648d75372799d4755f7a0b74f7bd655f5f64715a03e7f09331bcaac14f8bcf495ed09470e01f3c268f1fdb4e019c19c836e2c8310044a8461008c565b6103bd60e08801357f2a2a8f30efa6592960fa69f190f96c5f0b432948973a9c53269de3e6b8abebb57f297cd48dfb07dc7ad0120ed8151942d511ebca1b71a736b61ac6375e2a51947a8461008c565b61040e6101008801357f0a9c03a1994f221c057f75855cb14a95329dde81e32a7a8660a3828c46e4af7d7f1dc315ae7bd487ac77c690ee6e5d2fe7bbfd5ae36935ffac15114a4f2748dc5b8461008c565b61045f6101208801357f0280bc41f56d2038589161b139f5c3704eeb19e9da2f170a5b4e977678a727697f063f6dc839c18a58049574763b3de59bc2c20609b01907e66dcfe264b091cd858461008c565b6104b06101408801357f1f96dc322de85ba0a31ce878d61f5047eba9ad25489230b888ede7739aeb36f57f0d58db0890c2f6ee0bda8261a76d6ad9da96e539d0df7046cd0799f0176a53fb8461008c565b6105016101608801357f246ef5979ae9aea616e30dbab411c28406510a656ddd2043a5b9211d31edd1647f24d8db926da6b7c4a17804818d83058eb0f5dfa6163c3922aa9a7edeb4b85ede8461008c565b6105526101808801357f1011fe6c75f7c6cf1a8a62ff71387fef8a19e46d0af37193380a7c603f7529497f12b2d70c94e401c6f3822578fb27c67f97bf1827a1b9e0cc1c2fb34a68a6521d8461008c565b6105a36101a08801357f082d86555b48de36b698d5bc0cb44148b3a0eb1d3b992638453070deb120b15d7f26b43cf48f595a8e3e2a3b8515b7df9db6ffebecbc968995b4071e0f2dad32dc8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1f7f9f69ea5e04a56ee102635a0fcdbefd57b4c7f37a1e0d903ba69281a5f0d36102808201527f2a49c1e717e044ad7bc38e0b841e28e08eebe51b906016be33a2ff2d74f10c586102a08201527f027a67b0798b9350cd04c5ce09117b7e660dbe3e1449f667ea13c3c43255f84c6102c08201527f19725ce00771a3c317cb70a3c5856f91c6ac2313426f5863fcd93969d2384de06102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108985f84013561005a565b6108a5602084013561005a565b6108b2604084013561005a565b6108bf606084013561005a565b6108cc608084013561005a565b6108d960a084013561005a565b6108e660c084013561005a565b6108f360e084013561005a565b61090161010084013561005a565b61090f61012084013561005a565b61091d61014084013561005a565b61092b61016084013561005a565b61093961018084013561005a565b6109476101a084013561005a565b610954818486888a6100f2565b9050805f5260205ff35b806040810183101561096e575f5ffd5b92915050565b5f5f5f5f6102c08587031215610988575f5ffd5b610992868661095e565b935060c08501868111156109a4575f5ffd5b6040860193506109b4878261095e565b925050856102c0860111156109c7575f5ffd5b5091949093509091610100019056fea2646970667358221220c5df5a746d614b72f69595bc69601e5559fe5a1a70d66d8b1723b65d65e2b55c64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","networkInteractionId":1,"nonce":0,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","networkInteractionId":1,"nonce":0,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1554274000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x4291671042e0d4634afff0cd10b5aeab707031d349f574a4d95ae2c509b93fd5"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","constructorArgs":[],"contractName":"CurvyInsertionVerifierAlpha_2_2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506106648061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d7565b610054565b604051901515815260200160405180910390f35b5f61055c565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0f3cc497f7f2ad2db9f9a01e1d1e237e7bd547ee48d3698641bae08ce37c187485527f2a2f300a2bc9b5576e8d348d9542dedfce1dd7566c9f7ad0c7936e9508f2d13f60208601525f608086018661018e87357f152cd78e51c23961af90e069fcceb20b0358a4c13f4d05ad78f5554803410ec47f068d0161c738b8256d8f80c113a6f2adc60bf92724e5ba844434551f353109bb8461008c565b6101de60208801357f28aeb7fafb1d5864b489fac2ac75795429a84564ed301367b95bdbbda22e41cc7f01fb82a3a457b9782065bddb3961e014b8602fe337a83a253a4edbe7f9eca5de8461008c565b61022e60408801357f10e505cabab95d2954811e50e0c907e6e27d3ea37df4576cb85d2b024b758e5e7f132ffdaaa0e5fbd39240ae81be15c78f27d1a5e9f0b046bc50a19ebd0e1f50be8461008c565b61027e60608801357f061f18bbab38fe7f8eca85f2017b25f057fb908ca68d0965746884ca8b0b2e027f0323511d8b4f23d71a970779314d464e5993156eaed0970a246cd2a43da830c88461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f2ce5cf088183ccc73bfeb1244cdee7ae92ceb0e007194b0bf6c6e9819a863ca960c08201527f0b549a9abb46bc0c3ed48341aa21baa4532bca1fb1ff7a8ef409d3384eb73d3660e08201527f270e5ddc8a3d6e364fae6b353c6deedc579e522582d3d1d60036e9c43428bb8e6101008201527f2d9ef7723573eb05565ba62424d4b2f2d5a0e68d542f8c45daadb2f10a5cde376101208201527f1f542545a1550702631817615d0eac929e73ccc384d92ac156c7d3577e01d5226101408201527f08cd2dbefe01d914cd9826b6a1309de1d3c645a028b69cc3c690a05c183a9fa36101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f126779f2434a76e4e37da855f43a1df5648908e4e91eebf1e086544970eed7b86102808201527f12624c6dbae3875cc0583ab185cb81fc69d606519eef4d6140b7ac67aa6e26e76102a08201527f116d7e6cfc0480d16acdcebb03bef4a46abe3cff28a3aa60d1bf691b43679d866102c08201527f1bbda14ad6f8f4d5d33363f1d50fd72bf4b3b25d615b896c9e050098f5016f7d6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105735f84013561005a565b610580602084013561005a565b61058d604084013561005a565b61059a606084013561005a565b6105a7818486888a6100f2565b9050805f5260205ff35b80604081018310156105c1575f5ffd5b92915050565b80608081018310156105c1575f5ffd5b5f5f5f5f61018085870312156105eb575f5ffd5b6105f586866105b1565b935061060486604087016105c7565b92506106138660c087016105b1565b91506106238661010087016105c7565b90509295919450925056fea26469706673582212206f782de436746e389d2f3f8eeac94b985e369b9a2c08f0f7a2167fc9a1fa233d64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","networkInteractionId":1,"nonce":1,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","networkInteractionId":1,"nonce":1,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1560378000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xe1a73ab37728c3cf55381ddc09c123f17f8dd247d6aa46aa39f7714e09d319d9"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlpha_2_2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506108918061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b3660046107f9565b610054565b604051901515815260200160405180910390f35b5f61073e565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f1a75f14b8b1faa4b851f07b25985339af1f9563cb229396803fd379fead2bd7385527f0b5b03df8219c60d5be03ad52394f3d6330cf3e7cea9e656bc22982dd15cbadc60208601525f608086018661018e87357f05f00c0d109f87a8cf18b9d3052caae6027871b0d6fea2f54ca225891e16b0607f0d35ddf8253fb232d095057744ccb6f9d5887bee97ea61f885d511934169bcf08461008c565b6101de60208801357f2a60d3a69ccee567e2b57a0a42bcf19ba0d2335ceb81a2dcb71439314fea13857f2f70a47844f43803cbb4ce9a69cd5b3db4647da90f325d2ef456abea72d0bfe08461008c565b61022e60408801357f0f18cbcd1cbf7d154a35393c17382058e4b30517ab8be123af7d1951c671d4697f26cfb6e0961b50d6d1f534baef948730bec2a603ebf189eaaf72036e2a4d2fe68461008c565b61027e60608801357f033ae488254843311cd5bb9676251b2c80852d467355d37f443e17d049a503267f27e5a68de42fcbcbadd940c39e2013830c75dbb9ad6714cb768ba7d14af9421a8461008c565b6102ce60808801357f28120958d688c8a0d58372b242df5ec1c75aa124ab6f19c90c4b76b81057fd297f11c4be0f98ac33b680d4607a898dc72cdfc6d9946943b3e9f0080fe825263a5d8461008c565b61031e60a08801357f037d488c8ba35a919f4cfd44b1a9be07a0ca1ea689695c6b238ad364c47bbf7a7f2dd63748d624fd0124f265891b52eeb7d5565727b674658be4378d6e5b46be308461008c565b61036e60c08801357f2297bda45459480a6a488bd3386537b38ae11ffecb6beaec43e291d33dd2f8947f1d7c255c5e9cfa6d8457dc20e4af90332c6550fa6bea6ac80b2fcae91e31fb658461008c565b6103be60e08801357f1c564b05c0c5fc1db338de776a71a9b6408e0f1062ee5eec1ead8fe1fb68f0317f085c76b320e78e8fc1c30cd9a86ee083c737af478c344a985ff23109398c4e768461008c565b61040f6101008801357f0f6d3858a35815b73d414424416d4e35babb3e0141641fb6f11c5899b96ff6ce7f0678620b35e9ade6b5807cf7ccd5210ae099894132f0bff6345ba129e944dd3d8461008c565b6104606101208801357f2ef17308df02f12bcd04a63c4f9642e6a21bbfecd79bc266d9278cba32c0b7f47f1e5b526c2f7dbd765611c3117d2aa8924597b68d5b8d3654c375174d6affa8998461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f044bacd3d9b251fa2cdcb89c1e71c78d2d0ff824d43403d616a47c804c0469696102808201527f297536676d7cec34d41955f24cc5034a5b79d92b20c48c6d8073bc32016612396102a08201527f0281d22ffce2cf0ca8b4109517cf30ceed20be4d2ed307fda036ad8ef5e12df26102c08201527f1ffe72c016746c242459c1973b77d50d6415bb22ce31c61ee504c42c65b3d33c6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107555f84013561005a565b610762602084013561005a565b61076f604084013561005a565b61077c606084013561005a565b610789608084013561005a565b61079660a084013561005a565b6107a360c084013561005a565b6107b060e084013561005a565b6107be61010084013561005a565b6107cc61012084013561005a565b6107d9818486888a6100f2565b9050805f5260205ff35b80604081018310156107f3575f5ffd5b92915050565b5f5f5f5f610240858703121561080d575f5ffd5b61081786866107e3565b935060c0850186811115610829575f5ffd5b60408601935061083987826107e3565b925050856102408601111561084c575f5ffd5b5091949093509091610100019056fea2646970667358221220703faca2770b9c9f7e9a23c6d18d7c741c60c3262a4a3449160cfe04d5d9618164736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","networkInteractionId":1,"nonce":2,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","networkInteractionId":1,"nonce":2,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1565980000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x97bccae4dca667da05017fe5361c9131a5f28865cb0373c3bcb95b0901aabf56"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#PoseidonT4","constructorArgs":[],"contractName":"PoseidonT4","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#PoseidonT4","futureType":"NAMED_ARTIFACT_LIBRARY_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","networkInteraction":{"data":"0x6130c0610034600b8282823980515f1a607314602857634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe7300000000000000000000000000000000000000003014608060405260043610610034575f3560e01c806320cf0a3714610038575b5f5ffd5b61004b610046366004612f90565b61005d565b60405190815260200160405180910390f35b5f610793565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f52838409099450505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f528384090994505f51602061302b5f395f51905f5284850990505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528384090993505f51602061302b5f395f51905f5283840990505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528384090992505f51602061302b5f395f51905f5282830990505f51602061302b5f395f51905f52825f51602061302b5f395f51905f52838409099150505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b5f7f265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d65f51602061302b5f395f51905f5260805106017f199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa5f51602061302b5f395f51905f5260a05106017f157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf85f51602061302b5f395f51905f5260c05106015f51602061302b5f395f51905f5283840993505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528687090992505f51602061302b5f395f51905f5282830993505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528687090991505f51602061302b5f395f51905f5281820993505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528687090990505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287097f211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87097f19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87097f21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87097f26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be30101010660a052505050610c167f13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e7f251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b9967f0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e7f2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac949026103aa565b610ca27f04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b7f0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f3675497f011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca067f0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd47386103aa565b610d2e7f0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd69414324477f28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a17f259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f7f0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e86103aa565b610dba7f1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c57f26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee757f123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf8117f0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf610063565b610e467f2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a57f2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c7f011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e55747f1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0610063565b610ed27f179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb7f1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d857f192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b7f0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d610063565b610f5e7f10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b877f064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd597f225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e087f29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c610063565b610fea7f2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db7f1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b7f1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb7f0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c610063565b6110767f20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d7f0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b7f062100eb485db06269655cf186a68532985275428450359adc99cec6960711b87f2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926610063565b6111027f26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce57f22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e07f23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b7f25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a610063565b61118e7f1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa7f248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d7297f12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da7f070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9610063565b6112197f2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde1877f04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d657e94975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e7f28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf610063565b6112a47f159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a7eb7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b647f03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b07f2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3610063565b6113307f0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb1737f2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f7f1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d7f1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f610063565b6113bc7f22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea97f0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a7f0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed7057f02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16610063565b6114487f2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d835057f2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e57f1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d07f25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16610063565b6114d47f0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac7f02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a68003557f227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a53190257f044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d610063565b6115607f25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f7f1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c7f0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e57f1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38610063565b6115ec7f21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f9597f2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce7f13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a967f0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a610063565b6116787f09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f14557f0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf7f0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a47f05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b610063565b6117047f176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c4047f1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df7f2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b7f0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335610063565b6117907f2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c77f14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def7f226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a7f2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db610063565b61181c7f0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c7f03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f37f0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c297f2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7610063565b6118a77e780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef3631821857f0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa7f1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa91467f203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78610063565b6119327f222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c7e544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac167f10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e87f10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5610063565b6119be7f04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d7f06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf047467f062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b7f2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5610063565b611a4a7f14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f13647f0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae7f011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f17f13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a610063565b611ad67f2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a7f16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d582597f278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b6077f1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106610063565b611b627f02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe67692500420257f16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf7f15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c9847f29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8610063565b611bee7f1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec7f0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de89907f1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a427f05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119610063565b611c7a7f0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf7f2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d07f09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb96507f25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d610063565b611d067f24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d00567f1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f835297f2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f627f25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2610063565b611d927f2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f639257f06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f57f23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d7f25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74610063565b611e1e7f17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd7f13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be7f265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e7f15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5610063565b611eaa7f2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e7f2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e887f18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c7f21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d610063565b611f367f11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f57f0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c7f0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe57f277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7610063565b611fc27f30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad47f221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f4217f0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb8247f224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6610063565b61204e7f1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b317f0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc7f2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b7f23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0610063565b6120da7f1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b877f174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d77f22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d27f26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3610063565b6121667f2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c8755267f29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e7f0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade4577f1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1610063565b6121f27f0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad7257f1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f7f2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac7063641137f12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2610063565b61227e7f1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a7f2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e7f08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a37f07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492610063565b61230a7f265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e7f2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff7f2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d197f18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb610063565b6123967f01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf57f2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b87f094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf604177f2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c610063565b6124227f2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd8064617f27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d0287727f154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc747f0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb610063565b6124ae7f0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c7377f1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa957f298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc7f301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71610063565b61253a7f01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b7f1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d7f0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee7f0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279610063565b6125c67f2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe597f19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d7f23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c47f2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32610063565b6126527f0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c87f19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb07f0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b357f2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267610063565b6126de7f2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d7f0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af7f240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b7f16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca610063565b61276a7f242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d17f089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c377027f18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f7f166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6610063565b6127f67f0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e9617f1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b27f17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b7f174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b610063565b6128817eccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d1587f292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e7f12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec67f2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f610063565b61290d7f1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e87f0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e7f14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f7f185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b610063565b6129997f29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c0087f05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c0146047f2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c87f0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024610063565b612a257f1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f7f1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b7f1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc7f2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314610063565b612ab07f0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d7e6e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b7f191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c7f1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5610063565b612b3c7f0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc7f16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae7f12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a7f25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d610063565b612bc87f13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc8247f11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde547f03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b767f1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089610063565b612c547f2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec7f2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e7f1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db47f0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b6103aa565b612ce07f1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b7f2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd6073687f065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc33947f2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb3876103aa565b612d6b7eb4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd790787f0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f7f2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb7f027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd6103aa565b7f1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd55f51017f12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6602051017f13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db608051017f163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d560a051015f51602061302b5f395f51905f5284850994505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528788090993505f51602061302b5f395f51905f5283840994505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528788090992505f51602061302b5f395f51905f5282830994505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528788090991505f51602061302b5f395f51905f5281820994505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528788090990505f51602061302b5f395f51905f52805f51602061302b5f395f51905f525f51602061300b5f395f51905f5284095f51602061302b5f395f51905f525f51602061306b5f395f51905f5286095f51602061302b5f395f51905f525f51602061304b5f395f51905f5288095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8a0901010106065f5260205ff35b634e487b7160e01b5f52604160045260245ffd5b5f60608284031215612fa0575f5ffd5b82601f830112612fae575f5ffd5b6040516060810181811067ffffffffffffffff82111715612fd157612fd1612f7c565b604052806060840185811115612fe5575f5ffd5b845b81811015612fff578035835260209283019201612fe7565b50919594505050505056fe1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c130644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62a2646970667358221220f6d5cfe9ef56c84b95ece8760d16164e8a9649e1f378cc0d39152a9bac67d08e64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","networkInteractionId":1,"nonce":3,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","networkInteractionId":1,"nonce":3,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1565608000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x6105cd2a675381cd3c13ab8ad7f1221a1b75ec1b1cac765193685734fbdbecfb"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyVault#CurvyVaultV1Implementation","constructorArgs":[],"contractName":"CurvyVaultV1","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV1Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205e1d810006e1c4a45d4280de3a8894a26644a7669555e5011d3a8b7d576e098564736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteractionId":1,"nonce":4,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteractionId":1,"nonce":4,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1577426000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x06dec89c7b460562f487d345353aad69f1054d4d2fcd08710dd83a7673dbd3d6"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","hash":"0x06dec89c7b460562f487d345353aad69f1054d4d2fcd08710dd83a7673dbd3d6","networkInteractionId":1,"receipt":{"blockHash":"0x09ff6d79e7ff91b5a4988801a8394744c59d55c2788775a205be3bd22fd08f4e","blockNumber":396408517,"contractAddress":"0xCD5e8B264789cF0734B6EF79E15CC3bafbC70eD7","logs":[{"address":"0xCD5e8B264789cF0734B6EF79E15CC3bafbC70eD7","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":63,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","result":{"address":"0xCD5e8B264789cF0734B6EF79E15CC3bafbC70eD7","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","hash":"0x4291671042e0d4634afff0cd10b5aeab707031d349f574a4d95ae2c509b93fd5","networkInteractionId":1,"receipt":{"blockHash":"0x7703cff6c4ff98851e3064a032712b08c9985e0221daf3ee43a94573ebef764c","blockNumber":396408497,"contractAddress":"0xaa0BA2493b394c1e283A97f1Ee63768567fa400E","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","result":{"address":"0xaa0BA2493b394c1e283A97f1Ee63768567fa400E","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","hash":"0xe1a73ab37728c3cf55381ddc09c123f17f8dd247d6aa46aa39f7714e09d319d9","networkInteractionId":1,"receipt":{"blockHash":"0x14a63b2eefe3c124ec48cc92ce1aeca5f0ec0c3d4b340d265f6e4d76c4153ebf","blockNumber":396408502,"contractAddress":"0xC1Fc1076f19334ADAe7284c6F153c6EB6c1B60ec","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","result":{"address":"0xC1Fc1076f19334ADAe7284c6F153c6EB6c1B60ec","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","hash":"0x97bccae4dca667da05017fe5361c9131a5f28865cb0373c3bcb95b0901aabf56","networkInteractionId":1,"receipt":{"blockHash":"0x8fd562e55b376af27f125522769a77a6fae81fd1f78c081b94068fe76acb8d45","blockNumber":396408506,"contractAddress":"0x467145b12F6b619B362d1a6A68549F2fE887fD1F","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","result":{"address":"0x467145b12F6b619B362d1a6A68549F2fE887fD1F","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","hash":"0x6105cd2a675381cd3c13ab8ad7f1221a1b75ec1b1cac765193685734fbdbecfb","networkInteractionId":1,"receipt":{"blockHash":"0x6a5d19812f64023086c89862abc702326ccd06cd072d43882f0202f40608e31c","blockNumber":396408512,"contractAddress":"0xfAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B10","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","result":{"address":"0xfAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B10","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV1","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xfAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B10"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073fAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B1092506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c8a1428597d493cbe694c55d3c3140f6d4feec8584d111946bcfbdce984afdd264736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteractionId":1,"nonce":7,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteractionId":1,"nonce":7,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"513082000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xb0ee30f76785b0c055d27532bdcdfdc47b13f3c624ddbcce15241000ea37e6b7"},"type":"TRANSACTION_SEND"}
-{"args":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"CurvyVault#CurvyVaultV1Implementation","dependencies":["CurvyVault#CurvyVaultV1Implementation"],"functionName":"initialize","futureId":"CurvyVault#encodeFunctionCall(CurvyVault#CurvyVaultV1Implementation.initialize)","result":"0xc4d66de800000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","strategy":"basic","strategyConfig":{},"type":"ENCODE_FUNCTION_CALL_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","hash":"0xb0ee30f76785b0c055d27532bdcdfdc47b13f3c624ddbcce15241000ea37e6b7","networkInteractionId":1,"receipt":{"blockHash":"0x68a0379c4fa5cdb34eb66464e33f2556ce9a3bdd58069e1e270e11f77c7fe111","blockNumber":396411926,"contractAddress":"0x82DA09E5477FDe323aa7197091d9443e1F0838f5","logs":[{"address":"0x82DA09E5477FDe323aa7197091d9443e1F0838f5","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":7,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","result":{"address":"0x82DA09E5477FDe323aa7197091d9443e1F0838f5","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyVault#ERC1967Proxy","constructorArgs":["0xCD5e8B264789cF0734B6EF79E15CC3bafbC70eD7","0xc4d66de800000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"ERC1967Proxy","dependencies":["CurvyVault#CurvyVaultV1Implementation","CurvyVault#encodeFunctionCall(CurvyVault#CurvyVaultV1Implementation.initialize)"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#ERC1967Proxy","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#ERC1967Proxy","networkInteraction":{"data":"0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033000000000000000000000000cd5e8b264789cf0734b6ef79e15cc3bafbc70ed700000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000024c4d66de800000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000000000000000000000000000000000000000000000","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#ERC1967Proxy","networkInteractionId":1,"nonce":8,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#ERC1967Proxy","networkInteractionId":1,"nonce":8,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"510388000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x3d7596394ded686784c7e8c462ecbeef9f0682262b3cee4b5a2be2e21879c8a8"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#ERC1967Proxy","hash":"0x3d7596394ded686784c7e8c462ecbeef9f0682262b3cee4b5a2be2e21879c8a8","networkInteractionId":1,"receipt":{"blockHash":"0xc61a0d8c59e9a67f2c1e739fa227209b8d4c7927850960fc5dcb3b07be66e440","blockNumber":396411936,"contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x","logIndex":0,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000cd5e8b264789cf0734b6ef79e15cc3bafbc70ed7"]},{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x","logIndex":1,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x0000000000000000000000000000000000000000000000000000000000000001","logIndex":2,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#ERC1967Proxy","result":{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","contractName":"CurvyVaultV1","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV1","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x61826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000000000000000000000"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","CurvyVault#CurvyVaultV1"],"functionName":"initialize","futureId":"CurvyAggregatorAlpha#encodeFunctionCall(CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.initialize)","result":"0x485cc95500000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f939","strategy":"basic","strategyConfig":{},"type":"ENCODE_FUNCTION_CALL_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#ERC1967Proxy","constructorArgs":["0x82DA09E5477FDe323aa7197091d9443e1F0838f5","0x485cc95500000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f939"],"contractName":"ERC1967Proxy","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","CurvyAggregatorAlpha#encodeFunctionCall(CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.initialize)"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#ERC1967Proxy","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteraction":{"data":"0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c003300000000000000000000000082da09e5477fde323aa7197091d9443e1f0838f500000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000044485cc95500000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f93900000000000000000000000000000000000000000000000000000000","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteractionId":1,"nonce":9,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteractionId":1,"nonce":9,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"509424000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x3269f9a8b669f3c188b16aa843243909722bf646782b3e8f5f94a28644a6bf5d"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","hash":"0x3269f9a8b669f3c188b16aa843243909722bf646782b3e8f5f94a28644a6bf5d","networkInteractionId":1,"receipt":{"blockHash":"0x24f720e4c4a585d961a14228924712bee1a69b99035b5ee3e5debf4466177f14","blockNumber":396411946,"contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","logs":[{"address":"0xE01eE56C613175502c8e677774eaCbBB2738674C","data":"0x","logIndex":0,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000082da09e5477fde323aa7197091d9443e1f0838f5"]},{"address":"0xE01eE56C613175502c8e677774eaCbBB2738674C","data":"0x","logIndex":1,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xE01eE56C613175502c8e677774eaCbBB2738674C","data":"0x0000000000000000000000000000000000000000000000000000000000000001","logIndex":2,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","result":{"address":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","contractName":"CurvyAggregatorAlphaV1","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0xaa0BA2493b394c1e283A97f1Ee63768567fa400E","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0xC1Fc1076f19334ADAe7284c6F153c6EB6c1B60ec","maxAggregations":2,"maxDeposits":2,"maxWithdrawals":2,"withdrawVerifier":"0x467145b12F6b619B362d1a6A68549F2fE887fD1F"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteraction":{"data":"0xb4da7173000000000000000000000000c1fc1076f19334adae7284c6f153c6eb6c1b60ec000000000000000000000000aa0ba2493b394c1e283a97f1ee63768567fa400e000000000000000000000000467145b12f6b619b362d1a6a68549f2fe887fd1f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteractionId":1,"nonce":10,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteractionId":1,"nonce":10,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"509282000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xfd86d131bb37c7dea2daf6cb0ce63bcc378ba2b5e533207f8a358467a2ddf4a4"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","hash":"0xfd86d131bb37c7dea2daf6cb0ce63bcc378ba2b5e533207f8a358467a2ddf4a4","networkInteractionId":1,"receipt":{"blockHash":"0x0c12c6b4f45ae288ef3cbd324332400c8518a2aecf8932e3cb0d316b0799a29a","blockNumber":396411956,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xba5DdD1f9d7F570dc94a51479a000E3BCE967196"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_0","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_0","networkInteraction":{"data":"0x09824a80000000000000000000000000ba5ddd1f9d7f570dc94a51479a000e3bce967196","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_0","networkInteractionId":1,"nonce":17,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_0","networkInteractionId":1,"nonce":17,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"29028000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x81137b9c49df8ba1da1e1af816440b8f97613f58fb8a1bdb2b8e38117c2b0d53"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_0","hash":"0x81137b9c49df8ba1da1e1af816440b8f97613f58fb8a1bdb2b8e38117c2b0d53","networkInteractionId":1,"receipt":{"blockHash":"0xbd3856f01a1595b05af2294f96cccb9a1d1f5ce6e4ea0fe1692f65ef5fad6fc5","blockNumber":396708717,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x000000000000000000000000ba5ddd1f9d7f570dc94a51479a000e3bce9671960000000000000000000000000000000000000000000000000000000000000002","logIndex":2,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_0","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x912CE59144191C1204E64559FE8253a0e49E6548"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_0"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_1","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_1","networkInteraction":{"data":"0x09824a80000000000000000000000000912ce59144191c1204e64559fe8253a0e49e6548","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_1","networkInteractionId":1,"nonce":18,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_1","networkInteractionId":1,"nonce":18,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"28644000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x63af4cb8402944599d0198f88997ad1af7f9776c14aa401cc9c0a8e28619ac5e"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_1","hash":"0x63af4cb8402944599d0198f88997ad1af7f9776c14aa401cc9c0a8e28619ac5e","networkInteractionId":1,"receipt":{"blockHash":"0x3cf46506f374ab74a396dfa41efb20d6966d7e50290bf3995c42ad640c2ebcc8","blockNumber":396708727,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x000000000000000000000000912ce59144191c1204e64559fe8253a0e49e65480000000000000000000000000000000000000000000000000000000000000003","logIndex":0,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_1","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xf97f4df75117a78c1a5a0dbb814af92458539fb4"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_1"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_2","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_2","networkInteraction":{"data":"0x09824a80000000000000000000000000f97f4df75117a78c1a5a0dbb814af92458539fb4","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_2","networkInteractionId":1,"nonce":19,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_2","networkInteractionId":1,"nonce":19,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"28244000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x344092dbc390f23d77a1ab3b4c66d4dc2331bedb318e66ca44c4d6f96d218a27"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_2","hash":"0x344092dbc390f23d77a1ab3b4c66d4dc2331bedb318e66ca44c4d6f96d218a27","networkInteractionId":1,"receipt":{"blockHash":"0xe1247a5ecf60b6e1ecd167845463107a28e832b1e11c91755214b5426b46a627","blockNumber":396708737,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x000000000000000000000000f97f4df75117a78c1a5a0dbb814af92458539fb40000000000000000000000000000000000000000000000000000000000000004","logIndex":0,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_2","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x354A6dA3fcde098F8389cad84b0182725c6C91dE"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_3","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_3","networkInteraction":{"data":"0x09824a80000000000000000000000000354a6da3fcde098f8389cad84b0182725c6c91de","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_3","networkInteractionId":1,"nonce":20,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_3","networkInteractionId":1,"nonce":20,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"28226000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x583ede8301a9c3a663f5abcde9d3b868f938e0e5297850b756f76ed00ef6f8c2"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_3","hash":"0x583ede8301a9c3a663f5abcde9d3b868f938e0e5297850b756f76ed00ef6f8c2","networkInteractionId":1,"receipt":{"blockHash":"0x648cbbc3c42a57b4e05c17840d55e7a3006d831014468372ca66c510e81509c8","blockNumber":396708747,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x000000000000000000000000354a6da3fcde098f8389cad84b0182725c6c91de0000000000000000000000000000000000000000000000000000000000000005","logIndex":11,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_3","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xcb8b5CD20BdCaea9a010aC1F8d835824F5C87A04"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_4","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_4","networkInteraction":{"data":"0x09824a80000000000000000000000000cb8b5cd20bdcaea9a010ac1f8d835824f5c87a04","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_4","networkInteractionId":1,"nonce":21,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_4","networkInteractionId":1,"nonce":21,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"28868000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x01ab2361cd17454ade3595cd285da274203aa228d90f2925ea3183d1daf18677"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_4","hash":"0x01ab2361cd17454ade3595cd285da274203aa228d90f2925ea3183d1daf18677","networkInteractionId":1,"receipt":{"blockHash":"0x50a42d695bac286c77c4c0457850c7bd7cd6eaef550b91e323fd367fecf56602","blockNumber":396708757,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x000000000000000000000000cb8b5cd20bdcaea9a010ac1f8d835824f5c87a040000000000000000000000000000000000000000000000000000000000000006","logIndex":0,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_4","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x11cDb42B0EB46D95f990BeDD4695A6e3fA034978"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_5","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_5","networkInteraction":{"data":"0x09824a8000000000000000000000000011cdb42b0eb46d95f990bedd4695a6e3fa034978","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_5","networkInteractionId":1,"nonce":22,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_5","networkInteractionId":1,"nonce":22,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"28678000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x8f1239351ed316a23bbd4f9f767239f16bf56b231cbb2a71745b5b33bbc2e2f6"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_5","hash":"0x8f1239351ed316a23bbd4f9f767239f16bf56b231cbb2a71745b5b33bbc2e2f6","networkInteractionId":1,"receipt":{"blockHash":"0x29e52ceec248fa3099d3295b946249f91d4d0281d2eb06fb2970fff5e2272869","blockNumber":396708767,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x00000000000000000000000011cdb42b0eb46d95f990bedd4695a6e3fa0349780000000000000000000000000000000000000000000000000000000000000007","logIndex":3,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_5","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_5"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_6","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_6","networkInteraction":{"data":"0x09824a80000000000000000000000000da10009cbd5d07dd0cecc66161fc93d7c9000da1","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_6","networkInteractionId":1,"nonce":23,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_6","networkInteractionId":1,"nonce":23,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"28544000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xad9b5a88a5756f77392759d2214faf7fd1c9820d103274e327f833e617cb49fa"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_6","hash":"0xad9b5a88a5756f77392759d2214faf7fd1c9820d103274e327f833e617cb49fa","networkInteractionId":1,"receipt":{"blockHash":"0xad8aaaa77975137714785e0cb7bab4c78a116baee95fc5c0fc19701942063bf1","blockNumber":396708776,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x000000000000000000000000da10009cbd5d07dd0cecc66161fc93d7c9000da10000000000000000000000000000000000000000000000000000000000000008","logIndex":4,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_6","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x6985884C4392D348587B19cb9eAAf157F13271cd"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_6"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_7","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_7","networkInteraction":{"data":"0x09824a800000000000000000000000006985884c4392d348587b19cb9eaaf157f13271cd","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_7","networkInteractionId":1,"nonce":24,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_7","networkInteractionId":1,"nonce":24,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"28086000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xd80f17460233612d3331f4f77de3f27aa90912cea6499985b5ae0df7864f2058"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_7","hash":"0xd80f17460233612d3331f4f77de3f27aa90912cea6499985b5ae0df7864f2058","networkInteractionId":1,"receipt":{"blockHash":"0x6c775f307437ea45de0ed35a45a611e9bee1f8a1d6a47bddd76e4b957a35c09d","blockNumber":396708786,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x0000000000000000000000006985884c4392d348587b19cb9eaaf157f13271cd0000000000000000000000000000000000000000000000000000000000000009","logIndex":0,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_7","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x13Ad51ed4F1B7e9Dc168d8a00cB3f4dDD85EfA60"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_7"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_8","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_8","networkInteraction":{"data":"0x09824a8000000000000000000000000013ad51ed4f1b7e9dc168d8a00cb3f4ddd85efa60","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_8","networkInteractionId":1,"nonce":25,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_8","networkInteractionId":1,"nonce":25,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"28282000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x442830ea6eafddd3d6ce80ce2312fbecb8acc58b296b86d785c1169498388cbf"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_8","hash":"0x442830ea6eafddd3d6ce80ce2312fbecb8acc58b296b86d785c1169498388cbf","networkInteractionId":1,"receipt":{"blockHash":"0x705ea2f2b09fd2e574922c7de576ded4ee67ca19721ea09173f3912595a2ff79","blockNumber":396708795,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x00000000000000000000000013ad51ed4f1b7e9dc168d8a00cb3f4ddd85efa60000000000000000000000000000000000000000000000000000000000000000a","logIndex":36,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_8","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0c880f6761F1af8d9Aa9C466984b80DAb9a8c9e8"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_8"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_9","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_9","networkInteraction":{"data":"0x09824a800000000000000000000000000c880f6761f1af8d9aa9c466984b80dab9a8c9e8","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_9","networkInteractionId":1,"nonce":26,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_9","networkInteractionId":1,"nonce":26,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"27854000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x9f9803800176121340c2022b6f17b089edc655e209f95100e167fcc87324535d"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_9","hash":"0x9f9803800176121340c2022b6f17b089edc655e209f95100e167fcc87324535d","networkInteractionId":1,"receipt":{"blockHash":"0x697f8130a37d503b46f9122403b224623b4424879dccf53b4aab599f9c1b0f03","blockNumber":396708805,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x0000000000000000000000000c880f6761f1af8d9aa9c466984b80dab9a8c9e8000000000000000000000000000000000000000000000000000000000000000b","logIndex":1,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_9","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xd4d42F0b6DEF4CE0383636770eF773390d85c61A"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_9"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_10","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_10","networkInteraction":{"data":"0x09824a80000000000000000000000000d4d42f0b6def4ce0383636770ef773390d85c61a","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_10","networkInteractionId":1,"nonce":27,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_10","networkInteractionId":1,"nonce":27,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"27546000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xc94b2ae1077d78cc725ad462674ca071fbb4a9d6986d1190ca693b360dd97c9c"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_10","hash":"0xc94b2ae1077d78cc725ad462674ca071fbb4a9d6986d1190ca693b360dd97c9c","networkInteractionId":1,"receipt":{"blockHash":"0x2693992592d13a718f69c0a1d7b3bc23cdc8b3eb6db7a2a33b504e967b032593","blockNumber":396708815,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x000000000000000000000000d4d42f0b6def4ce0383636770ef773390d85c61a000000000000000000000000000000000000000000000000000000000000000c","logIndex":0,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_10","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_10"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_11","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_11","networkInteraction":{"data":"0x09824a80000000000000000000000000fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_11","networkInteractionId":1,"nonce":28,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_11","networkInteractionId":1,"nonce":28,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"27324000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xf52d78f77e4505e19d6883a0deba3d182bb9ebd2a5661513dd80ab9ef97c2019"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_11","hash":"0xf52d78f77e4505e19d6883a0deba3d182bb9ebd2a5661513dd80ab9ef97c2019","networkInteractionId":1,"receipt":{"blockHash":"0x697f249606404c88c725f7be8027a9a5306846533a6f19618c43e16c42d52525","blockNumber":396708824,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x000000000000000000000000fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9000000000000000000000000000000000000000000000000000000000000000d","logIndex":23,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_11","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x9623063377AD1B27544C965cCd7342f7EA7e88C7"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_11"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_12","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_12","networkInteraction":{"data":"0x09824a800000000000000000000000009623063377ad1b27544c965ccd7342f7ea7e88c7","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_12","networkInteractionId":1,"nonce":29,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_12","networkInteractionId":1,"nonce":29,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"27060000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x0c8f1342f4ca52ebb72654a04006979f3c8c1da543ec3950469c61d10b42b1b9"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_12","hash":"0x0c8f1342f4ca52ebb72654a04006979f3c8c1da543ec3950469c61d10b42b1b9","networkInteractionId":1,"receipt":{"blockHash":"0x884821ea7862f68e16259e5f065b9bfb3cc7d82e54c08340e42089c656b25365","blockNumber":396708834,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x0000000000000000000000009623063377ad1b27544c965ccd7342f7ea7e88c7000000000000000000000000000000000000000000000000000000000000000e","logIndex":0,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_12","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xfa7f8980b0f1e64a2062791cc3b0871572f1f7f0"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_12"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_13","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_13","networkInteraction":{"data":"0x09824a80000000000000000000000000fa7f8980b0f1e64a2062791cc3b0871572f1f7f0","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_13","networkInteractionId":1,"nonce":30,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_13","networkInteractionId":1,"nonce":30,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"26788000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xbdb19cf6a62ead10b787685f9bd0150d5de6b3f003c22c6f191b2be1e2440406"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_13","hash":"0xbdb19cf6a62ead10b787685f9bd0150d5de6b3f003c22c6f191b2be1e2440406","networkInteractionId":1,"receipt":{"blockHash":"0xe054d0cbda103040240004cbe2d795ad92a4c2cec09664e36b2806f315aec468","blockNumber":396708844,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x000000000000000000000000fa7f8980b0f1e64a2062791cc3b0871572f1f7f0000000000000000000000000000000000000000000000000000000000000000f","logIndex":0,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_13","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_13"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_14","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_14","networkInteraction":{"data":"0x09824a80000000000000000000000000ff970a61a04b1ca14834a43f5de4533ebddb5cc8","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_14","networkInteractionId":1,"nonce":31,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_14","networkInteractionId":1,"nonce":31,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"26390000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xdf959fda369e6faff6057acae414f234fa43e63bfc261a765d955c08b4b37e13"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_14","hash":"0xdf959fda369e6faff6057acae414f234fa43e63bfc261a765d955c08b4b37e13","networkInteractionId":1,"receipt":{"blockHash":"0xd5b8eced7fb728dd0b81c85ffa8cc1e3c0fe613a755aa4796b178130dc7e8f79","blockNumber":396708854,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x000000000000000000000000ff970a61a04b1ca14834a43f5de4533ebddb5cc80000000000000000000000000000000000000000000000000000000000000010","logIndex":7,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_14","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x6491c05A82219b8D1479057361ff1654749b876b"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_14"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_15","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_15","networkInteraction":{"data":"0x09824a800000000000000000000000006491c05a82219b8d1479057361ff1654749b876b","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_15","networkInteractionId":1,"nonce":32,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_15","networkInteractionId":1,"nonce":32,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"26636000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xb2b60922ff3fcb370e09882beabbb39f81de332a86816c1562a4f227f51ef77a"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_15","hash":"0xb2b60922ff3fcb370e09882beabbb39f81de332a86816c1562a4f227f51ef77a","networkInteractionId":1,"receipt":{"blockHash":"0xa5575188904feb73482b2e51ef11c317b180e4e82b39ad2d6847e1465822baef","blockNumber":396708864,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x0000000000000000000000006491c05a82219b8d1479057361ff1654749b876b0000000000000000000000000000000000000000000000000000000000000011","logIndex":0,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_15","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_15"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_16","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_16","networkInteraction":{"data":"0x09824a800000000000000000000000002f2a2543b76a4166549f7aab2e75bef0aefc5b0f","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_16","networkInteractionId":1,"nonce":33,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_16","networkInteractionId":1,"nonce":33,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"26036000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xa881a0866f2ca6b01b2834f8863a00ce7ae0965b8d7c6303b0e309d316defca1"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_16","hash":"0xa881a0866f2ca6b01b2834f8863a00ce7ae0965b8d7c6303b0e309d316defca1","networkInteractionId":1,"receipt":{"blockHash":"0x16459ae4e2e21d2f2a05fcaa65f99269657318a2f7026f89d38c1c3ad050c825","blockNumber":396708874,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x0000000000000000000000002f2a2543b76a4166549f7aab2e75bef0aefc5b0f0000000000000000000000000000000000000000000000000000000000000012","logIndex":0,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_16","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","contractName":"CurvyAggregatorAlphaV2","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV2","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xfAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B10"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073fAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B1092506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220203f460927dd492ae23c6a846bacc1b688b31d219b7fe1d56291d876ca96db2b64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteractionId":1,"nonce":36,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteractionId":1,"nonce":36,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"39384000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x5e6c9fb787d60b056f64633f411f5010b9dba53c4723473021b14040512c3bc9"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","hash":"0x5e6c9fb787d60b056f64633f411f5010b9dba53c4723473021b14040512c3bc9","networkInteractionId":1,"receipt":{"blockHash":"0xcf271eef5131d9c800399a330bd553f14dc4f09af36d15d84b7e5474a7187110","blockNumber":396726125,"contractAddress":"0x59368007DD7926a88b32d51d3CB2fA8b90178165","logs":[{"address":"0x59368007DD7926a88b32d51d3CB2fA8b90178165","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":25,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","result":{"address":"0x59368007DD7926a88b32d51d3CB2fA8b90178165","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x59368007DD7926a88b32d51d3CB2fA8b90178165","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef28600000000000000000000000059368007dd7926a88b32d51d3cb2fa8b9017816500000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteractionId":1,"nonce":37,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteractionId":1,"nonce":37,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40366000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x25df976d31d2f79111f3f7af1e39de2c37a44b04c1206458faf45a4f09f2787c"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","hash":"0x25df976d31d2f79111f3f7af1e39de2c37a44b04c1206458faf45a4f09f2787c","networkInteractionId":1,"receipt":{"blockHash":"0xe1632458fe5144e6c957ae10083a84526a4e8438ddb6014b80a008f3fc0205ff","blockNumber":396726136,"logs":[{"address":"0xE01eE56C613175502c8e677774eaCbBB2738674C","data":"0x","logIndex":0,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000059368007dd7926a88b32d51d3cb2fa8b90178165"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xaf88d065e77c8cC2239327C5EDb3A432268e5831"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#RegisterVaultToken_16"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_17","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_17","networkInteraction":{"data":"0x09824a80000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_17","networkInteractionId":1,"nonce":120,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_17","networkInteractionId":1,"nonce":120,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"20032000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xaee985843e21ff953dedcce33a745f109c03c8fb23ddc85a7cf87d3b1b619a3a"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_17","hash":"0xaee985843e21ff953dedcce33a745f109c03c8fb23ddc85a7cf87d3b1b619a3a","networkInteractionId":1,"receipt":{"blockHash":"0x128e64384636a6778e266af40ba519f70b794f9b7eee6682c899e08a2829c932","blockNumber":397385298,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58310000000000000000000000000000000000000000000000000000000000000013","logIndex":10,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_17","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyVault#CurvyVaultV2","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","contractName":"CurvyVaultV2","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV2Implementation","constructorArgs":[],"contractName":"CurvyVaultV2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV2Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212201b21d159dc0eddf3bd7ed9748b08b266ab42ee136de564c55de20aa9e4b3476664736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteractionId":1,"nonce":215,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteractionId":1,"nonce":215,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"20040000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xa0a7e36660f5aac9a52068be30311a00766c628edb6f4015cfbd764363c1d1ba"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","hash":"0xa0a7e36660f5aac9a52068be30311a00766c628edb6f4015cfbd764363c1d1ba","networkInteractionId":1,"receipt":{"blockHash":"0x6dd6d13804cd1629dde7cc3a2db371552c1debaa15af1458819b2054267768d4","blockNumber":408849147,"contractAddress":"0x1e77277b522d3C38691555B6Db7E5FfdC3883f4e","logs":[{"address":"0x1e77277b522d3C38691555B6Db7E5FfdC3883f4e","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":77,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","result":{"address":"0x1e77277b522d3C38691555B6Db7E5FfdC3883f4e","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x1e77277b522d3C38691555B6Db7E5FfdC3883f4e","0x"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#CurvyVaultV2Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef2860000000000000000000000001e77277b522d3c38691555b6db7e5ffdc3883f4e00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteractionId":1,"nonce":216,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteractionId":1,"nonce":216,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"20832000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x892b56ab833b915244dfb26d1358b585287e6c616deb4fd06fcc2f71aef1c1e2"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","hash":"0x892b56ab833b915244dfb26d1358b585287e6c616deb4fd06fcc2f71aef1c1e2","networkInteractionId":1,"receipt":{"blockHash":"0xecbeb11e540b1e76690c18435d10eb366e66296ade2f32ebfcee3c9cc76f606b","blockNumber":408849157,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x","logIndex":0,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000001e77277b522d3c38691555b6db7e5ffdc3883f4e"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","contractName":"CurvyAggregatorAlphaV3","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV3","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xfAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B10"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073fAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B1092506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073fAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B1093506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f0441967b61bb7c9eaf6fe1a9ae8c5a96daae9d27479e149eb70a7db8ab360764736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteractionId":1,"nonce":229,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteractionId":1,"nonce":229,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"20000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x0eca6b7791a6543e0f35afbc8ba24f634e54f078218d0b7eb2119fe27483b499"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","hash":"0x0eca6b7791a6543e0f35afbc8ba24f634e54f078218d0b7eb2119fe27483b499","networkInteractionId":1,"receipt":{"blockHash":"0x983b07e4152b75576db8a0a98f2e6b73e46fa5ff1cdf621cec96f601bbadd7d2","blockNumber":409846841,"contractAddress":"0xAF7b8C7Ac94C22429c10053B3c05AE69941f2294","logs":[{"address":"0xAF7b8C7Ac94C22429c10053B3c05AE69941f2294","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":1,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","result":{"address":"0xAF7b8C7Ac94C22429c10053B3c05AE69941f2294","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0xAF7b8C7Ac94C22429c10053B3c05AE69941f2294","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000af7b8c7ac94c22429c10053b3c05ae69941f229400000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteractionId":1,"nonce":230,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteractionId":1,"nonce":230,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"20000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x9f920534eaaf02baef5e2bbabbbf30d21057c4c688e4d32c3a1b30e3cadeb8af"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","hash":"0x9f920534eaaf02baef5e2bbabbbf30d21057c4c688e4d32c3a1b30e3cadeb8af","networkInteractionId":1,"receipt":{"blockHash":"0xa33ed5d1002591de67301645737915ef5b757c57e16c38f5b58b770bf0595abc","blockNumber":409846851,"logs":[{"address":"0xE01eE56C613175502c8e677774eaCbBB2738674C","data":"0x","logIndex":3,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000af7b8c7ac94c22429c10053b3c05ae69941f2294"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactoryAggregatorModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryAggregatorModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory","networkInteraction":{"data":"0x263076686d696861696c6f20616e642076616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016c67f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116a63803806116a683398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611564806101425f395ff3fe608060405260043610610084575f3560e01c8063715018a611610057578063715018a61461011c5780638da5cb5b14610130578063d465ea5814610160578063efc44aa61461017f578063f2fde38b1461019e575f5ffd5b80633942b0ad1461008857806343398648146100bc578063485907d8146100e857806352982f3b146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a23660046106f7565b6101bd565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610717565b6101ea565b6040516100b39190610741565b6100fb6100f63660046107d9565b610263565b005b348015610108575f5ffd5b506100a7610117366004610802565b6103f2565b348015610127575f5ffd5b506100fb61043e565b34801561013b575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561016b575f5ffd5b5061014861017a366004610717565b610451565b34801561018a575f5ffd5b506100fb610199366004610842565b6104c1565b3480156101a9575f5ffd5b506100fb6101b83660046106f7565b61061c565b5f6101c6610659565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b60605f604051806020016101fd906106d4565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061024a90839083906080016108f8565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061028457506003546001600160a01b0316155b156102f35760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610301835f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b03821661036b5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b1580156103d5575f5ffd5b505af11580156103e7573d5f5f3e3d5ffd5b505050505050505050565b5f6103fb610659565b50600280546001600160a01b039485166001600160a01b031991821617909155600380549385169382169390931790925560048054919093169116179055600190565b610446610659565b61044f5f610685565b565b5f5f61045d84846101ea565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105355760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084016102ea565b5f610543845f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b0382166105ad5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105e5939216918d918d918d918d9101610914565b5f604051808303815f87803b1580156105fc575f5ffd5b505af115801561060e573d5f5f3e3d5ffd5b505050505050505050505050565b610624610659565b6001600160a01b03811661064d57604051631e4fbdf760e01b81525f60048201526024016102ea565b61065681610685565b50565b5f546001600160a01b0316331461044f5760405163118cdaa760e01b81523360048201526024016102ea565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098a83390190565b80356001600160a01b03811681146101e5575f5ffd5b5f60208284031215610707575f5ffd5b610710826106e1565b9392505050565b5f5f60408385031215610728575f5ffd5b82359150610738602084016106e1565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60608284031215610786575f5ffd5b6040516060810181811067ffffffffffffffff821117156107b557634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156107ea575f5ffd5b6107f48484610776565b9150610738606084016106e1565b5f5f5f60608486031215610814575f5ffd5b61081d846106e1565b925061082b602085016106e1565b9150610839604085016106e1565b90509250925092565b5f5f5f5f5f60c08688031215610856575f5ffd5b853567ffffffffffffffff81111561086c575f5ffd5b8601601f8101881361087c575f5ffd5b803567ffffffffffffffff811115610892575f5ffd5b8860208284010111156108a3575f5ffd5b6020918201965094506108b99088908801610776565b92506108c7608087016106e1565b91506108d560a087016106e1565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61090c61090683866108e1565b846108e1565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096e60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a26469706673582212203606601acb0b023e36c60b268a0307ecd89114117ed619c689865d43a46264bf64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory","networkInteractionId":1,"nonce":349,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory","networkInteractionId":1,"nonce":349,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40004000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xe51c1067cfd83328cfe05a107b359f7238b7a2bbd2c21b52c3a26d954c07217f"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory","hash":"0xe51c1067cfd83328cfe05a107b359f7238b7a2bbd2c21b52c3a26d954c07217f","networkInteractionId":1,"receipt":{"blockHash":"0x883a9eeeaffa17efffb7ef804b99d8e3a4080899e53f07af19196771d69d2024","blockNumber":424346020,"logs":[{"address":"0xB8c0750e889afB95342d634b3AD99944b9525505","data":"0x","logIndex":21,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":22,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000b8c0750e889afb95342d634b3ad99944b9525505","0xb1479d7f5dfd9da0029a798b27f617354f0aeca1c622cb19c1f7fe6bd9fc5bc1"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory","result":{"address":"0xB8c0750e889afB95342d634b3AD99944b9525505","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","0xE01eE56C613175502c8e677774eaCbBB2738674C","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactoryAggregatorModule#PortalFactory","contractAddress":"0xB8c0750e889afB95342d634b3AD99944b9525505","dependencies":["PortalFactoryAggregatorModule#PortalFactory","CurvyVault#CurvyVaultV2","CurvyAggregatorAlpha#CurvyAggregatorAlphaV3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"initializeConfig","futureId":"PortalFactoryAggregatorModule#PortalFactory.initializeConfig","strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory.initializeConfig","networkInteraction":{"data":"0x52982f3b000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f939000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c0000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xB8c0750e889afB95342d634b3AD99944b9525505","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":350,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":350,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40072000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x939f87c9af0657be078b68fa6c9c248142132191254bbc9bd9d304084df167b5"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory.initializeConfig","hash":"0x939f87c9af0657be078b68fa6c9c248142132191254bbc9bd9d304084df167b5","networkInteractionId":1,"receipt":{"blockHash":"0x47218b746cf024f404b6b9f30f4e7c0d33b856e60e9c9497cb36c54d04d9fb12","blockNumber":424346029,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryAggregatorModule#PortalFactory.initializeConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","constructorArgs":[],"contractName":"CurvyInsertionVerifierAlpha_2","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b5061124e8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046110b1565b610054565b604051901515815260200160405180910390f35b5f61005d610ed8565b60408051808201825287518152602080890151818301529083528151608080820184528851518285019081528951840151606084015282528351808501855289840180515182525184015181850152828401528483019190915282518084018452875181528783015181840152848401528251600480825260a082019094525f939092909190830190803683370190505090505f5b60048110156101375784816004811061010d5761010d611194565b602002015182828151811061012457610124611194565b60209081029190910101526001016100f2565b506101428183610161565b5f0361015357600192505050610159565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018161018c610348565b9050806080015151855160016101a291906111bc565b146101e95760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cf578387828151811061021b5761021b611194565b6020026020010151106102705760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101e0565b6102c5826102c0856080015184600161028991906111bc565b8151811061029957610299611194565b60200260200101518a85815181106102b3576102b3611194565b6020026020010151610845565b6108d9565b91506001016101ff565b506102f78183608001515f815181106102ea576102ea611194565b60200260200101516108d9565b905061032b610308865f0151610970565b8660200151845f015185602001518587604001518b604001518960600151610a0c565b61033b5760019350505050610342565b5f93505050505b92915050565b610350610f26565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f2933c663723e3630bea92f14ce272046739c1de9ac0de5108d9f97504796bcdd8185019081527f2d9d46b72cb758726c5730268fdedefe18f1b55f5b935a82ecf821c05b252da1828401528152835180850185527f0d673c337136dbf082c467ce378ee3bce333a36c5f27cc01edf54179d6e7dc6081527f0c907c5922e46c3cadc99de46a7b8d01770eded5cef85379f58252ab65cb80ad8185015281840152908401528151600580825260c08201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105cb57505060808201908152604080518082019091527f0cdbf7f6fb2cf15ec81a44a104d6490ebeeeea7bf9a0cbf4d695c2a5e7ef7d8481527e5eff6d3e9efe8e7e1fc61c474ed76a4e42f9233e0e5c1054caa772f3b03c396020820152905180515f9061065b5761065b611194565b602002602001018190525060405180604001604052807f24aa7ee61e4ad8e6faf43e12eeb8b33081498ee103385743f2f357bf8b0c6af181526020017f22d171354b9d3a5d983212b596739d62f1cc42aff5df6db8475e4b887902146581525081608001516001815181106106d2576106d2611194565b602002602001018190525060405180604001604052807f3037fd725c311a8a59dc660d0fa266e188928bef08015840cf45d7998b747a1881526020017f20918eb8f6b9ca00d9004f42b7bd61a3703ea034983fa552ba34fcbde0d59bc2815250816080015160028151811061074957610749611194565b602002602001018190525060405180604001604052807f1b5c870d21c274d5bdf96cd309bdbda13661a47c01ce8483bd3682fcc1d58a3081526020017f2f4600674aa2b704715e8f62433edcae3bae85557d27e74af090ebcdbc0b195e81525081608001516003815181106107c0576107c0611194565b602002602001018190525060405180604001604052807f199fcda69c0bfd4d6f2db0f385bd0fcf78f0074be4d5eeb7f75f32963269d8d981526020017f1638a9aa5129a8fa9964966f9545941fbceb843dd14aa0f40531c6197da17578815250816080015160048151811061083757610837611194565b602002602001018190525090565b604080518082019091525f8082526020820152610860610f76565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa9050808061088e57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101e0565b505092915050565b604080518082019091525f80825260208201526108f4610f94565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa9050808061092d57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101e0565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47901580156109b657506020830151155b156109d5575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f015181526020018285602001516109f991906111cf565b610a0390846111ee565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610a2657505060408051600480825260a082019092529192505f9190602082015b610a6e610fb2565b815260200190600190039081610a665790505090508a825f81518110610a9657610a96611194565b60200260200101819052508882600181518110610ab557610ab5611194565b60200260200101819052508682600281518110610ad457610ad4611194565b60200260200101819052508482600381518110610af357610af3611194565b602002602001018190525089815f81518110610b1157610b11611194565b60200260200101819052508781600181518110610b3057610b30611194565b60200260200101819052508581600281518110610b4f57610b4f611194565b60200260200101819052508381600381518110610b6e57610b6e611194565b6020026020010181905250610b838282610b92565b9b9a5050505050505050505050565b5f8151835114610bdd5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101e0565b82515f610beb826006611201565b90505f8167ffffffffffffffff811115610c0757610c0761100e565b604051908082528060200260200182016040528015610c30578160200160208202803683370190505b5090505f5b83811015610e5d57868181518110610c4f57610c4f611194565b60200260200101515f015182826006610c689190611201565b610c72905f6111bc565b81518110610c8257610c82611194565b602002602001018181525050868181518110610ca057610ca0611194565b60200260200101516020015182826006610cba9190611201565b610cc59060016111bc565b81518110610cd557610cd5611194565b602002602001018181525050858181518110610cf357610cf3611194565b6020908102919091010151515182610d0c836006611201565b610d179060026111bc565b81518110610d2757610d27611194565b602002602001018181525050858181518110610d4557610d45611194565b60209081029190910181015151015182610d60836006611201565b610d6b9060036111bc565b81518110610d7b57610d7b611194565b602002602001018181525050858181518110610d9957610d99611194565b6020026020010151602001515f60028110610db657610db6611194565b602002015182610dc7836006611201565b610dd29060046111bc565b81518110610de257610de2611194565b602002602001018181525050858181518110610e0057610e00611194565b602002602001015160200151600160028110610e1e57610e1e611194565b602002015182610e2f836006611201565b610e3a9060056111bc565b81518110610e4a57610e4a611194565b6020908102919091010152600101610c35565b50610e66610fd2565b5f602082602086026020860160086107d05a03fa90508080610e8457fe5b5080610eca5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101e0565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101610f01610fb2565b8152602001610f2160405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101610f4f610fb2565b8152602001610f5c610fb2565b8152602001610f69610fb2565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280610fc5610ff0565b8152602001610f21610ff0565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561105757634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f83011261106e575f5ffd5b5f6110796040611022565b905080604084018581111561108c575f5ffd5b845b818110156110a657803583526020928301920161108e565b509195945050505050565b5f5f5f5f61018085870312156110c5575f5ffd5b6110cf868661105f565b935085605f8601126110df575f5ffd5b60406110ea81611022565b8060c08801898111156110fb575f5ffd5b604089015b81811015611121576111128b8261105f565b84526020909301928401611100565b5081965061112f8a8261105f565b95505050505061010085015f87601f830112611149575f5ffd5b5f6111546080611022565b905080608084018a811115611167575f5ffd5b5b80851015611183578435825260209485019490910190611168565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610342576103426111a8565b5f826111e957634e487b7160e01b5f52601260045260245ffd5b500690565b81810381811115610342576103426111a8565b8082028115828204841417610342576103426111a856fea264697066735822122052b8c89d46e40ccc60f13c59a59ab39c0a5084d1333d84af2fe13436741f62ef64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","networkInteractionId":1,"nonce":361,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","networkInteractionId":1,"nonce":361,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40108000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xd7091a1820fa7e6b2ff1849bb250a318053293711079a937ce6caa3bb3cbafa3"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","hash":"0xd7091a1820fa7e6b2ff1849bb250a318053293711079a937ce6caa3bb3cbafa3","networkInteractionId":1,"receipt":{"blockHash":"0x339508957c516d8458480cd568d15181dc796e9b6835982f02fa69a0f0fa32b1","blockNumber":425416791,"contractAddress":"0x4918b9fB8cf1469d791C0A186398A57d0506f6E0","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","result":{"address":"0x4918b9fB8cf1469d791C0A186398A57d0506f6E0","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","constructorArgs":[],"contractName":"CurvyAggregationVerifierAlpha_2","dependencies":["CurvyAggregatorAlpha#NewInsertionVerifier_v2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506116ed8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004611553565b610054565b604051901515815260200160405180910390f35b5f61005d61137a565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600e8082526101e082019093525f92909182016101c0803683370190505090505f5b600e811015610133578481600e811061010957610109611633565b602002015182828151811061012057610120611633565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061165b565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611633565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061165b565b8151811061029557610295611633565b60200260200101518a85815181106102af576102af611633565b6020026020010151610ce7565b610d7b565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611633565b6020026020010151610d7b565b9050610327610304865f0151610e12565b8660200151845f015185602001518587604001518b604001518960600151610eae565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6113c8565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f040960ae7a0345676e57477fe153547dac4996ccff6cd8bdbfab68194176ebfe8185019081527f09f390a54aa2c22bc7ab1273ccbfba2d124f277c4b7858b7e6b2b215264b2524828401528152835180850185527f069489b61aadf82d080f5b031e40c78265091ce5230bde1c6b129bd6ee8f929a81527f11d4a92da28cae8798f897d046ec7d2b818431d18ca7d7b30c720a5a4320777f8185015281840152908401528151600f8082526102008201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f18c30badf97bca79e0290e1e2709c180d796014d89846a50fdf83edb9a5f126081527ec6ff8cc32c2c88d6a18abf5d8474acb27c8174ed0969d8641896bb65bc14c46020820152905180515f9061065857610658611633565b602002602001018190525060405180604001604052807f26be249a1394d006fdb707e50aafdbfae0abcdd8424b6e9ecfaad5546f97f78881526020017f1d61635959d20e223664b32f4564dc44e3b7b360b37d388f9f7f51585800155581525081608001516001815181106106cf576106cf611633565b602002602001018190525060405180604001604052807f2506541fa33baf46747051d8ebe51a91b929a728a707a75f0cdeafd7f739fd3181526020017f0d08b60cf224252ab06e146a2272e4c007567054b6e83778161343ae31deb5ac815250816080015160028151811061074657610746611633565b602002602001018190525060405180604001604052807f1f3bdf1e50dc24be846513f7f74068a55438ca5acb4f64c3d3921bde7468a2d681526020017f2e5e1a4837097500979c5d1cf152f067e70c896ac860ba29651b02f6e79edae281525081608001516003815181106107bd576107bd611633565b602002602001018190525060405180604001604052807f203c139f09bbb742c8d4c51234494498c24d56884f24f6545086e2238e763a5881526020017f028e6932f3bc2561b30d7fe76c6de6bebf4c8ea0621bbb6ad41882df5eb7264b815250816080015160048151811061083457610834611633565b602002602001018190525060405180604001604052807f204223f3717fb8cd7ebd1a98a872f75b82e0ef94fa940335abd65568db85649f81526020017f0d2ccb01844a345701f9b1f27c633fdb9ad135aeaa0fae0fd831d08edcdc323b81525081608001516005815181106108ab576108ab611633565b602002602001018190525060405180604001604052807f2ca96167b9316ee5855a83bb4a92112653444fffa0bf5725ae9b090bb288152e81526020017f1d6d5440897b2ec044f2aaecdab5e507c4d69f8c7ca8813db13ce819e79129d4815250816080015160068151811061092257610922611633565b602002602001018190525060405180604001604052807f1cba19de78b5c7c47d2407121e7e86d0d70c63aaee0ce04ca5fecaee97ab75d481526020017f059319895b38a350849d8c25b406b951743ab1c6237a63b648f07c5f3e7e19dd815250816080015160078151811061099957610999611633565b602002602001018190525060405180604001604052807f016cc32364e0c0823d4b34edc52852c6665a421cd8867fbd190170fab867bea681526020017f0734df7485b401e47cbd1c3ab7024be0250f9fa13ab7ec9b3b40d83178eb2b468152508160800151600881518110610a1057610a10611633565b602002602001018190525060405180604001604052807f29286c62d871cffa08e84997e6180455e1edca20d681ef29656ef4d6d45b001781526020017f2e71a4c29421434de9ed5e921a2b6a23816a740d99b6f135fd01cad64bd288ac8152508160800151600981518110610a8757610a87611633565b602002602001018190525060405180604001604052807f2492df9b4d0ad2639c6f34096692d29d2f9ed9ee57d9e9c3ba303e9dbcdae43081526020017f2e497c91b7e5e3a2a9b9f7fe9cdfe78c9e72037bb7552e29d54813a4566c6fbd8152508160800151600a81518110610afe57610afe611633565b602002602001018190525060405180604001604052807f1476e8d331c072345e564de7e0c1b051b0b0b18531bdd1e7441e0257090a0c1781526020017f110b09db70453d4ec6bed001ab95fcb5ce4b8e21a0c4f4c26b91dc8059aa1dce8152508160800151600b81518110610b7557610b75611633565b602002602001018190525060405180604001604052807e6e2fbcfe989d63aea84d90addc8537a921948b213ef36ec5fa0cbb5b68670381526020017f06f6a502b00b2945dd9841eca5ab5f69654f4992777102c600ca5402c35d6c288152508160800151600c81518110610beb57610beb611633565b602002602001018190525060405180604001604052807f01a330e578c215a80aaf5fc3208956611670affa4560f2dd1f7892698b50c35881526020017f0a9ccad9b2edacd7bbb8a5c460a47d7a114166eace7c8cfe32c7a4243c30e0f28152508160800151600d81518110610c6257610c62611633565b602002602001018190525060405180604001604052807f0aa436490c317254e1444ad76cac634937ea2fa0d0730983455fed54f43c9ff981526020017f12228d15b01f07e1d77acd2c2c609c7e4c9a70503e071ec4963191e6d4d13d598152508160800151600e81518110610cd957610cd9611633565b602002602001018190525090565b604080518082019091525f8082526020820152610d02611418565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610d3057fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610d96611436565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610dcf57fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610e5857506020830151155b15610e77575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610e9b919061166e565b610ea5908461168d565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610ec857505060408051600480825260a082019092529192505f9190602082015b610f10611454565b815260200190600190039081610f085790505090508a825f81518110610f3857610f38611633565b60200260200101819052508882600181518110610f5757610f57611633565b60200260200101819052508682600281518110610f7657610f76611633565b60200260200101819052508482600381518110610f9557610f95611633565b602002602001018190525089815f81518110610fb357610fb3611633565b60200260200101819052508781600181518110610fd257610fd2611633565b60200260200101819052508581600281518110610ff157610ff1611633565b6020026020010181905250838160038151811061101057611010611633565b60200260200101819052506110258282611034565b9b9a5050505050505050505050565b5f815183511461107f5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f61108d8260066116a0565b90505f8167ffffffffffffffff8111156110a9576110a96114b0565b6040519080825280602002602001820160405280156110d2578160200160208202803683370190505b5090505f5b838110156112ff578681815181106110f1576110f1611633565b60200260200101515f01518282600661110a91906116a0565b611114905f61165b565b8151811061112457611124611633565b60200260200101818152505086818151811061114257611142611633565b6020026020010151602001518282600661115c91906116a0565b61116790600161165b565b8151811061117757611177611633565b60200260200101818152505085818151811061119557611195611633565b60209081029190910101515151826111ae8360066116a0565b6111b990600261165b565b815181106111c9576111c9611633565b6020026020010181815250508581815181106111e7576111e7611633565b602090810291909101810151510151826112028360066116a0565b61120d90600361165b565b8151811061121d5761121d611633565b60200260200101818152505085818151811061123b5761123b611633565b6020026020010151602001515f6002811061125857611258611633565b6020020151826112698360066116a0565b61127490600461165b565b8151811061128457611284611633565b6020026020010181815250508581815181106112a2576112a2611633565b6020026020010151602001516001600281106112c0576112c0611633565b6020020151826112d18360066116a0565b6112dc90600561165b565b815181106112ec576112ec611633565b60209081029190910101526001016110d7565b50611308611474565b5f602082602086026020860160086107d05a03fa9050808061132657fe5b508061136c5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016113a3611454565b81526020016113c360405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c08301919091528152602081016113f1611454565b81526020016113fe611454565b815260200161140b611454565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280611467611492565b81526020016113c3611492565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156114f957634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611510575f5ffd5b5f61151b60406114c4565b905080604084018581111561152e575f5ffd5b845b81811015611548578035835260209283019201611530565b509195945050505050565b5f5f5f5f6102c08587031215611567575f5ffd5b6115718686611501565b935085605f860112611581575f5ffd5b604061158c816114c4565b8060c088018981111561159d575f5ffd5b604089015b818110156115c3576115b48b82611501565b845260209093019284016115a2565b508196506115d18a82611501565b95505050505061010085015f87601f8301126115eb575f5ffd5b5f6101c06115f8816114c4565b91508301818a821115611609575f5ffd5b5b8185101561162257843581526020948501940161160a565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e611647565b5f8261168857634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e611647565b808202811582820484141761033e5761033e61164756fea26469706673582212208ecec3b58f8c69288c925191a76554c85a5d679e9a34b2047785e1439c8c3d1d64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","networkInteractionId":1,"nonce":362,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","networkInteractionId":1,"nonce":362,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40164000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x8cc9280b0e21cfb51c61d15da1a182249d764adf54fe0b6670997c8137ca4cd1"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","hash":"0x8cc9280b0e21cfb51c61d15da1a182249d764adf54fe0b6670997c8137ca4cd1","networkInteractionId":1,"receipt":{"blockHash":"0x98b1710028727fbcc61f596bef7a87d79aa948a6b3f6d602a630de018da13163","blockNumber":425416800,"contractAddress":"0xcEef822fbca715B42fCf515b560680f2F581bEBD","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","result":{"address":"0xcEef822fbca715B42fCf515b560680f2F581bEBD","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlpha_2","dependencies":["CurvyAggregatorAlpha#NewAggregationVerifier_v2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506115118061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b366004611377565b610054565b604051901515815260200160405180910390f35b5f61005d61119e565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600a80825261016082019093525f9290918201610140803683370190505090505f5b600a811015610133578481600a811061010957610109611457565b602002015182828151811061012057610120611457565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061147f565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611457565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061147f565b8151811061029557610295611457565b60200260200101518a85815181106102af576102af611457565b6020026020010151610b0b565b610b9f565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611457565b6020026020010151610b9f565b9050610327610304865f0151610c36565b8660200151845f015185602001518587604001518b604001518960600151610cd2565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6111ec565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f0b5a45bbb3d9f21c42579fd5a810f82f25e696fb3b00ef64b8ca2d17d89fe4ed8185019081527f0f79b405819a9900f7edb3f309c9b73a45673c17366eeb72361c23f957680a89828401528152835180850185527f23b107da251eb5c5dd3c157a900388d73f64a4394faf6a12ae2077766d720b0881527f2188bf40a163dba1ba12fc061d0a6fc9d7246af5e912fcbb23b59a53823b7c048185015281840152908401528151600b8082526101808201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f118592ce705cf3d21e870156a4dc6cff3b2a01fca2c8e60a402fc01dd47341de81527f1fe6c8cb2c02b9ddf7ed360fd3ba99867e54e590d7ca62b57d839ef26d549f0c6020820152905180515f9061065957610659611457565b602002602001018190525060405180604001604052807f154574f61b1a23d66f35533910d332b8ab9bffc6274ce4ffb0bf3b7f1210090781526020017f1ac6f7f35d927f760afe3efc726d0d1ab8ab6514d018630e92a11b5079108b9a81525081608001516001815181106106d0576106d0611457565b602002602001018190525060405180604001604052807f102a84a54eb42169d68f30c781aabd282a341b2b4c25cd55fdae5e3479b4182a81526020017f1b8113a1108e05880a85ae50fdaa0f86926095751a6c3f0130cee222578c7911815250816080015160028151811061074757610747611457565b602002602001018190525060405180604001604052807f25504b6ec89efe8110a42f0ffda2f64b4c0b63b83a776f2146c23ddb2b9c346081526020017e1bd1b27eb32e5c1ecc7f9b08d87e6c7eff72e21014bd87c5badb37e82d50c781525081608001516003815181106107bd576107bd611457565b602002602001018190525060405180604001604052807f2955cc92eefc93c0bb8f2a726fbcbadbedd59c2f68b3701defa2ac66e1c1643f81526020017f1a8bfc29eefca9fd267806f814daf245aa0fb67048fbc16761d5fc39282f7336815250816080015160048151811061083457610834611457565b602002602001018190525060405180604001604052807f0acefb487079ce3764bf9e0af6b69a939b8f43cb3cce80262ebd68167a86afa881526020017f2500ee5fc51d1ed187adfe4cb25ef69610207eefc41a868d14a519b58c99286081525081608001516005815181106108ab576108ab611457565b602002602001018190525060405180604001604052807f1eca69b2e86127c29cd324a9b13cf89c0e657596c9e37dc05eec008c8fa84fdb81526020017f2f11a966ac185bf5d584d386b3e8a555d66e51913d8801fb9189542b4bcd3624815250816080015160068151811061092257610922611457565b602002602001018190525060405180604001604052807ee8670dd1e30ffd6e6d42b6f98d3cd5ebb1a6c2a726f4024e6c27b555683cf881526020017f152894c1731fbedba470963903d414e8c210a8b846aedba229071fa832e882fa815250816080015160078151811061099857610998611457565b602002602001018190525060405180604001604052807f2354fe17a8632ee331a1459f6df0806153f19ed6c1645906895e966cea47cab981526020017f27700ede44b18910d2a31045a1d448bb930ba1c39cc918aa3f4b093a610e45b58152508160800151600881518110610a0f57610a0f611457565b602002602001018190525060405180604001604052807f2f583f76ad789e51575f9168446813e1e5655c1f444ed4f8bd2c38c8c438a52e81526020017f21e4aa608b395b9eaf98de7f2c77baac96da672aedab46f36e4a732fbefdaa328152508160800151600981518110610a8657610a86611457565b602002602001018190525060405180604001604052807f29b71cd418de446ac259b14d47ccbc6c7bf3021aa56d6d3ab3fc80becde42ba281526020017f1671437c4af2a055de0faf52bad6da5b1c1f37d53e279ef8d7a04b401b8f00b18152508160800151600a81518110610afd57610afd611457565b602002602001018190525090565b604080518082019091525f8082526020820152610b2661123c565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610b5457fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610bba61125a565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610bf357fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c7c57506020830151155b15610c9b575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610cbf9190611492565b610cc990846114b1565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610cec57505060408051600480825260a082019092529192505f9190602082015b610d34611278565b815260200190600190039081610d2c5790505090508a825f81518110610d5c57610d5c611457565b60200260200101819052508882600181518110610d7b57610d7b611457565b60200260200101819052508682600281518110610d9a57610d9a611457565b60200260200101819052508482600381518110610db957610db9611457565b602002602001018190525089815f81518110610dd757610dd7611457565b60200260200101819052508781600181518110610df657610df6611457565b60200260200101819052508581600281518110610e1557610e15611457565b60200260200101819052508381600381518110610e3457610e34611457565b6020026020010181905250610e498282610e58565b9b9a5050505050505050505050565b5f8151835114610ea35760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610eb18260066114c4565b90505f8167ffffffffffffffff811115610ecd57610ecd6112d4565b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b5090505f5b8381101561112357868181518110610f1557610f15611457565b60200260200101515f015182826006610f2e91906114c4565b610f38905f61147f565b81518110610f4857610f48611457565b602002602001018181525050868181518110610f6657610f66611457565b60200260200101516020015182826006610f8091906114c4565b610f8b90600161147f565b81518110610f9b57610f9b611457565b602002602001018181525050858181518110610fb957610fb9611457565b6020908102919091010151515182610fd28360066114c4565b610fdd90600261147f565b81518110610fed57610fed611457565b60200260200101818152505085818151811061100b5761100b611457565b602090810291909101810151510151826110268360066114c4565b61103190600361147f565b8151811061104157611041611457565b60200260200101818152505085818151811061105f5761105f611457565b6020026020010151602001515f6002811061107c5761107c611457565b60200201518261108d8360066114c4565b61109890600461147f565b815181106110a8576110a8611457565b6020026020010181815250508581815181106110c6576110c6611457565b6020026020010151602001516001600281106110e4576110e4611457565b6020020151826110f58360066114c4565b61110090600561147f565b8151811061111057611110611457565b6020908102919091010152600101610efb565b5061112c611298565b5f602082602086026020860160086107d05a03fa9050808061114a57fe5b50806111905760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016111c7611278565b81526020016111e760405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101611215611278565b8152602001611222611278565b815260200161122f611278565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061128b6112b6565b81526020016111e76112b6565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561131d57634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611334575f5ffd5b5f61133f60406112e8565b9050806040840185811115611352575f5ffd5b845b8181101561136c578035835260209283019201611354565b509195945050505050565b5f5f5f5f610240858703121561138b575f5ffd5b6113958686611325565b935085605f8601126113a5575f5ffd5b60406113b0816112e8565b8060c08801898111156113c1575f5ffd5b604089015b818110156113e7576113d88b82611325565b845260209093019284016113c6565b508196506113f58a82611325565b95505050505061010085015f87601f83011261140f575f5ffd5b5f61014061141c816112e8565b91508301818a82111561142d575f5ffd5b5b8185101561144657843581526020948501940161142e565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e61146b565b5f826114ac57634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e61146b565b808202811582820484141761033e5761033e61146b56fea2646970667358221220dcff813b86dd38808694958c9a737d51423f91e9af2ee777888630650f47d44264736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","networkInteractionId":1,"nonce":363,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","networkInteractionId":1,"nonce":363,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x730516116fd6240a7fac49bc0389a94f160f44ec5531e7aec672b179aa5dd918"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","hash":"0x730516116fd6240a7fac49bc0389a94f160f44ec5531e7aec672b179aa5dd918","networkInteractionId":1,"receipt":{"blockHash":"0xfe79c72ad802140e176a1ab2a0d19137444b06ccb328b612836dbbce8044ff75","blockNumber":425416809,"contractAddress":"0x251B92B82AD3B9936edf964474Ea51947F29A8dD","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","result":{"address":"0x251B92B82AD3B9936edf964474Ea51947F29A8dD","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0xcEef822fbca715B42fCf515b560680f2F581bEBD","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0x4918b9fB8cf1469d791C0A186398A57d0506f6E0","maxAggregations":0,"maxDeposits":0,"maxWithdrawals":0,"withdrawVerifier":"0x251B92B82AD3B9936edf964474Ea51947F29A8dD"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","CurvyAggregatorAlpha#NewInsertionVerifier_v2","CurvyAggregatorAlpha#NewAggregationVerifier_v2","CurvyAggregatorAlpha#NewWithdrawVerifier_v2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteraction":{"data":"0xb4da71730000000000000000000000004918b9fb8cf1469d791c0a186398a57d0506f6e0000000000000000000000000ceef822fbca715b42fcf515b560680f2f581bebd000000000000000000000000251b92b82ad3b9936edf964474ea51947f29a8dd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteractionId":1,"nonce":364,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteractionId":1,"nonce":364,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40020000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xff969b30c1fce01c57786943791be00701dd2a09e77b8bc44e91e6d08db5a6e7"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","hash":"0xff969b30c1fce01c57786943791be00701dd2a09e77b8bc44e91e6d08db5a6e7","networkInteractionId":1,"receipt":{"blockHash":"0xb108178e518f8c8b397100ae09b19275d29f108b6c2898b9af9fce84a457f349","blockNumber":425416817,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6","0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","0xE01eE56C613175502c8e677774eaCbBB2738674C",42161],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076686d696861696c6f20616e642076616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016c67f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161164638038061164683398101604081905261007b91610152565b836001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100e8565b50600555600280546001600160a01b039384166001600160a01b031991821617909155600380549290931691161790555061019a565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461014d575f5ffd5b919050565b5f5f5f5f60808587031215610165575f5ffd5b61016e85610137565b935061017c60208601610137565b925061018a60408601610137565b6060959095015193969295505050565b61149f806101a75f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b80633942b0ad1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c610097366004610672565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb366004610692565b6101c0565b6040516100a891906106bc565b6100f06100eb366004610754565b610239565b005b3480156100fd575f5ffd5b506100f06103ab565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e610150366004610692565b6103be565b348015610160575f5ffd5b506100f061016f36600461077d565b61042e565b34801561017f575f5ffd5b506100f061018e366004610672565b610597565b5f61019c6105d4565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b60605f604051806020016101d39061064f565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102209083908390608001610833565b6040516020818303038152906040529250505092915050565b60055446146102ac5760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f6102ba835f0151836101c0565b90505f5f60015490508083516020850134f591506001600160a01b0382166103245760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102a3565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b15801561038e575f5ffd5b505af11580156103a0573d5f5f3e3d5ffd5b505050505050505050565b6103b36105d4565b6103bc5f610600565b565b5f5f6103ca84846101c0565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03161580610447575060055446145b156104b05760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084016102a3565b5f6104be845f0151836101c0565b90505f5f60015490508083516020850134f591506001600160a01b0382166105285760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102a3565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c47493610560939216918d918d918d918d910161084f565b5f604051808303815f87803b158015610577575f5ffd5b505af1158015610589573d5f5f3e3d5ffd5b505050505050505050505050565b61059f6105d4565b6001600160a01b0381166105c857604051631e4fbdf760e01b81525f60048201526024016102a3565b6105d181610600565b50565b5f546001600160a01b031633146103bc5760405163118cdaa760e01b81523360048201526024016102a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806108c583390190565b80356001600160a01b03811681146101bb575f5ffd5b5f60208284031215610682575f5ffd5b61068b8261065c565b9392505050565b5f5f604083850312156106a3575f5ffd5b823591506106b36020840161065c565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60608284031215610701575f5ffd5b6040516060810181811067ffffffffffffffff8211171561073057634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610765575f5ffd5b61076f84846106f1565b91506106b36060840161065c565b5f5f5f5f5f60c08688031215610791575f5ffd5b853567ffffffffffffffff8111156107a7575f5ffd5b8601601f810188136107b7575f5ffd5b803567ffffffffffffffff8111156107cd575f5ffd5b8860208284010111156107de575f5ffd5b6020918201965094506107f490889088016106f1565b92506108026080870161065c565b915061081060a0870161065c565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f610847610841838661081c565b8461081c565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506108a960408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a26469706673582212202249f72d36080e063c0bd0ebc4a4e90b36238d0957510a6e498db650a00c7ba664736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f939000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c000000000000000000000000000000000000000000000000000000000000a4b10000000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":372,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":372,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x4970fcdaf582955a38a482efc39cb38e89ec7a5cd51c6594625690c51a63a339"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x4970fcdaf582955a38a482efc39cb38e89ec7a5cd51c6594625690c51a63a339","networkInteractionId":1,"receipt":{"blockHash":"0x5e5c9ff639a1a852ccfe98e6664a743d4420308924b2c4b41e2dfefca8b8f516","blockNumber":425766047,"logs":[{"address":"0x391c09A2f78Cb53D018C9e1e4B30911a171c338a","data":"0x","logIndex":0,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000391c09a2f78cb53d018c9e1e4b30911a171c338a","0xb1479d7f5dfd9da0029a798b27f617354f0aeca1c622cb19c1f7fe6bd9fc5bc1"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0x391c09A2f78Cb53D018C9e1e4B30911a171c338a","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"PortalFactoryModule#PortalFactory","type":"WIPE_APPLY"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076687374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016bc7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":374,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":374,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40168000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x8aa8d0c1a0b7680d4a66ca9e43ff5b4a3ba82f55cd25eac2efd28f1921238fa8"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x8aa8d0c1a0b7680d4a66ca9e43ff5b4a3ba82f55cd25eac2efd28f1921238fa8","networkInteractionId":1,"receipt":{"blockHash":"0x0e310905e7e5f52fd24cece7189a2a9255df4942288d3eff1a0d8c043cdad83a","blockNumber":425814457,"logs":[{"address":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","data":"0x","logIndex":0,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000baef1916444145c7101b63a6ca5acc9aba39a99c","0x424e4b9db5d95a27499fbc0588f9e21c9c6eab4cae98df46601e5284d9e6f6c8"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","0xE01eE56C613175502c8e677774eaCbBB2738674C","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"PortalFactoryModule#PortalFactory.updateConfig","strategy":"create2","strategyConfig":{"salt":"0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f939000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c0000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":375,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":375,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40052000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xc4daef267490a3a02a1700dfcf53cc76a6e980e6e3a9321543ca9edabc1b842a"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","hash":"0xc4daef267490a3a02a1700dfcf53cc76a6e980e6e3a9321543ca9edabc1b842a","networkInteractionId":1,"receipt":{"blockHash":"0x9c5658fa41106d4ae5460f944e3c899211ed2a973d534d11d8fcbf140c46df36","blockNumber":425814468,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","contractName":"CurvyAggregatorAlphaV4","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV4","dependencies":["CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xfAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B10"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516124506100f95f395f818161168a015281816116b301526117f701526124505ff3fe608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073fAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B1092506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073fAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B1093506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","networkInteractionId":1,"nonce":580,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","networkInteractionId":1,"nonce":580,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"46980000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xd5fc6f2c1939cd0aa13e8547cb1ec0f98247b2dd32cfa2978d46c7b16700319e"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyVault#CurvyVaultV3","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","contractName":"CurvyVaultV3","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV3Implementation","constructorArgs":[],"contractName":"CurvyVaultV3","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV3Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5f6100f95f395f81816117f20152818161181b015261195f0152612d5f5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","hash":"0xd5fc6f2c1939cd0aa13e8547cb1ec0f98247b2dd32cfa2978d46c7b16700319e","networkInteractionId":1,"receipt":{"blockHash":"0x8e7bd198b8c530e52d98901eb38acf4b01e5b7c065061b3293d2a80df45dd7c4","blockNumber":429248095,"contractAddress":"0xa88ABD8A87C6e7a20FbB15d0a8dD643471809aA8","logs":[{"address":"0xa88ABD8A87C6e7a20FbB15d0a8dD643471809aA8","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":11,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","result":{"address":"0xa88ABD8A87C6e7a20FbB15d0a8dD643471809aA8","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","networkInteractionId":1,"nonce":581,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","networkInteractionId":1,"nonce":581,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"46400000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x371db50faee0edaa5fdd49fbb33eae86ba63285c7650aa94334048c250471cd3"},"type":"TRANSACTION_SEND"}
-{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","hash":"0x371db50faee0edaa5fdd49fbb33eae86ba63285c7650aa94334048c250471cd3","networkInteractionId":1,"receipt":{"blockHash":"0x0fdbd6903d5cf1c229115592f5360faea2885a6b9774ff73d08adfbe0560cec6","blockNumber":429248227,"contractAddress":"0x462cCE3584E47380Ae71E08f4999d069C337F5B5","logs":[{"address":"0x462cCE3584E47380Ae71E08f4999d069C337F5B5","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":10,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","result":{"address":"0x462cCE3584E47380Ae71E08f4999d069C337F5B5","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0xa88ABD8A87C6e7a20FbB15d0a8dD643471809aA8","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000a88abd8a87c6e7a20fbb15d0a8dd643471809aa800000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","networkInteractionId":1,"nonce":582,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","networkInteractionId":1,"nonce":582,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"45936000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x661da391ecb034cbb76c22242bd7fb24d4434120f745143de7f5fdd852bf0cb2"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","hash":"0x661da391ecb034cbb76c22242bd7fb24d4434120f745143de7f5fdd852bf0cb2","networkInteractionId":1,"receipt":{"blockHash":"0x42e2559d95d817c51de0550ff0c443a50b241cc584fab2bc98be1db38e44e7fc","blockNumber":429248240,"logs":[{"address":"0xE01eE56C613175502c8e677774eaCbBB2738674C","data":"0x","logIndex":0,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000a88abd8a87c6e7a20fbb15d0a8dd643471809aa8"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x462cCE3584E47380Ae71E08f4999d069C337F5B5","0x"],"artifactId":"CurvyVault#CurvyVaultV2","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV2","CurvyVault#CurvyVaultV3Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000462cce3584e47380ae71e08f4999d069c337f5b500000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","networkInteractionId":1,"nonce":583,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","networkInteractionId":1,"nonce":583,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"45536000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x8140f96643cad78b2aaa380cc2f4853af9b2e5354b80f171ed26db77b8cc5dd7"},"type":"TRANSACTION_SEND"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","hash":"0x8140f96643cad78b2aaa380cc2f4853af9b2e5354b80f171ed26db77b8cc5dd7","networkInteractionId":1,"receipt":{"blockHash":"0x71bfc5a4f42c898440e8bf50a7af9edefbefe795c6dc43f14a1f9163917b0793","blockNumber":429251317,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x","logIndex":0,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000462cce3584e47380ae71e08f4999d069c337f5b5"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":584,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":584,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"45804000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x507429a5b113fcf3e105f9668251017499a4690b24a34ccde71e1d3de51866e4"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","hash":"0x507429a5b113fcf3e105f9668251017499a4690b24a34ccde71e1d3de51866e4","networkInteractionId":1,"receipt":{"blockHash":"0xc5a3d201f98871a0ddab99f53bc23e81010fc688410fc1e94111a2d41c054c5e","blockNumber":429251482,"logs":[{"address":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","data":"0x","logIndex":1,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":2,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000000e25ecebf24a7bde1655ded9630a3e75a75df6bd","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xE01eE56C613175502c8e677774eaCbBB2738674C"],"artifactId":"CurvyVault#CurvyVaultV3","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV3","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":585,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":585,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"45664000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x5e91cf785dc6e6ec1d5100e948bd3c12d01bcdba5137623202e67c9f4a7e7728"},"type":"TRANSACTION_SEND"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0","nameOrIndex":"newContract","result":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x507429a5b113fcf3e105f9668251017499a4690b24a34ccde71e1d3de51866e4","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","hash":"0x5e91cf785dc6e6ec1d5100e948bd3c12d01bcdba5137623202e67c9f4a7e7728","networkInteractionId":1,"receipt":{"blockHash":"0xc708ad424c866e68b42cc9f72143f3dbec3f508e566da5543ed34967d7e9ba5c","blockNumber":429251493,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c","logIndex":2,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","withdrawVerifier":"0x0000000000000000000000000000000000000000"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","CurvyVault#CurvyVaultV3","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","networkInteraction":{"data":"0xcf101a49000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f9390000000000000000000000000e25ecebf24a7bde1655ded9630a3e75a75df6bd000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","networkInteractionId":1,"nonce":586,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","networkInteractionId":1,"nonce":586,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"45924000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x46c0966c0ed5b549011d6aab8618040635e86ab5d1a75f02741ced4253dccbb5"},"type":"TRANSACTION_SEND"}
-{"args":["0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","0xE01eE56C613175502c8e677774eaCbBB2738674C","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","dependencies":["PortalFactory#PortalFactory","CurvyVault#CurvyVaultV3","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f939000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c0000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","hash":"0x46c0966c0ed5b549011d6aab8618040635e86ab5d1a75f02741ced4253dccbb5","networkInteractionId":1,"receipt":{"blockHash":"0xfe8df6608767d72106cddbb3a08f6e05f211abf96816de3a807da7aea34f5d3c","blockNumber":429251505,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":587,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":587,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"45716000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x33a318fbceab132238589a532512c4bf26fdd2617a6424373ef74ac2291aeb61"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x33a318fbceab132238589a532512c4bf26fdd2617a6424373ef74ac2291aeb61","networkInteractionId":1,"receipt":{"blockHash":"0xda275e3ac384992fb1ec1cded0ea95d31abfc8693ab8bbebce06ad84224fdd41","blockNumber":429251610,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"TokenBridgeModule#TokenBridge","constructorArgs":["0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"contractName":"TokenBridge","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"TokenBridgeModule#TokenBridge","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"TokenBridgeModule#TokenBridge","networkInteraction":{"data":"0x60a060405234801561000f575f5ffd5b5060405161068f38038061068f83398101604081905261002e9161003f565b6001600160a01b031660805261006c565b5f6020828403121561004f575f5ffd5b81516001600160a01b0381168114610065575f5ffd5b9392505050565b6080516105f161009e5f395f8181603d015281816092015281816101d1015281816101f901526102d301526105f15ff3fe608060405234801561000f575f5ffd5b5060043610610034575f3560e01c80632b8c45ca14610038578063bfe24a741461007b575b5f5ffd5b61005f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b61008e61008936600461050a565b610090565b005b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166101165760405162461bcd60e51b815260206004820152602260248201527f546f6b656e4272696467653a20496e76616c6964204c492e4649206164647265604482015261737360f01b60648201526084015b60405180910390fd5b6001600160a01b0383161580159061014b57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156102c9576040516370a0823160e01b815230600482015283905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610196573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101ba9190610595565b905080156102c2576101f66001600160a01b0383167f0000000000000000000000000000000000000000000000000000000000000000836103a2565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031685856040516102319291906105ac565b5f604051808303815f865af19150503d805f811461026a576040519150601f19603f3d011682016040523d82523d5f602084013e61026f565b606091505b50509050806102c05760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b505b5050505050565b47801561039c575f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682858560405161030c9291906105ac565b5f6040518083038185875af1925050503d805f8114610346576040519150601f19603f3d011682016040523d82523d5f602084013e61034b565b606091505b50509050806102c25760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526103f38482610455565b61039c57604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261044b90859061049e565b61039c848261049e565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610494575081156104865780600114610494565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af1806104bd576040513d5f823e3d81fd5b50505f513d915081156104d45780600114156104e1565b6001600160a01b0384163b155b1561039c57604051635274afe760e01b81526001600160a01b038516600482015260240161010d565b5f5f5f6040848603121561051c575f5ffd5b83356001600160a01b0381168114610532575f5ffd5b9250602084013567ffffffffffffffff81111561054d575f5ffd5b8401601f8101861361055d575f5ffd5b803567ffffffffffffffff811115610573575f5ffd5b866020828401011115610584575f5ffd5b939660209190910195509293505050565b5f602082840312156105a5575f5ffd5b5051919050565b818382375f910190815291905056fea264697066735822122024b79e0e8ad787a3d9372fa489b74bacaa38a30e0b87794cfbd941ed4010f11664736f6c634300081c00330000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"TokenBridgeModule#TokenBridge","networkInteractionId":1,"nonce":588,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"TokenBridgeModule#TokenBridge","networkInteractionId":1,"nonce":588,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"45780000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x759bf0fdf833ba3ebbb343e24ff6935b0cbd51eeffa7e1c9363ececa70907045"},"type":"TRANSACTION_SEND"}
-{"futureId":"TokenBridgeModule#TokenBridge","hash":"0x759bf0fdf833ba3ebbb343e24ff6935b0cbd51eeffa7e1c9363ececa70907045","networkInteractionId":1,"receipt":{"blockHash":"0x292674f2a46482612877f01b6d5f5924d6fb1997cd32ea89c6e3a46f0fa2fcbd","blockNumber":429302195,"contractAddress":"0xC0aB03047280098739a431cD3dceC0f13599F637","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"TokenBridgeModule#TokenBridge","result":{"address":"0xC0aB03047280098739a431cD3dceC0f13599F637","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x82Af49447D8A07E3Bd95bd0d56F35241523FBaB2"],"artifactId":"CurvyVault#CurvyVaultV3","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV3","CurvyVault#RegisterVaultToken_17"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_18","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_18","networkInteraction":{"data":"0x09824a8000000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab2","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_18","networkInteractionId":1,"nonce":592,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_18","networkInteractionId":1,"nonce":592,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40164000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x1b7272459db065e3b40d685a28c177edb71be3cd3f15d01b7a7711afbe2b93c1"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_18","hash":"0x1b7272459db065e3b40d685a28c177edb71be3cd3f15d01b7a7711afbe2b93c1","networkInteractionId":1,"receipt":{"blockHash":"0x3684cfa90f4cc3361678b0264bdaef10e47456fd94927b809d664e1ce38a3b15","blockNumber":429592907,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x00000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab20000000000000000000000000000000000000000000000000000000000000015","logIndex":2,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_18","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","contractName":"CurvyVaultV4","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV4Implementation","constructorArgs":[],"contractName":"CurvyVaultV4","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV4Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5c6100f95f395f81816117ef01528181611818015261195c0152612d5c5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","networkInteractionId":1,"nonce":659,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","networkInteractionId":1,"nonce":659,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40032000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x53e843519fb34a3e01401c58e7557adeefcdce72725d612bb29d5500b32e80f5"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","hash":"0x53e843519fb34a3e01401c58e7557adeefcdce72725d612bb29d5500b32e80f5","networkInteractionId":1,"receipt":{"blockHash":"0x0b0701eaae55c1acb1dee8100c2512e632e66ec09eb264b2013b1a5284bd239c","blockNumber":434523230,"contractAddress":"0x17D28314B184e924574132E4454A345378bE5336","logs":[{"address":"0x17D28314B184e924574132E4454A345378bE5336","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":0,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","result":{"address":"0x17D28314B184e924574132E4454A345378bE5336","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x17D28314B184e924574132E4454A345378bE5336","0x"],"artifactId":"CurvyVault#CurvyVaultV3","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV3","CurvyVault#CurvyVaultV4Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef28600000000000000000000000017d28314b184e924574132e4454a345378be533600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","networkInteractionId":1,"nonce":660,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","networkInteractionId":1,"nonce":660,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x0a0ddd8f7562f7f5b41fe64001d0e4937b8601d2df26e21017548550a9a13c9e"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","hash":"0x0a0ddd8f7562f7f5b41fe64001d0e4937b8601d2df26e21017548550a9a13c9e","networkInteractionId":1,"receipt":{"blockHash":"0xe2fee8d85ffde27b8585cb100f81597e1758de596abd5729baffa552c26188f6","blockNumber":434523239,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x","logIndex":0,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000017d28314b184e924574132e4454a345378be5336"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xE01eE56C613175502c8e677774eaCbBB2738674C"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV4","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":661,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":661,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x612c38f191098aa4d7ed4368f1d3178e587b51d8fde8177083e0339e207d429e"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","hash":"0x612c38f191098aa4d7ed4368f1d3178e587b51d8fde8177083e0339e207d429e","networkInteractionId":1,"receipt":{"blockHash":"0xc56c9118c44a10b3198075e9cf79539aa2ce9347b676b703ea455dfbe70e2604","blockNumber":434523248,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c","logIndex":0,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xa88ABD8A87C6e7a20FbB15d0a8dD643471809aA8","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","networkInteraction":{"data":"0x4f1ef286000000000000000000000000a88abd8a87c6e7a20fbb15d0a8dd643471809aa800000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","networkInteractionId":1,"nonce":691,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","networkInteractionId":1,"nonce":691,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x1823ae7a6367a6efed4dc1c1b9b170438d2edff7a14406a3a7cf9408b3bf4401"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","contractName":"CurvyAggregatorAlphaV5","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","contractName":"CurvyVaultV5","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV5","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV5Implementation","constructorArgs":[],"contractName":"CurvyVaultV5","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV5Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516118df6100f95f395f81816110600152818161108901526111cd01526118df5ff3fe608060405260043610610128575f3560e01c80638bc7e8c4116100a8578063e63697c81161006d578063e63697c814610353578063ee3d686614610372578063efeecb5114610391578063f1537686146103a5578063f2fde38b146103c4578063f8379068146103e3575f5ffd5b80638bc7e8c41461029e5780638da5cb5b146102bd578063acb2ad6f146102d1578063ad3cb1cc146102f7578063c4d66de814610334575f5ffd5b806352d1902d116100ee57806352d1902d146101e957806367a52793146101fd57806367ccdf3814610234578063715018a61461026b57806377e5614d1461027f575f5ffd5b8062fdd58e1461015357806309824a801461018557806320e8c565146101a4578063432c0553146101b75780634f1ef286146101d6575f5ffd5b3661014f5761014d73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f610402565b005b5f5ffd5b34801561015e575f5ffd5b5061017261016d36600461157d565b610669565b6040519081526020015b60405180910390f35b348015610190575f5ffd5b5061014d61019f3660046115a5565b610691565b61014d6101b23660046115be565b610402565b3480156101c2575f5ffd5b5061014d6101d13660046115fd565b61075e565b61014d6101e436600461162a565b61084e565b3480156101f4575f5ffd5b5061017261086d565b348015610208575f5ffd5b5060055461021c906001600160601b031681565b6040516001600160601b03909116815260200161017c565b34801561023f575f5ffd5b5061025361024e3660046116ee565b610888565b6040516001600160a01b03909116815260200161017c565b348015610276575f5ffd5b5061014d6108c2565b34801561028a575f5ffd5b5061014d6102993660046115a5565b6108d5565b3480156102a9575f5ffd5b5060065461021c906001600160601b031681565b3480156102c8575f5ffd5b50610253610933565b3480156102dc575f5ffd5b5060055461021c90600160601b90046001600160601b031681565b348015610302575f5ffd5b50610327604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161017c9190611705565b34801561033f575f5ffd5b5061014d61034e3660046115a5565b610961565b34801561035e575f5ffd5b5061014d61036d36600461173a565b610af3565b34801561037d575f5ffd5b5061014d61038c3660046115a5565b610d5f565b34801561039c575f5ffd5b50600254610172565b3480156103b0575f5ffd5b506101726103bf3660046115a5565b610e0f565b3480156103cf575f5ffd5b5061014d6103de3660046115a5565b610e48565b3480156103ee575f5ffd5b5061014d6103fd36600461173a565b610e8a565b600654600160601b90046001600160a01b0316331461043457604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b03831661045b57604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146104f357341561049f57604051633c9fd93960e21b815260040160405180910390fd5b6104b46001600160a01b038616333086610fbc565b506001600160a01b0384165f90815260036020526040812054908190036104ee5760405163259ba1ad60e01b815260040160405180910390fd5b610517565b3483146105135760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610547908490611781565b90915550506005546001600160601b03161561060c576005545f9061271090610579906001600160601b031686611794565b61058391906117ab565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906105b89084906117ca565b909155508190505f806105c9610933565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546106059190611781565b9091555050505b836001600160a01b0316856001600160a01b03167fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7858560405161065a929190918252602082015260400190565b60405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b610699611023565b6001600160a01b0381165f90815260036020526040902054156106cf5760405163edec813b60e01b815260040160405180910390fd5b60028054905f6106de836117dd565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610766611023565b610773602082018261180b565b6001600160601b0316156107b35761078e602082018261180b565b600580546001600160601b0319166001600160601b039290921691909117905561081f565b6107c3604082016020830161180b565b6001600160601b031615610806576107e1604082016020830161180b565b600680546001600160601b0319166001600160601b039290921691909117905561081f565b60405163c4ec2f4760e01b815260040160405180910390fd5b7f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91816040516107539190611824565b610856611055565b61085f826110f9565b6108698282611101565b5050565b5f6108766111c2565b505f51602061188a5f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806108bd5760405163259ba1ad60e01b815260040160405180910390fd5b919050565b6108ca611023565b6108d35f61120b565b565b6108dd611023565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea3190602001610753565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f61096a61127b565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156109915750825b90505f8267ffffffffffffffff1660011480156109ad5750303b155b9050811580156109bb575080155b156109d95760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610a0357845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f81905260046020527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600255610a83866112a3565b600580546001600160601b0319908116600a179091556006805490911660141790558315610aeb57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610b2e5750610b18610933565b6001600160a01b0316336001600160a01b031614155b15610b4c57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610b7357604051634e46966960e11b815260040160405180910390fd5b6006546001600160601b03165f03610b9e5760405163c4ec2f4760e01b815260040160405180910390fd5b6006545f9061271090610bba906001600160601b031684611794565b610bc491906117ab565b335f90815260208181526040808320888452909152812080549293508492909190610bf09084906117ca565b909155508190505f80610c01610933565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8681526020019081526020015f205f828254610c3d9190611781565b90915550505f848152600460205260409020546001600160a01b031680610c775760405163259ba1ad60e01b815260040160405180910390fd5b60018514610ca357610c9e84610c8d84866117ca565b6001600160a01b03841691906112b4565b610d1a565b5f6001600160a01b038516610cb884866117ca565b6040515f81818185875af1925050503d805f8114610cf1576040519150601f19603f3d011682016040523d82523d5f602084013e610cf6565b606091505b5050905080610d185760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316816001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb8560405161065a91815260200190565b610d67611023565b6001600160a01b0381165f9081526003602052604081205490819003610da05760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527f59423ae65f1bcb9f1053fba8f7db2902838ef7d4001c3622192b251a90b4ffa9910160405180910390a15050565b6001600160a01b0381165f90815260036020526040812054908190036108bd5760405163259ba1ad60e01b815260040160405180910390fd5b610e50611023565b6001600160a01b038116610e7e57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610e878161120b565b50565b610e92611023565b6001600160a01b038216610eb957604051635209852960e01b815260040160405180910390fd5b6001600160a01b0382165f9081526020818152604080832084845290915281208054859290610ee99084906117ca565b90915550505f818152600460205260409020546001600160a01b031680610f235760405163259ba1ad60e01b815260040160405180910390fd5b60018214610f4457610f3f6001600160a01b03821684866112b4565b610fb6565b5f836001600160a01b0316856040515f6040518083038185875af1925050503d805f8114610f8d576040519150601f19603f3d011682016040523d82523d5f602084013e610f92565b606091505b5050905080610fb45760405163b12d13eb60e01b815260040160405180910390fd5b505b50505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610fb69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506112e5565b3361102c610933565b6001600160a01b0316146108d35760405163118cdaa760e01b8152336004820152602401610e75565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110db57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110cf5f51602061188a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156108d35760405163703e46dd60e11b815260040160405180910390fd5b610e87611023565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561115b575060408051601f3d908101601f191682019092526111589181019061185c565b60015b61118357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610e75565b5f51602061188a5f395f51905f5281146111b357604051632a87526960e21b815260048101829052602401610e75565b6111bd8383611351565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108d35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061068b565b6112ab6113a6565b610e87816113cb565b6040516001600160a01b038381166024830152604482018390526111bd91859182169063a9059cbb90606401610ff1565b5f5f60205f8451602086015f885af180611304576040513d5f823e3d81fd5b50505f513d9150811561131b578060011415611328565b6001600160a01b0384163b155b15610fb657604051635274afe760e01b81526001600160a01b0385166004820152602401610e75565b61135a826113d3565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561139e576111bd8282611436565b6108696114a8565b6113ae6114c7565b6108d357604051631afcd79f60e31b815260040160405180910390fd5b610e506113a6565b806001600160a01b03163b5f0361140857604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610e75565b5f51602061188a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114529190611873565b5f60405180830381855af49150503d805f811461148a576040519150601f19603f3d011682016040523d82523d5f602084013e61148f565b606091505b509150915061149f8583836114e0565b95945050505050565b34156108d35760405163b398979f60e01b815260040160405180910390fd5b5f6114d061127b565b54600160401b900460ff16919050565b6060826114f5576114f08261153f565b611538565b815115801561150c57506001600160a01b0384163b155b1561153557604051639996b31560e01b81526001600160a01b0385166004820152602401610e75565b50805b9392505050565b80511561154e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146108bd575f5ffd5b5f5f6040838503121561158e575f5ffd5b61159783611567565b946020939093013593505050565b5f602082840312156115b5575f5ffd5b61153882611567565b5f5f5f5f608085870312156115d1575f5ffd5b6115da85611567565b93506115e860208601611567565b93969395505050506040820135916060013590565b5f604082840312801561160e575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561163b575f5ffd5b61164483611567565b9150602083013567ffffffffffffffff81111561165f575f5ffd5b8301601f8101851361166f575f5ffd5b803567ffffffffffffffff81111561168957611689611616565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156116b8576116b8611616565b6040528181528282016020018710156116cf575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f602082840312156116fe575f5ffd5b5035919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f5f6060848603121561174c575f5ffd5b8335925061175c60208501611567565b929592945050506040919091013590565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561068b5761068b61176d565b808202811582820484141761068b5761068b61176d565b5f826117c557634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561068b5761068b61176d565b5f600182016117ee576117ee61176d565b5060010190565b80356001600160601b03811681146108bd575f5ffd5b5f6020828403121561181b575f5ffd5b611538826117f5565b604081016001600160601b03611839846117f5565b1682526001600160601b03611850602085016117f5565b16602083015292915050565b5f6020828403121561186c575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220de27d993d71d92b25cdac5424858cdd465922a06a0d5e2bbc2068962a51180ec64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","hash":"0x1823ae7a6367a6efed4dc1c1b9b170438d2edff7a14406a3a7cf9408b3bf4401","networkInteractionId":1,"receipt":{"blockHash":"0x25c4aea164e9a19e3f84ec2691fc603188afac8742b24cde268255ae40d25c1e","blockNumber":436625761,"logs":[{"address":"0xE01eE56C613175502c8e677774eaCbBB2738674C","data":"0x","logIndex":19,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000a88abd8a87c6e7a20fbb15d0a8dd643471809aa8"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":692,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":692,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40048000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x247db85a88fe1099290d224f899b8aab990f638eca247eae87101745aa78ad83"},"type":"TRANSACTION_SEND"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001ee77f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","hash":"0x247db85a88fe1099290d224f899b8aab990f638eca247eae87101745aa78ad83","networkInteractionId":1,"receipt":{"blockHash":"0xb0843e6ef7da3acbb9068af372e5c3af6fba46d78e4cc991bc699d05a22388fc","blockNumber":436625970,"contractAddress":"0xAf0A98Be297226425bb83D146D2bc51a90869983","logs":[{"address":"0xAf0A98Be297226425bb83D146D2bc51a90869983","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":1,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","result":{"address":"0xAf0A98Be297226425bb83D146D2bc51a90869983","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV5","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xfAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B10"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d756100f95f395f81816110ce015281816110f7015261123b0152611d755ff3fe60806040526004361061017b575f3560e01c806379da03f8116100cd578063abed779011610087578063c4d66de811610062578063c4d66de814610458578063cf101a4914610477578063f157639414610496578063f2fde38b146104aa575f5ffd5b8063abed7790146103dd578063ad3cb1cc146103fc578063b974158a14610439575f5ffd5b806379da03f81461031b5780637cb3e4dd1461033a578063864eb164146103595780638ae11770146103785780638da5cb5b1461038d57806395b7f22a146103c9575f5ffd5b806347107fdb116101385780636a085b50116101135780636a085b50146102a5578063715018a6146102c457806375849383146102d857806376775ce1146102ed575f5ffd5b806347107fdb1461026b5780634f1ef2861461027e57806352d1902d14610291575f5ffd5b80631a82739b1461017f5780631dc43637146101b35780632654a8e6146101d4578063332ee0d51461020b578063354d594b1461022a5780633fb070271461024c575b5f5ffd5b34801561018a575f5ffd5b5061019e61019936600461170a565b6104c9565b60405190151581526020015b60405180910390f35b3480156101be575f5ffd5b506101d26101cd3660046117ac565b61067f565b005b3480156101df575f5ffd5b50600a546101f3906001600160a01b031681565b6040516001600160a01b0390911681526020016101aa565b348015610216575f5ffd5b5061019e6102253660046117cc565b610692565b348015610235575f5ffd5b5061023e5f5481565b6040519081526020016101aa565b348015610257575f5ffd5b506006546101f3906001600160a01b031681565b6101d2610279366004611856565b610899565b6101d261028c3660046118cb565b610afe565b34801561029c575f5ffd5b5061023e610b1d565b3480156102b0575f5ffd5b5061019e6102bf366004611970565b610b38565b3480156102cf575f5ffd5b506101d2610cc2565b3480156102e3575f5ffd5b5061023e60015481565b3480156102f8575f5ffd5b5061019e6103073660046119e1565b5f9081526003602052604090205460ff1690565b348015610326575f5ffd5b50600c546101f3906001600160a01b031681565b348015610345575f5ffd5b50600b546101f3906001600160a01b031681565b348015610364575f5ffd5b506009546101f3906001600160a01b031681565b348015610383575f5ffd5b5061023e60025481565b348015610398575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101f3565b3480156103d4575f5ffd5b5060055461023e565b3480156103e8575f5ffd5b506008546101f3906001600160a01b031681565b348015610407575f5ffd5b5061042c604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101aa91906119f8565b348015610444575f5ffd5b506007546101f3906001600160a01b031681565b348015610463575f5ffd5b506101d2610472366004611a2d565b610cd5565b348015610482575f5ffd5b5061019e610491366004611a46565b610dce565b3480156104a1575f5ffd5b5060045461023e565b3480156104b5575f5ffd5b506101d26104c4366004611a2d565b610f2a565b5f5f8260015460026104db9190611aeb565b6104e6906001611b02565b600e81106104f6576104f6611b15565b602002015190505f83600154600261050e9190611aeb565b610519906002611b02565b600e811061052957610529611b15565b602002015190505f8460015460026105419190611aeb565b61054c906003611b02565b600e811061055c5761055c611b15565b602002015190505f8560015460026105749190611aeb565b61057f906004611b02565b600e811061058f5761058f611b15565b6020020151905081600454146105b85760405163215fc8af60e11b815260040160405180910390fd5b83600554146105da576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610610908c908c908c908c90600401611b94565b602060405180830381865afa15801561062b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061064f9190611bf0565b61066c576040516309bde33960e01b815260040160405180910390fd5b6004555060055550600195945050505050565b610687610f6c565b600491909155600555565b60055460408201515f91146106ba576040516322e685b360e11b815260040160405180910390fd5b6004546020830151146106e05760405163215fc8af60e11b815260040160405180910390fd5b600c5460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610716908890889088908890600401611c0f565b602060405180830381865afa158015610731573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107559190611bf0565b610772576040516309bde33960e01b815260040160405180910390fd5b815160055560095f5b60025481101561088c575f84610792836003611b02565b600981106107a2576107a2611b15565b602002015190505f858360025460036107bb9190611b02565b6107c59190611b02565b600981106107d5576107d5611b15565b60200201519050811561087757600b546001600160a01b031663e63697c8876107ff600188611c5f565b6009811061080f5761080f611b15565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b158015610860575f5ffd5b505af1158015610872573d5f5f3e3d5ffd5b505050505b506108859050600182611b02565b905061077b565b5060019695505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa1580156108df573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109039190611bf0565b6109205760405163082cec1d60e01b815260040160405180910390fd5b6001600160a01b0381161580159061095557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610997576040820151610977906001600160a01b0383169033903090610fc7565b600b546040830151610997916001600160a01b0384811692911690611034565b600b5460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b1580156109f5575f5ffd5b505af1158015610a07573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073fAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B1093506320cf0a379250610a659190600401611c72565b602060405180830381865af4158015610a80573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610aa49190611ca2565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610af19083815260200190565b60405180910390a1505050565b610b066110c3565b610b0f82611167565b610b19828261116f565b5050565b5f610b26611230565b505f516020611d205f395f51905f5290565b5f805b5f54811015610bbb575f838260048110610b5757610b57611b15565b602002015190508015610ba8575f8181526003602052604090205460ff16610b925760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b50610bb4600182611b02565b9050610b3b565b50600482610bca600283611c5f565b60048110610bda57610bda611b15565b602002015160045414610c0057604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610c36908990899089908990600401611cb9565b602060405180830381865afa158015610c51573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c759190611bf0565b610c92576040516309bde33960e01b815260040160405180910390fd5b82610c9e600183611c5f565b60048110610cae57610cae611b15565b602002015160045550600195945050505050565b610cca610f6c565b610cd35f611279565b565b5f610cde6112e9565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d055750825b90505f8267ffffffffffffffff166001148015610d215750303b155b905081158015610d2f575080155b15610d4d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d7757845460ff60401b1916600160401b1785555b610d8086611313565b8315610dc657845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f610dd7610f6c565b81516001600160a01b031615610e09578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e41576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e79576040820151600c80546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610eb1576060820151600b80546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610ee9576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610efb5760a08201515f555b60e082015115610f0e5760e08201516001555b60c082015115610f215760c08201516002555b5060015b919050565b610f32610f6c565b6001600160a01b038116610f6057604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f6981611279565b50565b33610f9e7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610cd35760405163118cdaa760e01b8152336004820152602401610f57565b6040516001600160a01b03848116602483015283811660448301526064820183905261102e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611324565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526110858482611390565b61102e576040516001600160a01b0384811660248301525f60448301526110b991869182169063095ea7b390606401610ffc565b61102e8482611324565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061114957507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661113d5f516020611d205f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610cd35760405163703e46dd60e11b815260040160405180910390fd5b610f69610f6c565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156111c9575060408051601f3d908101601f191682019092526111c691810190611ca2565b60015b6111f157604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f57565b5f516020611d205f395f51905f52811461122157604051632a87526960e21b815260048101829052602401610f57565b61122b83836113d9565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610cd35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b61131b61142e565b610f6981611453565b5f5f60205f8451602086015f885af180611343576040513d5f823e3d81fd5b50505f513d9150811561135a578060011415611367565b6001600160a01b0384163b155b1561102e57604051635274afe760e01b81526001600160a01b0385166004820152602401610f57565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113cf575081156113c157806001146113cf565b5f866001600160a01b03163b115b9695505050505050565b6113e28261145b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156114265761122b82826114be565b610b19611530565b61143661154f565b610cd357604051631afcd79f60e31b815260040160405180910390fd5b610f3261142e565b806001600160a01b03163b5f0361149057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f57565b5f516020611d205f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114da9190611d09565b5f60405180830381855af49150503d805f8114611512576040519150601f19603f3d011682016040523d82523d5f602084013e611517565b606091505b5091509150611527858383611568565b95945050505050565b3415610cd35760405163b398979f60e01b815260040160405180910390fd5b5f6115586112e9565b54600160401b900460ff16919050565b60608261157d57611578826115c7565b6115c0565b815115801561159457506001600160a01b0384163b155b156115bd57604051639996b31560e01b81526001600160a01b0385166004820152602401610f57565b50805b9392505050565b8051156115d657805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611627576116276115ef565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611656576116566115ef565b604052919050565b5f82601f83011261166d575f5ffd5b5f611678604061162d565b905080604084018581111561168b575f5ffd5b845b818110156116a557803583526020928301920161168d565b509195945050505050565b5f82601f8301126116bf575f5ffd5b60406116ca8161162d565b8060808501868111156116db575f5ffd5b855b818110156116fe576116ef888261165e565b845260209093019284016116dd565b50909695505050505050565b5f5f5f5f6102c0858703121561171e575f5ffd5b611728868661165e565b935061173786604087016116b0565b92506117468660c0870161165e565b91505f8661011f870112611758575f5ffd5b505f806101c06117678161162d565b9150508091506102c087018881111561177e575f5ffd5b61010088015b8181101561179c578035845260209384019301611784565b5050809250505092959194509250565b5f5f604083850312156117bd575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117e0575f5ffd5b6117ea868661165e565b93506117f986604087016116b0565b92506118088660c0870161165e565b91505f8661011f87011261181a575f5ffd5b505f806101206118298161162d565b91505080915061022087018881111561177e575f5ffd5b80356001600160a01b0381168114610f25575f5ffd5b5f5f8284036080811215611868575f5ffd5b6060811215611875575f5ffd5b506040516060810167ffffffffffffffff81118282101715611899576118996115ef565b60409081528435825260208086013590830152848101359082015291506118c260608401611840565b90509250929050565b5f5f604083850312156118dc575f5ffd5b6118e583611840565b9150602083013567ffffffffffffffff811115611900575f5ffd5b8301601f81018513611910575f5ffd5b803567ffffffffffffffff81111561192a5761192a6115ef565b61193d601f8201601f191660200161162d565b818152866020838501011115611951575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611984575f5ffd5b61198e868661165e565b935061199d86604087016116b0565b92506119ac8660c0870161165e565b91505f8661011f8701126119be575f5ffd5b505f806119cb608061162d565b905080915061018087018881111561177e575f5ffd5b5f602082840312156119f1575f5ffd5b5035919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611a3d575f5ffd5b6115c082611840565b5f610100828403128015611a58575f5ffd5b50611a61611603565b611a6a83611840565b8152611a7860208401611840565b6020820152611a8960408401611840565b6040820152611a9a60608401611840565b6060820152611aab60808401611840565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761130d5761130d611ad7565b8082018082111561130d5761130d611ad7565b634e487b7160e01b5f52603260045260245ffd5b805f5b600281101561102e578151845260209384019390910190600101611b2c565b805f5b600281101561102e578151845f5b6002811015611b7b578251825260209283019290910190600101611b5c565b5050506040939093019260209190910190600101611b4e565b6102c08101611ba38287611b29565b611bb06040830186611b4b565b611bbd60c0830185611b29565b6101008201835f5b600e811015611be4578151835260209283019290910190600101611bc5565b50505095945050505050565b5f60208284031215611c00575f5ffd5b815180151581146115c0575f5ffd5b6102208101611c1e8287611b29565b611c2b6040830186611b4b565b611c3860c0830185611b29565b6101008201835f5b6009811015611be4578151835260209283019290910190600101611c40565b8181038181111561130d5761130d611ad7565b6060810181835f5b6003811015611c99578151835260209283019290910190600101611c7a565b50505092915050565b5f60208284031215611cb2575f5ffd5b5051919050565b6101808101611cc88287611b29565b611cd56040830186611b4b565b611ce260c0830185611b29565b6101008201835f5b6004811015611be4578151835260209283019290910190600101611cea565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a1d8ea629aa2a582c51f861f3df21717a0bc669533016e41e46939ab2df01c6864736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteractionId":1,"nonce":693,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteractionId":1,"nonce":693,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x6f09de53d4d6f9eb9aa10743238a81e89d43bcd2c14066b73f8b795507998d4b"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","hash":"0x6f09de53d4d6f9eb9aa10743238a81e89d43bcd2c14066b73f8b795507998d4b","networkInteractionId":1,"receipt":{"blockHash":"0x00d507f121270c4c54c6cd4cdd3cc22c21cc24ac384fc9a1fcbd4f2403ce56a1","blockNumber":436626824,"contractAddress":"0xB1542b6b5A963301C64467FABB36C1F9A84b2dB5","logs":[{"address":"0xB1542b6b5A963301C64467FABB36C1F9A84b2dB5","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":53,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","result":{"address":"0xB1542b6b5A963301C64467FABB36C1F9A84b2dB5","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0xAf0A98Be297226425bb83D146D2bc51a90869983","0x"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV4","CurvyVault#CurvyVaultV5Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000af0a98be297226425bb83d146d2bc51a9086998300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":694,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":694,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x37f32e1b2c6dfdba0527f285ec25d33ac22443dbc24cb4cad3fc8616793a4fc0"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":695,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":695,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x70481d7545296fb9c943396732df761e29e21656f01b4e1510a23b43f0ae49a1"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","hash":"0x37f32e1b2c6dfdba0527f285ec25d33ac22443dbc24cb4cad3fc8616793a4fc0","networkInteractionId":1,"receipt":{"blockHash":"0xabda976c2d8254f66266050e6d99fa9f550dd86dbbb1dab98d39e2e963905019","blockNumber":436627549,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x","logIndex":11,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000af0a98be297226425bb83d146d2bc51a90869983"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","hash":"0x70481d7545296fb9c943396732df761e29e21656f01b4e1510a23b43f0ae49a1","networkInteractionId":1,"receipt":{"blockHash":"0xa6c56e2ad52f61069accdcf0788d97f289592fe356ccb3663afe75dd9d1f6e16","blockNumber":436627562,"logs":[{"address":"0xb10abCB62f50DefF589754db1d9B548eF808B101","data":"0x","logIndex":11,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":12,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000b10abcb62f50deff589754db1d9b548ef808b101","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xB1542b6b5A963301C64467FABB36C1F9A84b2dB5","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000b1542b6b5a963301c64467fabb36c1f9a84b2db500000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteractionId":1,"nonce":696,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteractionId":1,"nonce":696,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x3d1fa57d64649e76f79a3b5116dddf390f0c8e9ff23e145fe7f2cda4b2da307e"},"type":"TRANSACTION_SEND"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V2","nameOrIndex":"newContract","result":"0xb10abCB62f50DefF589754db1d9B548eF808B101","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x70481d7545296fb9c943396732df761e29e21656f01b4e1510a23b43f0ae49a1","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","hash":"0x3d1fa57d64649e76f79a3b5116dddf390f0c8e9ff23e145fe7f2cda4b2da307e","networkInteractionId":1,"receipt":{"blockHash":"0x185055b0c3b895e91f33cbd0ffab152289a9ae9d4a897cbbe606c20b29ab0b1c","blockNumber":436627584,"logs":[{"address":"0xE01eE56C613175502c8e677774eaCbBB2738674C","data":"0x","logIndex":3,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000b1542b6b5a963301c64467fabb36c1f9a84b2db5"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#withdrawVerifierV3","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlphaV3_2","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b5061149a8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b366004611300565b610054565b604051901515815260200160405180910390f35b5f61005d611127565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600980825261014082019093525f9290918201610120803683370190505090505f5b600981101561013357848160098110610109576101096113e0565b6020020151828281518110610120576101206113e0565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e9190611408565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb5783878281518110610217576102176113e0565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc85608001518460016102859190611408565b81518110610295576102956113e0565b60200260200101518a85815181106102af576102af6113e0565b6020026020010151610a94565b610b28565b91506001016101fb565b506102f38183608001515f815181106102e6576102e66113e0565b6020026020010151610b28565b9050610327610304865f0151610bbf565b8660200151845f015185602001518587604001518b604001518960600151610c5b565b610337576001935050505061033e565b5f93505050505b92915050565b61034c611175565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f05d000ba4551c1fa877c7a46107992624c3d99a3e6bdd57c50698771b613cc298185019081527f1ecc95a1dbdbe4f8cef976bf22affb6de7fa33cb89b48d77bead7102ad139892828401528152835180850185527f21db75587cbe02e9192f9b5f2b763c99648c02dd6b6a4c96c20df72fb841418a81527f2af9f7e11a5a29cdcb4b532c39193095513331f2834798b89072b995ad356a898185015281840152908401528151600a8082526101608201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f2660af19967ed5580208a84497fbdd099f460ed85561c98f23edb4a0384dcf7f81527f210fa1941084636ec27feec1eb19e46b9b48bfa53b306d017ae5963efad52a436020820152905180515f90610659576106596113e0565b602002602001018190525060405180604001604052807f2083fd8b0b70f84ff529e805d135f4a43429faa7993c7722807ae7a190df845581526020017f28811e77761972df5b4960cb74319c488f4edbeddc48333c6d4d1a6bf413ca3481525081608001516001815181106106d0576106d06113e0565b602002602001018190525060405180604001604052807f13dfc5473a9989ab659e0b9a6334f6941bc90555d51e4bca722dae72810e989881526020017f013b58637f2dae5dcc9fc8fbebfc8b1381840813185e0fb647f05168c697540c8152508160800151600281518110610747576107476113e0565b602002602001018190525060405180604001604052807f1c44dcfc07f5f9ae2c637ff60d5a89d2c1713bca6aff265abcb28620a852c34281526020017f19330ccf92e4c27c2b591f021a828cca5edab6049a9d1062686fd796b6d3f52d81525081608001516003815181106107be576107be6113e0565b602002602001018190525060405180604001604052807f23d7191b87dd317ce4294b631c1ce03e454f61c038c5d9c601c8abcc5003816b81526020017f21b455e02d8d7aa7549f9e769915f44c954cbc965220a0c8f61c0c1a367509818152508160800151600481518110610835576108356113e0565b602002602001018190525060405180604001604052807f2226e11fa0ed282b86920337d75253929cdead5afa79adbc98bbf0786a21503081526020017eab0bd68fd9de0ee282bc419521c647a219f5075248f5ebfb2016464f50ba1a81525081608001516005815181106108ab576108ab6113e0565b602002602001018190525060405180604001604052807f21a6f2274e37865052daf09f57ee7d7dafbc1d60cc54e26ab82120b995ed12f481526020017f0b5c832b69ae80552e1d9402009efab37ce39eb97825b4b343f5ea9581b31c1b8152508160800151600681518110610922576109226113e0565b602002602001018190525060405180604001604052807f091ecf7419c3a24ba36564b86a4859fd8f00157103bb0759ea5ba4928bfe460b81526020017f105c38b8731b3cbeed64c9c7e1aa313538e21302828e2f95fb3b05d777a0f7d88152508160800151600781518110610999576109996113e0565b602002602001018190525060405180604001604052807f100d9113bd2a6d16e7682a168a313a92f111d97fa62ab66b9b60339ab7edd8cf81526020017f0db625617d7f1e384b7fd3bfa6625ce178ced385ea8bef33da11938d7ebc389d8152508160800151600881518110610a1057610a106113e0565b602002602001018190525060405180604001604052807ec8fdc7d85d6600498e56ca6e7082bef46e29858708e318188919835ac6878881526020017f0c567e014f5306e60d7e0d42f3e9216db8a9837c77f300ff203b05060360a30a8152508160800151600981518110610a8657610a866113e0565b602002602001018190525090565b604080518082019091525f8082526020820152610aaf6111c5565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610add57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610b436111e3565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610b7c57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c0557506020830151155b15610c24575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610c48919061141b565b610c52908461143a565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610c7557505060408051600480825260a082019092529192505f9190602082015b610cbd611201565b815260200190600190039081610cb55790505090508a825f81518110610ce557610ce56113e0565b60200260200101819052508882600181518110610d0457610d046113e0565b60200260200101819052508682600281518110610d2357610d236113e0565b60200260200101819052508482600381518110610d4257610d426113e0565b602002602001018190525089815f81518110610d6057610d606113e0565b60200260200101819052508781600181518110610d7f57610d7f6113e0565b60200260200101819052508581600281518110610d9e57610d9e6113e0565b60200260200101819052508381600381518110610dbd57610dbd6113e0565b6020026020010181905250610dd28282610de1565b9b9a5050505050505050505050565b5f8151835114610e2c5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610e3a82600661144d565b90505f8167ffffffffffffffff811115610e5657610e5661125d565b604051908082528060200260200182016040528015610e7f578160200160208202803683370190505b5090505f5b838110156110ac57868181518110610e9e57610e9e6113e0565b60200260200101515f015182826006610eb7919061144d565b610ec1905f611408565b81518110610ed157610ed16113e0565b602002602001018181525050868181518110610eef57610eef6113e0565b60200260200101516020015182826006610f09919061144d565b610f14906001611408565b81518110610f2457610f246113e0565b602002602001018181525050858181518110610f4257610f426113e0565b6020908102919091010151515182610f5b83600661144d565b610f66906002611408565b81518110610f7657610f766113e0565b602002602001018181525050858181518110610f9457610f946113e0565b60209081029190910181015151015182610faf83600661144d565b610fba906003611408565b81518110610fca57610fca6113e0565b602002602001018181525050858181518110610fe857610fe86113e0565b6020026020010151602001515f60028110611005576110056113e0565b60200201518261101683600661144d565b611021906004611408565b81518110611031576110316113e0565b60200260200101818152505085818151811061104f5761104f6113e0565b60200260200101516020015160016002811061106d5761106d6113e0565b60200201518261107e83600661144d565b611089906005611408565b81518110611099576110996113e0565b6020908102919091010152600101610e84565b506110b5611221565b5f602082602086026020860160086107d05a03fa905080806110d357fe5b50806111195760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101611150611201565b815260200161117060405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c083019190915281526020810161119e611201565b81526020016111ab611201565b81526020016111b8611201565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061121461123f565b815260200161117061123f565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156112a657634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f8301126112bd575f5ffd5b5f6112c86040611271565b90508060408401858111156112db575f5ffd5b845b818110156112f55780358352602092830192016112dd565b509195945050505050565b5f5f5f5f6102208587031215611314575f5ffd5b61131e86866112ae565b935085605f86011261132e575f5ffd5b604061133981611271565b8060c088018981111561134a575f5ffd5b604089015b81811015611370576113618b826112ae565b8452602090930192840161134f565b5081965061137e8a826112ae565b95505050505061010085015f87601f830112611398575f5ffd5b5f6101206113a581611271565b91508301818a8211156113b6575f5ffd5b5b818510156113cf5784358152602094850194016113b7565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e6113f4565b5f8261143557634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e6113f4565b808202811582820484141761033e5761033e6113f456fea2646970667358221220ee56b55b73586c11a0ad84b93a1c92445f7a65f7be9aeed3d1e4fbaef2220a4364736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteractionId":1,"nonce":697,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteractionId":1,"nonce":697,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40468000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xaccd8eefb11e676736b1b4feadc131fa50b4714712f2632404a131ffb9670a70"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","hash":"0xaccd8eefb11e676736b1b4feadc131fa50b4714712f2632404a131ffb9670a70","networkInteractionId":1,"receipt":{"blockHash":"0x20810ec6a36398edc7a3549c1c2e892e08b1d94eb373a30c9182bea511b5abe7","blockNumber":436627604,"contractAddress":"0x3B81e33Aa5bE0FF8B8ae0C2fd3200450e3a8d477","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","result":{"address":"0x3B81e33Aa5bE0FF8B8ae0C2fd3200450e3a8d477","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#ReadEvent_PortalFactory_V2"],"futureId":"PortalFactory#PortalFactory_ContractAt_V2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":0,"maxDeposits":0,"maxWithdrawals":0,"portalFactory":"0x0000000000000000000000000000000000000000","withdrawVerifier":"0x3B81e33Aa5bE0FF8B8ae0C2fd3200450e3a8d477"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#withdrawVerifierV3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"CurvyAggregatorAlpha#UpdateConfig_withdrawVerifierV3","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_withdrawVerifierV3","networkInteraction":{"data":"0xcf101a49000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003b81e33aa5be0ff8b8ae0c2fd3200450e3a8d47700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_withdrawVerifierV3","networkInteractionId":1,"nonce":698,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_withdrawVerifierV3","networkInteractionId":1,"nonce":698,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40032000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x83d3f9f12418a1b3d43214f2269edecd1aa867a60d669d7d6f036c2109a2de49"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_withdrawVerifierV3","hash":"0x83d3f9f12418a1b3d43214f2269edecd1aa867a60d669d7d6f036c2109a2de49","networkInteractionId":1,"receipt":{"blockHash":"0xfc57880c7aaf36cf87c1391193bd2c4f76f6819b665652f4e97dbc095f6c6c35","blockNumber":436627617,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_withdrawVerifierV3","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0xb10abCB62f50DefF589754db1d9B548eF808B101","withdrawVerifier":"0x0000000000000000000000000000000000000000"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory_ContractAt_V2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteraction":{"data":"0xcf101a49000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f939000000000000000000000000b10abcb62f50deff589754db1d9b548ef808b101000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":699,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":699,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40008000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x580cc4eea5e8a6b7bd759cb0af95813ab5d01f2f1a0b2de384ecda35dbaf87b0"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","hash":"0x580cc4eea5e8a6b7bd759cb0af95813ab5d01f2f1a0b2de384ecda35dbaf87b0","networkInteractionId":1,"receipt":{"blockHash":"0xd2772c64d452e90a00c6031058cc4e9d7478f8058a3b5e87f8739dbd9ee557b9","blockNumber":436627638,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xE01eE56C613175502c8e677774eaCbBB2738674C"],"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV5","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":700,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":700,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40008000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x72fecb461be9077edf142ad84e4077009ba134f2d657962244a80e82622b04cd"},"type":"TRANSACTION_SEND"}
-{"args":["0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","0xE01eE56C613175502c8e677774eaCbBB2738674C","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","dependencies":["PortalFactory#PortalFactory_ContractAt_V2","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f939000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c0000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xb10abCB62f50DefF589754db1d9B548eF808B101","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":701,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":701,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40132000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x09dcc2a8a199fb3b29e66a56c222d2c9ddc35d2dc62ef2b410d481b3a20d9259"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","hash":"0x72fecb461be9077edf142ad84e4077009ba134f2d657962244a80e82622b04cd","networkInteractionId":1,"receipt":{"blockHash":"0xd1a207330be7e97353c1448c9f98bdd2795ca62591fabed28d64a7413e39fe63","blockNumber":436627651,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c","logIndex":0,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","hash":"0x09dcc2a8a199fb3b29e66a56c222d2c9ddc35d2dc62ef2b410d481b3a20d9259","networkInteractionId":1,"receipt":{"blockHash":"0x7a38767ee68a4a34d9dc6739068f18aa673b62b71cb9c410f6c87191e099dbfe","blockNumber":436627663,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"TokenBridgeModule#TokenBridge","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","type":"WIPE_APPLY"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","type":"WIPE_APPLY"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","type":"WIPE_APPLY"}
-{"futureId":"CurvyVault#CurvyVaultV5","type":"WIPE_APPLY"}
-{"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","contractName":"CurvyVaultV5","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV5","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV5Implementation","constructorArgs":[],"contractName":"CurvyVaultV5","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV5Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611bca6100f95f395f818161114e0152818161117701526112bb0152611bca5ff3fe608060405260043610610133575f3560e01c80638bc7e8c4116100a8578063e63697c81161006d578063e63697c814610385578063ee3d6866146103a4578063efeecb51146103c3578063f1537686146103d7578063f2fde38b146103f6578063f837906814610415575f5ffd5b80638bc7e8c4146102d05780638da5cb5b146102ef578063acb2ad6f14610303578063ad3cb1cc14610329578063c4d66de814610366575f5ffd5b806352d1902d116100f957806352d1902d146101f457806367a527931461020857806367ccdf381461023f578063715018a61461027657806377e5614d1461028a57806384b0196e146102a9575f5ffd5b8062fdd58e1461015e57806309824a801461019057806320e8c565146101af578063432c0553146101c25780634f1ef286146101e1575f5ffd5b3661015a5761015873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f610434565b005b5f5ffd5b348015610169575f5ffd5b5061017d61017836600461178f565b61069b565b6040519081526020015b60405180910390f35b34801561019b575f5ffd5b506101586101aa3660046117b7565b6106c3565b6101586101bd3660046117d0565b610434565b3480156101cd575f5ffd5b506101586101dc36600461180f565b610790565b6101586101ef36600461183c565b610880565b3480156101ff575f5ffd5b5061017d61089f565b348015610213575f5ffd5b50600554610227906001600160601b031681565b6040516001600160601b039091168152602001610187565b34801561024a575f5ffd5b5061025e610259366004611900565b6108ba565b6040516001600160a01b039091168152602001610187565b348015610281575f5ffd5b506101586108f4565b348015610295575f5ffd5b506101586102a43660046117b7565b610907565b3480156102b4575f5ffd5b506102bd610965565b6040516101879796959493929190611945565b3480156102db575f5ffd5b50600654610227906001600160601b031681565b3480156102fa575f5ffd5b5061025e610a26565b34801561030e575f5ffd5b5060055461022790600160601b90046001600160601b031681565b348015610334575f5ffd5b50610359604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018791906119db565b348015610371575f5ffd5b506101586103803660046117b7565b610a54565b348015610390575f5ffd5b5061015861039f3660046119ed565b610be6565b3480156103af575f5ffd5b506101586103be3660046117b7565b610e52565b3480156103ce575f5ffd5b5060025461017d565b3480156103e2575f5ffd5b5061017d6103f13660046117b7565b610f02565b348015610401575f5ffd5b506101586104103660046117b7565b610f3b565b348015610420575f5ffd5b5061015861042f3660046119ed565b610f78565b600654600160601b90046001600160a01b0316331461046657604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b03831661048d57604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105255734156104d157604051633c9fd93960e21b815260040160405180910390fd5b6104e66001600160a01b0386163330866110aa565b506001600160a01b0384165f90815260036020526040812054908190036105205760405163259ba1ad60e01b815260040160405180910390fd5b610549565b3483146105455760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610579908490611a34565b90915550506005546001600160601b03161561063e576005545f90612710906105ab906001600160601b031686611a47565b6105b59190611a5e565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906105ea908490611a7d565b909155508190505f806105fb610a26565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546106379190611a34565b9091555050505b836001600160a01b0316856001600160a01b03167fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7858560405161068c929190918252602082015260400190565b60405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6106cb611111565b6001600160a01b0381165f90815260036020526040902054156107015760405163edec813b60e01b815260040160405180910390fd5b60028054905f61071083611a90565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610798611111565b6107a56020820182611abe565b6001600160601b0316156107e5576107c06020820182611abe565b600580546001600160601b0319166001600160601b0392909216919091179055610851565b6107f56040820160208301611abe565b6001600160601b031615610838576108136040820160208301611abe565b600680546001600160601b0319166001600160601b0392909216919091179055610851565b60405163c4ec2f4760e01b815260040160405180910390fd5b7f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91816040516107859190611ad7565b610888611143565b610891826111e7565b61089b82826111ef565b5050565b5f6108a86112b0565b505f516020611b755f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806108ef5760405163259ba1ad60e01b815260040160405180910390fd5b919050565b6108fc611111565b6109055f6112f9565b565b61090f611111565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea3190602001610785565b5f60608082808083817fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10080549091501580156109a357506001810154155b6109ec5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109f4611369565b6109fc61143c565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f610a5d61148d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610a845750825b90505f8267ffffffffffffffff166001148015610aa05750303b155b905081158015610aae575080155b15610acc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610af657845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f81905260046020527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600255610b76866114b5565b600580546001600160601b0319908116600a179091556006805490911660141790558315610bde57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610c215750610c0b610a26565b6001600160a01b0316336001600160a01b031614155b15610c3f57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610c6657604051634e46966960e11b815260040160405180910390fd5b6006546001600160601b03165f03610c915760405163c4ec2f4760e01b815260040160405180910390fd5b6006545f9061271090610cad906001600160601b031684611a47565b610cb79190611a5e565b335f90815260208181526040808320888452909152812080549293508492909190610ce3908490611a7d565b909155508190505f80610cf4610a26565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8681526020019081526020015f205f828254610d309190611a34565b90915550505f848152600460205260409020546001600160a01b031680610d6a5760405163259ba1ad60e01b815260040160405180910390fd5b60018514610d9657610d9184610d808486611a7d565b6001600160a01b03841691906114c6565b610e0d565b5f6001600160a01b038516610dab8486611a7d565b6040515f81818185875af1925050503d805f8114610de4576040519150601f19603f3d011682016040523d82523d5f602084013e610de9565b606091505b5050905080610e0b5760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316816001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb8560405161068c91815260200190565b610e5a611111565b6001600160a01b0381165f9081526003602052604081205490819003610e935760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527f59423ae65f1bcb9f1053fba8f7db2902838ef7d4001c3622192b251a90b4ffa9910160405180910390a15050565b6001600160a01b0381165f90815260036020526040812054908190036108ef5760405163259ba1ad60e01b815260040160405180910390fd5b610f43611111565b6001600160a01b038116610f6c57604051631e4fbdf760e01b81525f60048201526024016109e3565b610f75816112f9565b50565b610f80611111565b6001600160a01b038216610fa757604051635209852960e01b815260040160405180910390fd5b6001600160a01b0382165f9081526020818152604080832084845290915281208054859290610fd7908490611a7d565b90915550505f818152600460205260409020546001600160a01b0316806110115760405163259ba1ad60e01b815260040160405180910390fd5b600182146110325761102d6001600160a01b03821684866114c6565b6110a4565b5f836001600160a01b0316856040515f6040518083038185875af1925050503d805f811461107b576040519150601f19603f3d011682016040523d82523d5f602084013e611080565b606091505b50509050806110a25760405163b12d13eb60e01b815260040160405180910390fd5b505b50505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526110a49186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506114f7565b3361111a610a26565b6001600160a01b0316146109055760405163118cdaa760e01b81523360048201526024016109e3565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806111c957507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166111bd5f516020611b755f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109055760405163703e46dd60e11b815260040160405180910390fd5b610f75611111565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611249575060408051601f3d908101601f1916820190925261124691810190611b0f565b60015b61127157604051634c9c8ce360e01b81526001600160a01b03831660048201526024016109e3565b5f516020611b755f395f51905f5281146112a157604051632a87526960e21b8152600481018290526024016109e3565b6112ab8383611563565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109055760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060917fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100916113ba90611b26565b80601f01602080910402602001604051908101604052809291908181526020018280546113e690611b26565b80156114315780601f1061140857610100808354040283529160200191611431565b820191905f5260205f20905b81548152906001019060200180831161141457829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060917fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100916113ba90611b26565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006106bd565b6114bd6115b8565b610f75816115dd565b6040516001600160a01b038381166024830152604482018390526112ab91859182169063a9059cbb906064016110df565b5f5f60205f8451602086015f885af180611516576040513d5f823e3d81fd5b50505f513d9150811561152d57806001141561153a565b6001600160a01b0384163b155b156110a457604051635274afe760e01b81526001600160a01b03851660048201526024016109e3565b61156c826115e5565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115b0576112ab8282611648565b61089b6116ba565b6115c06116d9565b61090557604051631afcd79f60e31b815260040160405180910390fd5b610f436115b8565b806001600160a01b03163b5f0361161a57604051634c9c8ce360e01b81526001600160a01b03821660048201526024016109e3565b5f516020611b755f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116649190611b5e565b5f60405180830381855af49150503d805f811461169c576040519150601f19603f3d011682016040523d82523d5f602084013e6116a1565b606091505b50915091506116b18583836116f2565b95945050505050565b34156109055760405163b398979f60e01b815260040160405180910390fd5b5f6116e261148d565b54600160401b900460ff16919050565b6060826117075761170282611751565b61174a565b815115801561171e57506001600160a01b0384163b155b1561174757604051639996b31560e01b81526001600160a01b03851660048201526024016109e3565b50805b9392505050565b80511561176057805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146108ef575f5ffd5b5f5f604083850312156117a0575f5ffd5b6117a983611779565b946020939093013593505050565b5f602082840312156117c7575f5ffd5b61174a82611779565b5f5f5f5f608085870312156117e3575f5ffd5b6117ec85611779565b93506117fa60208601611779565b93969395505050506040820135916060013590565b5f6040828403128015611820575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561184d575f5ffd5b61185683611779565b9150602083013567ffffffffffffffff811115611871575f5ffd5b8301601f81018513611881575f5ffd5b803567ffffffffffffffff81111561189b5761189b611828565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156118ca576118ca611828565b6040528181528282016020018710156118e1575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611910575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61196360e0830189611917565b82810360408401526119758189611917565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b818110156119ca5783518352602093840193909201916001016119ac565b50909b9a5050505050505050505050565b602081525f61174a6020830184611917565b5f5f5f606084860312156119ff575f5ffd5b83359250611a0f60208501611779565b929592945050506040919091013590565b634e487b7160e01b5f52601160045260245ffd5b808201808211156106bd576106bd611a20565b80820281158282048414176106bd576106bd611a20565b5f82611a7857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156106bd576106bd611a20565b5f60018201611aa157611aa1611a20565b5060010190565b80356001600160601b03811681146108ef575f5ffd5b5f60208284031215611ace575f5ffd5b61174a82611aa8565b604081016001600160601b03611aec84611aa8565b1682526001600160601b03611b0360208501611aa8565b16602083015292915050565b5f60208284031215611b1f575f5ffd5b5051919050565b600181811c90821680611b3a57607f821691505b602082108103611b5857634e487b7160e01b5f52602260045260245ffd5b50919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a895fc3fa5f5d810495e45a85020d82d10b240caddf558f217762712c9f6187264736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":705,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":705,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40236000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x2721d4cfcbc3f6469a3550b78d21be48260adc1deb93b5e703eedb2d13c91a04"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","hash":"0x2721d4cfcbc3f6469a3550b78d21be48260adc1deb93b5e703eedb2d13c91a04","networkInteractionId":1,"receipt":{"blockHash":"0x1a21163079b312f14b299fa51ede6bf3e4c6a71ed9210e1cc3954ee3dd3b0c41","blockNumber":437537932,"contractAddress":"0xeBe1e53243717A8bf064BeE8fE5A643d8c276845","logs":[{"address":"0xeBe1e53243717A8bf064BeE8fE5A643d8c276845","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":3,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","result":{"address":"0xeBe1e53243717A8bf064BeE8fE5A643d8c276845","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0xeBe1e53243717A8bf064BeE8fE5A643d8c276845","0x"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV4","CurvyVault#CurvyVaultV5Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000ebe1e53243717a8bf064bee8fe5a643d8c27684500000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":706,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":706,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40176000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x60aad2ec70941cceaed032b2c454ce9a28f4a5f7dcf14d26f64e27debc668585"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","hash":"0x60aad2ec70941cceaed032b2c454ce9a28f4a5f7dcf14d26f64e27debc668585","networkInteractionId":1,"receipt":{"blockHash":"0xb521bca2a555dd563805419d35990218e48b2f92cb9faa116f8caa7401a785cf","blockNumber":437537941,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x","logIndex":1,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000ebe1e53243717a8bf064bee8fe5a643d8c276845"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xE01eE56C613175502c8e677774eaCbBB2738674C"],"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV5","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":707,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":707,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40352000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xbea6536feaa6501ee347abece71d67e2f9206a965076584068fbbeca6e75bb38"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","hash":"0xbea6536feaa6501ee347abece71d67e2f9206a965076584068fbbeca6e75bb38","networkInteractionId":1,"receipt":{"blockHash":"0x5faf0994e92ccf365dafcfc9dd9355614470472752b4cb92a0639c30fa2659b9","blockNumber":437537950,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c","logIndex":0,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","type":"WIPE_APPLY"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V3","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f597f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":717,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":717,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40748000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xeabc4fb1c18fa109dc7535e7e690fb4145cb87572c55de7ec0fbdebc904aa989"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","hash":"0xeabc4fb1c18fa109dc7535e7e690fb4145cb87572c55de7ec0fbdebc904aa989","networkInteractionId":1,"receipt":{"blockHash":"0x9d6a20a74f4c8d60d032fb2c896b0b94aef057ee7b8b41659b0b8b61fd6187c8","blockNumber":437598498,"logs":[{"address":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","data":"0x","logIndex":1,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":2,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000c20a3681b8fa35a68479de698e65a6403b8031de","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_V3","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V3","nameOrIndex":"newContract","result":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xeabc4fb1c18fa109dc7535e7e690fb4145cb87572c55de7ec0fbdebc904aa989","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_V3","contractAddress":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_V3","PortalFactory#ReadEvent_PortalFactory_V3"],"futureId":"PortalFactory#PortalFactory_V3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","withdrawVerifier":"0x3B81e33Aa5bE0FF8B8ae0C2fd3200450e3a8d477"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory_V3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteraction":{"data":"0xcf101a49000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003b81e33aa5be0ff8b8ae0c2fd3200450e3a8d477000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f939000000000000000000000000c20a3681b8fa35a68479de698e65a6403b8031de000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":718,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":718,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40936000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x762ec575551c6be524fb3c2af7121ee516af46971179b85d92bb0ad444942c69"},"type":"TRANSACTION_SEND"}
-{"args":["0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","0xE01eE56C613175502c8e677774eaCbBB2738674C","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactory#PortalFactory_V3","contractAddress":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","dependencies":["PortalFactory#PortalFactory_V3","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f939000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c0000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","hash":"0x762ec575551c6be524fb3c2af7121ee516af46971179b85d92bb0ad444942c69","networkInteractionId":1,"receipt":{"blockHash":"0x09d7e62d0bfac83b1ddaf0483a4d70dc969b79e6ae992c0416b8caeaa2bca112","blockNumber":437598508,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteractionId":1,"nonce":719,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteractionId":1,"nonce":719,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40752000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xe7a6e8ebb8811e4de70094a896f09c600bd641d04733fbdf5573aca7ca236cc2"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","hash":"0xe7a6e8ebb8811e4de70094a896f09c600bd641d04733fbdf5573aca7ca236cc2","networkInteractionId":1,"receipt":{"blockHash":"0x6d9183af674ff0c438825e06c499a950adba6f2b4a49796239b27d1b7ff8c97e","blockNumber":437598570,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","type":"WIPE_APPLY"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V4","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f407f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":728,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":728,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40132000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xe91378c1d87f1f4cb2ad2d7a7dc70d438c8e06b31a3b40f4c03036ce603630c4"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","hash":"0xe91378c1d87f1f4cb2ad2d7a7dc70d438c8e06b31a3b40f4c03036ce603630c4","networkInteractionId":1,"receipt":{"blockHash":"0xcc676b950ec2ae1643d2a900443472f95859c83f9b90bf463d5e06b3e9d495c6","blockNumber":437687028,"logs":[{"address":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","data":"0x","logIndex":49,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":50,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000009f3f6bd0067596fd05abca1a6a7d1298d6603730","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V4","nameOrIndex":"newContract","result":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xe91378c1d87f1f4cb2ad2d7a7dc70d438c8e06b31a3b40f4c03036ce603630c4","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#ReadEvent_PortalFactory_V4"],"futureId":"PortalFactory#PortalFactory_V4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","withdrawVerifier":"0x3B81e33Aa5bE0FF8B8ae0C2fd3200450e3a8d477"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory_V4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteraction":{"data":"0xcf101a49000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003b81e33aa5be0ff8b8ae0c2fd3200450e3a8d477000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f9390000000000000000000000009f3f6bd0067596fd05abca1a6a7d1298d6603730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":729,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":729,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40008000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x80c747629b6fc7cc9075201d4a7bb5393fe124973a317ade3496eb3a5ac70e48"},"type":"TRANSACTION_SEND"}
-{"args":["0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","0xE01eE56C613175502c8e677774eaCbBB2738674C","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","dependencies":["PortalFactory#PortalFactory_V4","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f939000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","hash":"0x80c747629b6fc7cc9075201d4a7bb5393fe124973a317ade3496eb3a5ac70e48","networkInteractionId":1,"receipt":{"blockHash":"0x9c228c53b35fa05bdf3d47d6b3ca22d878307ce15c3c00912249dbe021c22dbb","blockNumber":437687037,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":730,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":730,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40064000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x93422e9713cecf9d2ac98d4883b00408cdf6f97066560a2711d0fbbb3a1ba87a"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","hash":"0x93422e9713cecf9d2ac98d4883b00408cdf6f97066560a2711d0fbbb3a1ba87a","networkInteractionId":1,"receipt":{"blockHash":"0x19d4702114ee1ac6656e2a662c7d69400f19c3b56a68f508abfc7b5cbd5f6d5b","blockNumber":437687178,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","type":"WIPE_APPLY"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f607f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":750,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":750,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40180000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xc19b4809d2ceb236a64cb670856a2d3cba8558eb10b21d9f25236700992479b3"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xc19b4809d2ceb236a64cb670856a2d3cba8558eb10b21d9f25236700992479b3","networkInteractionId":1,"receipt":{"blockHash":"0x70500ec67bfa050f88841b867d935cdfbc12c0dac7c7d95b05974e5dc5e28467","blockNumber":438282328,"logs":[{"address":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","data":"0x","logIndex":8,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":9,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000008a2560cee62d17ef542e8eb6b349c45b02120522","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xc19b4809d2ceb236a64cb670856a2d3cba8558eb10b21d9f25236700992479b3","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","withdrawVerifier":"0x3B81e33Aa5bE0FF8B8ae0C2fd3200450e3a8d477"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteraction":{"data":"0xcf101a49000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003b81e33aa5be0ff8b8ae0c2fd3200450e3a8d477000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f9390000000000000000000000008a2560cee62d17ef542e8eb6b349c45b02120522000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":751,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":751,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40176000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xf5606c7633760a88ec24d01c8f15f2412708320a8c6605cda8ccea189bbe8e0d"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","hash":"0xf5606c7633760a88ec24d01c8f15f2412708320a8c6605cda8ccea189bbe8e0d","networkInteractionId":1,"receipt":{"blockHash":"0x5d22a40a996df3be9dd4a1bc7049f310f8756b4ef10ece377c8bd282d9da09a3","blockNumber":438282339,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","0xE01eE56C613175502c8e677774eaCbBB2738674C","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","dependencies":["PortalFactory#PortalFactory","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f939000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":752,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":752,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"41484000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xe93f1476d192545b92bde7fc12dcc0d76e0b551c501c2aaee50c14a9717d7f35"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xe93f1476d192545b92bde7fc12dcc0d76e0b551c501c2aaee50c14a9717d7f35","networkInteractionId":1,"receipt":{"blockHash":"0x77b5863062eed253d83fbeae21955b1c639fe3ed47ba4fa7ea6fb36c13e9dc06","blockNumber":438282348,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":782,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":782,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40420000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x12e9c56a4617971991ac64875fdae32864625ec88b15995e2bdb88b3327775fc"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x12e9c56a4617971991ac64875fdae32864625ec88b15995e2bdb88b3327775fc","networkInteractionId":1,"receipt":{"blockHash":"0xb0c3762e7649b05b4dd4a6d1919ad7e0ad5f144bb16e68192346f8eb3a202b12","blockNumber":438979702,"logs":[{"address":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","data":"0x","logIndex":0,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x00000000000000000000000072d356b815974ea1b8d49823a46294fc38ba41df","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_withdrawVerifierV3","type":"WIPE_APPLY"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","type":"WIPE_APPLY"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","type":"WIPE_APPLY"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","type":"WIPE_APPLY"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","type":"WIPE_APPLY"}
-{"futureId":"CurvyVault#CurvyVaultV5","type":"WIPE_APPLY"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","type":"WIPE_APPLY"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","type":"WIPE_APPLY"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","contractName":"CurvyAggregatorAlphaV5","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV5","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xfAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B10"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d506100f95f395f8181610f9f01528181610fc8015261110c0152611d505ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073fAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B1093506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteractionId":1,"nonce":785,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteractionId":1,"nonce":785,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40048000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xdb3e4b3702d9079c084e8b4c224cbe4efeff4e5f79f135ca35fe2854dc127182"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","contractName":"CurvyVaultV5","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV5","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV5Implementation","constructorArgs":[],"contractName":"CurvyVaultV5","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV5Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fd491bda775b94cc947797bcd0ac41b752963a10eb8562367f9c41712eda766664736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":786,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":786,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40028000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xbedbcfb46926321fcf7e126b369b90767c930b569558a583bf34b0f94b5600fa"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","hash":"0xdb3e4b3702d9079c084e8b4c224cbe4efeff4e5f79f135ca35fe2854dc127182","networkInteractionId":1,"receipt":{"blockHash":"0x8225ce01580bcc34d23230f326ff9c58b1781b12ec60abdf79525234937b7318","blockNumber":439005793,"contractAddress":"0xa4d33955253d18411f30EddB5d28171722415C85","logs":[{"address":"0xa4d33955253d18411f30EddB5d28171722415C85","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":1,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","result":{"address":"0xa4d33955253d18411f30EddB5d28171722415C85","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","hash":"0xbedbcfb46926321fcf7e126b369b90767c930b569558a583bf34b0f94b5600fa","networkInteractionId":1,"receipt":{"blockHash":"0xcce220f26242996ce875413199e61e56cdab6ebeb8cf1c83680a353b958dc70f","blockNumber":439005811,"contractAddress":"0xa573d954f7db86b08Bd6aeDAa3eB24375Ea508bd","logs":[{"address":"0xa573d954f7db86b08Bd6aeDAa3eB24375Ea508bd","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":12,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","result":{"address":"0xa573d954f7db86b08Bd6aeDAa3eB24375Ea508bd","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-
-{"args":["0xa4d33955253d18411f30EddB5d28171722415C85","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000a4d33955253d18411f30eddb5d28171722415c8500000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteractionId":1,"nonce":787,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteractionId":1,"nonce":787,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x11a0842fc106028804b20ae6344aef53c30e0ab451465e589d6f8220ce7d5d1b"},"type":"TRANSACTION_SEND"}
-{"args":["0xa573d954f7db86b08Bd6aeDAa3eB24375Ea508bd","0x"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV4","CurvyVault#CurvyVaultV5Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000a573d954f7db86b08bd6aedaa3eb24375ea508bd00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":788,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":788,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40212000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xa62da96c88bd560e1c2047d249cc4385f84b4567a25a070906f5c12e450b4cee"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","hash":"0x11a0842fc106028804b20ae6344aef53c30e0ab451465e589d6f8220ce7d5d1b","networkInteractionId":1,"receipt":{"blockHash":"0xd501ccdb3a870eb14b085e7644d786fb330742b0aebbf6420e6ce76a89adb6f6","blockNumber":439006578,"logs":[{"address":"0xE01eE56C613175502c8e677774eaCbBB2738674C","data":"0x","logIndex":9,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000a4d33955253d18411f30eddb5d28171722415c85"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","hash":"0xa62da96c88bd560e1c2047d249cc4385f84b4567a25a070906f5c12e450b4cee","networkInteractionId":1,"receipt":{"blockHash":"0x5735cc97ae0bd86a33684b210e27258e7a4130531075ecf5ed05bf98488235e7","blockNumber":439006583,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x","logIndex":1,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000a573d954f7db86b08bd6aedaa3eb24375ea508bd"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-
-
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":873,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":873,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"70600877"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001781"}},"hash":"0xfc0e3757619264e3cdce238842fc428ec0059f3b8045859fa8b949b0fae8cbc4"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xfc0e3757619264e3cdce238842fc428ec0059f3b8045859fa8b949b0fae8cbc4","networkInteractionId":1,"receipt":{"blockHash":"0x2777b65537260e3e39112db5df386ca9d99b511cc2072fcad209ff27ee60c361","blockNumber":10396962,"logs":[{"address":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","data":"0x","logIndex":675,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":676,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x00000000000000000000000072d356b815974ea1b8d49823a46294fc38ba41df","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xfc0e3757619264e3cdce238842fc428ec0059f3b8045859fa8b949b0fae8cbc4","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-
-{"artifactId":"CurvyAggregatorAlpha#withdrawVerifierV3","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlphaV3_2","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b5061149a8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b366004611300565b610054565b604051901515815260200160405180910390f35b5f61005d611127565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600980825261014082019093525f9290918201610120803683370190505090505f5b600981101561013357848160098110610109576101096113e0565b6020020151828281518110610120576101206113e0565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e9190611408565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb5783878281518110610217576102176113e0565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc85608001518460016102859190611408565b81518110610295576102956113e0565b60200260200101518a85815181106102af576102af6113e0565b6020026020010151610a94565b610b28565b91506001016101fb565b506102f38183608001515f815181106102e6576102e66113e0565b6020026020010151610b28565b9050610327610304865f0151610bbf565b8660200151845f015185602001518587604001518b604001518960600151610c5b565b610337576001935050505061033e565b5f93505050505b92915050565b61034c611175565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f05d000ba4551c1fa877c7a46107992624c3d99a3e6bdd57c50698771b613cc298185019081527f1ecc95a1dbdbe4f8cef976bf22affb6de7fa33cb89b48d77bead7102ad139892828401528152835180850185527f21db75587cbe02e9192f9b5f2b763c99648c02dd6b6a4c96c20df72fb841418a81527f2af9f7e11a5a29cdcb4b532c39193095513331f2834798b89072b995ad356a898185015281840152908401528151600a8082526101608201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f2660af19967ed5580208a84497fbdd099f460ed85561c98f23edb4a0384dcf7f81527f210fa1941084636ec27feec1eb19e46b9b48bfa53b306d017ae5963efad52a436020820152905180515f90610659576106596113e0565b602002602001018190525060405180604001604052807f2083fd8b0b70f84ff529e805d135f4a43429faa7993c7722807ae7a190df845581526020017f28811e77761972df5b4960cb74319c488f4edbeddc48333c6d4d1a6bf413ca3481525081608001516001815181106106d0576106d06113e0565b602002602001018190525060405180604001604052807f13dfc5473a9989ab659e0b9a6334f6941bc90555d51e4bca722dae72810e989881526020017f013b58637f2dae5dcc9fc8fbebfc8b1381840813185e0fb647f05168c697540c8152508160800151600281518110610747576107476113e0565b602002602001018190525060405180604001604052807f1c44dcfc07f5f9ae2c637ff60d5a89d2c1713bca6aff265abcb28620a852c34281526020017f19330ccf92e4c27c2b591f021a828cca5edab6049a9d1062686fd796b6d3f52d81525081608001516003815181106107be576107be6113e0565b602002602001018190525060405180604001604052807f23d7191b87dd317ce4294b631c1ce03e454f61c038c5d9c601c8abcc5003816b81526020017f21b455e02d8d7aa7549f9e769915f44c954cbc965220a0c8f61c0c1a367509818152508160800151600481518110610835576108356113e0565b602002602001018190525060405180604001604052807f2226e11fa0ed282b86920337d75253929cdead5afa79adbc98bbf0786a21503081526020017eab0bd68fd9de0ee282bc419521c647a219f5075248f5ebfb2016464f50ba1a81525081608001516005815181106108ab576108ab6113e0565b602002602001018190525060405180604001604052807f21a6f2274e37865052daf09f57ee7d7dafbc1d60cc54e26ab82120b995ed12f481526020017f0b5c832b69ae80552e1d9402009efab37ce39eb97825b4b343f5ea9581b31c1b8152508160800151600681518110610922576109226113e0565b602002602001018190525060405180604001604052807f091ecf7419c3a24ba36564b86a4859fd8f00157103bb0759ea5ba4928bfe460b81526020017f105c38b8731b3cbeed64c9c7e1aa313538e21302828e2f95fb3b05d777a0f7d88152508160800151600781518110610999576109996113e0565b602002602001018190525060405180604001604052807f100d9113bd2a6d16e7682a168a313a92f111d97fa62ab66b9b60339ab7edd8cf81526020017f0db625617d7f1e384b7fd3bfa6625ce178ced385ea8bef33da11938d7ebc389d8152508160800151600881518110610a1057610a106113e0565b602002602001018190525060405180604001604052807ec8fdc7d85d6600498e56ca6e7082bef46e29858708e318188919835ac6878881526020017f0c567e014f5306e60d7e0d42f3e9216db8a9837c77f300ff203b05060360a30a8152508160800151600981518110610a8657610a866113e0565b602002602001018190525090565b604080518082019091525f8082526020820152610aaf6111c5565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610add57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610b436111e3565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610b7c57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c0557506020830151155b15610c24575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610c48919061141b565b610c52908461143a565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610c7557505060408051600480825260a082019092529192505f9190602082015b610cbd611201565b815260200190600190039081610cb55790505090508a825f81518110610ce557610ce56113e0565b60200260200101819052508882600181518110610d0457610d046113e0565b60200260200101819052508682600281518110610d2357610d236113e0565b60200260200101819052508482600381518110610d4257610d426113e0565b602002602001018190525089815f81518110610d6057610d606113e0565b60200260200101819052508781600181518110610d7f57610d7f6113e0565b60200260200101819052508581600281518110610d9e57610d9e6113e0565b60200260200101819052508381600381518110610dbd57610dbd6113e0565b6020026020010181905250610dd28282610de1565b9b9a5050505050505050505050565b5f8151835114610e2c5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610e3a82600661144d565b90505f8167ffffffffffffffff811115610e5657610e5661125d565b604051908082528060200260200182016040528015610e7f578160200160208202803683370190505b5090505f5b838110156110ac57868181518110610e9e57610e9e6113e0565b60200260200101515f015182826006610eb7919061144d565b610ec1905f611408565b81518110610ed157610ed16113e0565b602002602001018181525050868181518110610eef57610eef6113e0565b60200260200101516020015182826006610f09919061144d565b610f14906001611408565b81518110610f2457610f246113e0565b602002602001018181525050858181518110610f4257610f426113e0565b6020908102919091010151515182610f5b83600661144d565b610f66906002611408565b81518110610f7657610f766113e0565b602002602001018181525050858181518110610f9457610f946113e0565b60209081029190910181015151015182610faf83600661144d565b610fba906003611408565b81518110610fca57610fca6113e0565b602002602001018181525050858181518110610fe857610fe86113e0565b6020026020010151602001515f60028110611005576110056113e0565b60200201518261101683600661144d565b611021906004611408565b81518110611031576110316113e0565b60200260200101818152505085818151811061104f5761104f6113e0565b60200260200101516020015160016002811061106d5761106d6113e0565b60200201518261107e83600661144d565b611089906005611408565b81518110611099576110996113e0565b6020908102919091010152600101610e84565b506110b5611221565b5f602082602086026020860160086107d05a03fa905080806110d357fe5b50806111195760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101611150611201565b815260200161117060405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c083019190915281526020810161119e611201565b81526020016111ab611201565b81526020016111b8611201565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061121461123f565b815260200161117061123f565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156112a657634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f8301126112bd575f5ffd5b5f6112c86040611271565b90508060408401858111156112db575f5ffd5b845b818110156112f55780358352602092830192016112dd565b509195945050505050565b5f5f5f5f6102208587031215611314575f5ffd5b61131e86866112ae565b935085605f86011261132e575f5ffd5b604061133981611271565b8060c088018981111561134a575f5ffd5b604089015b81811015611370576113618b826112ae565b8452602090930192840161134f565b5081965061137e8a826112ae565b95505050505061010085015f87601f830112611398575f5ffd5b5f6101206113a581611271565b91508301818a8211156113b6575f5ffd5b5b818510156113cf5784358152602094850194016113b7565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e6113f4565b5f8261143557634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e6113f4565b808202811582820484141761033e5761033e6113f456fea2646970667358221220ee56b55b73586c11a0ad84b93a1c92445f7a65f7be9aeed3d1e4fbaef2220a4364736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteractionId":1,"nonce":789,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteractionId":1,"nonce":789,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x7e8791574e5b34b1e4b26c395d36afda4a18c4565287180bd6e81726f6f2a02a"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","hash":"0x7e8791574e5b34b1e4b26c395d36afda4a18c4565287180bd6e81726f6f2a02a","networkInteractionId":1,"receipt":{"blockHash":"0xca93840fb3d7a14797f5cc90d5417d6a7066a0a2881bc7d31a4a977a0cd6c271","blockNumber":439007157,"contractAddress":"0xF1FE678F3035aF4C01503B9118C3693DF3A052aA","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","result":{"address":"0xF1FE678F3035aF4C01503B9118C3693DF3A052aA","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","withdrawVerifier":"0xF1FE678F3035aF4C01503B9118C3693DF3A052aA"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteraction":{"data":"0xcf101a4900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f1fe678f3035af4c01503b9118c3693df3a052aa000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f93900000000000000000000000072d356b815974ea1b8d49823a46294fc38ba41df000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":790,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":790,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40304000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x3c89230025f3b7a0932c2d3616d225a960147049ff328fea0935924ea3a73a87"},"type":"TRANSACTION_SEND"}
-{"args":["0xE01eE56C613175502c8e677774eaCbBB2738674C"],"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV5","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":791,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":791,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40132000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x7d5af2b71675791c3d37927733604909106e6937aa9ebaa37b97ff535f4e1d72"},"type":"TRANSACTION_SEND"}
-{"args":["0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","0xE01eE56C613175502c8e677774eaCbBB2738674C","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","dependencies":["PortalFactory#PortalFactory","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f939000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":792,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":792,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40512000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x05939deeac0dbb1c09de7964fc7788129c21ab8e014fbd7ca933a10a5ead5465"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","hash":"0x3c89230025f3b7a0932c2d3616d225a960147049ff328fea0935924ea3a73a87","networkInteractionId":1,"receipt":{"blockHash":"0xb97b45165ddf575ab0c75e500102cb7dfc67e95d548d0c2b64887cfd92edd0a3","blockNumber":439007168,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","hash":"0x7d5af2b71675791c3d37927733604909106e6937aa9ebaa37b97ff535f4e1d72","networkInteractionId":1,"receipt":{"blockHash":"0xa6a018ac9dd18b9a414b0c4c0c16e6272348488bda8ae12879e20c899233fc9e","blockNumber":439007173,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c","logIndex":4,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x05939deeac0dbb1c09de7964fc7788129c21ab8e014fbd7ca933a10a5ead5465","networkInteractionId":1,"receipt":{"blockHash":"0x2e39930226021de1340b988a8f575fb110c1398e080d8d497f6ea18c6393a007","blockNumber":439007180,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","contractName":"CurvyAggregatorAlphaV6","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV6","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0xfAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B10"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611e4b6100f95f395f81816110500152818161107901526111bd0152611e4b5ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73fAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B106320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","networkInteractionId":1,"nonce":920,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","networkInteractionId":1,"nonce":920,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xd7387c3d0060edcd2d41df3b16d2ab4747a19df63b48722299c1c5da86a3aabc"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyVault#CurvyVaultV6","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","contractName":"CurvyVaultV6","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV6","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV6Implementation","constructorArgs":[],"contractName":"CurvyVaultV6","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV6Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220abf4833af5f4eaf00c587d9249e43bdb81105120a948ba55ef3190468959dffb64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","hash":"0xd7387c3d0060edcd2d41df3b16d2ab4747a19df63b48722299c1c5da86a3aabc","networkInteractionId":1,"receipt":{"blockHash":"0x3dde80cec1db0da54d32c9b7b5367b7f5c48f9ca7b046105063a965d908dab14","blockNumber":440708727,"contractAddress":"0x34371A30a9634B6b0c95F34bcDF76b7a6Fc53d37","logs":[{"address":"0x34371A30a9634B6b0c95F34bcDF76b7a6Fc53d37","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":4,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","result":{"address":"0x34371A30a9634B6b0c95F34bcDF76b7a6Fc53d37","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","networkInteractionId":1,"nonce":921,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","networkInteractionId":1,"nonce":921,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40144000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x977c9383ff91c434c7c6a992f8ec3d51bce028e0552fbe3854f26de843ef021c"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","hash":"0x977c9383ff91c434c7c6a992f8ec3d51bce028e0552fbe3854f26de843ef021c","networkInteractionId":1,"receipt":{"blockHash":"0xf0e992ee03f60224491409317e4d78c7b0d12300006ebebde166934f8abd76bd","blockNumber":440708857,"contractAddress":"0x52D578E440F590BD588e63E941E6053FaCd324c1","logs":[{"address":"0x52D578E440F590BD588e63E941E6053FaCd324c1","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":14,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","result":{"address":"0x52D578E440F590BD588e63E941E6053FaCd324c1","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x34371A30a9634B6b0c95F34bcDF76b7a6Fc53d37","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef28600000000000000000000000034371a30a9634b6b0c95f34bcdf76b7a6fc53d3700000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","networkInteractionId":1,"nonce":922,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","networkInteractionId":1,"nonce":922,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40264000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xde2d2de15c35c49061de6ce906f2cca77399c0e3ab4668636cc3781a5b73bc5f"},"type":"TRANSACTION_SEND"}
-{"args":["0x52D578E440F590BD588e63E941E6053FaCd324c1","0x"],"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV5","CurvyVault#CurvyVaultV6Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef28600000000000000000000000052d578e440f590bd588e63e941e6053facd324c100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","hash":"0xde2d2de15c35c49061de6ce906f2cca77399c0e3ab4668636cc3781a5b73bc5f","networkInteractionId":1,"receipt":{"blockHash":"0x2cb34cc62c7dbc4c194ad8f1526130749f1fbbeccfcc48fb0556eea67f4d85a1","blockNumber":440708868,"logs":[{"address":"0xE01eE56C613175502c8e677774eaCbBB2738674C","data":"0x","logIndex":0,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000034371a30a9634b6b0c95f34bcdf76b7a6fc53d37"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","networkInteractionId":1,"nonce":923,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","networkInteractionId":1,"nonce":923,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40012000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xbd2d41bc555245fb2b044513a72be84f8dde0faa652a24a7b9f5f8a1850e5913"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","hash":"0xbd2d41bc555245fb2b044513a72be84f8dde0faa652a24a7b9f5f8a1850e5913","networkInteractionId":1,"receipt":{"blockHash":"0x4aecad79ac67964c626d27498147ed4fe17cec63021ab60b896572f0bd90a651","blockNumber":440708919,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x","logIndex":0,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000052d578e440f590bd588e63e941e6053facd324c1"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","withdrawVerifier":"0xF1FE678F3035aF4C01503B9118C3693DF3A052aA"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteraction":{"data":"0xcf101a4900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f1fe678f3035af4c01503b9118c3693df3a052aa000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f93900000000000000000000000072d356b815974ea1b8d49823a46294fc38ba41df000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":924,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":924,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40172000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xcfcc7ef61b1ac82f64c35c0c46feb9428580b4a3c54d99c54bc39849a878afc8"},"type":"TRANSACTION_SEND"}
-{"args":["0xE01eE56C613175502c8e677774eaCbBB2738674C"],"artifactId":"CurvyVault#CurvyVaultV6","contractAddress":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","dependencies":["CurvyVault#CurvyVaultV6","CurvyAggregatorAlpha#CurvyAggregatorAlphaV6"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c","id":1,"to":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","hash":"0xcfcc7ef61b1ac82f64c35c0c46feb9428580b4a3c54d99c54bc39849a878afc8","networkInteractionId":1,"receipt":{"blockHash":"0xe5a93af54d8218d903f5cf8832b3d8ff833db67ad0c6dacad39020e3fcf6570f","blockNumber":440708929,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":925,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":925,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40020000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x3af4b0b4fcdc50f571c965ed9e29e7e6f0b5fcd28d523a27552e5bfda0ce099e"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","hash":"0x3af4b0b4fcdc50f571c965ed9e29e7e6f0b5fcd28d523a27552e5bfda0ce099e","networkInteractionId":1,"receipt":{"blockHash":"0x14383788a27e6e45c3c57be677d7bd883434c64d6370cd3494030809ae16af80","blockNumber":440708985,"logs":[{"address":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","data":"0x000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c","logIndex":8,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":1094,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":1094,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40392000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xafd0a33904341c404695018a4f7bd8b11e36d97175842ecbecc301b19ad2500d"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xafd0a33904341c404695018a4f7bd8b11e36d97175842ecbecc301b19ad2500d","networkInteractionId":1,"receipt":{"blockHash":"0x05aadb48791daec840334445b605715a6b0dc18b5a746a97e502f06da9813760","blockNumber":441387229,"logs":[{"address":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","data":"0x","logIndex":18,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":19,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000007125ed21e90a790090245748a47753f3be54ccb3","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xafd0a33904341c404695018a4f7bd8b11e36d97175842ecbecc301b19ad2500d","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","withdrawVerifier":"0xF1FE678F3035aF4C01503B9118C3693DF3A052aA"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteraction":{"data":"0xcf101a4900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f1fe678f3035af4c01503b9118c3693df3a052aa000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f9390000000000000000000000007125ed21e90a790090245748a47753f3be54ccb3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":1095,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":1095,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40232000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0xd7455146b83e8c971e2caf9ef4d3b7fe5e229b74977a62e8a344e9cd1e100f4c"},"type":"TRANSACTION_SEND"}
-{"args":["0xB61F0c208356Df565Bde02dCEd33C896F6b0F939","0xE01eE56C613175502c8e677774eaCbBB2738674C","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","dependencies":["PortalFactory#PortalFactory","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000b61f0c208356df565bde02dced33c896f6b0f939000000000000000000000000e01ee56c613175502c8e677774eacbbb2738674c0000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","hash":"0xd7455146b83e8c971e2caf9ef4d3b7fe5e229b74977a62e8a344e9cd1e100f4c","networkInteractionId":1,"receipt":{"blockHash":"0xa12aec597c73efbb78a365f7ef8342c1a93a3b9c7a444a7e673150060abb81d5","blockNumber":441387240,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":1096,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":1096,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"41636000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x024871d1276cdeca6729bf92aeb28bfbf4ed8a5337d48b4c5db4a8af629ce612"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x024871d1276cdeca6729bf92aeb28bfbf4ed8a5337d48b4c5db4a8af629ce612","networkInteractionId":1,"receipt":{"blockHash":"0xe6a7a3800759a7ab453e149c89a5629efc1c7e104d73a525287564febfe50deb","blockNumber":441387336,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#insertionVerifierDepth30","constructorArgs":[],"contractName":"CurvyInsertionVerifierAlpha_2_30","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506106638061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d6565b610054565b604051901515815260200160405180910390f35b5f61055b565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0924b2da45959e3db416d37c294a404744951be16e42f1d992acb2f9b1653c9b85527f1dd38cbdac759717b0ac22a4684a67b9dde133900fd0de04e84649d362c43af260208601525f608086018661018e87357f1b2708ad6d7e6be283e7de6a744c951d2b8e5364548e69df7856c3c97b573e1b7f0974e3e005ff370d47e3fdb7ccdf534091ef1e4a005206d2d1231e67b90511998461008c565b6101de60208801357f2ebb5ab1d89212403b8779a300f9ddc2d940387f8a35748b528e34a8ba9aa8eb7f19eeb6ab376be1165cb0ec80572317e9f5c4518602464a5713c215c980fefb428461008c565b61022e60408801357f057838b481ea687ebdd9e99e7b0a647b9fde53a265abb2ebf10f786977fd745d7f303b63a34f398feec2ee236d526cf0b1152e7c0322e5ff4d253c0a3a8bf17fdc8461008c565b61027e60608801357f19345bce990107cbcf966676e877fb4f5ca5266f5d57adab7678620d605636d87f180b99f92cc59f1eabdbad0ff4a62544fa9bf0cab8f5912f5a847c5640c1d7328461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f0e2bb878054469b448cc0e33dc738b287d43fe65e576af5b3b04e591fdb54f1e60c08201527f1bf275d3700d3f50dca59951ba350ffa3ea2372d0196c425caa92a9e67899ade60e08201527f0c44e70b0815f8e0e28ce0457dc505fe56b05e59d49b5ae4e11b055a806910336101008201527f1232e197aaa7b2d91e891300fac64a73564b798a3db3fa5fb3abf383bf2032606101208201527f28308763f703530f89d2cf0bfa677e8d6cee8f7d9027e414164185b9819db03d6101408201527f1992fd2f54f2bb493054e09c96436be20ea7137974f126e81c09c2b32f70290c6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1d12be17bc61349a2fa4a78986dc0c65250840b18d469b5239a06678fdaffff36102808201527f2b76fd205a71da739792da15aa42bf4e6e549970f2c5d27f19456ed6ef65f9136102a08201527f291ed4e167e08d61ceb08cb301209e3431b16f87170ed88f5265b625d5e194486102c08201527e6370563f1ca56b9f3f3329c4a4724e95130020346360fa7e450ed7315a22e16102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105725f84013561005a565b61057f602084013561005a565b61058c604084013561005a565b610599606084013561005a565b6105a6818486888a6100f2565b9050805f5260205ff35b80604081018310156105c0575f5ffd5b92915050565b80608081018310156105c0575f5ffd5b5f5f5f5f61018085870312156105ea575f5ffd5b6105f486866105b0565b935061060386604087016105c6565b92506106128660c087016105b0565b91506106228661010087016105c6565b90509295919450925056fea26469706673582212205a855661bcf2b5e7a6820e1e0d44203c68c61e39b2b0c99faac2b30e34af037964736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","networkInteractionId":1,"nonce":1120,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","networkInteractionId":1,"nonce":1120,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40196000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x84c0c6350cdfc24e3accf02dee60e6b9ea7d98911e4138c89f94a3fd7bd9fb30"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","hash":"0x84c0c6350cdfc24e3accf02dee60e6b9ea7d98911e4138c89f94a3fd7bd9fb30","networkInteractionId":1,"receipt":{"blockHash":"0xa4a30b9657a164bb26000ef75fd1306304ffafbb6a856f143d589a81a65c8f96","blockNumber":442772758,"contractAddress":"0x4a4434F8fFA7D5a917554c2584B1e1a4851F265e","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","result":{"address":"0x4a4434F8fFA7D5a917554c2584B1e1a4851F265e","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","constructorArgs":[],"contractName":"CurvyAggregationVerifierAlpha_2_2_2_30","dependencies":["CurvyAggregatorAlpha#insertionVerifierDepth30"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b50610a0d8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610975565b610054565b604051901515815260200160405180910390f35b5f610882565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f2677d6c999b93ce8836a26f68400342d9206d0042e5bef74384d97668d4fbd7185527f1c6dffd717c92db39b15ffaac7f1ca0896359f64d86ddbde53a9a724d53d687f60208601525f608086018661018e87357f1588203686d2c659beac6e6b6a0696c9a73b43167a1c23dcd156cd423a3486617f2a9a27b4754629f464e15757a6e1795285c772d60b824c8f1dcf721853505b648461008c565b6101de60208801357f0e7ef5047b47aa90a649bd18cea070121bf160cd07d5fb6f059d7f85959093037f0ad8fc97f11c92c12ec509d473fb3a2131cd46398b83b0f6931d5a316885bf4c8461008c565b61022e60408801357f1f360486c53217bd225c170d2c9bff57ce0401a846932d5998b0985302d0d0297f1f0d2c4008add8e5f828066af26a4893d22ede59ce5ed922805bbf72172f926f8461008c565b61027e60608801357f19038ac1aeb7fff5205df6e24fb20b79efc3e47b23ba901c6133a077fd25a41f7f06a8f121ae5a14cd6561c3d301b7a599cd187d66b69ec0dca5b594c90d359db18461008c565b6102ce60808801357f14392ad2a968554f2e9be3192822ee370df3835437d6bdd824f7c02486a799757f1a901b29f21dd86a23814194667419cdb034a8f419cce6f36219ebe12f1d03ce8461008c565b61031e60a08801357f222b41b2066c2e18de2ce8f1b38e21067945bf3a523068d9be283bdeb0b090ca7f260b831c981e5d0edf7c4a1ce05d34b900e8e771b704ff94f52c9945a1227a038461008c565b61036e60c08801357f03ba99acc272296f6b5e8b46fdd80641dc68056bf1f1d058d7b0ae82673e6e0a7f1a49fe52f86e2ce468118842968ef83a85cc11ca735d1707594d03c0fcc5f7a48461008c565b6103be60e08801357f1bb356cda8bd9d21ca448a588e9fe402a48c2c090cc2d9028aabebf7eae7f18f7f2ba484140c7672e35cc296b012b1c06c9d65fa7daf76d898d54502b9dd6e8f298461008c565b61040f6101008801357f158100efe205b2ae041cd2722595c576d8ad554efd549c541c0235ddb95cc70d7f16532b0559581e1c0ff25d04ef22b687551e792d5f5d2134877bffd292114f998461008c565b6104606101208801357f1ecea9cf3060c8c3e065cd2f2f05fe405f4d81a6e4a067c43f65de122d4a8ecc7f0271befe332df95f1520c793b30ab4bbc373b49d736fdf4954fa8129851d9e288461008c565b6104b16101408801357f01886e15dd9ecac1445aca0b7c14420423ce79e0e7b5e5e7ca612fdbbbb0c77f7f17567d5e10acb1c359a4936a01b981b1e6fb9b2bf8746cfa36232c503fd055d18461008c565b6105026101608801357f0fa31e0ed9c1e3ebd3ff073c06bd5ec2056806962a50a4f9490d9d2d3c9125d47f12de630747fad5d0d0b137586691387df79e8a34d3b2968dc56f775ab6b3f4788461008c565b6105536101808801357f0675adf13437ce0b6c1853a85e1ce69404e9b79fc48e04a0757066da7650c6007f25415c817f8b5a1b4b8b1fbaba8a708d3c69f7a1aa35a3834e454b146a0a719a8461008c565b6105a46101a08801357f21c1a157c26e7368b687ff48228bde51af963a5337385f672bf794b1e734c4de7f10d8fd6daf436328532c048653ff83bc1192914754b7a5c907de1869768706848461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f039e6c254fdbfdddb550d7b28587b6e3359a0978a174c832f180238460bf67f660c08201527f05a7b274497c5b63c2aa9486e0610bf9c9fa32e70ac3453f26f181300106533a60e08201527f0e5775bf946735d1ab10bc0fe721dac812003a0756b73371686b39a0c8e0a59a6101008201527f2e63b48c5263b864a5ac08e86eda8c54b609edde10946cdd944dd04bf8f706996101208201527f2a68fdf476b29776ff77059d8292dbdef8bf3835b1d0b8c5e61a8e9f9065804c6101408201527f1b6deed70cfcb89383c60b8d413374d552260ab753beccb04e2077b09a6b69216101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f158d15b191dda264a993425059ebfd021c32c1730e3d254e31fd87de0ab46bac6102808201527f250bca34a48b272729deaec79ae6cc9a702ed03a18a0b5dbd03e9355f52480a56102a08201527f1a999fb6f30f5cc719a772e575a1effffd30eac8e14132c3759716b124d6750b6102c08201527f1db0c59f9dd26d6b1e665961792353cbd44351a6e5108cc13ee1aae16c3734046102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108995f84013561005a565b6108a6602084013561005a565b6108b3604084013561005a565b6108c0606084013561005a565b6108cd608084013561005a565b6108da60a084013561005a565b6108e760c084013561005a565b6108f460e084013561005a565b61090261010084013561005a565b61091061012084013561005a565b61091e61014084013561005a565b61092c61016084013561005a565b61093a61018084013561005a565b6109486101a084013561005a565b610955818486888a6100f2565b9050805f5260205ff35b806040810183101561096f575f5ffd5b92915050565b5f5f5f5f6102c08587031215610989575f5ffd5b610993868661095f565b935060c08501868111156109a5575f5ffd5b6040860193506109b5878261095f565b925050856102c0860111156109c8575f5ffd5b5091949093509091610100019056fea2646970667358221220478778d0335dd646856137a27c3acb70f813b5d21368e81d0f8aa12044b1af5b64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","networkInteractionId":1,"nonce":1121,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","networkInteractionId":1,"nonce":1121,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40040000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x4265df576d98a5b0dc03bd87e9515d496697ffaa971e76e29ddc4babc8355af5"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","hash":"0x4265df576d98a5b0dc03bd87e9515d496697ffaa971e76e29ddc4babc8355af5","networkInteractionId":1,"receipt":{"blockHash":"0xb3d5f385a2dd3a08cb739dab1d980cf40d0f537bb7a74951f853bb9a1879297d","blockNumber":442772777,"contractAddress":"0xd0B943918d8F7362dCb2E80FD50D373F450Fa473","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","result":{"address":"0xd0B943918d8F7362dCb2E80FD50D373F450Fa473","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlpha_2_2_30","dependencies":["CurvyAggregatorAlpha#aggregationVerifierDepth30"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506108328061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b36600461079a565b610054565b604051901515815260200160405180910390f35b5f6106ed565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f03760d22d9f2d34545c9e1914bb1ce7a6044769221030d98d87baf999cce726d85527f156ecf9f5c2610839d6d385378a656c0efd32e94a04ebc9c7089f4fe125b838260208601525f608086018661018e87357f2b2c117485e91a1ea632fe27385f77f9331e1db2672e42e9c86a2f802d6f4a577f022aa120b95ee1b256867106394adb6006f30068c06b3ea2e7a6a5bd396d32b88461008c565b6101de60208801357f190133b406f620e57f93dac97d795ee3e6c1cd5c1380ff8efa9bb5ae36eb6f027f201b5a5bcdd373439d8e242f31c140092f2e5e54fd22a0cd50775e373802199e8461008c565b61022e60408801357f1dacf0b93a0b74bacc711d37c038bc8c83ade754b2ce6b8d14bdab54c5267fcf7f27793f520413175bff070cb1cf2a66e303cb460fc50eae4788cc70e37947189e8461008c565b61027e60608801357f20c614098c5807d4d609bcda798ec95ffb84ea0fc6b97e2383149f4797c4071c7f1fcbb72508f88430df9f833ac15e753e438b391af9ded7d805815264fb92b9a18461008c565b6102ce60808801357f0f412826e324f04afe142e271f643cfd1191362dbd52c4ab1027b6dc5f4505197f251f4cfcfa4754144730a6dc064fe7159ceceaa24682c33fa9ec26df30314a098461008c565b61031e60a08801357f0a87b48bf8cd64b224ef5e524ccc422db4d1a2ddc4c6a52bf1354155dbfaca107f11ba886ae51f5da62f1ef74ebc2d941ffe1c84c0cc86a039eea59d753cf737e58461008c565b61036e60c08801357f0eb0f1a445dc5bdf6debee9f4b65306030a8c1c70c87aa910f111314550ff7ca7f0497eac083a6ae9671da1e9e67b4d81eb1890f772f559945e8db07f731b89b948461008c565b6103be60e08801357f27d71145b77c48dc3f37b04048a4952390eff92adf283803d939a5ef357469fa7f2f1d2ecb7da3238e91f60101a82f95a2a0cf3f18513a3efea2ef960e0f1b05038461008c565b61040f6101008801357f1232a2dd4a7f2a4eb7706e0ef2ac142d17bdd99c74cac407523c83ae2c0b14bf7f3013a3053bd7992674a30da3c9e0d99c8b16d930ea2986caa9428a2b843bcf9e8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1e16c25ab763d8d1477730a7d1ccef12a682cea336a50d06e8fbf5c6179e17d460c08201527f075447418c2d22c69113fa9cdfa0d27ef53317ffdee3259adcd492ba271bc6d460e08201527f2cc1fb86ad7b8be8587556a4b94dc9e84e3b8666d59c51208ee844733934e6696101008201527f27d109e11d2b06dc95900781efaa5ef1fc6dfbdb31e61283628e962fd17fe8c16101208201527f2f8043381982846eac492d6f3a1d39a682c65bfa8dd02e323e7a95df562cf9c96101408201527f29b9eff97456a285bf27898a846691a82071d53474301e1ca6b49892eb4499a56101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f02eed0745f7d7332ae3ac78bd0254d1d2a4f9c1ce849e2228ea68328f9861bab6102808201527f0a53e8207852cc09b290c2038962e161eb338f5b97cb2e1df58d5d4dd059cbdd6102a08201527f251e2c5b50852e3d17871d61fea2a638e7bd6669af35a7a4239e571588856f356102c08201527f1a01f4782436380d4ee0769723d43073f4888b316a973df0e33004b2ded19df76102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107045f84013561005a565b610711602084013561005a565b61071e604084013561005a565b61072b606084013561005a565b610738608084013561005a565b61074560a084013561005a565b61075260c084013561005a565b61075f60e084013561005a565b61076d61010084013561005a565b61077a818486888a6100f2565b9050805f5260205ff35b8060408101831015610794575f5ffd5b92915050565b5f5f5f5f61022085870312156107ae575f5ffd5b6107b88686610784565b935060c08501868111156107ca575f5ffd5b6040860193506107da8782610784565b92505085610220860111156107ed575f5ffd5b5091949093509091610100019056fea2646970667358221220aa1cf904b8465ae86135852d29b474903154ff35037e293a5f977b17164b752c64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","networkInteractionId":1,"nonce":1122,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","networkInteractionId":1,"nonce":1122,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x4e961019dc37d1c1c44e4f2af06a619ac5b8cbc2860b2e2e0286764b8be5e27b"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","hash":"0x4e961019dc37d1c1c44e4f2af06a619ac5b8cbc2860b2e2e0286764b8be5e27b","networkInteractionId":1,"receipt":{"blockHash":"0x160942dde6da422579f7ccfe20cb35333926305d68abced3afe266d71cf101ec","blockNumber":442772791,"contractAddress":"0x05b8675641d44ca1402ae66cB8412cda4cb1402D","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","result":{"address":"0x05b8675641d44ca1402ae66cB8412cda4cb1402D","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0xd0B943918d8F7362dCb2E80FD50D373F450Fa473","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0x4a4434F8fFA7D5a917554c2584B1e1a4851F265e","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x0000000000000000000000000000000000000000","withdrawVerifier":"0x05b8675641d44ca1402ae66cB8412cda4cb1402D"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0xE01eE56C613175502c8e677774eaCbBB2738674C","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","CurvyAggregatorAlpha#insertionVerifierDepth30","CurvyAggregatorAlpha#aggregationVerifierDepth30","CurvyAggregatorAlpha#withdrawVerifierDepth30"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","networkInteraction":{"data":"0xcf101a490000000000000000000000004a4434f8ffa7d5a917554c2584b1e1a4851f265e000000000000000000000000d0b943918d8f7362dcb2e80fd50d373f450fa47300000000000000000000000005b8675641d44ca1402ae66cb8412cda4cb1402d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xE01eE56C613175502c8e677774eaCbBB2738674C","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","networkInteractionId":1,"nonce":1123,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","networkInteractionId":1,"nonce":1123,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"40108000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"0"}},"hash":"0x550a69b4b14f8633ccae0167554217fd1ffc50d2dabe5ffdd1b2712235a137e7"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","hash":"0x550a69b4b14f8633ccae0167554217fd1ffc50d2dabe5ffdd1b2712235a137e7","networkInteractionId":1,"receipt":{"blockHash":"0x49ccad885a41f2d7d53d0fdc98e3f0a44711bb325439bf46e3dac83e904ed841","blockNumber":442772807,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/artifacts/PortalFactory#CreateX.json b/ignition/deployments/staging_base/artifacts/PortalFactory#CreateX.json
deleted file mode 100644
index 5d6f263..0000000
--- a/ignition/deployments/staging_base/artifacts/PortalFactory#CreateX.json
+++ /dev/null
@@ -1,906 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "FailedContractCreation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedContractInitialisation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedEtherTransfer",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidNonceValue",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidSalt",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "Create3ProxyContractCreation",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreateClone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "bytecode": "0x",
- "deployedBytecode": "0x",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/staging_base/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/staging_base/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json b/ignition/deployments/staging_base/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
deleted file mode 100644
index 6dc459e..0000000
--- a/ignition/deployments/staging_base/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
+++ /dev/null
@@ -1,357 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/artifacts/PortalFactory#PortalFactory_V3.json b/ignition/deployments/staging_base/artifacts/PortalFactory#PortalFactory_V3.json
deleted file mode 100644
index 0e873ff..0000000
--- a/ignition/deployments/staging_base/artifacts/PortalFactory#PortalFactory_V3.json
+++ /dev/null
@@ -1,367 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/artifacts/PortalFactory#PortalFactory_V4.json b/ignition/deployments/staging_base/artifacts/PortalFactory#PortalFactory_V4.json
deleted file mode 100644
index a7b61e5..0000000
--- a/ignition/deployments/staging_base/artifacts/PortalFactory#PortalFactory_V4.json
+++ /dev/null
@@ -1,367 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/artifacts/PortalFactory#PortalFactory_V5.json b/ignition/deployments/staging_base/artifacts/PortalFactory#PortalFactory_V5.json
deleted file mode 100644
index cd211a6..0000000
--- a/ignition/deployments/staging_base/artifacts/PortalFactory#PortalFactory_V5.json
+++ /dev/null
@@ -1,382 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForLiFiBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/artifacts/PortalFactoryModule#PortalFactory.json b/ignition/deployments/staging_base/artifacts/PortalFactoryModule#PortalFactory.json
deleted file mode 100644
index 467c840..0000000
--- a/ignition/deployments/staging_base/artifacts/PortalFactoryModule#PortalFactory.json
+++ /dev/null
@@ -1,256 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json b/ignition/deployments/staging_base/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json
deleted file mode 100644
index 8a2c60d..0000000
--- a/ignition/deployments/staging_base/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external onlyOnce {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json b/ignition/deployments/staging_base/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
deleted file mode 100644
index 272c9d5..0000000
--- a/ignition/deployments/staging_base/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/staging_base/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
deleted file mode 100644
index 4b57fc4..0000000
--- a/ignition/deployments/staging_base/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/devenv/ICreateX.sol": {
- "content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json b/ignition/deployments/staging_base/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
deleted file mode 100644
index 156f127..0000000
--- a/ignition/deployments/staging_base/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n // TODO: Emit shielding failed and if that event is detected in the simulation, then we will mark the shielding as failed.\n return; // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/staging_base/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
deleted file mode 100644
index 6ea1fae..0000000
--- a/ignition/deployments/staging_base/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json b/ignition/deployments/staging_base/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json
deleted file mode 100644
index 26ef1c9..0000000
--- a/ignition/deployments/staging_base/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function initializeConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function updateLifiDiamondAddress(address lifiDiamondAddress) external onlyOwner returns (bool) {\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json b/ignition/deployments/staging_base/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
deleted file mode 100644
index e4ce59c..0000000
--- a/ignition/deployments/staging_base/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json b/ignition/deployments/staging_base/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
deleted file mode 100644
index 7489326..0000000
--- a/ignition/deployments/staging_base/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note) external;\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is purely the ABI-encoded struct\n * (e.g., it was encoded using abi.encode(bridgeData))\n */\n function _decodeBridgeDataStruct(bytes calldata bridgeCallData) internal pure returns (LiFiBridgeData memory) {\n return abi.decode(bridgeCallData, (LiFiBridgeData));\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, address sendingAssetId, uint256 amount) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (sendingAssetId != address(0) && sendingAssetId != NATIVE_ETH) {\n IERC20 token = IERC20(sendingAssetId);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, note.amount);\n }\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeDataStruct(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, amount);\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, amount, bridgeData);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json b/ignition/deployments/staging_base/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json
deleted file mode 100644
index 2ee23a8..0000000
--- a/ignition/deployments/staging_base/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency) external;\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is purely the ABI-encoded struct\n * (e.g., it was encoded using abi.encode(bridgeData))\n */\n function _decodeBridgeDataStruct(bytes calldata bridgeCallData) internal pure returns (LiFiBridgeData memory) {\n return abi.decode(bridgeCallData, (LiFiBridgeData));\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency ) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, note.amount,currency );\n }\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeDataStruct(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, amount,currency );\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json b/ignition/deployments/staging_base/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
deleted file mode 100644
index 2d07272..0000000
--- a/ignition/deployments/staging_base/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency) external;\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency ) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, note.amount,currency );\n }\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, amount,currency );\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/deployed_addresses.json b/ignition/deployments/staging_base/deployed_addresses.json
deleted file mode 100644
index 872a6ca..0000000
--- a/ignition/deployments/staging_base/deployed_addresses.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "PortalFactory#PortalFactory": "0x7125Ed21e90A790090245748A47753F3BE54Ccb3"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_base/journal.jsonl b/ignition/deployments/staging_base/journal.jsonl
deleted file mode 100644
index ab4af5d..0000000
--- a/ignition/deployments/staging_base/journal.jsonl
+++ /dev/null
@@ -1,136 +0,0 @@
-
-{"chainId":8453,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076686d696861696c6f20616e642076616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016c67f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116a63803806116a683398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611564806101425f395ff3fe608060405260043610610084575f3560e01c8063715018a611610057578063715018a61461011c5780638da5cb5b14610130578063d465ea5814610160578063efc44aa61461017f578063f2fde38b1461019e575f5ffd5b80633942b0ad1461008857806343398648146100bc578063485907d8146100e857806352982f3b146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a23660046106f7565b6101bd565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610717565b6101ea565b6040516100b39190610741565b6100fb6100f63660046107d9565b610263565b005b348015610108575f5ffd5b506100a7610117366004610802565b6103f2565b348015610127575f5ffd5b506100fb61043e565b34801561013b575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561016b575f5ffd5b5061014861017a366004610717565b610451565b34801561018a575f5ffd5b506100fb610199366004610842565b6104c1565b3480156101a9575f5ffd5b506100fb6101b83660046106f7565b61061c565b5f6101c6610659565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b60605f604051806020016101fd906106d4565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061024a90839083906080016108f8565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061028457506003546001600160a01b0316155b156102f35760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610301835f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b03821661036b5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b1580156103d5575f5ffd5b505af11580156103e7573d5f5f3e3d5ffd5b505050505050505050565b5f6103fb610659565b50600280546001600160a01b039485166001600160a01b031991821617909155600380549385169382169390931790925560048054919093169116179055600190565b610446610659565b61044f5f610685565b565b5f5f61045d84846101ea565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105355760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084016102ea565b5f610543845f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b0382166105ad5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105e5939216918d918d918d918d9101610914565b5f604051808303815f87803b1580156105fc575f5ffd5b505af115801561060e573d5f5f3e3d5ffd5b505050505050505050505050565b610624610659565b6001600160a01b03811661064d57604051631e4fbdf760e01b81525f60048201526024016102ea565b61065681610685565b50565b5f546001600160a01b0316331461044f5760405163118cdaa760e01b81523360048201526024016102ea565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098a83390190565b80356001600160a01b03811681146101e5575f5ffd5b5f60208284031215610707575f5ffd5b610710826106e1565b9392505050565b5f5f60408385031215610728575f5ffd5b82359150610738602084016106e1565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60608284031215610786575f5ffd5b6040516060810181811067ffffffffffffffff821117156107b557634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156107ea575f5ffd5b6107f48484610776565b9150610738606084016106e1565b5f5f5f60608486031215610814575f5ffd5b61081d846106e1565b925061082b602085016106e1565b9150610839604085016106e1565b90509250925092565b5f5f5f5f5f60c08688031215610856575f5ffd5b853567ffffffffffffffff81111561086c575f5ffd5b8601601f8101881361087c575f5ffd5b803567ffffffffffffffff811115610892575f5ffd5b8860208284010111156108a3575f5ffd5b6020918201965094506108b99088908801610776565b92506108c7608087016106e1565b91506108d560a087016106e1565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61090c61090683866108e1565b846108e1565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096e60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a26469706673582212203606601acb0b023e36c60b268a0307ecd89114117ed619c689865d43a46264bf64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":4,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":4,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"7021056"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x8d5288b81f91062ebd413cd1122ca6f332cd407ca633cab5d3ed9a63ccdb0ed0"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x8d5288b81f91062ebd413cd1122ca6f332cd407ca633cab5d3ed9a63ccdb0ed0","networkInteractionId":1,"receipt":{"blockHash":"0xa7326f09488aa895575f76a700090f86740c93ae9b61795b9183fe9be35c2ef7","blockNumber":41186958,"logs":[{"address":"0xB8c0750e889afB95342d634b3AD99944b9525505","data":"0x","logIndex":1226,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1227,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000b8c0750e889afb95342d634b3ad99944b9525505","0xb1479d7f5dfd9da0029a798b27f617354f0aeca1c622cb19c1f7fe6bd9fc5bc1"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xB8c0750e889afB95342d634b3AD99944b9525505","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xB8c0750e889afB95342d634b3AD99944b9525505","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"initializeConfig","futureId":"PortalFactoryModule#PortalFactory.initializeConfig","strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteraction":{"data":"0x52982f3b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xB8c0750e889afB95342d634b3AD99944b9525505","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":5,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":5,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"7066168"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x2ecfc4471fe1e9ae3127760449202d1e70def1f81f2811576f80e6d4a1eafd84"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","hash":"0x2ecfc4471fe1e9ae3127760449202d1e70def1f81f2811576f80e6d4a1eafd84","networkInteractionId":1,"receipt":{"blockHash":"0x6d07b4cff0aeb4d3ef1f94f27655fe67c2d610e33482691332dafed88aa93f48","blockNumber":41186964,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactoryModule#PortalFactory","type":"WIPE_APPLY"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076687374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016bc7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":8,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":8,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"17265718"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x885462e3e227bbd0c6fb9e585ce4c2aeededfade2031a7e82ac6934b227376dd"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x885462e3e227bbd0c6fb9e585ce4c2aeededfade2031a7e82ac6934b227376dd","networkInteractionId":1,"receipt":{"blockHash":"0xff99cdce585958d067835a823346e98a613ba9156eca658ddfcc50f1faf1ddea","blockNumber":41370478,"logs":[{"address":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","data":"0x","logIndex":1119,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1120,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000baef1916444145c7101b63a6ca5acc9aba39a99c","0x424e4b9db5d95a27499fbc0588f9e21c9c6eab4cae98df46601e5284d9e6f6c8"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"PortalFactoryModule#PortalFactory.updateConfig","strategy":"create2","strategyConfig":{"salt":"0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":9,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":9,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"17679790"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xba48619ebe8eb7e25d12130a558b47441b2301ef2af914a57b012c74414268ea"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","hash":"0xba48619ebe8eb7e25d12130a558b47441b2301ef2af914a57b012c74414268ea","networkInteractionId":1,"receipt":{"blockHash":"0x80f0a8fe2263322e75b9c732a428b58463200b1109d668fd739e6b5524fd99a8","blockNumber":41370484,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":15,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":15,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"15435904"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x496417b0f0db2c401234aa60aa091f0204e2c2d2b9807c45197c6da94a012d7d"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","hash":"0x496417b0f0db2c401234aa60aa091f0204e2c2d2b9807c45197c6da94a012d7d","networkInteractionId":1,"receipt":{"blockHash":"0xe75180d73a937e6f3d4b19438bbcb8570372bbfbcfccd4291f32e82b857d606b","blockNumber":41798381,"logs":[{"address":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","data":"0x","logIndex":409,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":410,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000000e25ecebf24a7bde1655ded9630a3e75a75df6bd","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0","nameOrIndex":"newContract","result":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x496417b0f0db2c401234aa60aa091f0204e2c2d2b9807c45197c6da94a012d7d","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":16,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":16,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"15281252"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xaf9680694bcc30fe5fba8429f32806c8a831f180c36dc8de1afc9637a8792ab8"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xaf9680694bcc30fe5fba8429f32806c8a831f180c36dc8de1afc9637a8792ab8","networkInteractionId":1,"receipt":{"blockHash":"0xf3b7639fe9921eb2b89cc7894250eb4d0029a71ce534e87e055c8c4e0a3aa0e0","blockNumber":41798387,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001ee77f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":19,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":19,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"17991432"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x621189ba7507e51af9c04598e90f349bff49e9c76781483df5d90c8603828bd9"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","hash":"0x621189ba7507e51af9c04598e90f349bff49e9c76781483df5d90c8603828bd9","networkInteractionId":1,"receipt":{"blockHash":"0xac10fcbdf74ead33677e2871f110c6d3f0a18c977986d1015564bd7b54fa32cd","blockNumber":42717443,"logs":[{"address":"0xb10abCB62f50DefF589754db1d9B548eF808B101","data":"0x","logIndex":166,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":167,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000b10abcb62f50deff589754db1d9b548ef808b101","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V2","nameOrIndex":"newContract","result":"0xb10abCB62f50DefF589754db1d9B548eF808B101","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x621189ba7507e51af9c04598e90f349bff49e9c76781483df5d90c8603828bd9","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#ReadEvent_PortalFactory_V2"],"futureId":"PortalFactory#PortalFactory_ContractAt_V2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","dependencies":["PortalFactory#PortalFactory_ContractAt_V2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xb10abCB62f50DefF589754db1d9B548eF808B101","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":20,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":20,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"18032062"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x2341a69ae259b659d16cf04f47d57e2c85275bca9465933f2e74990d19919a1a"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","hash":"0x2341a69ae259b659d16cf04f47d57e2c85275bca9465933f2e74990d19919a1a","networkInteractionId":1,"receipt":{"blockHash":"0x1ae69b4fb28a5c9be0805483e93163f86e977b07a800870ecca97cf355b2003a","blockNumber":42717449,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V3","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f597f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":21,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":21,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"48706402"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x185db55ae5fb740115e882c0eaaa1a98b532aa14855f6a24e94818dbe4fbd64c"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","hash":"0x185db55ae5fb740115e882c0eaaa1a98b532aa14855f6a24e94818dbe4fbd64c","networkInteractionId":1,"receipt":{"blockHash":"0xf0d92971a183d501945342dfc67c692f951c1ea6aad4a1ea8aae0d2469e8eb23","blockNumber":42838579,"logs":[{"address":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","data":"0x","logIndex":697,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":698,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000c20a3681b8fa35a68479de698e65a6403b8031de","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_V3","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V3","nameOrIndex":"newContract","result":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x185db55ae5fb740115e882c0eaaa1a98b532aa14855f6a24e94818dbe4fbd64c","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_V3","contractAddress":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_V3","PortalFactory#ReadEvent_PortalFactory_V3"],"futureId":"PortalFactory#PortalFactory_V3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_V3","contractAddress":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","dependencies":["PortalFactory#PortalFactory_V3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteractionId":1,"nonce":22,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteractionId":1,"nonce":22,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"48799346"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x26f217e65cbd87213c7b7490d5573bd2710b502367d7ab237a594a501e8fb04e"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","hash":"0x26f217e65cbd87213c7b7490d5573bd2710b502367d7ab237a594a501e8fb04e","networkInteractionId":1,"receipt":{"blockHash":"0x81d462ab05e5342457ca6690f7f0c9c79f601fb678b851f6fe87150eae43944d","blockNumber":42838585,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V4","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f407f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":23,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":23,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"11215252"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xcbcadbdb11c45f9fe2278be20e8785cc742ffe4b828bf9eb7dfdc1caab615bfb"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","hash":"0xcbcadbdb11c45f9fe2278be20e8785cc742ffe4b828bf9eb7dfdc1caab615bfb","networkInteractionId":1,"receipt":{"blockHash":"0x43482fe44ed04c98d19d595e4f97389b7be238239b49844c365674f3f31ce654","blockNumber":42849618,"logs":[{"address":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","data":"0x","logIndex":390,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":391,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000009f3f6bd0067596fd05abca1a6a7d1298d6603730","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V4","nameOrIndex":"newContract","result":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xcbcadbdb11c45f9fe2278be20e8785cc742ffe4b828bf9eb7dfdc1caab615bfb","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#ReadEvent_PortalFactory_V4"],"futureId":"PortalFactory#PortalFactory_V4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","dependencies":["PortalFactory#PortalFactory_V4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":24,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":24,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"11307964"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x309528558af5625ce94c8345ec1a2dc1b4dad4a0bc471ae131a49bef173e57d1"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","hash":"0x309528558af5625ce94c8345ec1a2dc1b4dad4a0bc471ae131a49bef173e57d1","networkInteractionId":1,"receipt":{"blockHash":"0x2c00988b185d3c6efc36c6c7d3efae2a34d3015f406c9d44f12b7d5d1c9d25c6","blockNumber":42849624,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f607f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":25,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":25,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"21478906"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x7719b27ffed7faeae9708017c8173d3a56751c51aac47814a970da86c956a0c7"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x7719b27ffed7faeae9708017c8173d3a56751c51aac47814a970da86c956a0c7","networkInteractionId":1,"receipt":{"blockHash":"0xfd0adc1c7057d91443905be15381e44b3e86531a0652347f4e7266e4ba6a1fd8","blockNumber":42923841,"logs":[{"address":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","data":"0x","logIndex":1189,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1190,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000008a2560cee62d17ef542e8eb6b349c45b02120522","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x7719b27ffed7faeae9708017c8173d3a56751c51aac47814a970da86c956a0c7","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":26,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":26,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"21379320"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x757406d4890a13a5cc4ad301bcde687ab579fa5cb84bce5347c8a82e64ff1ce8"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x757406d4890a13a5cc4ad301bcde687ab579fa5cb84bce5347c8a82e64ff1ce8","networkInteractionId":1,"receipt":{"blockHash":"0xcffe7f8dd2ed61009c33656e7cb5b9711d6d55018c797aed130f3f521c4fba1a","blockNumber":42923847,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":29,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":29,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"17534970"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x4a88b31f424c5814026daf2da6b901435e774876419ceb68da1d82c5f6ad9bb2"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x4a88b31f424c5814026daf2da6b901435e774876419ceb68da1d82c5f6ad9bb2","networkInteractionId":1,"receipt":{"blockHash":"0x585b243c4f95023c39371f16a1a137e6989665d34c560d14ffbfe3dad726fa32","blockNumber":43014887,"logs":[{"address":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","data":"0x","logIndex":290,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":291,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x00000000000000000000000072d356b815974ea1b8d49823a46294fc38ba41df","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x4a88b31f424c5814026daf2da6b901435e774876419ceb68da1d82c5f6ad9bb2","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":30,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":30,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"17415962"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xe1f8474d6b0b935012145e1d5863e69f26fa2898bb87664aa98ff27862085180"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xe1f8474d6b0b935012145e1d5863e69f26fa2898bb87664aa98ff27862085180","networkInteractionId":1,"receipt":{"blockHash":"0xb08866117c3ab8df65a59fbb87b745b2ac2333018ddfbb2b6e60d24b7844a9cb","blockNumber":43014893,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":43,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":43,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"13493006"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x54cdb45bad56117bb19e6b8cc3110a427cca3c50cf6973cdaae765160d356f4d"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x54cdb45bad56117bb19e6b8cc3110a427cca3c50cf6973cdaae765160d356f4d","networkInteractionId":1,"receipt":{"blockHash":"0xd3028395058287525dbcf6dbc450edeccebac58dd02cbf23e45a3df44bfccf9e","blockNumber":43311722,"logs":[{"address":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","data":"0x","logIndex":846,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":847,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000007125ed21e90a790090245748a47753f3be54ccb3","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x54cdb45bad56117bb19e6b8cc3110a427cca3c50cf6973cdaae765160d356f4d","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":44,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":44,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"13477440"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xdff348d0d2643ffa324e708d6bf22a7b89373b82b92a1f961599b125f826b915"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xdff348d0d2643ffa324e708d6bf22a7b89373b82b92a1f961599b125f826b915","networkInteractionId":1,"receipt":{"blockHash":"0x6a593afeeafa2a80bc9f7b1525c79174894a4884dbb2638b2ad776013643f896","blockNumber":43311728,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/artifacts/PortalFactory#CreateX.json b/ignition/deployments/staging_bsc/artifacts/PortalFactory#CreateX.json
deleted file mode 100644
index 5d6f263..0000000
--- a/ignition/deployments/staging_bsc/artifacts/PortalFactory#CreateX.json
+++ /dev/null
@@ -1,906 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "FailedContractCreation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedContractInitialisation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedEtherTransfer",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidNonceValue",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidSalt",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "Create3ProxyContractCreation",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreateClone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "bytecode": "0x",
- "deployedBytecode": "0x",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/staging_bsc/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/staging_bsc/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json b/ignition/deployments/staging_bsc/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
deleted file mode 100644
index 6dc459e..0000000
--- a/ignition/deployments/staging_bsc/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
+++ /dev/null
@@ -1,357 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/artifacts/PortalFactory#PortalFactory_V3.json b/ignition/deployments/staging_bsc/artifacts/PortalFactory#PortalFactory_V3.json
deleted file mode 100644
index 0e873ff..0000000
--- a/ignition/deployments/staging_bsc/artifacts/PortalFactory#PortalFactory_V3.json
+++ /dev/null
@@ -1,367 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/artifacts/PortalFactory#PortalFactory_V4.json b/ignition/deployments/staging_bsc/artifacts/PortalFactory#PortalFactory_V4.json
deleted file mode 100644
index a7b61e5..0000000
--- a/ignition/deployments/staging_bsc/artifacts/PortalFactory#PortalFactory_V4.json
+++ /dev/null
@@ -1,367 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/artifacts/PortalFactory#PortalFactory_V5.json b/ignition/deployments/staging_bsc/artifacts/PortalFactory#PortalFactory_V5.json
deleted file mode 100644
index eaef0d8..0000000
--- a/ignition/deployments/staging_bsc/artifacts/PortalFactory#PortalFactory_V5.json
+++ /dev/null
@@ -1,382 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForLiFiBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/artifacts/PortalFactoryModule#PortalFactory.json b/ignition/deployments/staging_bsc/artifacts/PortalFactoryModule#PortalFactory.json
deleted file mode 100644
index 467c840..0000000
--- a/ignition/deployments/staging_bsc/artifacts/PortalFactoryModule#PortalFactory.json
+++ /dev/null
@@ -1,256 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json b/ignition/deployments/staging_bsc/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json
deleted file mode 100644
index 8a2c60d..0000000
--- a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external onlyOnce {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json b/ignition/deployments/staging_bsc/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
deleted file mode 100644
index 272c9d5..0000000
--- a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/staging_bsc/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
deleted file mode 100644
index 4b57fc4..0000000
--- a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/devenv/ICreateX.sol": {
- "content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json b/ignition/deployments/staging_bsc/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
deleted file mode 100644
index 156f127..0000000
--- a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n // TODO: Emit shielding failed and if that event is detected in the simulation, then we will mark the shielding as failed.\n return; // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/staging_bsc/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
deleted file mode 100644
index 6ea1fae..0000000
--- a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json b/ignition/deployments/staging_bsc/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json
deleted file mode 100644
index 26ef1c9..0000000
--- a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function initializeConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function updateLifiDiamondAddress(address lifiDiamondAddress) external onlyOwner returns (bool) {\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json b/ignition/deployments/staging_bsc/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
deleted file mode 100644
index e4ce59c..0000000
--- a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json b/ignition/deployments/staging_bsc/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
deleted file mode 100644
index 7489326..0000000
--- a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note) external;\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is purely the ABI-encoded struct\n * (e.g., it was encoded using abi.encode(bridgeData))\n */\n function _decodeBridgeDataStruct(bytes calldata bridgeCallData) internal pure returns (LiFiBridgeData memory) {\n return abi.decode(bridgeCallData, (LiFiBridgeData));\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, address sendingAssetId, uint256 amount) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (sendingAssetId != address(0) && sendingAssetId != NATIVE_ETH) {\n IERC20 token = IERC20(sendingAssetId);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, note.amount);\n }\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeDataStruct(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, amount);\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, amount, bridgeData);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json b/ignition/deployments/staging_bsc/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json
deleted file mode 100644
index 2ee23a8..0000000
--- a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency) external;\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is purely the ABI-encoded struct\n * (e.g., it was encoded using abi.encode(bridgeData))\n */\n function _decodeBridgeDataStruct(bytes calldata bridgeCallData) internal pure returns (LiFiBridgeData memory) {\n return abi.decode(bridgeCallData, (LiFiBridgeData));\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency ) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, note.amount,currency );\n }\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeDataStruct(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, amount,currency );\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json b/ignition/deployments/staging_bsc/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
deleted file mode 100644
index 2d07272..0000000
--- a/ignition/deployments/staging_bsc/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency) external;\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency ) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, note.amount,currency );\n }\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, amount,currency );\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/deployed_addresses.json b/ignition/deployments/staging_bsc/deployed_addresses.json
deleted file mode 100644
index 872a6ca..0000000
--- a/ignition/deployments/staging_bsc/deployed_addresses.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "PortalFactory#PortalFactory": "0x7125Ed21e90A790090245748A47753F3BE54Ccb3"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_bsc/journal.jsonl b/ignition/deployments/staging_bsc/journal.jsonl
deleted file mode 100644
index c5d634f..0000000
--- a/ignition/deployments/staging_bsc/journal.jsonl
+++ /dev/null
@@ -1,136 +0,0 @@
-
-{"chainId":56,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076686d696861696c6f20616e642076616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016c67f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116a63803806116a683398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611564806101425f395ff3fe608060405260043610610084575f3560e01c8063715018a611610057578063715018a61461011c5780638da5cb5b14610130578063d465ea5814610160578063efc44aa61461017f578063f2fde38b1461019e575f5ffd5b80633942b0ad1461008857806343398648146100bc578063485907d8146100e857806352982f3b146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a23660046106f7565b6101bd565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610717565b6101ea565b6040516100b39190610741565b6100fb6100f63660046107d9565b610263565b005b348015610108575f5ffd5b506100a7610117366004610802565b6103f2565b348015610127575f5ffd5b506100fb61043e565b34801561013b575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561016b575f5ffd5b5061014861017a366004610717565b610451565b34801561018a575f5ffd5b506100fb610199366004610842565b6104c1565b3480156101a9575f5ffd5b506100fb6101b83660046106f7565b61061c565b5f6101c6610659565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b60605f604051806020016101fd906106d4565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061024a90839083906080016108f8565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061028457506003546001600160a01b0316155b156102f35760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610301835f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b03821661036b5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b1580156103d5575f5ffd5b505af11580156103e7573d5f5f3e3d5ffd5b505050505050505050565b5f6103fb610659565b50600280546001600160a01b039485166001600160a01b031991821617909155600380549385169382169390931790925560048054919093169116179055600190565b610446610659565b61044f5f610685565b565b5f5f61045d84846101ea565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105355760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084016102ea565b5f610543845f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b0382166105ad5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105e5939216918d918d918d918d9101610914565b5f604051808303815f87803b1580156105fc575f5ffd5b505af115801561060e573d5f5f3e3d5ffd5b505050505050505050505050565b610624610659565b6001600160a01b03811661064d57604051631e4fbdf760e01b81525f60048201526024016102ea565b61065681610685565b50565b5f546001600160a01b0316331461044f5760405163118cdaa760e01b81523360048201526024016102ea565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098a83390190565b80356001600160a01b03811681146101e5575f5ffd5b5f60208284031215610707575f5ffd5b610710826106e1565b9392505050565b5f5f60408385031215610728575f5ffd5b82359150610738602084016106e1565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60608284031215610786575f5ffd5b6040516060810181811067ffffffffffffffff821117156107b557634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156107ea575f5ffd5b6107f48484610776565b9150610738606084016106e1565b5f5f5f60608486031215610814575f5ffd5b61081d846106e1565b925061082b602085016106e1565b9150610839604085016106e1565b90509250925092565b5f5f5f5f5f60c08688031215610856575f5ffd5b853567ffffffffffffffff81111561086c575f5ffd5b8601601f8101881361087c575f5ffd5b803567ffffffffffffffff811115610892575f5ffd5b8860208284010111156108a3575f5ffd5b6020918201965094506108b99088908801610776565b92506108c7608087016106e1565b91506108d560a087016106e1565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61090c61090683866108e1565b846108e1565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096e60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a26469706673582212203606601acb0b023e36c60b268a0307ecd89114117ed619c689865d43a46264bf64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":4,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":4,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0xb3bffb44bbbc1b9286aa8f0bab7a66442023d5bfc55f50cbb8b62a31e4fb6a89"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0xb3bffb44bbbc1b9286aa8f0bab7a66442023d5bfc55f50cbb8b62a31e4fb6a89","networkInteractionId":1,"receipt":{"blockHash":"0x5b23d8fc20bde85d3b96dee221303839cc81828d8fb42e57faf2207147d43acf","blockNumber":76930215,"logs":[{"address":"0xB8c0750e889afB95342d634b3AD99944b9525505","data":"0x","logIndex":1556,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1557,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000b8c0750e889afb95342d634b3ad99944b9525505","0xb1479d7f5dfd9da0029a798b27f617354f0aeca1c622cb19c1f7fe6bd9fc5bc1"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xB8c0750e889afB95342d634b3AD99944b9525505","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xB8c0750e889afB95342d634b3AD99944b9525505","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"initializeConfig","futureId":"PortalFactoryModule#PortalFactory.initializeConfig","strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteraction":{"data":"0x52982f3b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xB8c0750e889afB95342d634b3AD99944b9525505","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":5,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":5,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x0e50ce40f3f35cfba48ed714c966e73c91babdec3ae513c8a31c5fb27feb6d7b"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","hash":"0x0e50ce40f3f35cfba48ed714c966e73c91babdec3ae513c8a31c5fb27feb6d7b","networkInteractionId":1,"receipt":{"blockHash":"0x7b7256107dd7c666749641bbff816527fd09c3b69592ba65f99654f8bc579d8c","blockNumber":76930222,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactoryModule#PortalFactory","type":"WIPE_APPLY"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076687374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016bc7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":8,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":8,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x493eeb98a0972cf2a30350237bdedd9eb91b51805f25e5b0d4b73976142fa548"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x493eeb98a0972cf2a30350237bdedd9eb91b51805f25e5b0d4b73976142fa548","networkInteractionId":1,"receipt":{"blockHash":"0x1d8bad7c36ca0a154c1199341e32f9346422df16743ed845fa244fa56670133d","blockNumber":77744952,"logs":[{"address":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","data":"0x","logIndex":583,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":584,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000baef1916444145c7101b63a6ca5acc9aba39a99c","0x424e4b9db5d95a27499fbc0588f9e21c9c6eab4cae98df46601e5284d9e6f6c8"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"PortalFactoryModule#PortalFactory.updateConfig","strategy":"create2","strategyConfig":{"salt":"0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":9,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":9,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x8f44febdea82a786976b352e9d098c0ebba31c56e711fef856374bbb474f8dba"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","hash":"0x8f44febdea82a786976b352e9d098c0ebba31c56e711fef856374bbb474f8dba","networkInteractionId":1,"receipt":{"blockHash":"0xaa6a2ed3a168f73c0ef2b4580a9e0a1f71a606148aef22a85e68b0236e2431da","blockNumber":77744960,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":15,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":15,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0xca0631dc7dfea5b96eccb03762e3c65b4b52d6e63204cba7bd29081b508c36de"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","hash":"0xca0631dc7dfea5b96eccb03762e3c65b4b52d6e63204cba7bd29081b508c36de","networkInteractionId":1,"receipt":{"blockHash":"0x9ca5d9fc413628d14fff627a748acecf122c3ebc83aac9f6d2702cd21c0460ef","blockNumber":79646241,"logs":[{"address":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","data":"0x","logIndex":317,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":318,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000000e25ecebf24a7bde1655ded9630a3e75a75df6bd","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0","nameOrIndex":"newContract","result":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xca0631dc7dfea5b96eccb03762e3c65b4b52d6e63204cba7bd29081b508c36de","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":16,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":16,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x8b58974c8566324c186174e40d05ac05f7fba43051af3d0385672fccbbee3c82"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x8b58974c8566324c186174e40d05ac05f7fba43051af3d0385672fccbbee3c82","networkInteractionId":1,"receipt":{"blockHash":"0x74a23f6868ce40a85feffcbed8c3a2cd73c6fa736dbd85f0533f01f4a35fa1ea","blockNumber":79646250,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001ee77f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":19,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":19,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x884ec32fd27187d2434856c5c0325298583aecd01b8f9185f72c09f261e3779e"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","hash":"0x884ec32fd27187d2434856c5c0325298583aecd01b8f9185f72c09f261e3779e","networkInteractionId":1,"receipt":{"blockHash":"0x9020d9d7194470caf4cfb79a33a2f4c7b5d1387b40cb4d1bc321cebd3d2b22f1","blockNumber":83729755,"logs":[{"address":"0xb10abCB62f50DefF589754db1d9B548eF808B101","data":"0x","logIndex":137,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":138,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000b10abcb62f50deff589754db1d9b548ef808b101","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V2","nameOrIndex":"newContract","result":"0xb10abCB62f50DefF589754db1d9B548eF808B101","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x884ec32fd27187d2434856c5c0325298583aecd01b8f9185f72c09f261e3779e","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#ReadEvent_PortalFactory_V2"],"futureId":"PortalFactory#PortalFactory_ContractAt_V2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","dependencies":["PortalFactory#PortalFactory_ContractAt_V2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xb10abCB62f50DefF589754db1d9B548eF808B101","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":20,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":20,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0xdada4122254177509555011afd8030d3aa88296b415840cc3bbccedb2fe1677b"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","hash":"0xdada4122254177509555011afd8030d3aa88296b415840cc3bbccedb2fe1677b","networkInteractionId":1,"receipt":{"blockHash":"0xdd9c8f2e285faf9264d2ec0814334ac035b2541d7d7db6ae186c583f4c2eb144","blockNumber":83729766,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V3","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f597f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":21,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":21,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x8fad0ccfdd4abcd855a5e13af0aad6dcc76189cf439ce921599fbde0acc9223c"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","hash":"0x8fad0ccfdd4abcd855a5e13af0aad6dcc76189cf439ce921599fbde0acc9223c","networkInteractionId":1,"receipt":{"blockHash":"0xa28bd6ccc0781e730b0ec9af14af40ce7cbb5ebfb42711c16474fd7813930533","blockNumber":84267884,"logs":[{"address":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","data":"0x","logIndex":607,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":608,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000c20a3681b8fa35a68479de698e65a6403b8031de","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_V3","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V3","nameOrIndex":"newContract","result":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x8fad0ccfdd4abcd855a5e13af0aad6dcc76189cf439ce921599fbde0acc9223c","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_V3","contractAddress":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_V3","PortalFactory#ReadEvent_PortalFactory_V3"],"futureId":"PortalFactory#PortalFactory_V3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_V3","contractAddress":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","dependencies":["PortalFactory#PortalFactory_V3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteractionId":1,"nonce":22,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteractionId":1,"nonce":22,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x0f0e642d6d9be14f3c5cb5dc36949af04126fb9da43ca9d41004f292e15d1358"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","hash":"0x0f0e642d6d9be14f3c5cb5dc36949af04126fb9da43ca9d41004f292e15d1358","networkInteractionId":1,"receipt":{"blockHash":"0x2d629200690b8841935eb8b1bd7eae3c93f140ed5e7e9a393b79c2e2fac18ff9","blockNumber":84267892,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V4","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f407f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":23,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":23,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x04e8adeb51e1d12a9f56abc39ba8819f390fa1356ee429639f77ec16d975af6e"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","hash":"0x04e8adeb51e1d12a9f56abc39ba8819f390fa1356ee429639f77ec16d975af6e","networkInteractionId":1,"receipt":{"blockHash":"0x858615e84bc33b6bb7edc73c069414b367283ea748b63d3f6e98966cf9c34522","blockNumber":84317450,"logs":[{"address":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","data":"0x","logIndex":103,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":104,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000009f3f6bd0067596fd05abca1a6a7d1298d6603730","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V4","nameOrIndex":"newContract","result":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x04e8adeb51e1d12a9f56abc39ba8819f390fa1356ee429639f77ec16d975af6e","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#ReadEvent_PortalFactory_V4"],"futureId":"PortalFactory#PortalFactory_V4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","dependencies":["PortalFactory#PortalFactory_V4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":24,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":24,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x5853ad0e83bb999d19c7c02bed9dff9e371c85c90e4d3633d6707e0eeb6ee8e3"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","hash":"0x5853ad0e83bb999d19c7c02bed9dff9e371c85c90e4d3633d6707e0eeb6ee8e3","networkInteractionId":1,"receipt":{"blockHash":"0xce11485c9516ccd3f25ca27dc50d9121a29546af8d758b92d615373b1b1f3b67","blockNumber":84317459,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f607f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":25,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":25,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0xeed8142df50c77083c9e9ba4b438b54d1db61c7704fa89b42162bb6358a83e41"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xeed8142df50c77083c9e9ba4b438b54d1db61c7704fa89b42162bb6358a83e41","networkInteractionId":1,"receipt":{"blockHash":"0x20d63f62d006d128737a8bd28d6ae3ab063d733568e7e636e2779fc05b90a67a","blockNumber":84646793,"logs":[{"address":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","data":"0x","logIndex":573,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":574,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000008a2560cee62d17ef542e8eb6b349c45b02120522","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xeed8142df50c77083c9e9ba4b438b54d1db61c7704fa89b42162bb6358a83e41","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":26,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":26,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x756d8e3c6e2e8d8799c85fb1588fa786692fdf279fbb45da2d9850edde609763"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x756d8e3c6e2e8d8799c85fb1588fa786692fdf279fbb45da2d9850edde609763","networkInteractionId":1,"receipt":{"blockHash":"0x248e518479147061acd032c389531b459d62f207605cb3e47981cca09006f758","blockNumber":84646801,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":29,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":29,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x7cf5ea7664a1042d97b64991e51689258d2336810f541a075ab7cd73ec751bac"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x7cf5ea7664a1042d97b64991e51689258d2336810f541a075ab7cd73ec751bac","networkInteractionId":1,"receipt":{"blockHash":"0x66bf78327f25c77375ce9474d30f9453501ea76bd2efd1dd50fcfb05e81ea1b9","blockNumber":85061885,"logs":[{"address":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","data":"0x","logIndex":337,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":338,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x00000000000000000000000072d356b815974ea1b8d49823a46294fc38ba41df","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x7cf5ea7664a1042d97b64991e51689258d2336810f541a075ab7cd73ec751bac","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":30,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":30,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0xd682052c3e058e8b9de4ce5ea33f20cf3a9fda6d694f1bba573a8f3edd7888bc"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xd682052c3e058e8b9de4ce5ea33f20cf3a9fda6d694f1bba573a8f3edd7888bc","networkInteractionId":1,"receipt":{"blockHash":"0x7b88736d734a24b70d0630290ab546bba14009044a8c22d96f7269f0dc950b52","blockNumber":85061894,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":39,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":39,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0x89f52ccb4828c931327ba84636a84b1b8eb4db2e2b35e7024cc7638e1f323fac"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x89f52ccb4828c931327ba84636a84b1b8eb4db2e2b35e7024cc7638e1f323fac","networkInteractionId":1,"receipt":{"blockHash":"0xb4bcfc704675a51a6e2dab8cacaa73a63237184c30b230748f07a009fbac189d","blockNumber":86370689,"logs":[{"address":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","data":"0x","logIndex":351,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":352,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000007125ed21e90a790090245748a47753f3be54ccb3","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x89f52ccb4828c931327ba84636a84b1b8eb4db2e2b35e7024cc7638e1f323fac","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":40,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":40,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50000000"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50000000"}},"hash":"0xb592055008393e1281ee7e5c28e3b8ccc3cf052be40e10cdc061c3b666599625"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xb592055008393e1281ee7e5c28e3b8ccc3cf052be40e10cdc061c3b666599625","networkInteractionId":1,"receipt":{"blockHash":"0x7197f563d13d64a08cce93bbc58d41bfbdaa259afd31bfd8884cb5c3b5501a62","blockNumber":86370697,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/artifacts/LegacyErc20PortalModule#LegacyErc20Portal.json b/ignition/deployments/staging_ethereum/artifacts/LegacyErc20PortalModule#LegacyErc20Portal.json
deleted file mode 100644
index bc966cd..0000000
--- a/ignition/deployments/staging_ethereum/artifacts/LegacyErc20PortalModule#LegacyErc20Portal.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "LegacyErc20Portal",
- "sourceName": "contracts/smart-account/LegacyErc20Portal.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "shieldFullBalance",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506102ae8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c806376aa03131461002d575b5f5ffd5b61004061003b366004610230565b610042565b005b6001600160a01b038216158061007457506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b156100c65760405162461bcd60e51b815260206004820152601b60248201527f43616e277420736869656c64206e617469766520746f6b656e732e000000000060448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561010c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101309190610261565b9050801561014c5761014c6001600160a01b0383168483610152565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526101a49084906101a9565b505050565b5f5f60205f8451602086015f885af1806101c8576040513d5f823e3d81fd5b50505f513d915081156101df5780600114156101ec565b6001600160a01b0384163b155b1561014c57604051635274afe760e01b81526001600160a01b03851660048201526024016100bd565b80356001600160a01b038116811461022b575f5ffd5b919050565b5f5f60408385031215610241575f5ffd5b61024a83610215565b915061025860208401610215565b90509250929050565b5f60208284031215610271575f5ffd5b505191905056fea2646970667358221220a66b352200d9c0ae9a61c2a349822214d0d08d4dcd06c935124c21b8031a023b64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c806376aa03131461002d575b5f5ffd5b61004061003b366004610230565b610042565b005b6001600160a01b038216158061007457506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b156100c65760405162461bcd60e51b815260206004820152601b60248201527f43616e277420736869656c64206e617469766520746f6b656e732e000000000060448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561010c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101309190610261565b9050801561014c5761014c6001600160a01b0383168483610152565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526101a49084906101a9565b505050565b5f5f60205f8451602086015f885af1806101c8576040513d5f823e3d81fd5b50505f513d915081156101df5780600114156101ec565b6001600160a01b0384163b155b1561014c57604051635274afe760e01b81526001600160a01b03851660048201526024016100bd565b80356001600160a01b038116811461022b575f5ffd5b919050565b5f5f60408385031215610241575f5ffd5b61024a83610215565b915061025860208401610215565b90509250929050565b5f60208284031215610271575f5ffd5b505191905056fea2646970667358221220a66b352200d9c0ae9a61c2a349822214d0d08d4dcd06c935124c21b8031a023b64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/smart-account/LegacyErc20Portal.sol",
- "buildInfoId": "solc-0_8_28-9d688d27861cfefec6e3bf0f509038d1d16848f4"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/artifacts/LegacyPortalModule#LegacyPortal.json b/ignition/deployments/staging_ethereum/artifacts/LegacyPortalModule#LegacyPortal.json
deleted file mode 100644
index 82b3e2f..0000000
--- a/ignition/deployments/staging_ethereum/artifacts/LegacyPortalModule#LegacyPortal.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "LegacyPortal",
- "sourceName": "contracts/smart-account/LegacyPortal.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_owner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "EthTransferFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "Unauthorized",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "shieldFullBalance",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x60a0604052348015600e575f5ffd5b506040516103a13803806103a1833981016040819052602b91603b565b6001600160a01b03166080526066565b5f60208284031215604a575f5ffd5b81516001600160a01b0381168114605f575f5ffd5b9392505050565b60805161032461007d5f395f604d01526103245ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c806376aa03131461002d575b5f5ffd5b61004061003b3660046102a6565b610042565b005b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461008a576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038216158015906100bf57506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610150576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561010a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061012e91906102d7565b9050801561014a5761014a6001600160a01b03831684836101cc565b50505050565b4780156101c7575f826001600160a01b0316826040515f6040518083038185875af1925050503d805f81146101a0576040519150601f19603f3d011682016040523d82523d5f602084013e6101a5565b606091505b505090508061014a57604051630db2c7f160e31b815260040160405180910390fd5b505050565b604080516001600160a01b03841660248201526044808201849052825180830390910181526064909101909152602080820180516001600160e01b031663a9059cbb60e01b17815282516101c793879390925f9283929183919082885af18061023a576040513d5f823e3d81fd5b50505f513d9150811561025157806001141561025e565b6001600160a01b0384163b155b1561014a57604051635274afe760e01b81526001600160a01b038516600482015260240160405180910390fd5b80356001600160a01b03811681146102a1575f5ffd5b919050565b5f5f604083850312156102b7575f5ffd5b6102c08361028b565b91506102ce6020840161028b565b90509250929050565b5f602082840312156102e7575f5ffd5b505191905056fea264697066735822122008cdfe2278939225c9e889576deafd5639c68bf096ae682a065350bdbd25ec3d64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c806376aa03131461002d575b5f5ffd5b61004061003b3660046102a6565b610042565b005b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461008a576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038216158015906100bf57506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610150576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561010a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061012e91906102d7565b9050801561014a5761014a6001600160a01b03831684836101cc565b50505050565b4780156101c7575f826001600160a01b0316826040515f6040518083038185875af1925050503d805f81146101a0576040519150601f19603f3d011682016040523d82523d5f602084013e6101a5565b606091505b505090508061014a57604051630db2c7f160e31b815260040160405180910390fd5b505050565b604080516001600160a01b03841660248201526044808201849052825180830390910181526064909101909152602080820180516001600160e01b031663a9059cbb60e01b17815282516101c793879390925f9283929183919082885af18061023a576040513d5f823e3d81fd5b50505f513d9150811561025157806001141561025e565b6001600160a01b0384163b155b1561014a57604051635274afe760e01b81526001600160a01b038516600482015260240160405180910390fd5b80356001600160a01b03811681146102a1575f5ffd5b919050565b5f5f604083850312156102b7575f5ffd5b6102c08361028b565b91506102ce6020840161028b565b90509250929050565b5f602082840312156102e7575f5ffd5b505191905056fea264697066735822122008cdfe2278939225c9e889576deafd5639c68bf096ae682a065350bdbd25ec3d64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "657": [
- {
- "length": 32,
- "start": 77
- }
- ]
- },
- "inputSourceName": "project/contracts/smart-account/LegacyPortal.sol",
- "buildInfoId": "solc-0_8_28-ca86d1f3a3cfddbecee0a19cd2d75118fd9daa7c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/artifacts/PortalFactory#CreateX.json b/ignition/deployments/staging_ethereum/artifacts/PortalFactory#CreateX.json
deleted file mode 100644
index 5d6f263..0000000
--- a/ignition/deployments/staging_ethereum/artifacts/PortalFactory#CreateX.json
+++ /dev/null
@@ -1,906 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "FailedContractCreation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedContractInitialisation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedEtherTransfer",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidNonceValue",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidSalt",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "Create3ProxyContractCreation",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreateClone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "bytecode": "0x",
- "deployedBytecode": "0x",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/staging_ethereum/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/staging_ethereum/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json b/ignition/deployments/staging_ethereum/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
deleted file mode 100644
index 6dc459e..0000000
--- a/ignition/deployments/staging_ethereum/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
+++ /dev/null
@@ -1,357 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/artifacts/PortalFactory#PortalFactory_V3.json b/ignition/deployments/staging_ethereum/artifacts/PortalFactory#PortalFactory_V3.json
deleted file mode 100644
index 0e873ff..0000000
--- a/ignition/deployments/staging_ethereum/artifacts/PortalFactory#PortalFactory_V3.json
+++ /dev/null
@@ -1,367 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/artifacts/PortalFactory#PortalFactory_V4.json b/ignition/deployments/staging_ethereum/artifacts/PortalFactory#PortalFactory_V4.json
deleted file mode 100644
index a7b61e5..0000000
--- a/ignition/deployments/staging_ethereum/artifacts/PortalFactory#PortalFactory_V4.json
+++ /dev/null
@@ -1,367 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/artifacts/PortalFactory#PortalFactory_V5.json b/ignition/deployments/staging_ethereum/artifacts/PortalFactory#PortalFactory_V5.json
deleted file mode 100644
index cd211a6..0000000
--- a/ignition/deployments/staging_ethereum/artifacts/PortalFactory#PortalFactory_V5.json
+++ /dev/null
@@ -1,382 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForLiFiBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/artifacts/PortalFactoryModule#PortalFactory.json b/ignition/deployments/staging_ethereum/artifacts/PortalFactoryModule#PortalFactory.json
deleted file mode 100644
index 467c840..0000000
--- a/ignition/deployments/staging_ethereum/artifacts/PortalFactoryModule#PortalFactory.json
+++ /dev/null
@@ -1,256 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json b/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json
deleted file mode 100644
index 8a2c60d..0000000
--- a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external onlyOnce {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json b/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
deleted file mode 100644
index 272c9d5..0000000
--- a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
deleted file mode 100644
index 4b57fc4..0000000
--- a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/devenv/ICreateX.sol": {
- "content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json b/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
deleted file mode 100644
index 156f127..0000000
--- a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n // TODO: Emit shielding failed and if that event is detected in the simulation, then we will mark the shielding as failed.\n return; // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
deleted file mode 100644
index 6ea1fae..0000000
--- a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-9d688d27861cfefec6e3bf0f509038d1d16848f4.json b/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-9d688d27861cfefec6e3bf0f509038d1d16848f4.json
deleted file mode 100644
index 4c82f59..0000000
--- a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-9d688d27861cfefec6e3bf0f509038d1d16848f4.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-9d688d27861cfefec6e3bf0f509038d1d16848f4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/smart-account/LegacyErc20Portal.sol": "project/contracts/smart-account/LegacyErc20Portal.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/smart-account/LegacyErc20Portal.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\ncontract LegacyErc20Portal {\n using SafeERC20 for IERC20;\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n function shieldFullBalance(address tokenAddress, address portalAddress) external {\n if (tokenAddress == address(0) || tokenAddress == NATIVE_ETH) {\n revert(\"Can't shield native tokens.\");\n }\n\n IERC20 token = IERC20(tokenAddress);\n\n uint256 balance = token.balanceOf(address(this));\n\n if (balance > 0) {\n token.safeTransfer(portalAddress, balance);\n }\n }\n}"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-a1ec8ae54ec3c3e75deb5eb53ae32bde7c84db32.json b/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-a1ec8ae54ec3c3e75deb5eb53ae32bde7c84db32.json
deleted file mode 100644
index 3744963..0000000
--- a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-a1ec8ae54ec3c3e75deb5eb53ae32bde7c84db32.json
+++ /dev/null
@@ -1,81 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-a1ec8ae54ec3c3e75deb5eb53ae32bde7c84db32",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n constructor(uint256 ownerHash) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress = curvyVault.getTokenAddress(note.token);\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function initializeConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function updateLifiDiamondAddress(address lifiDiamondAddress) external onlyOwner returns (bool) {\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function getCreationCode(uint256 ownerHash) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(bytes calldata bridgeData, CurvyTypes.Note memory note, address tokenAddress) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(\n address indexed from,\n address indexed to,\n uint256 token_id,\n uint256 amount\n );\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(\n CurvyTypes.MetaTransactionType metaTransactionType,\n uint96 fee\n );\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(\n CurvyTypes.MetaTransaction calldata metaTransaction\n ) external;\n function transfer(\n CurvyTypes.MetaTransaction calldata metaTransaction,\n bytes memory signature\n ) external;\n function deposit(\n address tokenAddress,\n address to,\n uint256 amount,\n uint256 gasSponsorshipAmount\n ) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json b/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json
deleted file mode 100644
index 26ef1c9..0000000
--- a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function initializeConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function updateLifiDiamondAddress(address lifiDiamondAddress) external onlyOwner returns (bool) {\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json b/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
deleted file mode 100644
index e4ce59c..0000000
--- a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-ca86d1f3a3cfddbecee0a19cd2d75118fd9daa7c.json b/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-ca86d1f3a3cfddbecee0a19cd2d75118fd9daa7c.json
deleted file mode 100644
index 892a25b..0000000
--- a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-ca86d1f3a3cfddbecee0a19cd2d75118fd9daa7c.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ca86d1f3a3cfddbecee0a19cd2d75118fd9daa7c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/smart-account/LegacyPortal.sol": "project/contracts/smart-account/LegacyPortal.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/smart-account/LegacyPortal.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\ncontract LegacyPortal {\n using SafeERC20 for IERC20;\n\n address internal constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n address internal immutable owner;\n\n error Unauthorized();\n error EthTransferFailed();\n\n constructor(address _owner) {\n owner = _owner;\n }\n\n modifier onlyOwner() {\n if (msg.sender != owner) {\n revert Unauthorized();\n }\n _;\n }\n\n function shieldFullBalance(address tokenAddress, address portalAddress) external onlyOwner{\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20 token = IERC20(tokenAddress);\n\n uint256 balance = token.balanceOf(address(this));\n\n if (balance > 0) {\n token.safeTransfer(portalAddress, balance);\n }\n } else {\n uint256 balance = address(this).balance;\n\n if (balance > 0) {\n (bool success, ) = portalAddress.call{ value: balance }(\"\");\n\n if (!success) {\n revert EthTransferFailed();\n }\n }\n }\n }\n}"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json b/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
deleted file mode 100644
index 7489326..0000000
--- a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note) external;\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is purely the ABI-encoded struct\n * (e.g., it was encoded using abi.encode(bridgeData))\n */\n function _decodeBridgeDataStruct(bytes calldata bridgeCallData) internal pure returns (LiFiBridgeData memory) {\n return abi.decode(bridgeCallData, (LiFiBridgeData));\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, address sendingAssetId, uint256 amount) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (sendingAssetId != address(0) && sendingAssetId != NATIVE_ETH) {\n IERC20 token = IERC20(sendingAssetId);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, note.amount);\n }\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeDataStruct(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, amount);\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, amount, bridgeData);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json b/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json
deleted file mode 100644
index 2ee23a8..0000000
--- a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency) external;\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is purely the ABI-encoded struct\n * (e.g., it was encoded using abi.encode(bridgeData))\n */\n function _decodeBridgeDataStruct(bytes calldata bridgeCallData) internal pure returns (LiFiBridgeData memory) {\n return abi.decode(bridgeCallData, (LiFiBridgeData));\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency ) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, note.amount,currency );\n }\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeDataStruct(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, amount,currency );\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json b/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
deleted file mode 100644
index 2d07272..0000000
--- a/ignition/deployments/staging_ethereum/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency) external;\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency ) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, note.amount,currency );\n }\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, amount,currency );\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/deployed_addresses.json b/ignition/deployments/staging_ethereum/deployed_addresses.json
deleted file mode 100644
index 872a6ca..0000000
--- a/ignition/deployments/staging_ethereum/deployed_addresses.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "PortalFactory#PortalFactory": "0x7125Ed21e90A790090245748A47753F3BE54Ccb3"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_ethereum/journal.jsonl b/ignition/deployments/staging_ethereum/journal.jsonl
deleted file mode 100644
index f1c9a1a..0000000
--- a/ignition/deployments/staging_ethereum/journal.jsonl
+++ /dev/null
@@ -1,146 +0,0 @@
-
-{"chainId":1,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"LegacyPortalModule#LegacyPortal","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"LegacyPortal","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"LegacyPortalModule#LegacyPortal","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"LegacyPortalModule#LegacyPortal","networkInteraction":{"data":"0x60a0604052348015600e575f5ffd5b506040516103a13803806103a1833981016040819052602b91603b565b6001600160a01b03166080526066565b5f60208284031215604a575f5ffd5b81516001600160a01b0381168114605f575f5ffd5b9392505050565b60805161032461007d5f395f604d01526103245ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c806376aa03131461002d575b5f5ffd5b61004061003b3660046102a6565b610042565b005b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461008a576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038216158015906100bf57506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610150576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561010a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061012e91906102d7565b9050801561014a5761014a6001600160a01b03831684836101cc565b50505050565b4780156101c7575f826001600160a01b0316826040515f6040518083038185875af1925050503d805f81146101a0576040519150601f19603f3d011682016040523d82523d5f602084013e6101a5565b606091505b505090508061014a57604051630db2c7f160e31b815260040160405180910390fd5b505050565b604080516001600160a01b03841660248201526044808201849052825180830390910181526064909101909152602080820180516001600160e01b031663a9059cbb60e01b17815282516101c793879390925f9283929183919082885af18061023a576040513d5f823e3d81fd5b50505f513d9150811561025157806001141561025e565b6001600160a01b0384163b155b1561014a57604051635274afe760e01b81526001600160a01b038516600482015260240160405180910390fd5b80356001600160a01b03811681146102a1575f5ffd5b919050565b5f5f604083850312156102b7575f5ffd5b6102c08361028b565b91506102ce6020840161028b565b90509250929050565b5f602082840312156102e7575f5ffd5b505191905056fea264697066735822122008cdfe2278939225c9e889576deafd5639c68bf096ae682a065350bdbd25ec3d64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"LegacyPortalModule#LegacyPortal","networkInteractionId":1,"nonce":46,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"LegacyPortalModule#LegacyPortal","networkInteractionId":1,"nonce":46,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"148984519"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"3"}},"hash":"0x02ced73e821410dd523e34083ed06258fc5017b5d96a60b9c39a68bd79d9a3a4"},"type":"TRANSACTION_SEND"}
-{"futureId":"LegacyPortalModule#LegacyPortal","hash":"0x02ced73e821410dd523e34083ed06258fc5017b5d96a60b9c39a68bd79d9a3a4","networkInteractionId":1,"receipt":{"blockHash":"0x51fa5accc2a7338be4907ae393a193a401d6f712f3b4fd341783003d2ff44f9b","blockNumber":24224994,"contractAddress":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"LegacyPortalModule#LegacyPortal","result":{"address":"0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076686d696861696c6f20616e642076616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016c67f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116a63803806116a683398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611564806101425f395ff3fe608060405260043610610084575f3560e01c8063715018a611610057578063715018a61461011c5780638da5cb5b14610130578063d465ea5814610160578063efc44aa61461017f578063f2fde38b1461019e575f5ffd5b80633942b0ad1461008857806343398648146100bc578063485907d8146100e857806352982f3b146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a23660046106f7565b6101bd565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610717565b6101ea565b6040516100b39190610741565b6100fb6100f63660046107d9565b610263565b005b348015610108575f5ffd5b506100a7610117366004610802565b6103f2565b348015610127575f5ffd5b506100fb61043e565b34801561013b575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561016b575f5ffd5b5061014861017a366004610717565b610451565b34801561018a575f5ffd5b506100fb610199366004610842565b6104c1565b3480156101a9575f5ffd5b506100fb6101b83660046106f7565b61061c565b5f6101c6610659565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b60605f604051806020016101fd906106d4565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061024a90839083906080016108f8565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061028457506003546001600160a01b0316155b156102f35760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610301835f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b03821661036b5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b1580156103d5575f5ffd5b505af11580156103e7573d5f5f3e3d5ffd5b505050505050505050565b5f6103fb610659565b50600280546001600160a01b039485166001600160a01b031991821617909155600380549385169382169390931790925560048054919093169116179055600190565b610446610659565b61044f5f610685565b565b5f5f61045d84846101ea565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105355760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084016102ea565b5f610543845f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b0382166105ad5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105e5939216918d918d918d918d9101610914565b5f604051808303815f87803b1580156105fc575f5ffd5b505af115801561060e573d5f5f3e3d5ffd5b505050505050505050505050565b610624610659565b6001600160a01b03811661064d57604051631e4fbdf760e01b81525f60048201526024016102ea565b61065681610685565b50565b5f546001600160a01b0316331461044f5760405163118cdaa760e01b81523360048201526024016102ea565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098a83390190565b80356001600160a01b03811681146101e5575f5ffd5b5f60208284031215610707575f5ffd5b610710826106e1565b9392505050565b5f5f60408385031215610728575f5ffd5b82359150610738602084016106e1565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60608284031215610786575f5ffd5b6040516060810181811067ffffffffffffffff821117156107b557634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156107ea575f5ffd5b6107f48484610776565b9150610738606084016106e1565b5f5f5f60608486031215610814575f5ffd5b61081d846106e1565b925061082b602085016106e1565b9150610839604085016106e1565b90509250925092565b5f5f5f5f5f60c08688031215610856575f5ffd5b853567ffffffffffffffff81111561086c575f5ffd5b8601601f8101881361087c575f5ffd5b803567ffffffffffffffff811115610892575f5ffd5b8860208284010111156108a3575f5ffd5b6020918201965094506108b99088908801610776565b92506108c7608087016106e1565b91506108d560a087016106e1565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61090c61090683866108e1565b846108e1565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096e60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a26469706673582212203606601acb0b023e36c60b268a0307ecd89114117ed619c689865d43a46264bf64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":74,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":74,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"118887945"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"11"}},"hash":"0x5c1b814d4b01dc70c90bc0e36c3b942bb8c9851fe51232ffa85c408c177d4c63"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x5c1b814d4b01dc70c90bc0e36c3b942bb8c9851fe51232ffa85c408c177d4c63","networkInteractionId":1,"receipt":{"blockHash":"0x77e658312f07603c8d43133d930fecfcd8685c5943bf89df932f35a43654e41f","blockNumber":24296806,"logs":[{"address":"0xB8c0750e889afB95342d634b3AD99944b9525505","data":"0x","logIndex":890,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":891,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000b8c0750e889afb95342d634b3ad99944b9525505","0xb1479d7f5dfd9da0029a798b27f617354f0aeca1c622cb19c1f7fe6bd9fc5bc1"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xB8c0750e889afB95342d634b3AD99944b9525505","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xB8c0750e889afB95342d634b3AD99944b9525505","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"initializeConfig","futureId":"PortalFactoryModule#PortalFactory.initializeConfig","strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteraction":{"data":"0x52982f3b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xB8c0750e889afB95342d634b3AD99944b9525505","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":75,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":75,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"130130041"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"11"}},"hash":"0x029156c651f22b73b433e3b73e3f1ad4c93f7c3cff8d5072ed6d0e8d9f1f18c5"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","hash":"0x029156c651f22b73b433e3b73e3f1ad4c93f7c3cff8d5072ed6d0e8d9f1f18c5","networkInteractionId":1,"receipt":{"blockHash":"0x342c26fd75644448d626745c6ef23876acd07fc65df0a2fc30ad4244ee1dae1c","blockNumber":24296811,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactoryModule#PortalFactory","type":"WIPE_APPLY"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076687374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016bc7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":80,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","type":"WIPE_APPLY"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076687374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016bc7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":80,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":80,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"923770938"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"52300"}},"hash":"0xc21bc740b68408a7d6dc0b280a7a20fd7ecf5347bed3b9475bafe465636e7153"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0xc21bc740b68408a7d6dc0b280a7a20fd7ecf5347bed3b9475bafe465636e7153","networkInteractionId":1,"receipt":{"blockHash":"0xd82ca929b4db8b049e69626d6dee4a007ce9292575277f8c09cd18f33c7c7e60","blockNumber":24327325,"logs":[{"address":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","data":"0x","logIndex":875,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":876,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000baef1916444145c7101b63a6ca5acc9aba39a99c","0x424e4b9db5d95a27499fbc0588f9e21c9c6eab4cae98df46601e5284d9e6f6c8"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"PortalFactoryModule#PortalFactory.updateConfig","strategy":"create2","strategyConfig":{"salt":"0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":81,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":81,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"866991718"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"52300"}},"hash":"0x2033f37c11e6f8b1ed6984dbc14cebb2acf68b6f8426d79bfb54c249fc0cb5c6"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","hash":"0x2033f37c11e6f8b1ed6984dbc14cebb2acf68b6f8426d79bfb54c249fc0cb5c6","networkInteractionId":1,"receipt":{"blockHash":"0xdb414a966817f3141449f913556801b808bc1029c7d12b42bc6910128c2097e7","blockNumber":24327331,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":92,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":92,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"962133592"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"500000"}},"hash":"0x5b2c7e5bea74fd58c71a01a14d4deffbe83d5b86c7c031a4967a502580c8fb65"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","hash":"0x5b2c7e5bea74fd58c71a01a14d4deffbe83d5b86c7c031a4967a502580c8fb65","networkInteractionId":1,"receipt":{"blockHash":"0x6d4b2e4fa54b79f6ae2a4812a1f2158c431acf11534f0d920870c840c8a8ad8d","blockNumber":24398203,"logs":[{"address":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","data":"0x","logIndex":706,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":707,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000000e25ecebf24a7bde1655ded9630a3e75a75df6bd","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0","nameOrIndex":"newContract","result":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x5b2c7e5bea74fd58c71a01a14d4deffbe83d5b86c7c031a4967a502580c8fb65","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":93,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":93,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1024794314"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"500000"}},"hash":"0xc7af9a4216e7167fa609b03ee849273fc0109f9d373811cbd788f43660564535"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xc7af9a4216e7167fa609b03ee849273fc0109f9d373811cbd788f43660564535","networkInteractionId":1,"receipt":{"blockHash":"0xdbe7904f6ba7024202218d5541b73c65b6c74dbac6f0308cf1b92463eff713b4","blockNumber":24398208,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001ee77f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":102,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":102,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"81324576"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"9238"}},"hash":"0x492d4d7574726db79d77487e61f39308bfaf6f6b0459dd09e3f3f5e9e2ea475e"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","hash":"0x492d4d7574726db79d77487e61f39308bfaf6f6b0459dd09e3f3f5e9e2ea475e","networkInteractionId":1,"receipt":{"blockHash":"0x843ad66d305234d6b5bbe963122d3899676ff887eb893424b3156515df5daf0e","blockNumber":24550657,"logs":[{"address":"0xb10abCB62f50DefF589754db1d9B548eF808B101","data":"0x","logIndex":544,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":545,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000b10abcb62f50deff589754db1d9b548ef808b101","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V2","nameOrIndex":"newContract","result":"0xb10abCB62f50DefF589754db1d9B548eF808B101","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x492d4d7574726db79d77487e61f39308bfaf6f6b0459dd09e3f3f5e9e2ea475e","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#ReadEvent_PortalFactory_V2"],"futureId":"PortalFactory#PortalFactory_ContractAt_V2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","dependencies":["PortalFactory#PortalFactory_ContractAt_V2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xb10abCB62f50DefF589754db1d9B548eF808B101","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":103,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":103,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"91800127"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"6399"}},"hash":"0xc7b506f933215978e819072f0b64bda77ac3be39714ff6000ca002d640bc93f2"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","hash":"0xc7b506f933215978e819072f0b64bda77ac3be39714ff6000ca002d640bc93f2","networkInteractionId":1,"receipt":{"blockHash":"0x6dcd0b9c8848590e4d83729051b95301446527926a9a5b1a8dadfe6e6999ce28","blockNumber":24550662,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V3","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f597f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":104,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":104,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2560393036"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x2d4227631cb0cf9dffd3eb74912f7ecc213065099589560de3549f2c36be9941"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","hash":"0x2d4227631cb0cf9dffd3eb74912f7ecc213065099589560de3549f2c36be9941","networkInteractionId":1,"receipt":{"blockHash":"0x2d64161d291c7c1edb91b18ef4cb7e62a6f2375b1729d4136a649ce6d67f634d","blockNumber":24570744,"logs":[{"address":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","data":"0x","logIndex":1237,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1238,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000c20a3681b8fa35a68479de698e65a6403b8031de","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_V3","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V3","nameOrIndex":"newContract","result":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x2d4227631cb0cf9dffd3eb74912f7ecc213065099589560de3549f2c36be9941","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_V3","contractAddress":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_V3","PortalFactory#ReadEvent_PortalFactory_V3"],"futureId":"PortalFactory#PortalFactory_V3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_V3","contractAddress":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","dependencies":["PortalFactory#PortalFactory_V3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteractionId":1,"nonce":105,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteractionId":1,"nonce":105,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2298454262"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x7902206a7c61f4ba15a0a4d13fca28fae7f0d2e12b4e81065c36d802a97d0935"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","hash":"0x7902206a7c61f4ba15a0a4d13fca28fae7f0d2e12b4e81065c36d802a97d0935","networkInteractionId":1,"receipt":{"blockHash":"0x93c444daf3aac949be5267427cb38b0f6d3b5bb890cb2b5e815e3a615108d8ef","blockNumber":24570750,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V4","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f407f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":106,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":106,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"177422291"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"15"}},"hash":"0x372749bb32ecdac75c14c962cc404590b1fa88ee53a1b8696bc1a8c45b3d3733"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","hash":"0x372749bb32ecdac75c14c962cc404590b1fa88ee53a1b8696bc1a8c45b3d3733","networkInteractionId":1,"receipt":{"blockHash":"0x6f31f9fa3e6ec635f892c8eee37ad9387c04dd443c48a094c64d076113c66d47","blockNumber":24572572,"logs":[{"address":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","data":"0x","logIndex":851,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":852,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000009f3f6bd0067596fd05abca1a6a7d1298d6603730","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V4","nameOrIndex":"newContract","result":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x372749bb32ecdac75c14c962cc404590b1fa88ee53a1b8696bc1a8c45b3d3733","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#ReadEvent_PortalFactory_V4"],"futureId":"PortalFactory#PortalFactory_V4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","dependencies":["PortalFactory#PortalFactory_V4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":107,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":107,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"166153469"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"15"}},"hash":"0xa6dca4471351b4e5e069637e190f75f4e9d261e64d5ebeca18086bc1512208a7"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","hash":"0xa6dca4471351b4e5e069637e190f75f4e9d261e64d5ebeca18086bc1512208a7","networkInteractionId":1,"receipt":{"blockHash":"0x022dca29b3c4a0b742b1516f3095ee932087ac242ca85fa6c37442c10103fdf2","blockNumber":24572577,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f607f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":111,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":111,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"707973536"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"175000"}},"hash":"0xfd25029e506e827783c5f094a13db2a70793779fe10e4d3fde4391fc99eca786"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xfd25029e506e827783c5f094a13db2a70793779fe10e4d3fde4391fc99eca786","networkInteractionId":1,"receipt":{"blockHash":"0x02b3a3e7a62449d78ed70668307774f4f0052692d8116c8d749f23407c5204d2","blockNumber":24584888,"logs":[{"address":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","data":"0x","logIndex":418,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":419,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000008a2560cee62d17ef542e8eb6b349c45b02120522","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xfd25029e506e827783c5f094a13db2a70793779fe10e4d3fde4391fc99eca786","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":112,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":112,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"670797356"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"175000"}},"hash":"0x67d04b2078a38a6a48778048963136108aad3a1f986c62956f6806a188c3f594"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x67d04b2078a38a6a48778048963136108aad3a1f986c62956f6806a188c3f594","networkInteractionId":1,"receipt":{"blockHash":"0x45a860b113761e5cee1e1bdf93e7021b9233c020ace18af094a2df04307181cd","blockNumber":24584896,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":119,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":119,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"672836068"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"150000"}},"hash":"0x694b5169ddac29db3df29857af26b7d4b14fab057c70e65900b7d4cbc25f7577"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x694b5169ddac29db3df29857af26b7d4b14fab057c70e65900b7d4cbc25f7577","networkInteractionId":1,"receipt":{"blockHash":"0xf58f63f0443252f8b51d8df1287c3375de5b38c36a8c36286fdf5dec33fadc65","blockNumber":24599962,"logs":[{"address":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","data":"0x","logIndex":1102,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1103,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x00000000000000000000000072d356b815974ea1b8d49823a46294fc38ba41df","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x694b5169ddac29db3df29857af26b7d4b14fab057c70e65900b7d4cbc25f7577","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":120,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":120,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"770997198"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"150000"}},"hash":"0xec280773d0c954405a12c29314fd072de1bde2946bb236ab88e856dacfb1e8bc"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xec280773d0c954405a12c29314fd072de1bde2946bb236ab88e856dacfb1e8bc","networkInteractionId":1,"receipt":{"blockHash":"0x64a08488861c1bf6991d002aecb309ff155568f84045f8b7cb56ccacfd493f68","blockNumber":24599968,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":137,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":137,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1632083613"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"453855"}},"hash":"0x23189d46ec0c2af79d5296217d721aeeecab3753df333cf706be5fcc5a3824cb"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x23189d46ec0c2af79d5296217d721aeeecab3753df333cf706be5fcc5a3824cb","networkInteractionId":1,"receipt":{"blockHash":"0x228f50ea8d0357a0c49aaa374d6674605184a8112f03b40715dfce9173d66d24","blockNumber":24649190,"logs":[{"address":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","data":"0x","logIndex":1070,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1071,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000007125ed21e90a790090245748a47753f3be54ccb3","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x23189d46ec0c2af79d5296217d721aeeecab3753df333cf706be5fcc5a3824cb","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":138,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":138,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1534691641"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"453855"}},"hash":"0xea467182e98a071a96121db2610cf1c2a4e1ff261cf6b2f9485c2ae423f2470b"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xea467182e98a071a96121db2610cf1c2a4e1ff261cf6b2f9485c2ae423f2470b","networkInteractionId":1,"receipt":{"blockHash":"0xaf1d49cfa504efc11c1c5bde8d12d984e78d7de668cde269b4e44896ca9fe529","blockNumber":24649195,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/staging_gnosis/artifacts/PortalFactory#CreateX.json b/ignition/deployments/staging_gnosis/artifacts/PortalFactory#CreateX.json
deleted file mode 100644
index 5d6f263..0000000
--- a/ignition/deployments/staging_gnosis/artifacts/PortalFactory#CreateX.json
+++ /dev/null
@@ -1,906 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "FailedContractCreation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedContractInitialisation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedEtherTransfer",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidNonceValue",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidSalt",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "Create3ProxyContractCreation",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreateClone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "bytecode": "0x",
- "deployedBytecode": "0x",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_gnosis/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/staging_gnosis/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/staging_gnosis/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_gnosis/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json b/ignition/deployments/staging_gnosis/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
deleted file mode 100644
index 6dc459e..0000000
--- a/ignition/deployments/staging_gnosis/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
+++ /dev/null
@@ -1,357 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_gnosis/artifacts/PortalFactory#PortalFactory_V4.json b/ignition/deployments/staging_gnosis/artifacts/PortalFactory#PortalFactory_V4.json
deleted file mode 100644
index a7b61e5..0000000
--- a/ignition/deployments/staging_gnosis/artifacts/PortalFactory#PortalFactory_V4.json
+++ /dev/null
@@ -1,367 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_gnosis/artifacts/PortalFactoryModule#PortalFactory.json b/ignition/deployments/staging_gnosis/artifacts/PortalFactoryModule#PortalFactory.json
deleted file mode 100644
index 467c840..0000000
--- a/ignition/deployments/staging_gnosis/artifacts/PortalFactoryModule#PortalFactory.json
+++ /dev/null
@@ -1,256 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json b/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
deleted file mode 100644
index 272c9d5..0000000
--- a/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
deleted file mode 100644
index 4b57fc4..0000000
--- a/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/devenv/ICreateX.sol": {
- "content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json b/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
deleted file mode 100644
index 156f127..0000000
--- a/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n // TODO: Emit shielding failed and if that event is detected in the simulation, then we will mark the shielding as failed.\n return; // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
deleted file mode 100644
index 6ea1fae..0000000
--- a/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json b/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json
deleted file mode 100644
index 26ef1c9..0000000
--- a/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function initializeConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function updateLifiDiamondAddress(address lifiDiamondAddress) external onlyOwner returns (bool) {\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json b/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
deleted file mode 100644
index e4ce59c..0000000
--- a/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json b/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
deleted file mode 100644
index 7489326..0000000
--- a/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note) external;\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is purely the ABI-encoded struct\n * (e.g., it was encoded using abi.encode(bridgeData))\n */\n function _decodeBridgeDataStruct(bytes calldata bridgeCallData) internal pure returns (LiFiBridgeData memory) {\n return abi.decode(bridgeCallData, (LiFiBridgeData));\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, address sendingAssetId, uint256 amount) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (sendingAssetId != address(0) && sendingAssetId != NATIVE_ETH) {\n IERC20 token = IERC20(sendingAssetId);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, note.amount);\n }\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeDataStruct(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, amount);\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, amount, bridgeData);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json b/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
deleted file mode 100644
index 2d07272..0000000
--- a/ignition/deployments/staging_gnosis/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency) external;\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency ) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, note.amount,currency );\n }\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, amount,currency );\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_gnosis/deployed_addresses.json b/ignition/deployments/staging_gnosis/deployed_addresses.json
deleted file mode 100644
index 872a6ca..0000000
--- a/ignition/deployments/staging_gnosis/deployed_addresses.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "PortalFactory#PortalFactory": "0x7125Ed21e90A790090245748A47753F3BE54Ccb3"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_gnosis/journal.jsonl b/ignition/deployments/staging_gnosis/journal.jsonl
deleted file mode 100644
index e0879d5..0000000
--- a/ignition/deployments/staging_gnosis/journal.jsonl
+++ /dev/null
@@ -1,158 +0,0 @@
-
-{"chainId":100,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076686d696861696c6f20616e642076616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016c67f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116a63803806116a683398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611564806101425f395ff3fe608060405260043610610084575f3560e01c8063715018a611610057578063715018a61461011c5780638da5cb5b14610130578063d465ea5814610160578063efc44aa61461017f578063f2fde38b1461019e575f5ffd5b80633942b0ad1461008857806343398648146100bc578063485907d8146100e857806352982f3b146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a23660046106f7565b6101bd565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610717565b6101ea565b6040516100b39190610741565b6100fb6100f63660046107d9565b610263565b005b348015610108575f5ffd5b506100a7610117366004610802565b6103f2565b348015610127575f5ffd5b506100fb61043e565b34801561013b575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561016b575f5ffd5b5061014861017a366004610717565b610451565b34801561018a575f5ffd5b506100fb610199366004610842565b6104c1565b3480156101a9575f5ffd5b506100fb6101b83660046106f7565b61061c565b5f6101c6610659565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b60605f604051806020016101fd906106d4565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061024a90839083906080016108f8565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061028457506003546001600160a01b0316155b156102f35760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610301835f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b03821661036b5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b1580156103d5575f5ffd5b505af11580156103e7573d5f5f3e3d5ffd5b505050505050505050565b5f6103fb610659565b50600280546001600160a01b039485166001600160a01b031991821617909155600380549385169382169390931790925560048054919093169116179055600190565b610446610659565b61044f5f610685565b565b5f5f61045d84846101ea565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105355760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084016102ea565b5f610543845f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b0382166105ad5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105e5939216918d918d918d918d9101610914565b5f604051808303815f87803b1580156105fc575f5ffd5b505af115801561060e573d5f5f3e3d5ffd5b505050505050505050505050565b610624610659565b6001600160a01b03811661064d57604051631e4fbdf760e01b81525f60048201526024016102ea565b61065681610685565b50565b5f546001600160a01b0316331461044f5760405163118cdaa760e01b81523360048201526024016102ea565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098a83390190565b80356001600160a01b03811681146101e5575f5ffd5b5f60208284031215610707575f5ffd5b610710826106e1565b9392505050565b5f5f60408385031215610728575f5ffd5b82359150610738602084016106e1565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60608284031215610786575f5ffd5b6040516060810181811067ffffffffffffffff821117156107b557634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156107ea575f5ffd5b6107f48484610776565b9150610738606084016106e1565b5f5f5f60608486031215610814575f5ffd5b61081d846106e1565b925061082b602085016106e1565b9150610839604085016106e1565b90509250925092565b5f5f5f5f5f60c08688031215610856575f5ffd5b853567ffffffffffffffff81111561086c575f5ffd5b8601601f8101881361087c575f5ffd5b803567ffffffffffffffff811115610892575f5ffd5b8860208284010111156108a3575f5ffd5b6020918201965094506108b99088908801610776565b92506108c7608087016106e1565b91506108d560a087016106e1565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61090c61090683866108e1565b846108e1565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096e60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a26469706673582212203606601acb0b023e36c60b268a0307ecd89114117ed619c689865d43a46264bf64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":2,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":2,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"95"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"69"}},"hash":"0x5df09eded10646c692ba7550a698efeca0dd388a637a07c2868742e30cd437e1"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x5df09eded10646c692ba7550a698efeca0dd388a637a07c2868742e30cd437e1","networkInteractionId":1,"receipt":{"blockHash":"0x60caf2b39e3884cb6d810348f52b340ebe16414d7f9b6dd46074906b88ec7896","blockNumber":44306146,"logs":[{"address":"0xB8c0750e889afB95342d634b3AD99944b9525505","data":"0x","logIndex":168,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":169,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000b8c0750e889afb95342d634b3ad99944b9525505","0xb1479d7f5dfd9da0029a798b27f617354f0aeca1c622cb19c1f7fe6bd9fc5bc1"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xB8c0750e889afB95342d634b3AD99944b9525505","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xB8c0750e889afB95342d634b3AD99944b9525505","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"initializeConfig","futureId":"PortalFactoryModule#PortalFactory.initializeConfig","strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteraction":{"data":"0x52982f3b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xB8c0750e889afB95342d634b3AD99944b9525505","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":3,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":3,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"95"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"69"}},"hash":"0x5fab746c008c144b0a6317ab725ece2b8595dbf74f4e9c978aa1f1c1d08fac51"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","hash":"0x5fab746c008c144b0a6317ab725ece2b8595dbf74f4e9c978aa1f1c1d08fac51","networkInteractionId":1,"receipt":{"blockHash":"0xe8bdcaeb9a3cd9e09cc6020814b97c09c0a6ebde3c0551510dbfad8c363ed553","blockNumber":44306152,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactoryModule#PortalFactory","type":"WIPE_APPLY"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076687374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016bc7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":6,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":6,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"5520"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"174"}},"hash":"0x51ee42039ef2dd6f668dcf2fc3c4234dfe4be497ea2d49173b0b36fdd29660f0"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x51ee42039ef2dd6f668dcf2fc3c4234dfe4be497ea2d49173b0b36fdd29660f0","networkInteractionId":1,"receipt":{"blockHash":"0xa4201310a1dfb80573ae3eca7c69e1698d489fd0b5ca642d1774293419d056fe","blockNumber":44375674,"logs":[{"address":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","data":"0x","logIndex":158,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":159,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000baef1916444145c7101b63a6ca5acc9aba39a99c","0x424e4b9db5d95a27499fbc0588f9e21c9c6eab4cae98df46601e5284d9e6f6c8"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"PortalFactoryModule#PortalFactory.updateConfig","strategy":"create2","strategyConfig":{"salt":"0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":7,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":7,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"5216"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"524"}},"hash":"0xd9f2ecc56d83db3fc3bd5c87f389b99dbe6852610c2a7b1bb58becea4a6a0e59"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","hash":"0xd9f2ecc56d83db3fc3bd5c87f389b99dbe6852610c2a7b1bb58becea4a6a0e59","networkInteractionId":1,"receipt":{"blockHash":"0x33cb53de0b4ee43c73cfedfed7b2fd32d23779bb6c82413240c1c3345af05d4a","blockNumber":44375679,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":14,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":14,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"135"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"69"}},"hash":"0xd4567638db8c09c82bb4cac2a60322a5d73b4232aad9138164d456dd2d5cb111"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"type":"ONCHAIN_INTERACTION_BUMP_FEES"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":14,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":14,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"151"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"75"}},"hash":"0xd687fe92c55f6275568da74ccf3104cfd3f2b5301f38a29b010dc52c3b4a9fed"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"type":"ONCHAIN_INTERACTION_BUMP_FEES"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":14,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":14,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"166"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"82"}},"hash":"0x3ff8a1f9d72feb1ce469bedd52db10018c59841f2929e7ed832275f84fadc331"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"type":"ONCHAIN_INTERACTION_BUMP_FEES"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":14,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":14,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"182"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"90"}},"hash":"0x3d95776426d92569079e1ce847489187983fd795d7b33c8dc952b7c104e54bb4"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"type":"ONCHAIN_INTERACTION_BUMP_FEES"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":14,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":14,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"200"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"99"}},"hash":"0xe5e9ea3359909dc002ee9a4a7c02bb90320296dda9a97fd370d4e438fc262245"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"type":"ONCHAIN_INTERACTION_TIMEOUT"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","type":"WIPE_APPLY"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ecebf24a7bde1655ded9630a3e75a75df6bd","contractName":"PortalFactory","dependencies":[],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ecebf24a7bde1655ded9630a3e75a75df6bd","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x0e25ecebf24a7bde1655ded9630a3e75a75df6bd","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":15,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":15,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1507"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"69"}},"hash":"0x1ab80507156f6cef7be057c69f4186ea1381fcbcc89b0dfd45dff9781897d6cb"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x1ab80507156f6cef7be057c69f4186ea1381fcbcc89b0dfd45dff9781897d6cb","networkInteractionId":1,"receipt":{"blockHash":"0x742bf86f92023cf5d163fe1756d5fbcdcaffd40b42c7b4d0bd92536dcab8b08e","blockNumber":44542434,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001ee77f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":19,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":19,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"5430150898"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1500000000"}},"hash":"0x57788516d91b634d32bcfd17195eca4c5745946b825d9f6ad2c00bd619a9297d"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","hash":"0x57788516d91b634d32bcfd17195eca4c5745946b825d9f6ad2c00bd619a9297d","networkInteractionId":1,"receipt":{"blockHash":"0x1bebe57c318eaf788ed6e37f10f8529e4d13223e952ce30f1ececc492d8cd66b","blockNumber":44899848,"logs":[{"address":"0xb10abCB62f50DefF589754db1d9B548eF808B101","data":"0x","logIndex":26,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":27,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000b10abcb62f50deff589754db1d9b548ef808b101","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V2","nameOrIndex":"newContract","result":"0xb10abCB62f50DefF589754db1d9B548eF808B101","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x57788516d91b634d32bcfd17195eca4c5745946b825d9f6ad2c00bd619a9297d","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#ReadEvent_PortalFactory_V2"],"futureId":"PortalFactory#PortalFactory_ContractAt_V2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","dependencies":["PortalFactory#PortalFactory_ContractAt_V2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xb10abCB62f50DefF589754db1d9B548eF808B101","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":20,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":20,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"6337965165"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1519845853"}},"hash":"0x94d330bbf5a6f0ba5d0707d1af919140e72274e21fc0a1035c89801003c87802"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","hash":"0x94d330bbf5a6f0ba5d0707d1af919140e72274e21fc0a1035c89801003c87802","networkInteractionId":1,"receipt":{"blockHash":"0x1478b4aab08f9bd3a84a8b8b994241d8ec7001ec471a2c3ea99e04a592766393","blockNumber":44899857,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V3","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f597f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":21,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":21,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"5019733033"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"982437859"}},"hash":"0x96f3e071380b7003a4512dd39e343a29fa9f7236161137bb2fc386d3be7f4d2d"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"type":"ONCHAIN_INTERACTION_BUMP_FEES"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":21,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":21,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"5521706336"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1488748121"}},"hash":"0x4b62f0eca27faed1b753bbc1e62f4bdff9d00e457dbefeb4962640cac9b1f017"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"type":"ONCHAIN_INTERACTION_BUMP_FEES"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":21,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":21,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"6073876969"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1637622933"}},"hash":"0xdb42fa257c4bc6631188da3382ef2a34c7c20baa5d0abfa7877d92f842067f3b"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"type":"ONCHAIN_INTERACTION_BUMP_FEES"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":21,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":21,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"6681264665"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1801385226"}},"hash":"0x477bc3af25505c48c5b98ba8c3a652abc68c11a7c37e6409a96d4c3e8f53abd6"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"type":"ONCHAIN_INTERACTION_BUMP_FEES"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":21,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":21,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"7349391131"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1981523748"}},"hash":"0xb1de9ce6b95963092b320a3a8c48c2548bcd73d117014d08e8d0586f43f2a540"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"type":"ONCHAIN_INTERACTION_TIMEOUT"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","type":"WIPE_APPLY"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V4","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f407f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":22,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":22,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"4352111686"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1500000000"}},"hash":"0x36862ae53685e22bfe0508716b36d2014142941ff48aa3e0bbe6a1fb8fd90ce5"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","hash":"0x36862ae53685e22bfe0508716b36d2014142941ff48aa3e0bbe6a1fb8fd90ce5","networkInteractionId":1,"receipt":{"blockHash":"0x8ce5bba3c1b25bddf6726981756b1b73fdbe4b09690967104d9bb1ef2826c171","blockNumber":44951426,"logs":[{"address":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","data":"0x","logIndex":1244,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1245,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000009f3f6bd0067596fd05abca1a6a7d1298d6603730","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V4","nameOrIndex":"newContract","result":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x36862ae53685e22bfe0508716b36d2014142941ff48aa3e0bbe6a1fb8fd90ce5","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#ReadEvent_PortalFactory_V4"],"futureId":"PortalFactory#PortalFactory_V4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","dependencies":["PortalFactory#PortalFactory_V4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":23,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":23,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"4740562040"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1500000000"}},"hash":"0x5b5e78d79818f83baea6bdc2d338cb93e79a797e3d1cb37fafbfb3df9d81d34d"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","hash":"0x5b5e78d79818f83baea6bdc2d338cb93e79a797e3d1cb37fafbfb3df9d81d34d","networkInteractionId":1,"receipt":{"blockHash":"0xeff8f6b1e9cb8f2d435983fb15e3460fe7aab177e9e99a8f24b691dc04f54aac","blockNumber":44951434,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f607f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":24,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":24,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"5504878518"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1250000000"}},"hash":"0x54d78487037f8b2698e0e4bec165532231ef8ffeb64bb319593add07c80fc09b"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"type":"ONCHAIN_INTERACTION_BUMP_FEES"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":24,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":24,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"9544376480"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1375000000"}},"hash":"0xa44286ca06b3348c66d8e7db411c17e4583f6854d30eceececadda8889db8809"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"type":"ONCHAIN_INTERACTION_BUMP_FEES"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":24,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":24,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"10498814128"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1512500000"}},"hash":"0xebd24186e1b079004c68e97bd0e3256c72ade01928bc2d6680f15b6fbad3d6f5"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"type":"ONCHAIN_INTERACTION_BUMP_FEES"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":24,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":24,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"11548695540"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1663750000"}},"hash":"0xc232a7525273d99d9c356e4f775fc8b2668dd61d6eaa50d05ff43de91961a329"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"type":"ONCHAIN_INTERACTION_BUMP_FEES"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":24,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":24,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"12703565094"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1830125000"}},"hash":"0x5a3b06b81bf623804c3cc9bdacf0eabadc37517a9510e49b877b433dc49dfea1"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"type":"ONCHAIN_INTERACTION_TIMEOUT"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f607f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":27,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":27,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"89"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"69"}},"hash":"0xb4d0f91d9adc63caf2346e666944a09156753191cbcacaf3ae428a35caadb2a5"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xb4d0f91d9adc63caf2346e666944a09156753191cbcacaf3ae428a35caadb2a5","networkInteractionId":1,"receipt":{"blockHash":"0x976b79fbbf4b07a35b032a30708971b795de424b9d55cb9ca20ad90aedca23e2","blockNumber":45016697,"logs":[{"address":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","data":"0x","logIndex":34,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":35,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x00000000000000000000000072d356b815974ea1b8d49823a46294fc38ba41df","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xb4d0f91d9adc63caf2346e666944a09156753191cbcacaf3ae428a35caadb2a5","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":28,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":28,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"89"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"69"}},"hash":"0x8bbf8181d2b97bd5d72d7c1ac6bfcc0177c064af50d848d42fb20cb52c6197ce"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x8bbf8181d2b97bd5d72d7c1ac6bfcc0177c064af50d848d42fb20cb52c6197ce","networkInteractionId":1,"receipt":{"blockHash":"0x2858387223057bca141d7110cc67820aa1e7a719472f1c8523bff739a7711aba","blockNumber":45016704,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":36,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":36,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2358"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"76"}},"hash":"0x7dbb801e2f23ea4932018d2841dd4e54193be5b8dff11c670f9fe7e3b52e0be1"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x7dbb801e2f23ea4932018d2841dd4e54193be5b8dff11c670f9fe7e3b52e0be1","networkInteractionId":1,"receipt":{"blockHash":"0x7a4c14606be00c1dbfb87b60282f2683a6aaf37d93406c2fe238469b4bd89e5f","blockNumber":45130316,"logs":[{"address":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","data":"0x","logIndex":202,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":203,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000007125ed21e90a790090245748a47753f3be54ccb3","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x7dbb801e2f23ea4932018d2841dd4e54193be5b8dff11c670f9fe7e3b52e0be1","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":37,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":37,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2440"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"76"}},"hash":"0x7931241c9960a0f4f2b376319663bb4633d66d9889b299e58d94f6df904746d6"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x7931241c9960a0f4f2b376319663bb4633d66d9889b299e58d94f6df904746d6","networkInteractionId":1,"receipt":{"blockHash":"0xf47b4eb1a9e754403f5dc0aa80110ad6bfc29023f996c21cd62f1529747d4b15","blockNumber":45130321,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/artifacts/PortalFactory#CreateX.json b/ignition/deployments/staging_linea/artifacts/PortalFactory#CreateX.json
deleted file mode 100644
index 5d6f263..0000000
--- a/ignition/deployments/staging_linea/artifacts/PortalFactory#CreateX.json
+++ /dev/null
@@ -1,906 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "FailedContractCreation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedContractInitialisation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedEtherTransfer",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidNonceValue",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidSalt",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "Create3ProxyContractCreation",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreateClone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "bytecode": "0x",
- "deployedBytecode": "0x",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/staging_linea/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/staging_linea/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json b/ignition/deployments/staging_linea/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
deleted file mode 100644
index 6dc459e..0000000
--- a/ignition/deployments/staging_linea/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
+++ /dev/null
@@ -1,357 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/artifacts/PortalFactory#PortalFactory_V3.json b/ignition/deployments/staging_linea/artifacts/PortalFactory#PortalFactory_V3.json
deleted file mode 100644
index 0e873ff..0000000
--- a/ignition/deployments/staging_linea/artifacts/PortalFactory#PortalFactory_V3.json
+++ /dev/null
@@ -1,367 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/artifacts/PortalFactory#PortalFactory_V4.json b/ignition/deployments/staging_linea/artifacts/PortalFactory#PortalFactory_V4.json
deleted file mode 100644
index a7b61e5..0000000
--- a/ignition/deployments/staging_linea/artifacts/PortalFactory#PortalFactory_V4.json
+++ /dev/null
@@ -1,367 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/artifacts/PortalFactory#PortalFactory_V5.json b/ignition/deployments/staging_linea/artifacts/PortalFactory#PortalFactory_V5.json
deleted file mode 100644
index eaef0d8..0000000
--- a/ignition/deployments/staging_linea/artifacts/PortalFactory#PortalFactory_V5.json
+++ /dev/null
@@ -1,382 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForLiFiBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/artifacts/PortalFactoryModule#PortalFactory.json b/ignition/deployments/staging_linea/artifacts/PortalFactoryModule#PortalFactory.json
deleted file mode 100644
index 467c840..0000000
--- a/ignition/deployments/staging_linea/artifacts/PortalFactoryModule#PortalFactory.json
+++ /dev/null
@@ -1,256 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json b/ignition/deployments/staging_linea/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json
deleted file mode 100644
index 8a2c60d..0000000
--- a/ignition/deployments/staging_linea/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external onlyOnce {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json b/ignition/deployments/staging_linea/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
deleted file mode 100644
index 272c9d5..0000000
--- a/ignition/deployments/staging_linea/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/staging_linea/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
deleted file mode 100644
index 4b57fc4..0000000
--- a/ignition/deployments/staging_linea/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/devenv/ICreateX.sol": {
- "content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json b/ignition/deployments/staging_linea/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
deleted file mode 100644
index 156f127..0000000
--- a/ignition/deployments/staging_linea/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n // TODO: Emit shielding failed and if that event is detected in the simulation, then we will mark the shielding as failed.\n return; // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/staging_linea/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
deleted file mode 100644
index 6ea1fae..0000000
--- a/ignition/deployments/staging_linea/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json b/ignition/deployments/staging_linea/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json
deleted file mode 100644
index 26ef1c9..0000000
--- a/ignition/deployments/staging_linea/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function initializeConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function updateLifiDiamondAddress(address lifiDiamondAddress) external onlyOwner returns (bool) {\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json b/ignition/deployments/staging_linea/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
deleted file mode 100644
index e4ce59c..0000000
--- a/ignition/deployments/staging_linea/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json b/ignition/deployments/staging_linea/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
deleted file mode 100644
index 7489326..0000000
--- a/ignition/deployments/staging_linea/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note) external;\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is purely the ABI-encoded struct\n * (e.g., it was encoded using abi.encode(bridgeData))\n */\n function _decodeBridgeDataStruct(bytes calldata bridgeCallData) internal pure returns (LiFiBridgeData memory) {\n return abi.decode(bridgeCallData, (LiFiBridgeData));\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, address sendingAssetId, uint256 amount) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (sendingAssetId != address(0) && sendingAssetId != NATIVE_ETH) {\n IERC20 token = IERC20(sendingAssetId);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, note.amount);\n }\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeDataStruct(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, amount);\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, amount, bridgeData);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json b/ignition/deployments/staging_linea/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json
deleted file mode 100644
index 2ee23a8..0000000
--- a/ignition/deployments/staging_linea/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency) external;\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is purely the ABI-encoded struct\n * (e.g., it was encoded using abi.encode(bridgeData))\n */\n function _decodeBridgeDataStruct(bytes calldata bridgeCallData) internal pure returns (LiFiBridgeData memory) {\n return abi.decode(bridgeCallData, (LiFiBridgeData));\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency ) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, note.amount,currency );\n }\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeDataStruct(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, amount,currency );\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json b/ignition/deployments/staging_linea/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
deleted file mode 100644
index 2d07272..0000000
--- a/ignition/deployments/staging_linea/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency) external;\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency ) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, note.amount,currency );\n }\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, amount,currency );\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/deployed_addresses.json b/ignition/deployments/staging_linea/deployed_addresses.json
deleted file mode 100644
index 872a6ca..0000000
--- a/ignition/deployments/staging_linea/deployed_addresses.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "PortalFactory#PortalFactory": "0x7125Ed21e90A790090245748A47753F3BE54Ccb3"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_linea/journal.jsonl b/ignition/deployments/staging_linea/journal.jsonl
deleted file mode 100644
index 373251c..0000000
--- a/ignition/deployments/staging_linea/journal.jsonl
+++ /dev/null
@@ -1,136 +0,0 @@
-
-{"chainId":59144,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076686d696861696c6f20616e642076616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016c67f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116a63803806116a683398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611564806101425f395ff3fe608060405260043610610084575f3560e01c8063715018a611610057578063715018a61461011c5780638da5cb5b14610130578063d465ea5814610160578063efc44aa61461017f578063f2fde38b1461019e575f5ffd5b80633942b0ad1461008857806343398648146100bc578063485907d8146100e857806352982f3b146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a23660046106f7565b6101bd565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610717565b6101ea565b6040516100b39190610741565b6100fb6100f63660046107d9565b610263565b005b348015610108575f5ffd5b506100a7610117366004610802565b6103f2565b348015610127575f5ffd5b506100fb61043e565b34801561013b575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561016b575f5ffd5b5061014861017a366004610717565b610451565b34801561018a575f5ffd5b506100fb610199366004610842565b6104c1565b3480156101a9575f5ffd5b506100fb6101b83660046106f7565b61061c565b5f6101c6610659565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b60605f604051806020016101fd906106d4565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061024a90839083906080016108f8565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061028457506003546001600160a01b0316155b156102f35760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610301835f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b03821661036b5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b1580156103d5575f5ffd5b505af11580156103e7573d5f5f3e3d5ffd5b505050505050505050565b5f6103fb610659565b50600280546001600160a01b039485166001600160a01b031991821617909155600380549385169382169390931790925560048054919093169116179055600190565b610446610659565b61044f5f610685565b565b5f5f61045d84846101ea565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105355760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084016102ea565b5f610543845f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b0382166105ad5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105e5939216918d918d918d918d9101610914565b5f604051808303815f87803b1580156105fc575f5ffd5b505af115801561060e573d5f5f3e3d5ffd5b505050505050505050505050565b610624610659565b6001600160a01b03811661064d57604051631e4fbdf760e01b81525f60048201526024016102ea565b61065681610685565b50565b5f546001600160a01b0316331461044f5760405163118cdaa760e01b81523360048201526024016102ea565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098a83390190565b80356001600160a01b03811681146101e5575f5ffd5b5f60208284031215610707575f5ffd5b610710826106e1565b9392505050565b5f5f60408385031215610728575f5ffd5b82359150610738602084016106e1565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60608284031215610786575f5ffd5b6040516060810181811067ffffffffffffffff821117156107b557634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156107ea575f5ffd5b6107f48484610776565b9150610738606084016106e1565b5f5f5f60608486031215610814575f5ffd5b61081d846106e1565b925061082b602085016106e1565b9150610839604085016106e1565b90509250925092565b5f5f5f5f5f60c08688031215610856575f5ffd5b853567ffffffffffffffff81111561086c575f5ffd5b8601601f8101881361087c575f5ffd5b803567ffffffffffffffff811115610892575f5ffd5b8860208284010111156108a3575f5ffd5b6020918201965094506108b99088908801610776565b92506108c7608087016106e1565b91506108d560a087016106e1565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61090c61090683866108e1565b846108e1565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096e60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a26469706673582212203606601acb0b023e36c60b268a0307ecd89114117ed619c689865d43a46264bf64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":2,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":2,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"41904007"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"41903993"}},"hash":"0x921787a422a8710dd2cf2d0c7cdcad0bb0b022f4485356b3771c77c3f4b5d8b9"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x921787a422a8710dd2cf2d0c7cdcad0bb0b022f4485356b3771c77c3f4b5d8b9","networkInteractionId":1,"receipt":{"blockHash":"0xf034e553973af31e05f18b4a3d464fad2d758463014690593dc55f7ff09140b4","blockNumber":28216939,"logs":[{"address":"0xB8c0750e889afB95342d634b3AD99944b9525505","data":"0x","logIndex":1,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":2,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000b8c0750e889afb95342d634b3ad99944b9525505","0xb1479d7f5dfd9da0029a798b27f617354f0aeca1c622cb19c1f7fe6bd9fc5bc1"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xB8c0750e889afB95342d634b3AD99944b9525505","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xB8c0750e889afB95342d634b3AD99944b9525505","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"initializeConfig","futureId":"PortalFactoryModule#PortalFactory.initializeConfig","strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteraction":{"data":"0x52982f3b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xB8c0750e889afB95342d634b3AD99944b9525505","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":3,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":3,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"41904007"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"41903993"}},"hash":"0xe12b9b259bba70e2e42dc3596420d43ba0415e94f571d14d13064522910a0e63"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","hash":"0xe12b9b259bba70e2e42dc3596420d43ba0415e94f571d14d13064522910a0e63","networkInteractionId":1,"receipt":{"blockHash":"0x3c02f0317f66ddd15dbb3fcf4e808f2c60499e437b3bc6082b9864f485d90ffb","blockNumber":28216944,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactoryModule#PortalFactory","type":"WIPE_APPLY"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076687374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016bc7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":6,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":6,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"45000007"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"44999993"}},"hash":"0x63d6e36dc9dc7d64b65947b5c426b47cb214ab844d58a1005d3b193fb1f06723"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x63d6e36dc9dc7d64b65947b5c426b47cb214ab844d58a1005d3b193fb1f06723","networkInteractionId":1,"receipt":{"blockHash":"0x10b3190aeae1cf901fa7b30d80bd8569f64600512aba2fd95eadb592175677ac","blockNumber":28375804,"logs":[{"address":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","data":"0x","logIndex":8,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":9,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000baef1916444145c7101b63a6ca5acc9aba39a99c","0x424e4b9db5d95a27499fbc0588f9e21c9c6eab4cae98df46601e5284d9e6f6c8"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0xde1e598b81620773454588b85d6b5d4eec32573e"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"PortalFactoryModule#PortalFactory.updateConfig","strategy":"create2","strategyConfig":{"salt":"0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de1e598b81620773454588b85d6b5d4eec32573e","id":1,"to":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":7,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":7,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"41904007"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"41903993"}},"hash":"0xdcf2ffbfbd3596c2849e0cc2501f93948eb778b4aed173391d08ac49e21c9316"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","hash":"0xdcf2ffbfbd3596c2849e0cc2501f93948eb778b4aed173391d08ac49e21c9316","networkInteractionId":1,"receipt":{"blockHash":"0x096422d63c7aa0cffde889670bec6eb937619bf2269d67614c046d1fe65a492d","blockNumber":28375809,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":13,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":13,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"94485187"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"94485173"}},"hash":"0x3755911c44552a850ffaba42be6c04114452f7b46de24b064685116c07c032ef"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","hash":"0x3755911c44552a850ffaba42be6c04114452f7b46de24b064685116c07c032ef","networkInteractionId":1,"receipt":{"blockHash":"0x1b176c15269c09b72813c10fbbc7ea971a68c5e2891852a15009a5b31c110deb","blockNumber":28670334,"logs":[{"address":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","data":"0x","logIndex":0,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000000e25ecebf24a7bde1655ded9630a3e75a75df6bd","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0","nameOrIndex":"newContract","result":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x3755911c44552a850ffaba42be6c04114452f7b46de24b064685116c07c032ef","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0xde1e598b81620773454588b85d6b5d4eec32573e"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de1e598b81620773454588b85d6b5d4eec32573e","id":1,"to":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":14,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":14,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"78244085"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"78244071"}},"hash":"0xd23a34222907c31ec32b8cbdd60bb1ca295203034c70839b359589cef28c815d"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xd23a34222907c31ec32b8cbdd60bb1ca295203034c70839b359589cef28c815d","networkInteractionId":1,"receipt":{"blockHash":"0xa422efd77fdc9a6f8431af4517d25c158a7c716e71492609d8dfae9da10672e0","blockNumber":28670339,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001ee77f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":19,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":19,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"42555873"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"42555859"}},"hash":"0x3f1dc45507d18d99c27cc64f3c409353db609c2d1958c4da8e8649666cdfe7c3"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","hash":"0x3f1dc45507d18d99c27cc64f3c409353db609c2d1958c4da8e8649666cdfe7c3","networkInteractionId":1,"receipt":{"blockHash":"0xac3d902a56b47d621de447b6f32cd18eaf658e24bbd6b4054545fbc2122c267a","blockNumber":29264406,"logs":[{"address":"0xb10abCB62f50DefF589754db1d9B548eF808B101","data":"0x","logIndex":0,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000b10abcb62f50deff589754db1d9b548ef808b101","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V2","nameOrIndex":"newContract","result":"0xb10abCB62f50DefF589754db1d9B548eF808B101","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x3f1dc45507d18d99c27cc64f3c409353db609c2d1958c4da8e8649666cdfe7c3","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#ReadEvent_PortalFactory_V2"],"futureId":"PortalFactory#PortalFactory_ContractAt_V2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0xde1e598b81620773454588b85d6b5d4eec32573e"],"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","dependencies":["PortalFactory#PortalFactory_ContractAt_V2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de1e598b81620773454588b85d6b5d4eec32573e","id":1,"to":"0xb10abCB62f50DefF589754db1d9B548eF808B101","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":20,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":20,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"45113787"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"45113773"}},"hash":"0x89614116e84c920e89271043725e7adf07dd76ef54b5356dde9c89c13da4749c"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","hash":"0x89614116e84c920e89271043725e7adf07dd76ef54b5356dde9c89c13da4749c","networkInteractionId":1,"receipt":{"blockHash":"0x1f3fdcd432131fadbbb08e4f61b2a6b90d492f3e777b321df827ef81d1a008a0","blockNumber":29264412,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V3","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f597f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":21,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":21,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"105926647"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"105926633"}},"hash":"0x5bded955febbdf4ccc1874daf3197ffe06c59b6ce7c7c91739c9fb69a1f845ea"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","hash":"0x5bded955febbdf4ccc1874daf3197ffe06c59b6ce7c7c91739c9fb69a1f845ea","networkInteractionId":1,"receipt":{"blockHash":"0xd0c9a6129c65b0399f12602701fe284b067a94bfb3ff80bd87540037123f6e5b","blockNumber":29383013,"logs":[{"address":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","data":"0x","logIndex":0,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000c20a3681b8fa35a68479de698e65a6403b8031de","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_V3","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V3","nameOrIndex":"newContract","result":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x5bded955febbdf4ccc1874daf3197ffe06c59b6ce7c7c91739c9fb69a1f845ea","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_V3","contractAddress":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_V3","PortalFactory#ReadEvent_PortalFactory_V3"],"futureId":"PortalFactory#PortalFactory_V3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0xde1e598b81620773454588b85d6b5d4eec32573e"],"artifactId":"PortalFactory#PortalFactory_V3","contractAddress":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","dependencies":["PortalFactory#PortalFactory_V3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de1e598b81620773454588b85d6b5d4eec32573e","id":1,"to":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteractionId":1,"nonce":22,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteractionId":1,"nonce":22,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"105926647"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"105926633"}},"hash":"0xcb8cb337af4188dea3a90967be842fe55a4a066843e2a9746a6d352c2107c204"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","hash":"0xcb8cb337af4188dea3a90967be842fe55a4a066843e2a9746a6d352c2107c204","networkInteractionId":1,"receipt":{"blockHash":"0x2192a85a58073f5bab64fae79b94af80ae8e8b51c661977090f1da7f1a5de142","blockNumber":29383018,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V4","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f407f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":24,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":24,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"103712414"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"103712400"}},"hash":"0xce4fd11e49e7adbe8ad4df4d3f3d48bacb116adefe99d463c2f4c03673c001dc"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","hash":"0xce4fd11e49e7adbe8ad4df4d3f3d48bacb116adefe99d463c2f4c03673c001dc","networkInteractionId":1,"receipt":{"blockHash":"0xc20c617f35dfc7d1a23d96a74601d5ce2e4f7f5d1f157918d83db472fab18e88","blockNumber":29391878,"logs":[{"address":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","data":"0x","logIndex":0,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000009f3f6bd0067596fd05abca1a6a7d1298d6603730","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V4","nameOrIndex":"newContract","result":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xce4fd11e49e7adbe8ad4df4d3f3d48bacb116adefe99d463c2f4c03673c001dc","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#ReadEvent_PortalFactory_V4"],"futureId":"PortalFactory#PortalFactory_V4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0xde1e598b81620773454588b85d6b5d4eec32573e"],"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","dependencies":["PortalFactory#PortalFactory_V4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de1e598b81620773454588b85d6b5d4eec32573e","id":1,"to":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":25,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":25,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"103712414"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"103712400"}},"hash":"0x2d735e904d8055155dce2f662997d2cb497618247c647dff8522f378340b60a2"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","hash":"0x2d735e904d8055155dce2f662997d2cb497618247c647dff8522f378340b60a2","networkInteractionId":1,"receipt":{"blockHash":"0x6b358c4bb2e8335516fbde6b22f96c1de4a8d6b77beb630c90966572f8cc6a6b","blockNumber":29391884,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f607f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":26,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":26,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"57500023"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"57500009"}},"hash":"0xbb8cb2066da242b72535c379618533cd34407b3597c84187cbacf824a00c75fe"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xbb8cb2066da242b72535c379618533cd34407b3597c84187cbacf824a00c75fe","networkInteractionId":1,"receipt":{"blockHash":"0x4822630a35fba9db8208bcc55602888df242bef70b3297318ebcda7ab51f9d1b","blockNumber":29466099,"logs":[{"address":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","data":"0x","logIndex":0,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000008a2560cee62d17ef542e8eb6b349c45b02120522","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xbb8cb2066da242b72535c379618533cd34407b3597c84187cbacf824a00c75fe","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0xde1e598b81620773454588b85d6b5d4eec32573e"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de1e598b81620773454588b85d6b5d4eec32573e","id":1,"to":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":27,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":27,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"57500023"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"57500009"}},"hash":"0x1c53838a73c6031b3b4e791a37ffb213366342a760bc71334c1866d493202520"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x1c53838a73c6031b3b4e791a37ffb213366342a760bc71334c1866d493202520","networkInteractionId":1,"receipt":{"blockHash":"0xdda4eaeb2960e4992934633ffd332105f9452215f2411601dc4107394d551bfc","blockNumber":29466106,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":30,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":30,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50284807"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50284793"}},"hash":"0xbedc3af04e4cb2c08bbda220babd8cb032bc9ae4b86259d6b6af48a205db1f79"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xbedc3af04e4cb2c08bbda220babd8cb032bc9ae4b86259d6b6af48a205db1f79","networkInteractionId":1,"receipt":{"blockHash":"0x4ddc879595f74bac5814e8f2906155f61c045c774ba93d5970262becdfa533e1","blockNumber":29527076,"logs":[{"address":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","data":"0x","logIndex":3,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":4,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x00000000000000000000000072d356b815974ea1b8d49823a46294fc38ba41df","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xbedc3af04e4cb2c08bbda220babd8cb032bc9ae4b86259d6b6af48a205db1f79","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0xde1e598b81620773454588b85d6b5d4eec32573e"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de1e598b81620773454588b85d6b5d4eec32573e","id":1,"to":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":31,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":31,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"50284807"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"50284793"}},"hash":"0x6ca6c2f79eaa77a8dc2d5519af9f5f16f6931ca1c08f14406a921f8665186418"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x6ca6c2f79eaa77a8dc2d5519af9f5f16f6931ca1c08f14406a921f8665186418","networkInteractionId":1,"receipt":{"blockHash":"0x367976eebe61cc34daeeebe37486e2d3a77a0871ddf6a8d51a72292ee14984c3","blockNumber":29527083,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":47,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":47,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"153530577"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"153530563"}},"hash":"0xb3702c3d37feb7c30a564e16ded352fb7cd0165b5f68f569f57833d72e465bac"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xb3702c3d37feb7c30a564e16ded352fb7cd0165b5f68f569f57833d72e465bac","networkInteractionId":1,"receipt":{"blockHash":"0x9704137b6b712d71af2a6f18d1f034e9d08bd82af5fefdd12dbddee137ce02da","blockNumber":29683590,"logs":[{"address":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","data":"0x","logIndex":0,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000007125ed21e90a790090245748a47753f3be54ccb3","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xb3702c3d37feb7c30a564e16ded352fb7cd0165b5f68f569f57833d72e465bac","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0xde1e598b81620773454588b85d6b5d4eec32573e"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000de1e598b81620773454588b85d6b5d4eec32573e","id":1,"to":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":48,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":48,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"144409178"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"144409164"}},"hash":"0x1a0f64e3064f9b6e1203614d0f5f67511be283085ebd9ad1db1cd49039f0e6ac"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x1a0f64e3064f9b6e1203614d0f5f67511be283085ebd9ad1db1cd49039f0e6ac","networkInteractionId":1,"receipt":{"blockHash":"0x0c1f0ee24efe720ade55b6da1f8727aecc5a31b66aba567d62d04d6f1d3225ca","blockNumber":29683596,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/artifacts/PortalFactory#CreateX.json b/ignition/deployments/staging_optimism/artifacts/PortalFactory#CreateX.json
deleted file mode 100644
index 5d6f263..0000000
--- a/ignition/deployments/staging_optimism/artifacts/PortalFactory#CreateX.json
+++ /dev/null
@@ -1,906 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "FailedContractCreation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedContractInitialisation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedEtherTransfer",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidNonceValue",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidSalt",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "Create3ProxyContractCreation",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreateClone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "bytecode": "0x",
- "deployedBytecode": "0x",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/staging_optimism/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/staging_optimism/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json b/ignition/deployments/staging_optimism/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
deleted file mode 100644
index 6dc459e..0000000
--- a/ignition/deployments/staging_optimism/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
+++ /dev/null
@@ -1,357 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/artifacts/PortalFactory#PortalFactory_V3.json b/ignition/deployments/staging_optimism/artifacts/PortalFactory#PortalFactory_V3.json
deleted file mode 100644
index 0e873ff..0000000
--- a/ignition/deployments/staging_optimism/artifacts/PortalFactory#PortalFactory_V3.json
+++ /dev/null
@@ -1,367 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/artifacts/PortalFactory#PortalFactory_V4.json b/ignition/deployments/staging_optimism/artifacts/PortalFactory#PortalFactory_V4.json
deleted file mode 100644
index a7b61e5..0000000
--- a/ignition/deployments/staging_optimism/artifacts/PortalFactory#PortalFactory_V4.json
+++ /dev/null
@@ -1,367 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/artifacts/PortalFactory#PortalFactory_V5.json b/ignition/deployments/staging_optimism/artifacts/PortalFactory#PortalFactory_V5.json
deleted file mode 100644
index cd211a6..0000000
--- a/ignition/deployments/staging_optimism/artifacts/PortalFactory#PortalFactory_V5.json
+++ /dev/null
@@ -1,382 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForLiFiBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/artifacts/PortalFactoryModule#PortalFactory.json b/ignition/deployments/staging_optimism/artifacts/PortalFactoryModule#PortalFactory.json
deleted file mode 100644
index 467c840..0000000
--- a/ignition/deployments/staging_optimism/artifacts/PortalFactoryModule#PortalFactory.json
+++ /dev/null
@@ -1,256 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json b/ignition/deployments/staging_optimism/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json
deleted file mode 100644
index 8a2c60d..0000000
--- a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external onlyOnce {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json b/ignition/deployments/staging_optimism/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
deleted file mode 100644
index 272c9d5..0000000
--- a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/staging_optimism/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
deleted file mode 100644
index 4b57fc4..0000000
--- a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/devenv/ICreateX.sol": {
- "content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json b/ignition/deployments/staging_optimism/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
deleted file mode 100644
index 156f127..0000000
--- a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n // TODO: Emit shielding failed and if that event is detected in the simulation, then we will mark the shielding as failed.\n return; // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/staging_optimism/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
deleted file mode 100644
index 6ea1fae..0000000
--- a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json b/ignition/deployments/staging_optimism/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json
deleted file mode 100644
index 26ef1c9..0000000
--- a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function initializeConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function updateLifiDiamondAddress(address lifiDiamondAddress) external onlyOwner returns (bool) {\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json b/ignition/deployments/staging_optimism/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
deleted file mode 100644
index e4ce59c..0000000
--- a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json b/ignition/deployments/staging_optimism/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
deleted file mode 100644
index 7489326..0000000
--- a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note) external;\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is purely the ABI-encoded struct\n * (e.g., it was encoded using abi.encode(bridgeData))\n */\n function _decodeBridgeDataStruct(bytes calldata bridgeCallData) internal pure returns (LiFiBridgeData memory) {\n return abi.decode(bridgeCallData, (LiFiBridgeData));\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, address sendingAssetId, uint256 amount) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (sendingAssetId != address(0) && sendingAssetId != NATIVE_ETH) {\n IERC20 token = IERC20(sendingAssetId);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, note.amount);\n }\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeDataStruct(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, amount);\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, amount, bridgeData);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json b/ignition/deployments/staging_optimism/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json
deleted file mode 100644
index 2ee23a8..0000000
--- a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency) external;\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is purely the ABI-encoded struct\n * (e.g., it was encoded using abi.encode(bridgeData))\n */\n function _decodeBridgeDataStruct(bytes calldata bridgeCallData) internal pure returns (LiFiBridgeData memory) {\n return abi.decode(bridgeCallData, (LiFiBridgeData));\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency ) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, note.amount,currency );\n }\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeDataStruct(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, amount,currency );\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json b/ignition/deployments/staging_optimism/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
deleted file mode 100644
index 2d07272..0000000
--- a/ignition/deployments/staging_optimism/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency) external;\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency ) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, note.amount,currency );\n }\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, amount,currency );\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/deployed_addresses.json b/ignition/deployments/staging_optimism/deployed_addresses.json
deleted file mode 100644
index 872a6ca..0000000
--- a/ignition/deployments/staging_optimism/deployed_addresses.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "PortalFactory#PortalFactory": "0x7125Ed21e90A790090245748A47753F3BE54Ccb3"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_optimism/journal.jsonl b/ignition/deployments/staging_optimism/journal.jsonl
deleted file mode 100644
index 9bf04c0..0000000
--- a/ignition/deployments/staging_optimism/journal.jsonl
+++ /dev/null
@@ -1,145 +0,0 @@
-
-{"chainId":10,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076686d696861696c6f20616e642076616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016c67f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116a63803806116a683398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611564806101425f395ff3fe608060405260043610610084575f3560e01c8063715018a611610057578063715018a61461011c5780638da5cb5b14610130578063d465ea5814610160578063efc44aa61461017f578063f2fde38b1461019e575f5ffd5b80633942b0ad1461008857806343398648146100bc578063485907d8146100e857806352982f3b146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a23660046106f7565b6101bd565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610717565b6101ea565b6040516100b39190610741565b6100fb6100f63660046107d9565b610263565b005b348015610108575f5ffd5b506100a7610117366004610802565b6103f2565b348015610127575f5ffd5b506100fb61043e565b34801561013b575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561016b575f5ffd5b5061014861017a366004610717565b610451565b34801561018a575f5ffd5b506100fb610199366004610842565b6104c1565b3480156101a9575f5ffd5b506100fb6101b83660046106f7565b61061c565b5f6101c6610659565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b60605f604051806020016101fd906106d4565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061024a90839083906080016108f8565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061028457506003546001600160a01b0316155b156102f35760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610301835f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b03821661036b5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b1580156103d5575f5ffd5b505af11580156103e7573d5f5f3e3d5ffd5b505050505050505050565b5f6103fb610659565b50600280546001600160a01b039485166001600160a01b031991821617909155600380549385169382169390931790925560048054919093169116179055600190565b610446610659565b61044f5f610685565b565b5f5f61045d84846101ea565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105355760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084016102ea565b5f610543845f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b0382166105ad5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105e5939216918d918d918d918d9101610914565b5f604051808303815f87803b1580156105fc575f5ffd5b505af115801561060e573d5f5f3e3d5ffd5b505050505050505050505050565b610624610659565b6001600160a01b03811661064d57604051631e4fbdf760e01b81525f60048201526024016102ea565b61065681610685565b50565b5f546001600160a01b0316331461044f5760405163118cdaa760e01b81523360048201526024016102ea565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098a83390190565b80356001600160a01b03811681146101e5575f5ffd5b5f60208284031215610707575f5ffd5b610710826106e1565b9392505050565b5f5f60408385031215610728575f5ffd5b82359150610738602084016106e1565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60608284031215610786575f5ffd5b6040516060810181811067ffffffffffffffff821117156107b557634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156107ea575f5ffd5b6107f48484610776565b9150610738606084016106e1565b5f5f5f60608486031215610814575f5ffd5b61081d846106e1565b925061082b602085016106e1565b9150610839604085016106e1565b90509250925092565b5f5f5f5f5f60c08688031215610856575f5ffd5b853567ffffffffffffffff81111561086c575f5ffd5b8601601f8101881361087c575f5ffd5b803567ffffffffffffffff811115610892575f5ffd5b8860208284010111156108a3575f5ffd5b6020918201965094506108b99088908801610776565b92506108c7608087016106e1565b91506108d560a087016106e1565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61090c61090683866108e1565b846108e1565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096e60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a26469706673582212203606601acb0b023e36c60b268a0307ecd89114117ed619c689865d43a46264bf64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":2,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":2,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1089242"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x1d4911ee31628bdec847f4c1c83c594e6a137813ab6c6076daeef9b5292fdd98"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x1d4911ee31628bdec847f4c1c83c594e6a137813ab6c6076daeef9b5292fdd98","networkInteractionId":1,"receipt":{"blockHash":"0x5f30ad7a07b4bfbcb5cf81737610109fa66442a993da2d6b2d9f271671b31cdf","blockNumber":146782284,"logs":[{"address":"0xB8c0750e889afB95342d634b3AD99944b9525505","data":"0x","logIndex":143,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":144,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000b8c0750e889afb95342d634b3ad99944b9525505","0xb1479d7f5dfd9da0029a798b27f617354f0aeca1c622cb19c1f7fe6bd9fc5bc1"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xB8c0750e889afB95342d634b3AD99944b9525505","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xB8c0750e889afB95342d634b3AD99944b9525505","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"initializeConfig","futureId":"PortalFactoryModule#PortalFactory.initializeConfig","strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteraction":{"data":"0x52982f3b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xB8c0750e889afB95342d634b3AD99944b9525505","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":3,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":3,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1089532"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x2a7aeb83262087d190018f40183fe747697ee8baec01739ddec36d1680eb6dab"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","hash":"0x2a7aeb83262087d190018f40183fe747697ee8baec01739ddec36d1680eb6dab","networkInteractionId":1,"receipt":{"blockHash":"0xdfbe29df7ab617d1825231d6dda7e065abf83ac7ce313d80198dbe7b02fb896d","blockNumber":146782289,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactoryModule#PortalFactory","type":"WIPE_APPLY"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076687374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016bc7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":6,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":6,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1006612"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xa6504bb11ee90e870ce40103014c3214cd171461d5742d3006412be8a3e740be"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0xa6504bb11ee90e870ce40103014c3214cd171461d5742d3006412be8a3e740be","networkInteractionId":1,"receipt":{"blockHash":"0xf5f08310c8ee48946f44bced19901a7bb2d3eedd673657cc9d353ee6cd11964c","blockNumber":146965831,"logs":[{"address":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","data":"0x","logIndex":2,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":3,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000baef1916444145c7101b63a6ca5acc9aba39a99c","0x424e4b9db5d95a27499fbc0588f9e21c9c6eab4cae98df46601e5284d9e6f6c8"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"PortalFactoryModule#PortalFactory.updateConfig","strategy":"create2","strategyConfig":{"salt":"0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":7,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":7,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1006648"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x91ae4249a2eb9a54b21ff9bc9037ab3018d4e6c0fcc838b8830230d052fdcf51"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","hash":"0x91ae4249a2eb9a54b21ff9bc9037ab3018d4e6c0fcc838b8830230d052fdcf51","networkInteractionId":1,"receipt":{"blockHash":"0x663e5ff5295a70bd16a3e36b318682e4cd1a50b743f186025cc03964d23c7a6f","blockNumber":146965837,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":15,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":15,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1711478"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x188c6b0f1deb7e65671bf1012c6f6bd8ca74879df491926d166196553b15a0f1"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","hash":"0x188c6b0f1deb7e65671bf1012c6f6bd8ca74879df491926d166196553b15a0f1","networkInteractionId":1,"receipt":{"blockHash":"0x2a23787abbd100f52788ba738b9ac77dbc6e521c2f7162d2144c8a2a4a03a67e","blockNumber":147393759,"logs":[{"address":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","data":"0x","logIndex":124,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":125,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000000e25ecebf24a7bde1655ded9630a3e75a75df6bd","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0","nameOrIndex":"newContract","result":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x188c6b0f1deb7e65671bf1012c6f6bd8ca74879df491926d166196553b15a0f1","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":16,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":16,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1709606"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xf8b43020451287383caefdefeae6910aa74333de9aa68c83895476ab4a7ffb08"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xf8b43020451287383caefdefeae6910aa74333de9aa68c83895476ab4a7ffb08","networkInteractionId":1,"receipt":{"blockHash":"0x85eb90cbc65a971c2f49984802d015a5fb2b045be0d4b88aeb3245c8332ba518","blockNumber":147393765,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001ee77f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":23,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":23,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1001636"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x4a425e4cec9357bc9033ab68b5d12e053d30034b7278c11d475a8cfe05b75962"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","hash":"0x4a425e4cec9357bc9033ab68b5d12e053d30034b7278c11d475a8cfe05b75962","networkInteractionId":1,"receipt":{"blockHash":"0x47a7c82211a42f19877d03b6646dc7438c1d66ce969efb2388ab061155f4be71","blockNumber":148312762,"logs":[{"address":"0xb10abCB62f50DefF589754db1d9B548eF808B101","data":"0x","logIndex":1,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":2,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000b10abcb62f50deff589754db1d9b548ef808b101","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V2","nameOrIndex":"newContract","result":"0xb10abCB62f50DefF589754db1d9B548eF808B101","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x4a425e4cec9357bc9033ab68b5d12e053d30034b7278c11d475a8cfe05b75962","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#ReadEvent_PortalFactory_V2"],"futureId":"PortalFactory#PortalFactory_ContractAt_V2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","dependencies":["PortalFactory#PortalFactory_ContractAt_V2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xb10abCB62f50DefF589754db1d9B548eF808B101","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":24,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":24,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1001630"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xfca26ffe3d0ba70b1991731381813a3261fa59b2ab74a0132c0078e4c45a4ed4"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","hash":"0xfca26ffe3d0ba70b1991731381813a3261fa59b2ab74a0132c0078e4c45a4ed4","networkInteractionId":1,"receipt":{"blockHash":"0x089212cb28d3e6e17f6c392aa9f6112f80acc9542d3f41478b9ec087ada42579","blockNumber":148312768,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V3","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f597f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":25,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":25,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1351594"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xb960c08141f9c87ec1350e5f7eebd4f7bd2cd6c8e168db9b0ba2d27ccb41909b"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","hash":"0xb960c08141f9c87ec1350e5f7eebd4f7bd2cd6c8e168db9b0ba2d27ccb41909b","networkInteractionId":1,"receipt":{"blockHash":"0xf772275d794fa14fe868b1b54ad1f9d4f697b6c396eb0af402f2d8113b79d82e","blockNumber":148433878,"logs":[{"address":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","data":"0x","logIndex":216,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":217,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000c20a3681b8fa35a68479de698e65a6403b8031de","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_V3","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V3","nameOrIndex":"newContract","result":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xb960c08141f9c87ec1350e5f7eebd4f7bd2cd6c8e168db9b0ba2d27ccb41909b","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_V3","contractAddress":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_V3","PortalFactory#ReadEvent_PortalFactory_V3"],"futureId":"PortalFactory#PortalFactory_V3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_V3","contractAddress":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","dependencies":["PortalFactory#PortalFactory_V3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteractionId":1,"nonce":26,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteractionId":1,"nonce":26,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1350570"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x638215b764b1b7d5f313f178aeb4f4e60ce1be9e430658f8053f5701a1172c32"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","hash":"0x638215b764b1b7d5f313f178aeb4f4e60ce1be9e430658f8053f5701a1172c32","networkInteractionId":1,"receipt":{"blockHash":"0x034fc761b0826543646d1fc175dfa83e38df016b8618bc2b205d2a528824ad1f","blockNumber":148433883,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V4","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f407f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":27,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":27,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1017046"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x5b261a4d53c3cc95208feaf1147a43bf10b3fc55963664a1d5e3460258038655"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","hash":"0x5b261a4d53c3cc95208feaf1147a43bf10b3fc55963664a1d5e3460258038655","networkInteractionId":1,"receipt":{"blockHash":"0xf45bc1b096b1f2261767c6864f2f59f7f48b8b1619211643e8fd2fffd4124ee9","blockNumber":148444996,"logs":[{"address":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","data":"0x","logIndex":17,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":18,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000009f3f6bd0067596fd05abca1a6a7d1298d6603730","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V4","nameOrIndex":"newContract","result":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x5b261a4d53c3cc95208feaf1147a43bf10b3fc55963664a1d5e3460258038655","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#ReadEvent_PortalFactory_V4"],"futureId":"PortalFactory#PortalFactory_V4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","dependencies":["PortalFactory#PortalFactory_V4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":28,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":28,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1016936"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x1b0922c1ab2dacb12519ce6c2139b5d92eb3a5db19c3d6584ef79247857d07aa"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","hash":"0x1b0922c1ab2dacb12519ce6c2139b5d92eb3a5db19c3d6584ef79247857d07aa","networkInteractionId":1,"receipt":{"blockHash":"0x9b3daf6e271808937226ba86d05b9c978f4f027c3b775b66b91e416a816c94de","blockNumber":148445001,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f607f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":29,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":29,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1001160"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x5a5846ebb2f707d015c23353c7f029737c680757ae4b27c6153eae0786e8f3db"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x5a5846ebb2f707d015c23353c7f029737c680757ae4b27c6153eae0786e8f3db","networkInteractionId":1,"receipt":{"blockHash":"0x6754aa3687dba1e54d12c97ea2b9c1fdc40c667333d796307ac330ca97fe9593","blockNumber":148519149,"logs":[{"address":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","data":"0x","logIndex":84,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":85,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000008a2560cee62d17ef542e8eb6b349c45b02120522","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x5a5846ebb2f707d015c23353c7f029737c680757ae4b27c6153eae0786e8f3db","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":30,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":30,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1001160"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x616be1c64ebb55674db058ba1dba0ecdca7bdc68298b5697440851ebf70bfcc4"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x616be1c64ebb55674db058ba1dba0ecdca7bdc68298b5697440851ebf70bfcc4","networkInteractionId":1,"receipt":{"blockHash":"0x6caa3f3fe8c6426ed2e1d9cd63d125ad7be810d032ac443ba37cb6953c3b7ea1","blockNumber":148519155,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":33,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":33,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1009130"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xe06ce0a1d692f30e1c139b5cc664a5e02090700fead7b06869d2b0bb82645592"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xe06ce0a1d692f30e1c139b5cc664a5e02090700fead7b06869d2b0bb82645592","networkInteractionId":1,"receipt":{"blockHash":"0xed9db66fe7f8086f4a54c2679b0c31e103799699a66d7d0961cac85eca01cf5c","blockNumber":148610280,"logs":[{"address":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","data":"0x","logIndex":161,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":162,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x00000000000000000000000072d356b815974ea1b8d49823a46294fc38ba41df","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xe06ce0a1d692f30e1c139b5cc664a5e02090700fead7b06869d2b0bb82645592","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":34,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":34,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1009104"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xab06d1076b000e445cfed2c9f2cc17025bbb221d427a0d87c547e2e36a1c31d5"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xab06d1076b000e445cfed2c9f2cc17025bbb221d427a0d87c547e2e36a1c31d5","networkInteractionId":1,"receipt":{"blockHash":"0x116ba265af15d7f0a5e5d82553fdfc0dc748a0ba1fc2ef02f91588955c6043de","blockNumber":148610286,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":35,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":35,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1015284"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x87122269f1d39b5b124dffcfff38622be3be73ae430e4b469040d9b366d62163"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x87122269f1d39b5b124dffcfff38622be3be73ae430e4b469040d9b366d62163","networkInteractionId":1,"receipt":{"blockHash":"0x266267028c161ef50416d7a77b373da6fa46fb7e9f8b0a4569dc6b78c57e8270","blockNumber":148612481,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":50,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":50,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000934"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x82bb00fc424a170ca0b1b0732548c91f1b87121b8fa7af3c661d549ba7635cbc"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x82bb00fc424a170ca0b1b0732548c91f1b87121b8fa7af3c661d549ba7635cbc","networkInteractionId":1,"receipt":{"blockHash":"0x489d871987b7e65207e197ea806de2f33db1f014a135031f673a297814822b22","blockNumber":148907085,"logs":[{"address":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","data":"0x","logIndex":178,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":179,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000007125ed21e90a790090245748a47753f3be54ccb3","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x82bb00fc424a170ca0b1b0732548c91f1b87121b8fa7af3c661d549ba7635cbc","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":51,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":51,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000932"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xe513e480606d114da900ff0fb49dc9e9e04bc23933d216e61bf2adf4e7ed37d0"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xe513e480606d114da900ff0fb49dc9e9e04bc23933d216e61bf2adf4e7ed37d0","networkInteractionId":1,"receipt":{"blockHash":"0x7d407c1196246fbf8c2c0eadcefb76c1f950516025395339210eef359224f10b","blockNumber":148907090,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/artifacts/PortalFactory#CreateX.json b/ignition/deployments/staging_polygon/artifacts/PortalFactory#CreateX.json
deleted file mode 100644
index 5d6f263..0000000
--- a/ignition/deployments/staging_polygon/artifacts/PortalFactory#CreateX.json
+++ /dev/null
@@ -1,906 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "FailedContractCreation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedContractInitialisation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedEtherTransfer",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidNonceValue",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidSalt",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "Create3ProxyContractCreation",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreateClone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "bytecode": "0x",
- "deployedBytecode": "0x",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/staging_polygon/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/staging_polygon/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json b/ignition/deployments/staging_polygon/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
deleted file mode 100644
index 6dc459e..0000000
--- a/ignition/deployments/staging_polygon/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
+++ /dev/null
@@ -1,357 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/artifacts/PortalFactory#PortalFactory_V3.json b/ignition/deployments/staging_polygon/artifacts/PortalFactory#PortalFactory_V3.json
deleted file mode 100644
index 0e873ff..0000000
--- a/ignition/deployments/staging_polygon/artifacts/PortalFactory#PortalFactory_V3.json
+++ /dev/null
@@ -1,367 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/artifacts/PortalFactory#PortalFactory_V4.json b/ignition/deployments/staging_polygon/artifacts/PortalFactory#PortalFactory_V4.json
deleted file mode 100644
index a7b61e5..0000000
--- a/ignition/deployments/staging_polygon/artifacts/PortalFactory#PortalFactory_V4.json
+++ /dev/null
@@ -1,367 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/artifacts/PortalFactory#PortalFactory_V5.json b/ignition/deployments/staging_polygon/artifacts/PortalFactory#PortalFactory_V5.json
deleted file mode 100644
index eaef0d8..0000000
--- a/ignition/deployments/staging_polygon/artifacts/PortalFactory#PortalFactory_V5.json
+++ /dev/null
@@ -1,382 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForLiFiBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/artifacts/PortalFactoryModule#PortalFactory.json b/ignition/deployments/staging_polygon/artifacts/PortalFactoryModule#PortalFactory.json
deleted file mode 100644
index 467c840..0000000
--- a/ignition/deployments/staging_polygon/artifacts/PortalFactoryModule#PortalFactory.json
+++ /dev/null
@@ -1,256 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndBridge",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployAndShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json b/ignition/deployments/staging_polygon/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json
deleted file mode 100644
index 8a2c60d..0000000
--- a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external onlyOnce {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json b/ignition/deployments/staging_polygon/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
deleted file mode 100644
index 272c9d5..0000000
--- a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/staging_polygon/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
deleted file mode 100644
index 4b57fc4..0000000
--- a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/devenv/ICreateX.sol": {
- "content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json b/ignition/deployments/staging_polygon/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
deleted file mode 100644
index 156f127..0000000
--- a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n // TODO: Emit shielding failed and if that event is detected in the simulation, then we will mark the shielding as failed.\n return; // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/staging_polygon/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
deleted file mode 100644
index 6ea1fae..0000000
--- a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json b/ignition/deployments/staging_polygon/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json
deleted file mode 100644
index 26ef1c9..0000000
--- a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ada23e6ac7a3f9ff110134fb05d588437341240e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function initializeConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function updateLifiDiamondAddress(address lifiDiamondAddress) external onlyOwner returns (bool) {\n _lifiDiamondAddress = lifiDiamondAddress;\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json b/ignition/deployments/staging_polygon/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
deleted file mode 100644
index e4ce59c..0000000
--- a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b4e9624a72472cafed400af2e90c041a174d68ae",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json b/ignition/deployments/staging_polygon/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
deleted file mode 100644
index 7489326..0000000
--- a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note) external;\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is purely the ABI-encoded struct\n * (e.g., it was encoded using abi.encode(bridgeData))\n */\n function _decodeBridgeDataStruct(bytes calldata bridgeCallData) internal pure returns (LiFiBridgeData memory) {\n return abi.decode(bridgeCallData, (LiFiBridgeData));\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, address sendingAssetId, uint256 amount) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (sendingAssetId != address(0) && sendingAssetId != NATIVE_ETH) {\n IERC20 token = IERC20(sendingAssetId);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, note.amount);\n }\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeDataStruct(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, amount);\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, amount, bridgeData);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json b/ignition/deployments/staging_polygon/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json
deleted file mode 100644
index 2ee23a8..0000000
--- a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency) external;\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is purely the ABI-encoded struct\n * (e.g., it was encoded using abi.encode(bridgeData))\n */\n function _decodeBridgeDataStruct(bytes calldata bridgeCallData) internal pure returns (LiFiBridgeData memory) {\n return abi.decode(bridgeCallData, (LiFiBridgeData));\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency ) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, note.amount,currency );\n }\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeDataStruct(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, amount,currency );\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json b/ignition/deployments/staging_polygon/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
deleted file mode 100644
index 2d07272..0000000
--- a/ignition/deployments/staging_polygon/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency) external;\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency ) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, note.amount,currency );\n }\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, amount,currency );\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/deployed_addresses.json b/ignition/deployments/staging_polygon/deployed_addresses.json
deleted file mode 100644
index 872a6ca..0000000
--- a/ignition/deployments/staging_polygon/deployed_addresses.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "PortalFactory#PortalFactory": "0x7125Ed21e90A790090245748A47753F3BE54Ccb3"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_polygon/journal.jsonl b/ignition/deployments/staging_polygon/journal.jsonl
deleted file mode 100644
index 19c4ab0..0000000
--- a/ignition/deployments/staging_polygon/journal.jsonl
+++ /dev/null
@@ -1,136 +0,0 @@
-
-{"chainId":137,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076686d696861696c6f20616e642076616e6a6120637572767920706f776572000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016c67f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116a63803806116a683398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611564806101425f395ff3fe608060405260043610610084575f3560e01c8063715018a611610057578063715018a61461011c5780638da5cb5b14610130578063d465ea5814610160578063efc44aa61461017f578063f2fde38b1461019e575f5ffd5b80633942b0ad1461008857806343398648146100bc578063485907d8146100e857806352982f3b146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a23660046106f7565b6101bd565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610717565b6101ea565b6040516100b39190610741565b6100fb6100f63660046107d9565b610263565b005b348015610108575f5ffd5b506100a7610117366004610802565b6103f2565b348015610127575f5ffd5b506100fb61043e565b34801561013b575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561016b575f5ffd5b5061014861017a366004610717565b610451565b34801561018a575f5ffd5b506100fb610199366004610842565b6104c1565b3480156101a9575f5ffd5b506100fb6101b83660046106f7565b61061c565b5f6101c6610659565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b60605f604051806020016101fd906106d4565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061024a90839083906080016108f8565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061028457506003546001600160a01b0316155b156102f35760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610301835f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b03821661036b5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b1580156103d5575f5ffd5b505af11580156103e7573d5f5f3e3d5ffd5b505050505050505050565b5f6103fb610659565b50600280546001600160a01b039485166001600160a01b031991821617909155600380549385169382169390931790925560048054919093169116179055600190565b610446610659565b61044f5f610685565b565b5f5f61045d84846101ea565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105355760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b60648201526084016102ea565b5f610543845f0151836101ea565b90505f5f60015490508083516020850134f591506001600160a01b0382166105ad5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c656460448201526064016102ea565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105e5939216918d918d918d918d9101610914565b5f604051808303815f87803b1580156105fc575f5ffd5b505af115801561060e573d5f5f3e3d5ffd5b505050505050505050505050565b610624610659565b6001600160a01b03811661064d57604051631e4fbdf760e01b81525f60048201526024016102ea565b61065681610685565b50565b5f546001600160a01b0316331461044f5760405163118cdaa760e01b81523360048201526024016102ea565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098a83390190565b80356001600160a01b03811681146101e5575f5ffd5b5f60208284031215610707575f5ffd5b610710826106e1565b9392505050565b5f5f60408385031215610728575f5ffd5b82359150610738602084016106e1565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60608284031215610786575f5ffd5b6040516060810181811067ffffffffffffffff821117156107b557634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156107ea575f5ffd5b6107f48484610776565b9150610738606084016106e1565b5f5f5f60608486031215610814575f5ffd5b61081d846106e1565b925061082b602085016106e1565b9150610839604085016106e1565b90509250925092565b5f5f5f5f5f60c08688031215610856575f5ffd5b853567ffffffffffffffff81111561086c575f5ffd5b8601601f8101881361087c575f5ffd5b803567ffffffffffffffff811115610892575f5ffd5b8860208284010111156108a3575f5ffd5b6020918201965094506108b99088908801610776565b92506108c7608087016106e1565b91506108d560a087016106e1565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61090c61090683866108e1565b846108e1565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096e60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a26469706673582212203606601acb0b023e36c60b268a0307ecd89114117ed619c689865d43a46264bf64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":2,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":2,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"503021767107"}},"hash":"0x0cc922183ec9759b413234aacbdc2c42151a86ef16a31435af09057bf2099b44"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x0cc922183ec9759b413234aacbdc2c42151a86ef16a31435af09057bf2099b44","networkInteractionId":1,"receipt":{"blockHash":"0xba5ea7f18ccba0746d71ddca1d6e103a1653cccc10449745ac7d037dce081fdc","blockNumber":82021715,"logs":[{"address":"0xB8c0750e889afB95342d634b3AD99944b9525505","data":"0x","logIndex":245,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":246,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000b8c0750e889afb95342d634b3ad99944b9525505","0xb1479d7f5dfd9da0029a798b27f617354f0aeca1c622cb19c1f7fe6bd9fc5bc1"]},{"address":"0x0000000000000000000000000000000000001010","data":"0x000000000000000000000000000000000000000000000000007e58b4f2ba242a000000000000000000000000000000000000000000000001bee0b23b8c527901000000000000000000000000000000000000000000026a5197bc48ce52230b7c000000000000000000000000000000000000000000000001be625986999854d7000000000000000000000000000000000000000000026a51983aa18344dd2fa6","logIndex":247,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xB8c0750e889afB95342d634b3AD99944b9525505","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xB8c0750e889afB95342d634b3AD99944b9525505","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"initializeConfig","futureId":"PortalFactoryModule#PortalFactory.initializeConfig","strategy":"create2","strategyConfig":{"salt":"0x6d696861696c6f20616e642076616e6a6120637572767920706f776572000000"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteraction":{"data":"0x52982f3b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xB8c0750e889afB95342d634b3AD99944b9525505","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":3,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","networkInteractionId":1,"nonce":3,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"495195721816"}},"hash":"0xbdafca39e04eaa147cc27a77e5099bad44e7d75fff577814a1ea9f3115bd4c4c"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","hash":"0xbdafca39e04eaa147cc27a77e5099bad44e7d75fff577814a1ea9f3115bd4c4c","networkInteractionId":1,"receipt":{"blockHash":"0x1a92f98b51cad4ed5123b0ba7d627f67aad7044ac68ba789182d9a3888c4221a","blockNumber":82021733,"logs":[{"address":"0x0000000000000000000000000000000000001010","data":"0x0000000000000000000000000000000000000000000000000004950985db2792000000000000000000000000000000000000000000000001b5d6a8fb21d0341a000000000000000000000000000000000000000000026a52c72533a31afdf2d2000000000000000000000000000000000000000000000001b5d213f19bf50c88000000000000000000000000000000000000000000026a52c729c8aca0d91a64","logIndex":1289,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"PortalFactoryModule#PortalFactory.initializeConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactoryModule#PortalFactory","type":"WIPE_APPLY"}
-{"artifactId":"PortalFactoryModule#PortalFactory","constructorArgs":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"PortalFactory","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"PortalFactoryModule#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"create2","strategyConfig":{"salt":"0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200"},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteraction":{"data":"0x263076687374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000016bc7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b5060405161169c38038061169c83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b61155a806101425f395ff3fe608060405260043610610079575f3560e01c80638da5cb5b1161004c5780638da5cb5b14610106578063d465ea5814610136578063efc44aa614610155578063f2fde38b14610174575f5ffd5b806311c9a94d1461007d57806343398648146100b1578063485907d8146100dd578063715018a6146100f2575b5f5ffd5b348015610088575f5ffd5b5061009c6100973660046106ed565b610193565b60405190151581526020015b60405180910390f35b3480156100bc575f5ffd5b506100d06100cb36600461072d565b610227565b6040516100a89190610757565b6100f06100eb3660046107ef565b6102a0565b005b3480156100fd575f5ffd5b506100f061042f565b348015610111575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100a8565b348015610141575f5ffd5b5061011e61015036600461072d565b610442565b348015610160575f5ffd5b506100f061016f366004610818565b6104b2565b34801561017f575f5ffd5b506100f061018e3660046108b7565b61060d565b5f61019c61064a565b6001600160a01b038416156101c757600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156101f257600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561021d57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161023a906106c5565b601f1982820381018352601f909101166040818152602082018790526001600160a01b038616818301528051808303820181526060830190915291925061028790839083906080016108ee565b6040516020818303038152906040529250505092915050565b6002546001600160a01b031615806102c157506003546001600160a01b0316155b156103305760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f61033e835f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b0382166103a85760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60035460025460408051631329a1a760e31b815288516004820152602089015160248201529088015160448201526001600160a01b03928316606482015290821660848201529083169063994d0d389060a4015f604051808303815f87803b158015610412575f5ffd5b505af1158015610424573d5f5f3e3d5ffd5b505050505050505050565b61043761064a565b6104405f610676565b565b5f5f61044e8484610227565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b03166105265760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610327565b5f610534845f015183610227565b90505f5f60015490508083516020850134f591506001600160a01b03821661059e5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610327565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c474936105d6939216918d918d918d918d910161090a565b5f604051808303815f87803b1580156105ed575f5ffd5b505af11580156105ff573d5f5f3e3d5ffd5b505050505050505050505050565b61061561064a565b6001600160a01b03811661063e57604051631e4fbdf760e01b81525f6004820152602401610327565b61064781610676565b50565b5f546001600160a01b031633146104405760405163118cdaa760e01b8152336004820152602401610327565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba58061098083390190565b80356001600160a01b03811681146106e8575f5ffd5b919050565b5f5f5f606084860312156106ff575f5ffd5b610708846106d2565b9250610716602085016106d2565b9150610724604085016106d2565b90509250925092565b5f5f6040838503121561073e575f5ffd5b8235915061074e602084016106d2565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561079c575f5ffd5b6040516060810181811067ffffffffffffffff821117156107cb57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610800575f5ffd5b61080a848461078c565b915061074e606084016106d2565b5f5f5f5f5f60c0868803121561082c575f5ffd5b853567ffffffffffffffff811115610842575f5ffd5b8601601f81018813610852575f5ffd5b803567ffffffffffffffff811115610868575f5ffd5b886020828401011115610879575f5ffd5b60209182019650945061088f908890880161078c565b925061089d608087016106d2565b91506108ab60a087016106d2565b90509295509295909350565b5f602082840312156108c7575f5ffd5b6108d0826106d2565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f6109026108fc83866108d7565b846108d7565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f870116830101905061096460408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212201addbc4f6958755b9c3a55fb136de41c519286ea39743a0d59e245327ecb710a64736f6c634300081c0033a2646970667358221220c646079b040f7c0cdcdce79a7af31fc19b77723562178275e63fdce7c912739564736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":6,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","networkInteractionId":1,"nonce":6,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"393957486524"}},"hash":"0x3f60b23dc8009e76c02f478443ffe00a2173c4ede759fea59cb2663cffd13d22"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory","hash":"0x3f60b23dc8009e76c02f478443ffe00a2173c4ede759fea59cb2663cffd13d22","networkInteractionId":1,"receipt":{"blockHash":"0x2d5644b47814eca294fd22c77389fa0e00a167e865021e2990bf3b897b380b8a","blockNumber":82205254,"logs":[{"address":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","data":"0x","logIndex":354,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":355,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000baef1916444145c7101b63a6ca5acc9aba39a99c","0x424e4b9db5d95a27499fbc0588f9e21c9c6eab4cae98df46601e5284d9e6f6c8"]},{"address":"0x0000000000000000000000000000000000001010","data":"0x0000000000000000000000000000000000000000000000000647a9be4100fcfc000000000000000000000000000000000000000000000001a158d8b3b3fb6a1a000000000000000000000000000000000000000000012f9565558a418084b2420000000000000000000000000000000000000000000000019b112ef572fa6d1e000000000000000000000000000000000000000000012f956b9d33ffc185af3e","logIndex":356,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory","result":{"address":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactoryModule#PortalFactory","contractAddress":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","dependencies":["PortalFactoryModule#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"PortalFactoryModule#PortalFactory.updateConfig","strategy":"create2","strategyConfig":{"salt":"0x7374616765206d696861696c6f2c76616e6a6120637572767920706f77657200"},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xbaEF1916444145c7101B63A6cA5aCc9Aba39a99c","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":7,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","networkInteractionId":1,"nonce":7,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"388524611831"}},"hash":"0x67426e51a0b565a7b339518fdc9860bcb2ae9e0ab4f76d178986177f5d881b93"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","hash":"0x67426e51a0b565a7b339518fdc9860bcb2ae9e0ab4f76d178986177f5d881b93","networkInteractionId":1,"receipt":{"blockHash":"0x06b2ae6e0e46053b323accf750b9998352801b71ee089f08e445b9b384d74b78","blockNumber":82205261,"logs":[{"address":"0x0000000000000000000000000000000000001010","data":"0x0000000000000000000000000000000000000000000000000038b9e47d5894710000000000000000000000000000000000000000000000019a47b1c8dec55e0a000000000000000000000000000000000000000000012fa0a848284fce1386150000000000000000000000000000000000000000000000019a0ef7e4616cc999000000000000000000000000000000000000000000012fa0a880e2344b6c1a86","logIndex":427,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactoryModule#PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":16,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":16,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"810061917379"}},"hash":"0x978e2a3ac2419a864a1efa7a9bf51d1e0034d9e3239c7ced5fce9397d6890430"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","hash":"0x978e2a3ac2419a864a1efa7a9bf51d1e0034d9e3239c7ced5fce9397d6890430","networkInteractionId":1,"receipt":{"blockHash":"0x93a937b2441779541b874948708f28dc670777a94377a6c80054e5c4dd0f43fe","blockNumber":82633152,"logs":[{"address":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","data":"0x","logIndex":2505,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":2506,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000000e25ecebf24a7bde1655ded9630a3e75a75df6bd","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]},{"address":"0x0000000000000000000000000000000000001010","data":"0x000000000000000000000000000000000000000000000000008582011d186adc0000000000000000000000000000000000000000000000018836416070ea43b6000000000000000000000000000000000000000000059b173f23a678ff6e55ae00000000000000000000000000000000000000000000000187b0bf5f53d1d8da000000000000000000000000000000000000000000059b173fa9287a1c86c08a","logIndex":2507,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0","nameOrIndex":"newContract","result":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x978e2a3ac2419a864a1efa7a9bf51d1e0034d9e3239c7ced5fce9397d6890430","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":17,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":17,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"811694382496"}},"hash":"0x545c0fbe446a287083c10fcdfee19708e59ec551997989ecba78a7e52b77a8ac"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x545c0fbe446a287083c10fcdfee19708e59ec551997989ecba78a7e52b77a8ac","networkInteractionId":1,"receipt":{"blockHash":"0xf9a368e0ec5ff9b565b0a21a64bcf4e52802583cdaac5150c617333ff9658a9b","blockNumber":82633159,"logs":[{"address":"0x0000000000000000000000000000000000001010","data":"0x000000000000000000000000000000000000000000000000000592b9e85530a100000000000000000000000000000000000000000000000179769f61f8d95882000000000000000000000000000000000000000000059b1cc4ccd9d63f71fdcb00000000000000000000000000000000000000000000000179710ca8108427e1000000000000000000000000000000000000000000059b1cc4d26c9027c72e6c","logIndex":2724,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001ee77f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":21,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":21,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"131778689330"}},"hash":"0xabf897ce3b9734a565180ad8d169a2b46e9789cc4389ccde472de99bfe7c859a"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","hash":"0xabf897ce3b9734a565180ad8d169a2b46e9789cc4389ccde472de99bfe7c859a","networkInteractionId":1,"receipt":{"blockHash":"0x5541c445d945c7976436ddd341302c189114f5d448d90eb4495551764b0cc2f0","blockNumber":83552159,"logs":[{"address":"0xb10abCB62f50DefF589754db1d9B548eF808B101","data":"0x","logIndex":1765,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":1766,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000b10abcb62f50deff589754db1d9b548ef808b101","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]},{"address":"0x0000000000000000000000000000000000001010","data":"0x00000000000000000000000000000000000000000000000000bfa0b32c8481300000000000000000000000000000000000000000000000015e185ee0659a1209000000000000000000000000000000000000000000122eb5034669784be13ecb0000000000000000000000000000000000000000000000015d58be2d391590d9000000000000000000000000000000000000000000122eb504060a2b7865bffb","logIndex":1767,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V2","nameOrIndex":"newContract","result":"0xb10abCB62f50DefF589754db1d9B548eF808B101","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xabf897ce3b9734a565180ad8d169a2b46e9789cc4389ccde472de99bfe7c859a","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#ReadEvent_PortalFactory_V2"],"futureId":"PortalFactory#PortalFactory_ContractAt_V2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","dependencies":["PortalFactory#PortalFactory_ContractAt_V2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xb10abCB62f50DefF589754db1d9B548eF808B101","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":22,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":22,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"130299552054"}},"hash":"0x876449f798684d263cefbd6167813c8d1b849041a70c81dd924e96e7b4ada595"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","hash":"0x876449f798684d263cefbd6167813c8d1b849041a70c81dd924e96e7b4ada595","networkInteractionId":1,"receipt":{"blockHash":"0x35bf56b00bee342aba993a1be0754abc4293c4145ecc7f3d598db47ae52151fe","blockNumber":83552166,"logs":[{"address":"0x0000000000000000000000000000000000001010","data":"0x0000000000000000000000000000000000000000000000000004f5647aa6770c0000000000000000000000000000000000000000000000015ae707c8410e2b21000000000000000000000000000000000000000000122eb97a2627270ff339ac0000000000000000000000000000000000000000000000015ae21263c667b415000000000000000000000000000000000000000000122eb97a2b1c8b8a99b0b8","logIndex":4710,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V3","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f597f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":23,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":23,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"652871124902"}},"hash":"0xa5c6cd61ad739dbfd806b352a998aec0968b866abc481d49b43355407f2c0670"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","hash":"0xa5c6cd61ad739dbfd806b352a998aec0968b866abc481d49b43355407f2c0670","networkInteractionId":1,"receipt":{"blockHash":"0x24ca3cabf9ae40085507a102457230e0d95593c5677511b0c8a6268184bad87f","blockNumber":83673274,"logs":[{"address":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","data":"0x","logIndex":4251,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":4252,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000c20a3681b8fa35a68479de698e65a6403b8031de","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]},{"address":"0x0000000000000000000000000000000000001010","data":"0x00000000000000000000000000000000000000000000000000bf7f7c78ac9b8e0000000000000000000000000000000000000000000000015ad1648a252ad17d0000000000000000000000000000000000000000000f1ea8bf2930a301904da70000000000000000000000000000000000000000000000015a11e50dac7e35ef0000000000000000000000000000000000000000000f1ea8bfe8b01f7a3ce935","logIndex":4253,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_V3","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V3","nameOrIndex":"newContract","result":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xa5c6cd61ad739dbfd806b352a998aec0968b866abc481d49b43355407f2c0670","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_V3","contractAddress":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_V3","PortalFactory#ReadEvent_PortalFactory_V3"],"futureId":"PortalFactory#PortalFactory_V3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_V3","contractAddress":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","dependencies":["PortalFactory#PortalFactory_V3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteractionId":1,"nonce":24,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteractionId":1,"nonce":24,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"638284417821"}},"hash":"0xb5c97446285551d4fc112fdb500042f1a199e253fc57a02ca029839395343b24"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","hash":"0xb5c97446285551d4fc112fdb500042f1a199e253fc57a02ca029839395343b24","networkInteractionId":1,"receipt":{"blockHash":"0xe5597c452c7ab7c9317646c3f8e6f6fdc954b4fd9d5dfd7110cce54c25f07d28","blockNumber":83673280,"logs":[{"address":"0x0000000000000000000000000000000000001010","data":"0x000000000000000000000000000000000000000000000000000568a7975e5dd00000000000000000000000000000000000000000000000014ac6f8bb235b0e110000000000000000000000000000000000000000000f1eab766902874a674cea0000000000000000000000000000000000000000000000014ac190138bfcb0410000000000000000000000000000000000000000000f1eab766e6b2ee1c5aaba","logIndex":1774,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V4","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f407f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":25,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":25,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"120183770458"}},"hash":"0x41908e495a3cdf4389ec383891460d4b6da65813b7b3b336db420a0977cb427b"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","hash":"0x41908e495a3cdf4389ec383891460d4b6da65813b7b3b336db420a0977cb427b","networkInteractionId":1,"receipt":{"blockHash":"0xe22a74220660b79d839fd48b0c243b7f505bc2ae3188fa09099c85ead679cd6b","blockNumber":83684385,"logs":[{"address":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","data":"0x","logIndex":3572,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":3573,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000009f3f6bd0067596fd05abca1a6a7d1298d6603730","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]},{"address":"0x0000000000000000000000000000000000001010","data":"0x00000000000000000000000000000000000000000000000000b725989e1841d80000000000000000000000000000000000000000000000014a5ced7788cdf8950000000000000000000000000000000000000000000f3a835817fdabf77c22dd00000000000000000000000000000000000000000000000149a5c7deeab5b6bd0000000000000000000000000000000000000000000f3a8358cf2344959464b5","logIndex":3574,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V4","nameOrIndex":"newContract","result":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x41908e495a3cdf4389ec383891460d4b6da65813b7b3b336db420a0977cb427b","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#ReadEvent_PortalFactory_V4"],"futureId":"PortalFactory#PortalFactory_V4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","dependencies":["PortalFactory#PortalFactory_V4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":26,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":26,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"122784433244"}},"hash":"0x0ba444b64b2ff6b2dc186a1cbaace58c176ed74294f54d152b6de26f27c18acd"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","hash":"0x0ba444b64b2ff6b2dc186a1cbaace58c176ed74294f54d152b6de26f27c18acd","networkInteractionId":1,"receipt":{"blockHash":"0xcf26eceb160283cbe3d7eadac56a3797cb471d99a3e4d2ead8972475158025bc","blockNumber":83684394,"logs":[{"address":"0x0000000000000000000000000000000000001010","data":"0x00000000000000000000000000000000000000000000000000043c216f318df4000000000000000000000000000000000000000000000001476b51ad1b7b3fcd0000000000000000000000000000000000000000000f3a89f687f0e268e9394e0000000000000000000000000000000000000000000000014767158bac49b1d90000000000000000000000000000000000000000000f3a89f68c2d03d81ac742","logIndex":5306,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f607f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":27,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":27,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"191873441237"}},"hash":"0x3e7297d692fdf444713f586f749b8cee048c10c0a472893c4ac0e0780d965245"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x3e7297d692fdf444713f586f749b8cee048c10c0a472893c4ac0e0780d965245","networkInteractionId":1,"receipt":{"blockHash":"0xa490df0e0798e1d16cc386b22eeaac006e60bc461f45b2764b3ca5d98eb96aa6","blockNumber":83758537,"logs":[{"address":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","data":"0x","logIndex":3686,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":3687,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000008a2560cee62d17ef542e8eb6b349c45b02120522","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]},{"address":"0x0000000000000000000000000000000000001010","data":"0x00000000000000000000000000000000000000000000000000a2fdc5959a55440000000000000000000000000000000000000000000000014756eb74e001e9fd00000000000000000000000000000000000000000010644df08219481a2dfbf800000000000000000000000000000000000000000000000146b3edaf4a6794b900000000000000000000000000000000000000000010644df125170dafc8513c","logIndex":3688,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x3e7297d692fdf444713f586f749b8cee048c10c0a472893c4ac0e0780d965245","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":28,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":28,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"189057488684"}},"hash":"0x795c1ec9a4b61dcc92c1035f7b206c13295d897feb09fbd5c106b953f19b2aff"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x795c1ec9a4b61dcc92c1035f7b206c13295d897feb09fbd5c106b953f19b2aff","networkInteractionId":1,"receipt":{"blockHash":"0xe890187990001f65cbb0770d7f7756b75ec2d6a9064993fc9bb698b3bd5d4ffa","blockNumber":83758543,"logs":[{"address":"0x0000000000000000000000000000000000001010","data":"0x00000000000000000000000000000000000000000000000000047263730742c7000000000000000000000000000000000000000000000001429f01f080197443000000000000000000000000000000000000000000106450bf7a9bbd4d72881f000000000000000000000000000000000000000000000001429a8f8d0d12317c000000000000000000000000000000000000000000106450bf7f0e20c079cae6","logIndex":4009,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":31,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":31,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"175162772409"}},"hash":"0xcb5a79ed9324d1afb339cc6161f6ca325d0940aa691eba8bdff91bfe2e2f4f1b"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xcb5a79ed9324d1afb339cc6161f6ca325d0940aa691eba8bdff91bfe2e2f4f1b","networkInteractionId":1,"receipt":{"blockHash":"0xb5c1ab0727cd1f1e76f1519ec6f762184b85bfb1a4a52cf197fdb840f4b860b2","blockNumber":83850729,"logs":[{"address":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","data":"0x","logIndex":2586,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":2587,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x00000000000000000000000072d356b815974ea1b8d49823a46294fc38ba41df","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]},{"address":"0x0000000000000000000000000000000000001010","data":"0x00000000000000000000000000000000000000000000000000be7ceae23586980000000000000000000000000000000000000000000000013dc184ed3ecb59ef00000000000000000000000000000000000000000010008f40db82c6b27448610000000000000000000000000000000000000000000000013d0308025c95d35700000000000000000000000000000000000000000010008f4199ffb194a9cef9","logIndex":2588,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xcb5a79ed9324d1afb339cc6161f6ca325d0940aa691eba8bdff91bfe2e2f4f1b","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":32,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":32,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"173135015025"}},"hash":"0x7681e6b018436c84aaaf8e155ef357a90f9df6fdc1a7d61753b4aa93483aec66"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x7681e6b018436c84aaaf8e155ef357a90f9df6fdc1a7d61753b4aa93483aec66","networkInteractionId":1,"receipt":{"blockHash":"0xa4c2a7719173a33a893a4162004bd7e2ed1d7d72395d543d49ccbef25919e3e5","blockNumber":83850736,"logs":[{"address":"0x0000000000000000000000000000000000001010","data":"0x00000000000000000000000000000000000000000000000000042dd0f1d785d0000000000000000000000000000000000000000000000001396f8c0eeb575fe70000000000000000000000000000000000000000001000933bb0f5bd046462f8000000000000000000000000000000000000000000000001396b5e3df97fda170000000000000000000000000000000000000000001000933bb5238df63be8c8","logIndex":4346,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":47,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":47,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"124915826244"}},"hash":"0xbaf59212589f503e265f6b8ad41695032f37735dfd5f172b0fed590c1792ee20"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xbaf59212589f503e265f6b8ad41695032f37735dfd5f172b0fed590c1792ee20","networkInteractionId":1,"receipt":{"blockHash":"0x963628cc8d3b102bcfff4477083044b21b039b1cf727c193600ba71c2cb7ce78","blockNumber":84146474,"logs":[{"address":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","data":"0x","logIndex":3619,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":3620,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000007125ed21e90a790090245748a47753f3be54ccb3","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]},{"address":"0x0000000000000000000000000000000000001010","data":"0x000000000000000000000000000000000000000000000000009f01a3aa85872a0000000000000000000000000000000000000000000000011b1d16a401e2c4480000000000000000000000000000000000000000001428cdb5f5eb8af3f81ff20000000000000000000000000000000000000000000000011a7e1500575d3d1e0000000000000000000000000000000000000000001428cdb694ed2e9e7da71c","logIndex":3621,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xbaf59212589f503e265f6b8ad41695032f37735dfd5f172b0fed590c1792ee20","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x0000000000000000000000000000000000000000","0x0000000000000000000000000000000000000000","0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","dependencies":["PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001231deb6f5749ef6ce6943a275a1d3e7486f4eae","id":1,"to":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":48,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":48,"transaction":{"fees":{"gasPrice":{"_kind":"bigint","value":"125219950168"}},"hash":"0xd27af88b1ff857e7da040eb5f62162952c503ca6543aeb79fa175bd804c4132f"},"type":"TRANSACTION_SEND"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xd27af88b1ff857e7da040eb5f62162952c503ca6543aeb79fa175bd804c4132f","networkInteractionId":1,"receipt":{"blockHash":"0x7ba64f4f948d13e7ba8438c9499f143295b25b7fb00a09234a98d4dc286622cf","blockNumber":84146481,"logs":[{"address":"0x0000000000000000000000000000000000001010","data":"0x0000000000000000000000000000000000000000000000000004403644094727000000000000000000000000000000000000000000000001180c482c389720400000000000000000000000000000000000000000001428d0456e83f20b81ee55000000000000000000000000000000000000000000000001180807f5f48dd9190000000000000000000000000000000000000000001428d04572c4284f8b357c","logIndex":2700,"topics":["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63","0x0000000000000000000000000000000000000000000000000000000000001010","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000007ee41d8a25641000661b1ef5e6ae8a00400466b0"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"DeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2.json
deleted file mode 100644
index 8536a77..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregationVerifierAlpha_2_2_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "_pubSignals",
- "type": "uint256[14]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b50610a0c8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610974565b610054565b604051901515815260200160405180910390f35b5f610881565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7e10acd6d4ce082a72b623deeac4b4c1c526b8ab76ab54f82d13b63a6f23e2cd85527f282cd953fc7bc024a80710dd645d4cd8e4ef6d10eb7403a76618f96eddb5336e60208601525f608086018661018d87357f21626e5f52776516ac007ae23e14ca016f4e7623b79f63f4ab59482e4872c52b7f2c8f6445390acb60223f07dcf516fee816534c9940dc8d59595786b35106f0f38461008c565b6101dd60208801357f20d91723fc6a5cff2a4d8bd53db8c7647c86b9245b27d7042634dd317becf0797f1693b6ee023f9ef0c9e7cb1d290717e3df5f6d2154ba30f3a6a833f3171c2ee08461008c565b61022d60408801357f1a9347082efac79b5d64033c95c7f2190984cd2a19884b4ad26162ea47e0ea3b7f27173150520b68cc7844935166da0f68924aeccc8a30ae9ca0768eb597cf2a638461008c565b61027d60608801357f207839c9f296371e642b17ab83a64fca9b9044d10b0f6a5319ae0e2ee2a76c0c7f235a1223ea30a75c93efd51c3abd465c611878ebc52d9830e61978f914d7c8908461008c565b6102cd60808801357f0cefdb3db08f930f2ed5534a797dc304a1189c61a2835aabb6c5831f0ca838f37f15bf6ee50fbb6b6a07695b99fa739330553161a7de0b0380556b61ebe950563f8461008c565b61031d60a08801357f0b50c85999c665bad3101fb618ca967aa4860c1c07f4c54bcf692b7b30b2c11a7f2d4f881288f63fa77f63eaad252bd5efbbbda01e21976fb645aaadd286929c3f8461008c565b61036d60c08801357f15b81a815c06b38295623648d75372799d4755f7a0b74f7bd655f5f64715a03e7f09331bcaac14f8bcf495ed09470e01f3c268f1fdb4e019c19c836e2c8310044a8461008c565b6103bd60e08801357f2a2a8f30efa6592960fa69f190f96c5f0b432948973a9c53269de3e6b8abebb57f297cd48dfb07dc7ad0120ed8151942d511ebca1b71a736b61ac6375e2a51947a8461008c565b61040e6101008801357f0a9c03a1994f221c057f75855cb14a95329dde81e32a7a8660a3828c46e4af7d7f1dc315ae7bd487ac77c690ee6e5d2fe7bbfd5ae36935ffac15114a4f2748dc5b8461008c565b61045f6101208801357f0280bc41f56d2038589161b139f5c3704eeb19e9da2f170a5b4e977678a727697f063f6dc839c18a58049574763b3de59bc2c20609b01907e66dcfe264b091cd858461008c565b6104b06101408801357f1f96dc322de85ba0a31ce878d61f5047eba9ad25489230b888ede7739aeb36f57f0d58db0890c2f6ee0bda8261a76d6ad9da96e539d0df7046cd0799f0176a53fb8461008c565b6105016101608801357f246ef5979ae9aea616e30dbab411c28406510a656ddd2043a5b9211d31edd1647f24d8db926da6b7c4a17804818d83058eb0f5dfa6163c3922aa9a7edeb4b85ede8461008c565b6105526101808801357f1011fe6c75f7c6cf1a8a62ff71387fef8a19e46d0af37193380a7c603f7529497f12b2d70c94e401c6f3822578fb27c67f97bf1827a1b9e0cc1c2fb34a68a6521d8461008c565b6105a36101a08801357f082d86555b48de36b698d5bc0cb44148b3a0eb1d3b992638453070deb120b15d7f26b43cf48f595a8e3e2a3b8515b7df9db6ffebecbc968995b4071e0f2dad32dc8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1f7f9f69ea5e04a56ee102635a0fcdbefd57b4c7f37a1e0d903ba69281a5f0d36102808201527f2a49c1e717e044ad7bc38e0b841e28e08eebe51b906016be33a2ff2d74f10c586102a08201527f027a67b0798b9350cd04c5ce09117b7e660dbe3e1449f667ea13c3c43255f84c6102c08201527f19725ce00771a3c317cb70a3c5856f91c6ac2313426f5863fcd93969d2384de06102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108985f84013561005a565b6108a5602084013561005a565b6108b2604084013561005a565b6108bf606084013561005a565b6108cc608084013561005a565b6108d960a084013561005a565b6108e660c084013561005a565b6108f360e084013561005a565b61090161010084013561005a565b61090f61012084013561005a565b61091d61014084013561005a565b61092b61016084013561005a565b61093961018084013561005a565b6109476101a084013561005a565b610954818486888a6100f2565b9050805f5260205ff35b806040810183101561096e575f5ffd5b92915050565b5f5f5f5f6102c08587031215610988575f5ffd5b610992868661095e565b935060c08501868111156109a4575f5ffd5b6040860193506109b4878261095e565b925050856102c0860111156109c7575f5ffd5b5091949093509091610100019056fea2646970667358221220c5df5a746d614b72f69595bc69601e5559fe5a1a70d66d8b1723b65d65e2b55c64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610974565b610054565b604051901515815260200160405180910390f35b5f610881565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7e10acd6d4ce082a72b623deeac4b4c1c526b8ab76ab54f82d13b63a6f23e2cd85527f282cd953fc7bc024a80710dd645d4cd8e4ef6d10eb7403a76618f96eddb5336e60208601525f608086018661018d87357f21626e5f52776516ac007ae23e14ca016f4e7623b79f63f4ab59482e4872c52b7f2c8f6445390acb60223f07dcf516fee816534c9940dc8d59595786b35106f0f38461008c565b6101dd60208801357f20d91723fc6a5cff2a4d8bd53db8c7647c86b9245b27d7042634dd317becf0797f1693b6ee023f9ef0c9e7cb1d290717e3df5f6d2154ba30f3a6a833f3171c2ee08461008c565b61022d60408801357f1a9347082efac79b5d64033c95c7f2190984cd2a19884b4ad26162ea47e0ea3b7f27173150520b68cc7844935166da0f68924aeccc8a30ae9ca0768eb597cf2a638461008c565b61027d60608801357f207839c9f296371e642b17ab83a64fca9b9044d10b0f6a5319ae0e2ee2a76c0c7f235a1223ea30a75c93efd51c3abd465c611878ebc52d9830e61978f914d7c8908461008c565b6102cd60808801357f0cefdb3db08f930f2ed5534a797dc304a1189c61a2835aabb6c5831f0ca838f37f15bf6ee50fbb6b6a07695b99fa739330553161a7de0b0380556b61ebe950563f8461008c565b61031d60a08801357f0b50c85999c665bad3101fb618ca967aa4860c1c07f4c54bcf692b7b30b2c11a7f2d4f881288f63fa77f63eaad252bd5efbbbda01e21976fb645aaadd286929c3f8461008c565b61036d60c08801357f15b81a815c06b38295623648d75372799d4755f7a0b74f7bd655f5f64715a03e7f09331bcaac14f8bcf495ed09470e01f3c268f1fdb4e019c19c836e2c8310044a8461008c565b6103bd60e08801357f2a2a8f30efa6592960fa69f190f96c5f0b432948973a9c53269de3e6b8abebb57f297cd48dfb07dc7ad0120ed8151942d511ebca1b71a736b61ac6375e2a51947a8461008c565b61040e6101008801357f0a9c03a1994f221c057f75855cb14a95329dde81e32a7a8660a3828c46e4af7d7f1dc315ae7bd487ac77c690ee6e5d2fe7bbfd5ae36935ffac15114a4f2748dc5b8461008c565b61045f6101208801357f0280bc41f56d2038589161b139f5c3704eeb19e9da2f170a5b4e977678a727697f063f6dc839c18a58049574763b3de59bc2c20609b01907e66dcfe264b091cd858461008c565b6104b06101408801357f1f96dc322de85ba0a31ce878d61f5047eba9ad25489230b888ede7739aeb36f57f0d58db0890c2f6ee0bda8261a76d6ad9da96e539d0df7046cd0799f0176a53fb8461008c565b6105016101608801357f246ef5979ae9aea616e30dbab411c28406510a656ddd2043a5b9211d31edd1647f24d8db926da6b7c4a17804818d83058eb0f5dfa6163c3922aa9a7edeb4b85ede8461008c565b6105526101808801357f1011fe6c75f7c6cf1a8a62ff71387fef8a19e46d0af37193380a7c603f7529497f12b2d70c94e401c6f3822578fb27c67f97bf1827a1b9e0cc1c2fb34a68a6521d8461008c565b6105a36101a08801357f082d86555b48de36b698d5bc0cb44148b3a0eb1d3b992638453070deb120b15d7f26b43cf48f595a8e3e2a3b8515b7df9db6ffebecbc968995b4071e0f2dad32dc8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1f7f9f69ea5e04a56ee102635a0fcdbefd57b4c7f37a1e0d903ba69281a5f0d36102808201527f2a49c1e717e044ad7bc38e0b841e28e08eebe51b906016be33a2ff2d74f10c586102a08201527f027a67b0798b9350cd04c5ce09117b7e660dbe3e1449f667ea13c3c43255f84c6102c08201527f19725ce00771a3c317cb70a3c5856f91c6ac2313426f5863fcd93969d2384de06102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108985f84013561005a565b6108a5602084013561005a565b6108b2604084013561005a565b6108bf606084013561005a565b6108cc608084013561005a565b6108d960a084013561005a565b6108e660c084013561005a565b6108f360e084013561005a565b61090161010084013561005a565b61090f61012084013561005a565b61091d61014084013561005a565b61092b61016084013561005a565b61093961018084013561005a565b6109476101a084013561005a565b610954818486888a6100f2565b9050805f5260205ff35b806040810183101561096e575f5ffd5b92915050565b5f5f5f5f6102c08587031215610988575f5ffd5b610992868661095e565b935060c08501868111156109a4575f5ffd5b6040860193506109b4878261095e565b925050856102c0860111156109c7575f5ffd5b5091949093509091610100019056fea2646970667358221220c5df5a746d614b72f69595bc69601e5559fe5a1a70d66d8b1723b65d65e2b55c64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol",
- "buildInfoId": "solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json
deleted file mode 100644
index 3a8d5c1..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.json
+++ /dev/null
@@ -1,637 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV1",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205c716993d98e927c2e009d323d30b276b9f9053b13c990872e37e08ceda5f0e864736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205c716993d98e927c2e009d323d30b276b9f9053b13c990872e37e08ceda5f0e864736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1487
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1238
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4794
- },
- {
- "length": 32,
- "start": 4835
- },
- {
- "length": 32,
- "start": 5159
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "buildInfoId": "solc-0_8_28-7aa766fe6b7b062ed2ddb662f43195e0e5c263ca"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json
deleted file mode 100644
index 3a8d5c1..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.json
+++ /dev/null
@@ -1,637 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV1",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205c716993d98e927c2e009d323d30b276b9f9053b13c990872e37e08ceda5f0e864736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205c716993d98e927c2e009d323d30b276b9f9053b13c990872e37e08ceda5f0e864736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1487
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1238
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4794
- },
- {
- "length": 32,
- "start": 4835
- },
- {
- "length": 32,
- "start": 5159
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV1.sol",
- "buildInfoId": "solc-0_8_28-7aa766fe6b7b062ed2ddb662f43195e0e5c263ca"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json
deleted file mode 100644
index 9aa0056..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.json
+++ /dev/null
@@ -1,637 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV2",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212201730379fe7a3c7937db67ca664b730fe2e0b84fe42189a88b0c15e26b364904064736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212201730379fe7a3c7937db67ca664b730fe2e0b84fe42189a88b0c15e26b364904064736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1487
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1238
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4796
- },
- {
- "length": 32,
- "start": 4837
- },
- {
- "length": 32,
- "start": 5161
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "buildInfoId": "solc-0_8_28-073f43613e21cd9c4dda603b6759f0d8e61b5e93"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json
deleted file mode 100644
index 9aa0056..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation.json
+++ /dev/null
@@ -1,637 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV2",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212201730379fe7a3c7937db67ca664b730fe2e0b84fe42189a88b0c15e26b364904064736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212201730379fe7a3c7937db67ca664b730fe2e0b84fe42189a88b0c15e26b364904064736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1487
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1238
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4796
- },
- {
- "length": 32,
- "start": 4837
- },
- {
- "length": 32,
- "start": 5161
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol",
- "buildInfoId": "solc-0_8_28-073f43613e21cd9c4dda603b6759f0d8e61b5e93"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json
deleted file mode 100644
index ee51215..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.json
+++ /dev/null
@@ -1,691 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV3",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212203e7631d092463e9fef733079a709fae68d0cf33ba8f41e1065fa3c8bfd72784264736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212203e7631d092463e9fef733079a709fae68d0cf33ba8f41e1065fa3c8bfd72784264736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1517
- },
- {
- "length": 20,
- "start": 3824
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1268
- },
- {
- "length": 20,
- "start": 3575
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5556
- },
- {
- "length": 32,
- "start": 5597
- },
- {
- "length": 32,
- "start": 5921
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol",
- "buildInfoId": "solc-0_8_28-afcc26c0e2a098ed3d6af1f251e333e826a18474"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json
deleted file mode 100644
index ee51215..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation.json
+++ /dev/null
@@ -1,691 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV3",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdate",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212203e7631d092463e9fef733079a709fae68d0cf33ba8f41e1065fa3c8bfd72784264736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212203e7631d092463e9fef733079a709fae68d0cf33ba8f41e1065fa3c8bfd72784264736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1517
- },
- {
- "length": 20,
- "start": 3824
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1268
- },
- {
- "length": 20,
- "start": 3575
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5556
- },
- {
- "length": 32,
- "start": 5597
- },
- {
- "length": 32,
- "start": 5921
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol",
- "buildInfoId": "solc-0_8_28-afcc26c0e2a098ed3d6af1f251e333e826a18474"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.json
deleted file mode 100644
index 0355bda..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.json
+++ /dev/null
@@ -1,704 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV4",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516124506100f95f395f818161168a015281816116b301526117f701526124505ff3fe608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1574
- },
- {
- "length": 20,
- "start": 4081
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1325
- },
- {
- "length": 20,
- "start": 3832
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5770
- },
- {
- "length": 32,
- "start": 5811
- },
- {
- "length": 32,
- "start": 6135
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol",
- "buildInfoId": "solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation.json
deleted file mode 100644
index 0355bda..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation.json
+++ /dev/null
@@ -1,704 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV4",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "success",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "publicInputs",
- "type": "uint256[10]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVault",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "depositNote",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifierTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516124506100f95f395f818161168a015281816116b301526117f701526124505ff3fe608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f935073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__92506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1574
- },
- {
- "length": 20,
- "start": 4081
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 1325
- },
- {
- "length": 20,
- "start": 3832
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5770
- },
- {
- "length": 32,
- "start": 5811
- },
- {
- "length": 32,
- "start": 6135
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol",
- "buildInfoId": "solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.json
deleted file mode 100644
index e69c420..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.json
+++ /dev/null
@@ -1,668 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV5",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNoteTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNullifierTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidNotesRoot",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidWithdrawProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NoteNotScheduledForDeposit",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "PortalNotRegistered",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "publicInputs",
- "type": "uint256[9]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVaultV2",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifiersTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifierV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d506100f95f395f8181610f9f01528181610fc8015261110c0152611d505ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3290
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3041
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 3999
- },
- {
- "length": 32,
- "start": 4040
- },
- {
- "length": 32,
- "start": 4364
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol",
- "buildInfoId": "solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation.json
deleted file mode 100644
index e69c420..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation.json
+++ /dev/null
@@ -1,668 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV5",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNoteTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNullifierTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidNotesRoot",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidWithdrawProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NoteNotScheduledForDeposit",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "PortalNotRegistered",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "publicInputs",
- "type": "uint256[9]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVaultV2",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifiersTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifierV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d506100f95f395f8181610f9f01528181610fc8015261110c0152611d505ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f945073__$759bf5a5ad889f3dc71fc353c9ae5c518b$__93506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3290
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3041
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 3999
- },
- {
- "length": 32,
- "start": 4040
- },
- {
- "length": 32,
- "start": 4364
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol",
- "buildInfoId": "solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6.json
deleted file mode 100644
index 18895d9..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6.json
+++ /dev/null
@@ -1,668 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV6",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNoteTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNullifierTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidNotesRoot",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidWithdrawProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NoteNotScheduledForDeposit",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "PortalNotRegistered",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "publicInputs",
- "type": "uint256[9]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVaultV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifiersTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifierV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611e4b6100f95f395f81816110500152818161107901526111bd0152611e4b5ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3406
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3157
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4176
- },
- {
- "length": 32,
- "start": 4217
- },
- {
- "length": 32,
- "start": 4541
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol",
- "buildInfoId": "solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation.json
deleted file mode 100644
index 18895d9..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation.json
+++ /dev/null
@@ -1,668 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregatorAlphaV6",
- "sourceName": "contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNoteTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "CurrentNullifierTreeRootMismatch",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidNotesRoot",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidWithdrawProof",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NoteNotScheduledForDeposit",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "PortalNotRegistered",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "DepositedNote",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "aggregationVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyAggregationVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- }
- ],
- "name": "autoShield",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "publicInputs",
- "type": "uint256[14]"
- }
- ],
- "name": "commitAggregationBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "publicInputs",
- "type": "uint256[4]"
- }
- ],
- "name": "commitDepositBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "proof_a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "proof_b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "proof_c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "publicInputs",
- "type": "uint256[9]"
- }
- ],
- "name": "commitWithdrawalBatch",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "curvyVault",
- "outputs": [
- {
- "internalType": "contract ICurvyVaultV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNoteTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNullifiersTreeRoot",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "insertionVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyInsertionVerifier",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxAggregations",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxDeposits",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "maxWithdrawals",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "noteId",
- "type": "uint256"
- }
- ],
- "name": "noteInQueue",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "portalFactory",
- "outputs": [
- {
- "internalType": "contract IPortalFactory",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "newNotesTreeRoot",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "newNullifiersTreeRoot",
- "type": "uint256"
- }
- ],
- "name": "reset",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "insertionVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregationVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "withdrawVerifier",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyVault",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "portalFactory",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "maxDeposits",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxWithdrawals",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "maxAggregations",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.AggregatorConfigurationUpdateV2",
- "name": "_update",
- "type": "tuple"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawVerifier",
- "outputs": [
- {
- "internalType": "contract ICurvyWithdrawVerifierV3",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611e4b6100f95f395f81816110500152818161107901526111bd0152611e4b5ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f73__$759bf5a5ad889f3dc71fc353c9ae5c518b$__6320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033",
- "linkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3406
- }
- ]
- }
- },
- "deployedLinkReferences": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "PoseidonT4": [
- {
- "length": 20,
- "start": 3157
- }
- ]
- }
- },
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4176
- },
- {
- "length": 32,
- "start": 4217
- },
- {
- "length": 32,
- "start": 4541
- }
- ]
- },
- "inputSourceName": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol",
- "buildInfoId": "solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2.json
deleted file mode 100644
index 74a22ca..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyInsertionVerifierAlpha_2_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "_pubSignals",
- "type": "uint256[4]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506106648061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d7565b610054565b604051901515815260200160405180910390f35b5f61055c565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0f3cc497f7f2ad2db9f9a01e1d1e237e7bd547ee48d3698641bae08ce37c187485527f2a2f300a2bc9b5576e8d348d9542dedfce1dd7566c9f7ad0c7936e9508f2d13f60208601525f608086018661018e87357f152cd78e51c23961af90e069fcceb20b0358a4c13f4d05ad78f5554803410ec47f068d0161c738b8256d8f80c113a6f2adc60bf92724e5ba844434551f353109bb8461008c565b6101de60208801357f28aeb7fafb1d5864b489fac2ac75795429a84564ed301367b95bdbbda22e41cc7f01fb82a3a457b9782065bddb3961e014b8602fe337a83a253a4edbe7f9eca5de8461008c565b61022e60408801357f10e505cabab95d2954811e50e0c907e6e27d3ea37df4576cb85d2b024b758e5e7f132ffdaaa0e5fbd39240ae81be15c78f27d1a5e9f0b046bc50a19ebd0e1f50be8461008c565b61027e60608801357f061f18bbab38fe7f8eca85f2017b25f057fb908ca68d0965746884ca8b0b2e027f0323511d8b4f23d71a970779314d464e5993156eaed0970a246cd2a43da830c88461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f2ce5cf088183ccc73bfeb1244cdee7ae92ceb0e007194b0bf6c6e9819a863ca960c08201527f0b549a9abb46bc0c3ed48341aa21baa4532bca1fb1ff7a8ef409d3384eb73d3660e08201527f270e5ddc8a3d6e364fae6b353c6deedc579e522582d3d1d60036e9c43428bb8e6101008201527f2d9ef7723573eb05565ba62424d4b2f2d5a0e68d542f8c45daadb2f10a5cde376101208201527f1f542545a1550702631817615d0eac929e73ccc384d92ac156c7d3577e01d5226101408201527f08cd2dbefe01d914cd9826b6a1309de1d3c645a028b69cc3c690a05c183a9fa36101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f126779f2434a76e4e37da855f43a1df5648908e4e91eebf1e086544970eed7b86102808201527f12624c6dbae3875cc0583ab185cb81fc69d606519eef4d6140b7ac67aa6e26e76102a08201527f116d7e6cfc0480d16acdcebb03bef4a46abe3cff28a3aa60d1bf691b43679d866102c08201527f1bbda14ad6f8f4d5d33363f1d50fd72bf4b3b25d615b896c9e050098f5016f7d6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105735f84013561005a565b610580602084013561005a565b61058d604084013561005a565b61059a606084013561005a565b6105a7818486888a6100f2565b9050805f5260205ff35b80604081018310156105c1575f5ffd5b92915050565b80608081018310156105c1575f5ffd5b5f5f5f5f61018085870312156105eb575f5ffd5b6105f586866105b1565b935061060486604087016105c7565b92506106138660c087016105b1565b91506106238661010087016105c7565b90509295919450925056fea26469706673582212206f782de436746e389d2f3f8eeac94b985e369b9a2c08f0f7a2167fc9a1fa233d64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d7565b610054565b604051901515815260200160405180910390f35b5f61055c565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0f3cc497f7f2ad2db9f9a01e1d1e237e7bd547ee48d3698641bae08ce37c187485527f2a2f300a2bc9b5576e8d348d9542dedfce1dd7566c9f7ad0c7936e9508f2d13f60208601525f608086018661018e87357f152cd78e51c23961af90e069fcceb20b0358a4c13f4d05ad78f5554803410ec47f068d0161c738b8256d8f80c113a6f2adc60bf92724e5ba844434551f353109bb8461008c565b6101de60208801357f28aeb7fafb1d5864b489fac2ac75795429a84564ed301367b95bdbbda22e41cc7f01fb82a3a457b9782065bddb3961e014b8602fe337a83a253a4edbe7f9eca5de8461008c565b61022e60408801357f10e505cabab95d2954811e50e0c907e6e27d3ea37df4576cb85d2b024b758e5e7f132ffdaaa0e5fbd39240ae81be15c78f27d1a5e9f0b046bc50a19ebd0e1f50be8461008c565b61027e60608801357f061f18bbab38fe7f8eca85f2017b25f057fb908ca68d0965746884ca8b0b2e027f0323511d8b4f23d71a970779314d464e5993156eaed0970a246cd2a43da830c88461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f2ce5cf088183ccc73bfeb1244cdee7ae92ceb0e007194b0bf6c6e9819a863ca960c08201527f0b549a9abb46bc0c3ed48341aa21baa4532bca1fb1ff7a8ef409d3384eb73d3660e08201527f270e5ddc8a3d6e364fae6b353c6deedc579e522582d3d1d60036e9c43428bb8e6101008201527f2d9ef7723573eb05565ba62424d4b2f2d5a0e68d542f8c45daadb2f10a5cde376101208201527f1f542545a1550702631817615d0eac929e73ccc384d92ac156c7d3577e01d5226101408201527f08cd2dbefe01d914cd9826b6a1309de1d3c645a028b69cc3c690a05c183a9fa36101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f126779f2434a76e4e37da855f43a1df5648908e4e91eebf1e086544970eed7b86102808201527f12624c6dbae3875cc0583ab185cb81fc69d606519eef4d6140b7ac67aa6e26e76102a08201527f116d7e6cfc0480d16acdcebb03bef4a46abe3cff28a3aa60d1bf691b43679d866102c08201527f1bbda14ad6f8f4d5d33363f1d50fd72bf4b3b25d615b896c9e050098f5016f7d6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105735f84013561005a565b610580602084013561005a565b61058d604084013561005a565b61059a606084013561005a565b6105a7818486888a6100f2565b9050805f5260205ff35b80604081018310156105c1575f5ffd5b92915050565b80608081018310156105c1575f5ffd5b5f5f5f5f61018085870312156105eb575f5ffd5b6105f586866105b1565b935061060486604087016105c7565b92506106138660c087016105b1565b91506106238661010087016105c7565b90509295919450925056fea26469706673582212206f782de436746e389d2f3f8eeac94b985e369b9a2c08f0f7a2167fc9a1fa233d64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol",
- "buildInfoId": "solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2.json
deleted file mode 100644
index db29871..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyWithdrawVerifierAlpha_2_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "_pubSignals",
- "type": "uint256[10]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506108918061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b3660046107f9565b610054565b604051901515815260200160405180910390f35b5f61073e565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f1a75f14b8b1faa4b851f07b25985339af1f9563cb229396803fd379fead2bd7385527f0b5b03df8219c60d5be03ad52394f3d6330cf3e7cea9e656bc22982dd15cbadc60208601525f608086018661018e87357f05f00c0d109f87a8cf18b9d3052caae6027871b0d6fea2f54ca225891e16b0607f0d35ddf8253fb232d095057744ccb6f9d5887bee97ea61f885d511934169bcf08461008c565b6101de60208801357f2a60d3a69ccee567e2b57a0a42bcf19ba0d2335ceb81a2dcb71439314fea13857f2f70a47844f43803cbb4ce9a69cd5b3db4647da90f325d2ef456abea72d0bfe08461008c565b61022e60408801357f0f18cbcd1cbf7d154a35393c17382058e4b30517ab8be123af7d1951c671d4697f26cfb6e0961b50d6d1f534baef948730bec2a603ebf189eaaf72036e2a4d2fe68461008c565b61027e60608801357f033ae488254843311cd5bb9676251b2c80852d467355d37f443e17d049a503267f27e5a68de42fcbcbadd940c39e2013830c75dbb9ad6714cb768ba7d14af9421a8461008c565b6102ce60808801357f28120958d688c8a0d58372b242df5ec1c75aa124ab6f19c90c4b76b81057fd297f11c4be0f98ac33b680d4607a898dc72cdfc6d9946943b3e9f0080fe825263a5d8461008c565b61031e60a08801357f037d488c8ba35a919f4cfd44b1a9be07a0ca1ea689695c6b238ad364c47bbf7a7f2dd63748d624fd0124f265891b52eeb7d5565727b674658be4378d6e5b46be308461008c565b61036e60c08801357f2297bda45459480a6a488bd3386537b38ae11ffecb6beaec43e291d33dd2f8947f1d7c255c5e9cfa6d8457dc20e4af90332c6550fa6bea6ac80b2fcae91e31fb658461008c565b6103be60e08801357f1c564b05c0c5fc1db338de776a71a9b6408e0f1062ee5eec1ead8fe1fb68f0317f085c76b320e78e8fc1c30cd9a86ee083c737af478c344a985ff23109398c4e768461008c565b61040f6101008801357f0f6d3858a35815b73d414424416d4e35babb3e0141641fb6f11c5899b96ff6ce7f0678620b35e9ade6b5807cf7ccd5210ae099894132f0bff6345ba129e944dd3d8461008c565b6104606101208801357f2ef17308df02f12bcd04a63c4f9642e6a21bbfecd79bc266d9278cba32c0b7f47f1e5b526c2f7dbd765611c3117d2aa8924597b68d5b8d3654c375174d6affa8998461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f044bacd3d9b251fa2cdcb89c1e71c78d2d0ff824d43403d616a47c804c0469696102808201527f297536676d7cec34d41955f24cc5034a5b79d92b20c48c6d8073bc32016612396102a08201527f0281d22ffce2cf0ca8b4109517cf30ceed20be4d2ed307fda036ad8ef5e12df26102c08201527f1ffe72c016746c242459c1973b77d50d6415bb22ce31c61ee504c42c65b3d33c6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107555f84013561005a565b610762602084013561005a565b61076f604084013561005a565b61077c606084013561005a565b610789608084013561005a565b61079660a084013561005a565b6107a360c084013561005a565b6107b060e084013561005a565b6107be61010084013561005a565b6107cc61012084013561005a565b6107d9818486888a6100f2565b9050805f5260205ff35b80604081018310156107f3575f5ffd5b92915050565b5f5f5f5f610240858703121561080d575f5ffd5b61081786866107e3565b935060c0850186811115610829575f5ffd5b60408601935061083987826107e3565b925050856102408601111561084c575f5ffd5b5091949093509091610100019056fea2646970667358221220703faca2770b9c9f7e9a23c6d18d7c741c60c3262a4a3449160cfe04d5d9618164736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b3660046107f9565b610054565b604051901515815260200160405180910390f35b5f61073e565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f1a75f14b8b1faa4b851f07b25985339af1f9563cb229396803fd379fead2bd7385527f0b5b03df8219c60d5be03ad52394f3d6330cf3e7cea9e656bc22982dd15cbadc60208601525f608086018661018e87357f05f00c0d109f87a8cf18b9d3052caae6027871b0d6fea2f54ca225891e16b0607f0d35ddf8253fb232d095057744ccb6f9d5887bee97ea61f885d511934169bcf08461008c565b6101de60208801357f2a60d3a69ccee567e2b57a0a42bcf19ba0d2335ceb81a2dcb71439314fea13857f2f70a47844f43803cbb4ce9a69cd5b3db4647da90f325d2ef456abea72d0bfe08461008c565b61022e60408801357f0f18cbcd1cbf7d154a35393c17382058e4b30517ab8be123af7d1951c671d4697f26cfb6e0961b50d6d1f534baef948730bec2a603ebf189eaaf72036e2a4d2fe68461008c565b61027e60608801357f033ae488254843311cd5bb9676251b2c80852d467355d37f443e17d049a503267f27e5a68de42fcbcbadd940c39e2013830c75dbb9ad6714cb768ba7d14af9421a8461008c565b6102ce60808801357f28120958d688c8a0d58372b242df5ec1c75aa124ab6f19c90c4b76b81057fd297f11c4be0f98ac33b680d4607a898dc72cdfc6d9946943b3e9f0080fe825263a5d8461008c565b61031e60a08801357f037d488c8ba35a919f4cfd44b1a9be07a0ca1ea689695c6b238ad364c47bbf7a7f2dd63748d624fd0124f265891b52eeb7d5565727b674658be4378d6e5b46be308461008c565b61036e60c08801357f2297bda45459480a6a488bd3386537b38ae11ffecb6beaec43e291d33dd2f8947f1d7c255c5e9cfa6d8457dc20e4af90332c6550fa6bea6ac80b2fcae91e31fb658461008c565b6103be60e08801357f1c564b05c0c5fc1db338de776a71a9b6408e0f1062ee5eec1ead8fe1fb68f0317f085c76b320e78e8fc1c30cd9a86ee083c737af478c344a985ff23109398c4e768461008c565b61040f6101008801357f0f6d3858a35815b73d414424416d4e35babb3e0141641fb6f11c5899b96ff6ce7f0678620b35e9ade6b5807cf7ccd5210ae099894132f0bff6345ba129e944dd3d8461008c565b6104606101208801357f2ef17308df02f12bcd04a63c4f9642e6a21bbfecd79bc266d9278cba32c0b7f47f1e5b526c2f7dbd765611c3117d2aa8924597b68d5b8d3654c375174d6affa8998461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f044bacd3d9b251fa2cdcb89c1e71c78d2d0ff824d43403d616a47c804c0469696102808201527f297536676d7cec34d41955f24cc5034a5b79d92b20c48c6d8073bc32016612396102a08201527f0281d22ffce2cf0ca8b4109517cf30ceed20be4d2ed307fda036ad8ef5e12df26102c08201527f1ffe72c016746c242459c1973b77d50d6415bb22ce31c61ee504c42c65b3d33c6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107555f84013561005a565b610762602084013561005a565b61076f604084013561005a565b61077c606084013561005a565b610789608084013561005a565b61079660a084013561005a565b6107a360c084013561005a565b6107b060e084013561005a565b6107be61010084013561005a565b6107cc61012084013561005a565b6107d9818486888a6100f2565b9050805f5260205ff35b80604081018310156107f3575f5ffd5b92915050565b5f5f5f5f610240858703121561080d575f5ffd5b61081786866107e3565b935060c0850186811115610829575f5ffd5b60408601935061083987826107e3565b925050856102408601111561084c575f5ffd5b5091949093509091610100019056fea2646970667358221220703faca2770b9c9f7e9a23c6d18d7c741c60c3262a4a3449160cfe04d5d9618164736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol",
- "buildInfoId": "solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#ERC1967Proxy.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#ERC1967Proxy.json
deleted file mode 100644
index ad99af7..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#ERC1967Proxy.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ERC1967Proxy",
- "sourceName": "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "_data",
- "type": "bytes"
- }
- ],
- "stateMutability": "payable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "stateMutability": "payable",
- "type": "fallback"
- }
- ],
- "bytecode": "0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033",
- "deployedBytecode": "0x6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Proxy.sol",
- "buildInfoId": "solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#NewAggregationVerifier_v2.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#NewAggregationVerifier_v2.json
deleted file mode 100644
index ef94579..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#NewAggregationVerifier_v2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregationVerifierAlpha_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "input",
- "type": "uint256[14]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "r",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506116ed8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004611553565b610054565b604051901515815260200160405180910390f35b5f61005d61137a565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600e8082526101e082019093525f92909182016101c0803683370190505090505f5b600e811015610133578481600e811061010957610109611633565b602002015182828151811061012057610120611633565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061165b565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611633565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061165b565b8151811061029557610295611633565b60200260200101518a85815181106102af576102af611633565b6020026020010151610ce7565b610d7b565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611633565b6020026020010151610d7b565b9050610327610304865f0151610e12565b8660200151845f015185602001518587604001518b604001518960600151610eae565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6113c8565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f040960ae7a0345676e57477fe153547dac4996ccff6cd8bdbfab68194176ebfe8185019081527f09f390a54aa2c22bc7ab1273ccbfba2d124f277c4b7858b7e6b2b215264b2524828401528152835180850185527f069489b61aadf82d080f5b031e40c78265091ce5230bde1c6b129bd6ee8f929a81527f11d4a92da28cae8798f897d046ec7d2b818431d18ca7d7b30c720a5a4320777f8185015281840152908401528151600f8082526102008201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f18c30badf97bca79e0290e1e2709c180d796014d89846a50fdf83edb9a5f126081527ec6ff8cc32c2c88d6a18abf5d8474acb27c8174ed0969d8641896bb65bc14c46020820152905180515f9061065857610658611633565b602002602001018190525060405180604001604052807f26be249a1394d006fdb707e50aafdbfae0abcdd8424b6e9ecfaad5546f97f78881526020017f1d61635959d20e223664b32f4564dc44e3b7b360b37d388f9f7f51585800155581525081608001516001815181106106cf576106cf611633565b602002602001018190525060405180604001604052807f2506541fa33baf46747051d8ebe51a91b929a728a707a75f0cdeafd7f739fd3181526020017f0d08b60cf224252ab06e146a2272e4c007567054b6e83778161343ae31deb5ac815250816080015160028151811061074657610746611633565b602002602001018190525060405180604001604052807f1f3bdf1e50dc24be846513f7f74068a55438ca5acb4f64c3d3921bde7468a2d681526020017f2e5e1a4837097500979c5d1cf152f067e70c896ac860ba29651b02f6e79edae281525081608001516003815181106107bd576107bd611633565b602002602001018190525060405180604001604052807f203c139f09bbb742c8d4c51234494498c24d56884f24f6545086e2238e763a5881526020017f028e6932f3bc2561b30d7fe76c6de6bebf4c8ea0621bbb6ad41882df5eb7264b815250816080015160048151811061083457610834611633565b602002602001018190525060405180604001604052807f204223f3717fb8cd7ebd1a98a872f75b82e0ef94fa940335abd65568db85649f81526020017f0d2ccb01844a345701f9b1f27c633fdb9ad135aeaa0fae0fd831d08edcdc323b81525081608001516005815181106108ab576108ab611633565b602002602001018190525060405180604001604052807f2ca96167b9316ee5855a83bb4a92112653444fffa0bf5725ae9b090bb288152e81526020017f1d6d5440897b2ec044f2aaecdab5e507c4d69f8c7ca8813db13ce819e79129d4815250816080015160068151811061092257610922611633565b602002602001018190525060405180604001604052807f1cba19de78b5c7c47d2407121e7e86d0d70c63aaee0ce04ca5fecaee97ab75d481526020017f059319895b38a350849d8c25b406b951743ab1c6237a63b648f07c5f3e7e19dd815250816080015160078151811061099957610999611633565b602002602001018190525060405180604001604052807f016cc32364e0c0823d4b34edc52852c6665a421cd8867fbd190170fab867bea681526020017f0734df7485b401e47cbd1c3ab7024be0250f9fa13ab7ec9b3b40d83178eb2b468152508160800151600881518110610a1057610a10611633565b602002602001018190525060405180604001604052807f29286c62d871cffa08e84997e6180455e1edca20d681ef29656ef4d6d45b001781526020017f2e71a4c29421434de9ed5e921a2b6a23816a740d99b6f135fd01cad64bd288ac8152508160800151600981518110610a8757610a87611633565b602002602001018190525060405180604001604052807f2492df9b4d0ad2639c6f34096692d29d2f9ed9ee57d9e9c3ba303e9dbcdae43081526020017f2e497c91b7e5e3a2a9b9f7fe9cdfe78c9e72037bb7552e29d54813a4566c6fbd8152508160800151600a81518110610afe57610afe611633565b602002602001018190525060405180604001604052807f1476e8d331c072345e564de7e0c1b051b0b0b18531bdd1e7441e0257090a0c1781526020017f110b09db70453d4ec6bed001ab95fcb5ce4b8e21a0c4f4c26b91dc8059aa1dce8152508160800151600b81518110610b7557610b75611633565b602002602001018190525060405180604001604052807e6e2fbcfe989d63aea84d90addc8537a921948b213ef36ec5fa0cbb5b68670381526020017f06f6a502b00b2945dd9841eca5ab5f69654f4992777102c600ca5402c35d6c288152508160800151600c81518110610beb57610beb611633565b602002602001018190525060405180604001604052807f01a330e578c215a80aaf5fc3208956611670affa4560f2dd1f7892698b50c35881526020017f0a9ccad9b2edacd7bbb8a5c460a47d7a114166eace7c8cfe32c7a4243c30e0f28152508160800151600d81518110610c6257610c62611633565b602002602001018190525060405180604001604052807f0aa436490c317254e1444ad76cac634937ea2fa0d0730983455fed54f43c9ff981526020017f12228d15b01f07e1d77acd2c2c609c7e4c9a70503e071ec4963191e6d4d13d598152508160800151600e81518110610cd957610cd9611633565b602002602001018190525090565b604080518082019091525f8082526020820152610d02611418565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610d3057fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610d96611436565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610dcf57fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610e5857506020830151155b15610e77575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610e9b919061166e565b610ea5908461168d565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610ec857505060408051600480825260a082019092529192505f9190602082015b610f10611454565b815260200190600190039081610f085790505090508a825f81518110610f3857610f38611633565b60200260200101819052508882600181518110610f5757610f57611633565b60200260200101819052508682600281518110610f7657610f76611633565b60200260200101819052508482600381518110610f9557610f95611633565b602002602001018190525089815f81518110610fb357610fb3611633565b60200260200101819052508781600181518110610fd257610fd2611633565b60200260200101819052508581600281518110610ff157610ff1611633565b6020026020010181905250838160038151811061101057611010611633565b60200260200101819052506110258282611034565b9b9a5050505050505050505050565b5f815183511461107f5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f61108d8260066116a0565b90505f8167ffffffffffffffff8111156110a9576110a96114b0565b6040519080825280602002602001820160405280156110d2578160200160208202803683370190505b5090505f5b838110156112ff578681815181106110f1576110f1611633565b60200260200101515f01518282600661110a91906116a0565b611114905f61165b565b8151811061112457611124611633565b60200260200101818152505086818151811061114257611142611633565b6020026020010151602001518282600661115c91906116a0565b61116790600161165b565b8151811061117757611177611633565b60200260200101818152505085818151811061119557611195611633565b60209081029190910101515151826111ae8360066116a0565b6111b990600261165b565b815181106111c9576111c9611633565b6020026020010181815250508581815181106111e7576111e7611633565b602090810291909101810151510151826112028360066116a0565b61120d90600361165b565b8151811061121d5761121d611633565b60200260200101818152505085818151811061123b5761123b611633565b6020026020010151602001515f6002811061125857611258611633565b6020020151826112698360066116a0565b61127490600461165b565b8151811061128457611284611633565b6020026020010181815250508581815181106112a2576112a2611633565b6020026020010151602001516001600281106112c0576112c0611633565b6020020151826112d18360066116a0565b6112dc90600561165b565b815181106112ec576112ec611633565b60209081029190910101526001016110d7565b50611308611474565b5f602082602086026020860160086107d05a03fa9050808061132657fe5b508061136c5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016113a3611454565b81526020016113c360405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c08301919091528152602081016113f1611454565b81526020016113fe611454565b815260200161140b611454565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280611467611492565b81526020016113c3611492565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156114f957634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611510575f5ffd5b5f61151b60406114c4565b905080604084018581111561152e575f5ffd5b845b81811015611548578035835260209283019201611530565b509195945050505050565b5f5f5f5f6102c08587031215611567575f5ffd5b6115718686611501565b935085605f860112611581575f5ffd5b604061158c816114c4565b8060c088018981111561159d575f5ffd5b604089015b818110156115c3576115b48b82611501565b845260209093019284016115a2565b508196506115d18a82611501565b95505050505061010085015f87601f8301126115eb575f5ffd5b5f6101c06115f8816114c4565b91508301818a821115611609575f5ffd5b5b8185101561162257843581526020948501940161160a565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e611647565b5f8261168857634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e611647565b808202811582820484141761033e5761033e61164756fea26469706673582212208ecec3b58f8c69288c925191a76554c85a5d679e9a34b2047785e1439c8c3d1d64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004611553565b610054565b604051901515815260200160405180910390f35b5f61005d61137a565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600e8082526101e082019093525f92909182016101c0803683370190505090505f5b600e811015610133578481600e811061010957610109611633565b602002015182828151811061012057610120611633565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061165b565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611633565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061165b565b8151811061029557610295611633565b60200260200101518a85815181106102af576102af611633565b6020026020010151610ce7565b610d7b565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611633565b6020026020010151610d7b565b9050610327610304865f0151610e12565b8660200151845f015185602001518587604001518b604001518960600151610eae565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6113c8565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f040960ae7a0345676e57477fe153547dac4996ccff6cd8bdbfab68194176ebfe8185019081527f09f390a54aa2c22bc7ab1273ccbfba2d124f277c4b7858b7e6b2b215264b2524828401528152835180850185527f069489b61aadf82d080f5b031e40c78265091ce5230bde1c6b129bd6ee8f929a81527f11d4a92da28cae8798f897d046ec7d2b818431d18ca7d7b30c720a5a4320777f8185015281840152908401528151600f8082526102008201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f18c30badf97bca79e0290e1e2709c180d796014d89846a50fdf83edb9a5f126081527ec6ff8cc32c2c88d6a18abf5d8474acb27c8174ed0969d8641896bb65bc14c46020820152905180515f9061065857610658611633565b602002602001018190525060405180604001604052807f26be249a1394d006fdb707e50aafdbfae0abcdd8424b6e9ecfaad5546f97f78881526020017f1d61635959d20e223664b32f4564dc44e3b7b360b37d388f9f7f51585800155581525081608001516001815181106106cf576106cf611633565b602002602001018190525060405180604001604052807f2506541fa33baf46747051d8ebe51a91b929a728a707a75f0cdeafd7f739fd3181526020017f0d08b60cf224252ab06e146a2272e4c007567054b6e83778161343ae31deb5ac815250816080015160028151811061074657610746611633565b602002602001018190525060405180604001604052807f1f3bdf1e50dc24be846513f7f74068a55438ca5acb4f64c3d3921bde7468a2d681526020017f2e5e1a4837097500979c5d1cf152f067e70c896ac860ba29651b02f6e79edae281525081608001516003815181106107bd576107bd611633565b602002602001018190525060405180604001604052807f203c139f09bbb742c8d4c51234494498c24d56884f24f6545086e2238e763a5881526020017f028e6932f3bc2561b30d7fe76c6de6bebf4c8ea0621bbb6ad41882df5eb7264b815250816080015160048151811061083457610834611633565b602002602001018190525060405180604001604052807f204223f3717fb8cd7ebd1a98a872f75b82e0ef94fa940335abd65568db85649f81526020017f0d2ccb01844a345701f9b1f27c633fdb9ad135aeaa0fae0fd831d08edcdc323b81525081608001516005815181106108ab576108ab611633565b602002602001018190525060405180604001604052807f2ca96167b9316ee5855a83bb4a92112653444fffa0bf5725ae9b090bb288152e81526020017f1d6d5440897b2ec044f2aaecdab5e507c4d69f8c7ca8813db13ce819e79129d4815250816080015160068151811061092257610922611633565b602002602001018190525060405180604001604052807f1cba19de78b5c7c47d2407121e7e86d0d70c63aaee0ce04ca5fecaee97ab75d481526020017f059319895b38a350849d8c25b406b951743ab1c6237a63b648f07c5f3e7e19dd815250816080015160078151811061099957610999611633565b602002602001018190525060405180604001604052807f016cc32364e0c0823d4b34edc52852c6665a421cd8867fbd190170fab867bea681526020017f0734df7485b401e47cbd1c3ab7024be0250f9fa13ab7ec9b3b40d83178eb2b468152508160800151600881518110610a1057610a10611633565b602002602001018190525060405180604001604052807f29286c62d871cffa08e84997e6180455e1edca20d681ef29656ef4d6d45b001781526020017f2e71a4c29421434de9ed5e921a2b6a23816a740d99b6f135fd01cad64bd288ac8152508160800151600981518110610a8757610a87611633565b602002602001018190525060405180604001604052807f2492df9b4d0ad2639c6f34096692d29d2f9ed9ee57d9e9c3ba303e9dbcdae43081526020017f2e497c91b7e5e3a2a9b9f7fe9cdfe78c9e72037bb7552e29d54813a4566c6fbd8152508160800151600a81518110610afe57610afe611633565b602002602001018190525060405180604001604052807f1476e8d331c072345e564de7e0c1b051b0b0b18531bdd1e7441e0257090a0c1781526020017f110b09db70453d4ec6bed001ab95fcb5ce4b8e21a0c4f4c26b91dc8059aa1dce8152508160800151600b81518110610b7557610b75611633565b602002602001018190525060405180604001604052807e6e2fbcfe989d63aea84d90addc8537a921948b213ef36ec5fa0cbb5b68670381526020017f06f6a502b00b2945dd9841eca5ab5f69654f4992777102c600ca5402c35d6c288152508160800151600c81518110610beb57610beb611633565b602002602001018190525060405180604001604052807f01a330e578c215a80aaf5fc3208956611670affa4560f2dd1f7892698b50c35881526020017f0a9ccad9b2edacd7bbb8a5c460a47d7a114166eace7c8cfe32c7a4243c30e0f28152508160800151600d81518110610c6257610c62611633565b602002602001018190525060405180604001604052807f0aa436490c317254e1444ad76cac634937ea2fa0d0730983455fed54f43c9ff981526020017f12228d15b01f07e1d77acd2c2c609c7e4c9a70503e071ec4963191e6d4d13d598152508160800151600e81518110610cd957610cd9611633565b602002602001018190525090565b604080518082019091525f8082526020820152610d02611418565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610d3057fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610d96611436565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610dcf57fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610e5857506020830151155b15610e77575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610e9b919061166e565b610ea5908461168d565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610ec857505060408051600480825260a082019092529192505f9190602082015b610f10611454565b815260200190600190039081610f085790505090508a825f81518110610f3857610f38611633565b60200260200101819052508882600181518110610f5757610f57611633565b60200260200101819052508682600281518110610f7657610f76611633565b60200260200101819052508482600381518110610f9557610f95611633565b602002602001018190525089815f81518110610fb357610fb3611633565b60200260200101819052508781600181518110610fd257610fd2611633565b60200260200101819052508581600281518110610ff157610ff1611633565b6020026020010181905250838160038151811061101057611010611633565b60200260200101819052506110258282611034565b9b9a5050505050505050505050565b5f815183511461107f5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f61108d8260066116a0565b90505f8167ffffffffffffffff8111156110a9576110a96114b0565b6040519080825280602002602001820160405280156110d2578160200160208202803683370190505b5090505f5b838110156112ff578681815181106110f1576110f1611633565b60200260200101515f01518282600661110a91906116a0565b611114905f61165b565b8151811061112457611124611633565b60200260200101818152505086818151811061114257611142611633565b6020026020010151602001518282600661115c91906116a0565b61116790600161165b565b8151811061117757611177611633565b60200260200101818152505085818151811061119557611195611633565b60209081029190910101515151826111ae8360066116a0565b6111b990600261165b565b815181106111c9576111c9611633565b6020026020010181815250508581815181106111e7576111e7611633565b602090810291909101810151510151826112028360066116a0565b61120d90600361165b565b8151811061121d5761121d611633565b60200260200101818152505085818151811061123b5761123b611633565b6020026020010151602001515f6002811061125857611258611633565b6020020151826112698360066116a0565b61127490600461165b565b8151811061128457611284611633565b6020026020010181815250508581815181106112a2576112a2611633565b6020026020010151602001516001600281106112c0576112c0611633565b6020020151826112d18360066116a0565b6112dc90600561165b565b815181106112ec576112ec611633565b60209081029190910101526001016110d7565b50611308611474565b5f602082602086026020860160086107d05a03fa9050808061132657fe5b508061136c5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016113a3611454565b81526020016113c360405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c08301919091528152602081016113f1611454565b81526020016113fe611454565b815260200161140b611454565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280611467611492565b81526020016113c3611492565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156114f957634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611510575f5ffd5b5f61151b60406114c4565b905080604084018581111561152e575f5ffd5b845b81811015611548578035835260209283019201611530565b509195945050505050565b5f5f5f5f6102c08587031215611567575f5ffd5b6115718686611501565b935085605f860112611581575f5ffd5b604061158c816114c4565b8060c088018981111561159d575f5ffd5b604089015b818110156115c3576115b48b82611501565b845260209093019284016115a2565b508196506115d18a82611501565b95505050505061010085015f87601f8301126115eb575f5ffd5b5f6101c06115f8816114c4565b91508301818a821115611609575f5ffd5b5b8185101561162257843581526020948501940161160a565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e611647565b5f8261168857634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e611647565b808202811582820484141761033e5761033e61164756fea26469706673582212208ecec3b58f8c69288c925191a76554c85a5d679e9a34b2047785e1439c8c3d1d64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol",
- "buildInfoId": "solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#NewInsertionVerifier_v2.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#NewInsertionVerifier_v2.json
deleted file mode 100644
index a6fa56e..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#NewInsertionVerifier_v2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyInsertionVerifierAlpha_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "input",
- "type": "uint256[4]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "r",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b5061124e8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046110b1565b610054565b604051901515815260200160405180910390f35b5f61005d610ed8565b60408051808201825287518152602080890151818301529083528151608080820184528851518285019081528951840151606084015282528351808501855289840180515182525184015181850152828401528483019190915282518084018452875181528783015181840152848401528251600480825260a082019094525f939092909190830190803683370190505090505f5b60048110156101375784816004811061010d5761010d611194565b602002015182828151811061012457610124611194565b60209081029190910101526001016100f2565b506101428183610161565b5f0361015357600192505050610159565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018161018c610348565b9050806080015151855160016101a291906111bc565b146101e95760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cf578387828151811061021b5761021b611194565b6020026020010151106102705760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101e0565b6102c5826102c0856080015184600161028991906111bc565b8151811061029957610299611194565b60200260200101518a85815181106102b3576102b3611194565b6020026020010151610845565b6108d9565b91506001016101ff565b506102f78183608001515f815181106102ea576102ea611194565b60200260200101516108d9565b905061032b610308865f0151610970565b8660200151845f015185602001518587604001518b604001518960600151610a0c565b61033b5760019350505050610342565b5f93505050505b92915050565b610350610f26565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f2933c663723e3630bea92f14ce272046739c1de9ac0de5108d9f97504796bcdd8185019081527f2d9d46b72cb758726c5730268fdedefe18f1b55f5b935a82ecf821c05b252da1828401528152835180850185527f0d673c337136dbf082c467ce378ee3bce333a36c5f27cc01edf54179d6e7dc6081527f0c907c5922e46c3cadc99de46a7b8d01770eded5cef85379f58252ab65cb80ad8185015281840152908401528151600580825260c08201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105cb57505060808201908152604080518082019091527f0cdbf7f6fb2cf15ec81a44a104d6490ebeeeea7bf9a0cbf4d695c2a5e7ef7d8481527e5eff6d3e9efe8e7e1fc61c474ed76a4e42f9233e0e5c1054caa772f3b03c396020820152905180515f9061065b5761065b611194565b602002602001018190525060405180604001604052807f24aa7ee61e4ad8e6faf43e12eeb8b33081498ee103385743f2f357bf8b0c6af181526020017f22d171354b9d3a5d983212b596739d62f1cc42aff5df6db8475e4b887902146581525081608001516001815181106106d2576106d2611194565b602002602001018190525060405180604001604052807f3037fd725c311a8a59dc660d0fa266e188928bef08015840cf45d7998b747a1881526020017f20918eb8f6b9ca00d9004f42b7bd61a3703ea034983fa552ba34fcbde0d59bc2815250816080015160028151811061074957610749611194565b602002602001018190525060405180604001604052807f1b5c870d21c274d5bdf96cd309bdbda13661a47c01ce8483bd3682fcc1d58a3081526020017f2f4600674aa2b704715e8f62433edcae3bae85557d27e74af090ebcdbc0b195e81525081608001516003815181106107c0576107c0611194565b602002602001018190525060405180604001604052807f199fcda69c0bfd4d6f2db0f385bd0fcf78f0074be4d5eeb7f75f32963269d8d981526020017f1638a9aa5129a8fa9964966f9545941fbceb843dd14aa0f40531c6197da17578815250816080015160048151811061083757610837611194565b602002602001018190525090565b604080518082019091525f8082526020820152610860610f76565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa9050808061088e57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101e0565b505092915050565b604080518082019091525f80825260208201526108f4610f94565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa9050808061092d57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101e0565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47901580156109b657506020830151155b156109d5575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f015181526020018285602001516109f991906111cf565b610a0390846111ee565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610a2657505060408051600480825260a082019092529192505f9190602082015b610a6e610fb2565b815260200190600190039081610a665790505090508a825f81518110610a9657610a96611194565b60200260200101819052508882600181518110610ab557610ab5611194565b60200260200101819052508682600281518110610ad457610ad4611194565b60200260200101819052508482600381518110610af357610af3611194565b602002602001018190525089815f81518110610b1157610b11611194565b60200260200101819052508781600181518110610b3057610b30611194565b60200260200101819052508581600281518110610b4f57610b4f611194565b60200260200101819052508381600381518110610b6e57610b6e611194565b6020026020010181905250610b838282610b92565b9b9a5050505050505050505050565b5f8151835114610bdd5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101e0565b82515f610beb826006611201565b90505f8167ffffffffffffffff811115610c0757610c0761100e565b604051908082528060200260200182016040528015610c30578160200160208202803683370190505b5090505f5b83811015610e5d57868181518110610c4f57610c4f611194565b60200260200101515f015182826006610c689190611201565b610c72905f6111bc565b81518110610c8257610c82611194565b602002602001018181525050868181518110610ca057610ca0611194565b60200260200101516020015182826006610cba9190611201565b610cc59060016111bc565b81518110610cd557610cd5611194565b602002602001018181525050858181518110610cf357610cf3611194565b6020908102919091010151515182610d0c836006611201565b610d179060026111bc565b81518110610d2757610d27611194565b602002602001018181525050858181518110610d4557610d45611194565b60209081029190910181015151015182610d60836006611201565b610d6b9060036111bc565b81518110610d7b57610d7b611194565b602002602001018181525050858181518110610d9957610d99611194565b6020026020010151602001515f60028110610db657610db6611194565b602002015182610dc7836006611201565b610dd29060046111bc565b81518110610de257610de2611194565b602002602001018181525050858181518110610e0057610e00611194565b602002602001015160200151600160028110610e1e57610e1e611194565b602002015182610e2f836006611201565b610e3a9060056111bc565b81518110610e4a57610e4a611194565b6020908102919091010152600101610c35565b50610e66610fd2565b5f602082602086026020860160086107d05a03fa90508080610e8457fe5b5080610eca5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101e0565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101610f01610fb2565b8152602001610f2160405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101610f4f610fb2565b8152602001610f5c610fb2565b8152602001610f69610fb2565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280610fc5610ff0565b8152602001610f21610ff0565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561105757634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f83011261106e575f5ffd5b5f6110796040611022565b905080604084018581111561108c575f5ffd5b845b818110156110a657803583526020928301920161108e565b509195945050505050565b5f5f5f5f61018085870312156110c5575f5ffd5b6110cf868661105f565b935085605f8601126110df575f5ffd5b60406110ea81611022565b8060c08801898111156110fb575f5ffd5b604089015b81811015611121576111128b8261105f565b84526020909301928401611100565b5081965061112f8a8261105f565b95505050505061010085015f87601f830112611149575f5ffd5b5f6111546080611022565b905080608084018a811115611167575f5ffd5b5b80851015611183578435825260209485019490910190611168565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610342576103426111a8565b5f826111e957634e487b7160e01b5f52601260045260245ffd5b500690565b81810381811115610342576103426111a8565b8082028115828204841417610342576103426111a856fea264697066735822122052b8c89d46e40ccc60f13c59a59ab39c0a5084d1333d84af2fe13436741f62ef64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046110b1565b610054565b604051901515815260200160405180910390f35b5f61005d610ed8565b60408051808201825287518152602080890151818301529083528151608080820184528851518285019081528951840151606084015282528351808501855289840180515182525184015181850152828401528483019190915282518084018452875181528783015181840152848401528251600480825260a082019094525f939092909190830190803683370190505090505f5b60048110156101375784816004811061010d5761010d611194565b602002015182828151811061012457610124611194565b60209081029190910101526001016100f2565b506101428183610161565b5f0361015357600192505050610159565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018161018c610348565b9050806080015151855160016101a291906111bc565b146101e95760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cf578387828151811061021b5761021b611194565b6020026020010151106102705760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101e0565b6102c5826102c0856080015184600161028991906111bc565b8151811061029957610299611194565b60200260200101518a85815181106102b3576102b3611194565b6020026020010151610845565b6108d9565b91506001016101ff565b506102f78183608001515f815181106102ea576102ea611194565b60200260200101516108d9565b905061032b610308865f0151610970565b8660200151845f015185602001518587604001518b604001518960600151610a0c565b61033b5760019350505050610342565b5f93505050505b92915050565b610350610f26565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f2933c663723e3630bea92f14ce272046739c1de9ac0de5108d9f97504796bcdd8185019081527f2d9d46b72cb758726c5730268fdedefe18f1b55f5b935a82ecf821c05b252da1828401528152835180850185527f0d673c337136dbf082c467ce378ee3bce333a36c5f27cc01edf54179d6e7dc6081527f0c907c5922e46c3cadc99de46a7b8d01770eded5cef85379f58252ab65cb80ad8185015281840152908401528151600580825260c08201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105cb57505060808201908152604080518082019091527f0cdbf7f6fb2cf15ec81a44a104d6490ebeeeea7bf9a0cbf4d695c2a5e7ef7d8481527e5eff6d3e9efe8e7e1fc61c474ed76a4e42f9233e0e5c1054caa772f3b03c396020820152905180515f9061065b5761065b611194565b602002602001018190525060405180604001604052807f24aa7ee61e4ad8e6faf43e12eeb8b33081498ee103385743f2f357bf8b0c6af181526020017f22d171354b9d3a5d983212b596739d62f1cc42aff5df6db8475e4b887902146581525081608001516001815181106106d2576106d2611194565b602002602001018190525060405180604001604052807f3037fd725c311a8a59dc660d0fa266e188928bef08015840cf45d7998b747a1881526020017f20918eb8f6b9ca00d9004f42b7bd61a3703ea034983fa552ba34fcbde0d59bc2815250816080015160028151811061074957610749611194565b602002602001018190525060405180604001604052807f1b5c870d21c274d5bdf96cd309bdbda13661a47c01ce8483bd3682fcc1d58a3081526020017f2f4600674aa2b704715e8f62433edcae3bae85557d27e74af090ebcdbc0b195e81525081608001516003815181106107c0576107c0611194565b602002602001018190525060405180604001604052807f199fcda69c0bfd4d6f2db0f385bd0fcf78f0074be4d5eeb7f75f32963269d8d981526020017f1638a9aa5129a8fa9964966f9545941fbceb843dd14aa0f40531c6197da17578815250816080015160048151811061083757610837611194565b602002602001018190525090565b604080518082019091525f8082526020820152610860610f76565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa9050808061088e57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101e0565b505092915050565b604080518082019091525f80825260208201526108f4610f94565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa9050808061092d57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101e0565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47901580156109b657506020830151155b156109d5575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f015181526020018285602001516109f991906111cf565b610a0390846111ee565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610a2657505060408051600480825260a082019092529192505f9190602082015b610a6e610fb2565b815260200190600190039081610a665790505090508a825f81518110610a9657610a96611194565b60200260200101819052508882600181518110610ab557610ab5611194565b60200260200101819052508682600281518110610ad457610ad4611194565b60200260200101819052508482600381518110610af357610af3611194565b602002602001018190525089815f81518110610b1157610b11611194565b60200260200101819052508781600181518110610b3057610b30611194565b60200260200101819052508581600281518110610b4f57610b4f611194565b60200260200101819052508381600381518110610b6e57610b6e611194565b6020026020010181905250610b838282610b92565b9b9a5050505050505050505050565b5f8151835114610bdd5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101e0565b82515f610beb826006611201565b90505f8167ffffffffffffffff811115610c0757610c0761100e565b604051908082528060200260200182016040528015610c30578160200160208202803683370190505b5090505f5b83811015610e5d57868181518110610c4f57610c4f611194565b60200260200101515f015182826006610c689190611201565b610c72905f6111bc565b81518110610c8257610c82611194565b602002602001018181525050868181518110610ca057610ca0611194565b60200260200101516020015182826006610cba9190611201565b610cc59060016111bc565b81518110610cd557610cd5611194565b602002602001018181525050858181518110610cf357610cf3611194565b6020908102919091010151515182610d0c836006611201565b610d179060026111bc565b81518110610d2757610d27611194565b602002602001018181525050858181518110610d4557610d45611194565b60209081029190910181015151015182610d60836006611201565b610d6b9060036111bc565b81518110610d7b57610d7b611194565b602002602001018181525050858181518110610d9957610d99611194565b6020026020010151602001515f60028110610db657610db6611194565b602002015182610dc7836006611201565b610dd29060046111bc565b81518110610de257610de2611194565b602002602001018181525050858181518110610e0057610e00611194565b602002602001015160200151600160028110610e1e57610e1e611194565b602002015182610e2f836006611201565b610e3a9060056111bc565b81518110610e4a57610e4a611194565b6020908102919091010152600101610c35565b50610e66610fd2565b5f602082602086026020860160086107d05a03fa90508080610e8457fe5b5080610eca5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101e0565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101610f01610fb2565b8152602001610f2160405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101610f4f610fb2565b8152602001610f5c610fb2565b8152602001610f69610fb2565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280610fc5610ff0565b8152602001610f21610ff0565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561105757634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f83011261106e575f5ffd5b5f6110796040611022565b905080604084018581111561108c575f5ffd5b845b818110156110a657803583526020928301920161108e565b509195945050505050565b5f5f5f5f61018085870312156110c5575f5ffd5b6110cf868661105f565b935085605f8601126110df575f5ffd5b60406110ea81611022565b8060c08801898111156110fb575f5ffd5b604089015b81811015611121576111128b8261105f565b84526020909301928401611100565b5081965061112f8a8261105f565b95505050505061010085015f87601f830112611149575f5ffd5b5f6111546080611022565b905080608084018a811115611167575f5ffd5b5b80851015611183578435825260209485019490910190611168565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610342576103426111a8565b5f826111e957634e487b7160e01b5f52601260045260245ffd5b500690565b81810381811115610342576103426111a8565b8082028115828204841417610342576103426111a856fea264697066735822122052b8c89d46e40ccc60f13c59a59ab39c0a5084d1333d84af2fe13436741f62ef64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol",
- "buildInfoId": "solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#NewWithdrawVerifier_v2.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#NewWithdrawVerifier_v2.json
deleted file mode 100644
index 56dc797..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#NewWithdrawVerifier_v2.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyWithdrawVerifierAlpha_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[10]",
- "name": "input",
- "type": "uint256[10]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "r",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506115118061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b366004611377565b610054565b604051901515815260200160405180910390f35b5f61005d61119e565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600a80825261016082019093525f9290918201610140803683370190505090505f5b600a811015610133578481600a811061010957610109611457565b602002015182828151811061012057610120611457565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061147f565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611457565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061147f565b8151811061029557610295611457565b60200260200101518a85815181106102af576102af611457565b6020026020010151610b0b565b610b9f565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611457565b6020026020010151610b9f565b9050610327610304865f0151610c36565b8660200151845f015185602001518587604001518b604001518960600151610cd2565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6111ec565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f0b5a45bbb3d9f21c42579fd5a810f82f25e696fb3b00ef64b8ca2d17d89fe4ed8185019081527f0f79b405819a9900f7edb3f309c9b73a45673c17366eeb72361c23f957680a89828401528152835180850185527f23b107da251eb5c5dd3c157a900388d73f64a4394faf6a12ae2077766d720b0881527f2188bf40a163dba1ba12fc061d0a6fc9d7246af5e912fcbb23b59a53823b7c048185015281840152908401528151600b8082526101808201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f118592ce705cf3d21e870156a4dc6cff3b2a01fca2c8e60a402fc01dd47341de81527f1fe6c8cb2c02b9ddf7ed360fd3ba99867e54e590d7ca62b57d839ef26d549f0c6020820152905180515f9061065957610659611457565b602002602001018190525060405180604001604052807f154574f61b1a23d66f35533910d332b8ab9bffc6274ce4ffb0bf3b7f1210090781526020017f1ac6f7f35d927f760afe3efc726d0d1ab8ab6514d018630e92a11b5079108b9a81525081608001516001815181106106d0576106d0611457565b602002602001018190525060405180604001604052807f102a84a54eb42169d68f30c781aabd282a341b2b4c25cd55fdae5e3479b4182a81526020017f1b8113a1108e05880a85ae50fdaa0f86926095751a6c3f0130cee222578c7911815250816080015160028151811061074757610747611457565b602002602001018190525060405180604001604052807f25504b6ec89efe8110a42f0ffda2f64b4c0b63b83a776f2146c23ddb2b9c346081526020017e1bd1b27eb32e5c1ecc7f9b08d87e6c7eff72e21014bd87c5badb37e82d50c781525081608001516003815181106107bd576107bd611457565b602002602001018190525060405180604001604052807f2955cc92eefc93c0bb8f2a726fbcbadbedd59c2f68b3701defa2ac66e1c1643f81526020017f1a8bfc29eefca9fd267806f814daf245aa0fb67048fbc16761d5fc39282f7336815250816080015160048151811061083457610834611457565b602002602001018190525060405180604001604052807f0acefb487079ce3764bf9e0af6b69a939b8f43cb3cce80262ebd68167a86afa881526020017f2500ee5fc51d1ed187adfe4cb25ef69610207eefc41a868d14a519b58c99286081525081608001516005815181106108ab576108ab611457565b602002602001018190525060405180604001604052807f1eca69b2e86127c29cd324a9b13cf89c0e657596c9e37dc05eec008c8fa84fdb81526020017f2f11a966ac185bf5d584d386b3e8a555d66e51913d8801fb9189542b4bcd3624815250816080015160068151811061092257610922611457565b602002602001018190525060405180604001604052807ee8670dd1e30ffd6e6d42b6f98d3cd5ebb1a6c2a726f4024e6c27b555683cf881526020017f152894c1731fbedba470963903d414e8c210a8b846aedba229071fa832e882fa815250816080015160078151811061099857610998611457565b602002602001018190525060405180604001604052807f2354fe17a8632ee331a1459f6df0806153f19ed6c1645906895e966cea47cab981526020017f27700ede44b18910d2a31045a1d448bb930ba1c39cc918aa3f4b093a610e45b58152508160800151600881518110610a0f57610a0f611457565b602002602001018190525060405180604001604052807f2f583f76ad789e51575f9168446813e1e5655c1f444ed4f8bd2c38c8c438a52e81526020017f21e4aa608b395b9eaf98de7f2c77baac96da672aedab46f36e4a732fbefdaa328152508160800151600981518110610a8657610a86611457565b602002602001018190525060405180604001604052807f29b71cd418de446ac259b14d47ccbc6c7bf3021aa56d6d3ab3fc80becde42ba281526020017f1671437c4af2a055de0faf52bad6da5b1c1f37d53e279ef8d7a04b401b8f00b18152508160800151600a81518110610afd57610afd611457565b602002602001018190525090565b604080518082019091525f8082526020820152610b2661123c565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610b5457fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610bba61125a565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610bf357fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c7c57506020830151155b15610c9b575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610cbf9190611492565b610cc990846114b1565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610cec57505060408051600480825260a082019092529192505f9190602082015b610d34611278565b815260200190600190039081610d2c5790505090508a825f81518110610d5c57610d5c611457565b60200260200101819052508882600181518110610d7b57610d7b611457565b60200260200101819052508682600281518110610d9a57610d9a611457565b60200260200101819052508482600381518110610db957610db9611457565b602002602001018190525089815f81518110610dd757610dd7611457565b60200260200101819052508781600181518110610df657610df6611457565b60200260200101819052508581600281518110610e1557610e15611457565b60200260200101819052508381600381518110610e3457610e34611457565b6020026020010181905250610e498282610e58565b9b9a5050505050505050505050565b5f8151835114610ea35760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610eb18260066114c4565b90505f8167ffffffffffffffff811115610ecd57610ecd6112d4565b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b5090505f5b8381101561112357868181518110610f1557610f15611457565b60200260200101515f015182826006610f2e91906114c4565b610f38905f61147f565b81518110610f4857610f48611457565b602002602001018181525050868181518110610f6657610f66611457565b60200260200101516020015182826006610f8091906114c4565b610f8b90600161147f565b81518110610f9b57610f9b611457565b602002602001018181525050858181518110610fb957610fb9611457565b6020908102919091010151515182610fd28360066114c4565b610fdd90600261147f565b81518110610fed57610fed611457565b60200260200101818152505085818151811061100b5761100b611457565b602090810291909101810151510151826110268360066114c4565b61103190600361147f565b8151811061104157611041611457565b60200260200101818152505085818151811061105f5761105f611457565b6020026020010151602001515f6002811061107c5761107c611457565b60200201518261108d8360066114c4565b61109890600461147f565b815181106110a8576110a8611457565b6020026020010181815250508581815181106110c6576110c6611457565b6020026020010151602001516001600281106110e4576110e4611457565b6020020151826110f58360066114c4565b61110090600561147f565b8151811061111057611110611457565b6020908102919091010152600101610efb565b5061112c611298565b5f602082602086026020860160086107d05a03fa9050808061114a57fe5b50806111905760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016111c7611278565b81526020016111e760405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101611215611278565b8152602001611222611278565b815260200161122f611278565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061128b6112b6565b81526020016111e76112b6565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561131d57634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611334575f5ffd5b5f61133f60406112e8565b9050806040840185811115611352575f5ffd5b845b8181101561136c578035835260209283019201611354565b509195945050505050565b5f5f5f5f610240858703121561138b575f5ffd5b6113958686611325565b935085605f8601126113a5575f5ffd5b60406113b0816112e8565b8060c08801898111156113c1575f5ffd5b604089015b818110156113e7576113d88b82611325565b845260209093019284016113c6565b508196506113f58a82611325565b95505050505061010085015f87601f83011261140f575f5ffd5b5f61014061141c816112e8565b91508301818a82111561142d575f5ffd5b5b8185101561144657843581526020948501940161142e565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e61146b565b5f826114ac57634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e61146b565b808202811582820484141761033e5761033e61146b56fea2646970667358221220dcff813b86dd38808694958c9a737d51423f91e9af2ee777888630650f47d44264736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b366004611377565b610054565b604051901515815260200160405180910390f35b5f61005d61119e565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600a80825261016082019093525f9290918201610140803683370190505090505f5b600a811015610133578481600a811061010957610109611457565b602002015182828151811061012057610120611457565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061147f565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611457565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061147f565b8151811061029557610295611457565b60200260200101518a85815181106102af576102af611457565b6020026020010151610b0b565b610b9f565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611457565b6020026020010151610b9f565b9050610327610304865f0151610c36565b8660200151845f015185602001518587604001518b604001518960600151610cd2565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6111ec565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f0b5a45bbb3d9f21c42579fd5a810f82f25e696fb3b00ef64b8ca2d17d89fe4ed8185019081527f0f79b405819a9900f7edb3f309c9b73a45673c17366eeb72361c23f957680a89828401528152835180850185527f23b107da251eb5c5dd3c157a900388d73f64a4394faf6a12ae2077766d720b0881527f2188bf40a163dba1ba12fc061d0a6fc9d7246af5e912fcbb23b59a53823b7c048185015281840152908401528151600b8082526101808201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f118592ce705cf3d21e870156a4dc6cff3b2a01fca2c8e60a402fc01dd47341de81527f1fe6c8cb2c02b9ddf7ed360fd3ba99867e54e590d7ca62b57d839ef26d549f0c6020820152905180515f9061065957610659611457565b602002602001018190525060405180604001604052807f154574f61b1a23d66f35533910d332b8ab9bffc6274ce4ffb0bf3b7f1210090781526020017f1ac6f7f35d927f760afe3efc726d0d1ab8ab6514d018630e92a11b5079108b9a81525081608001516001815181106106d0576106d0611457565b602002602001018190525060405180604001604052807f102a84a54eb42169d68f30c781aabd282a341b2b4c25cd55fdae5e3479b4182a81526020017f1b8113a1108e05880a85ae50fdaa0f86926095751a6c3f0130cee222578c7911815250816080015160028151811061074757610747611457565b602002602001018190525060405180604001604052807f25504b6ec89efe8110a42f0ffda2f64b4c0b63b83a776f2146c23ddb2b9c346081526020017e1bd1b27eb32e5c1ecc7f9b08d87e6c7eff72e21014bd87c5badb37e82d50c781525081608001516003815181106107bd576107bd611457565b602002602001018190525060405180604001604052807f2955cc92eefc93c0bb8f2a726fbcbadbedd59c2f68b3701defa2ac66e1c1643f81526020017f1a8bfc29eefca9fd267806f814daf245aa0fb67048fbc16761d5fc39282f7336815250816080015160048151811061083457610834611457565b602002602001018190525060405180604001604052807f0acefb487079ce3764bf9e0af6b69a939b8f43cb3cce80262ebd68167a86afa881526020017f2500ee5fc51d1ed187adfe4cb25ef69610207eefc41a868d14a519b58c99286081525081608001516005815181106108ab576108ab611457565b602002602001018190525060405180604001604052807f1eca69b2e86127c29cd324a9b13cf89c0e657596c9e37dc05eec008c8fa84fdb81526020017f2f11a966ac185bf5d584d386b3e8a555d66e51913d8801fb9189542b4bcd3624815250816080015160068151811061092257610922611457565b602002602001018190525060405180604001604052807ee8670dd1e30ffd6e6d42b6f98d3cd5ebb1a6c2a726f4024e6c27b555683cf881526020017f152894c1731fbedba470963903d414e8c210a8b846aedba229071fa832e882fa815250816080015160078151811061099857610998611457565b602002602001018190525060405180604001604052807f2354fe17a8632ee331a1459f6df0806153f19ed6c1645906895e966cea47cab981526020017f27700ede44b18910d2a31045a1d448bb930ba1c39cc918aa3f4b093a610e45b58152508160800151600881518110610a0f57610a0f611457565b602002602001018190525060405180604001604052807f2f583f76ad789e51575f9168446813e1e5655c1f444ed4f8bd2c38c8c438a52e81526020017f21e4aa608b395b9eaf98de7f2c77baac96da672aedab46f36e4a732fbefdaa328152508160800151600981518110610a8657610a86611457565b602002602001018190525060405180604001604052807f29b71cd418de446ac259b14d47ccbc6c7bf3021aa56d6d3ab3fc80becde42ba281526020017f1671437c4af2a055de0faf52bad6da5b1c1f37d53e279ef8d7a04b401b8f00b18152508160800151600a81518110610afd57610afd611457565b602002602001018190525090565b604080518082019091525f8082526020820152610b2661123c565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610b5457fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610bba61125a565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610bf357fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c7c57506020830151155b15610c9b575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610cbf9190611492565b610cc990846114b1565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610cec57505060408051600480825260a082019092529192505f9190602082015b610d34611278565b815260200190600190039081610d2c5790505090508a825f81518110610d5c57610d5c611457565b60200260200101819052508882600181518110610d7b57610d7b611457565b60200260200101819052508682600281518110610d9a57610d9a611457565b60200260200101819052508482600381518110610db957610db9611457565b602002602001018190525089815f81518110610dd757610dd7611457565b60200260200101819052508781600181518110610df657610df6611457565b60200260200101819052508581600281518110610e1557610e15611457565b60200260200101819052508381600381518110610e3457610e34611457565b6020026020010181905250610e498282610e58565b9b9a5050505050505050505050565b5f8151835114610ea35760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610eb18260066114c4565b90505f8167ffffffffffffffff811115610ecd57610ecd6112d4565b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b5090505f5b8381101561112357868181518110610f1557610f15611457565b60200260200101515f015182826006610f2e91906114c4565b610f38905f61147f565b81518110610f4857610f48611457565b602002602001018181525050868181518110610f6657610f66611457565b60200260200101516020015182826006610f8091906114c4565b610f8b90600161147f565b81518110610f9b57610f9b611457565b602002602001018181525050858181518110610fb957610fb9611457565b6020908102919091010151515182610fd28360066114c4565b610fdd90600261147f565b81518110610fed57610fed611457565b60200260200101818152505085818151811061100b5761100b611457565b602090810291909101810151510151826110268360066114c4565b61103190600361147f565b8151811061104157611041611457565b60200260200101818152505085818151811061105f5761105f611457565b6020026020010151602001515f6002811061107c5761107c611457565b60200201518261108d8360066114c4565b61109890600461147f565b815181106110a8576110a8611457565b6020026020010181815250508581815181106110c6576110c6611457565b6020026020010151602001516001600281106110e4576110e4611457565b6020020151826110f58360066114c4565b61110090600561147f565b8151811061111057611110611457565b6020908102919091010152600101610efb565b5061112c611298565b5f602082602086026020860160086107d05a03fa9050808061114a57fe5b50806111905760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016111c7611278565b81526020016111e760405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101611215611278565b8152602001611222611278565b815260200161122f611278565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061128b6112b6565b81526020016111e76112b6565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561131d57634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611334575f5ffd5b5f61133f60406112e8565b9050806040840185811115611352575f5ffd5b845b8181101561136c578035835260209283019201611354565b509195945050505050565b5f5f5f5f610240858703121561138b575f5ffd5b6113958686611325565b935085605f8601126113a5575f5ffd5b60406113b0816112e8565b8060c08801898111156113c1575f5ffd5b604089015b818110156113e7576113d88b82611325565b845260209093019284016113c6565b508196506113f58a82611325565b95505050505061010085015f87601f83011261140f575f5ffd5b5f61014061141c816112e8565b91508301818a82111561142d575f5ffd5b5b8185101561144657843581526020948501940161142e565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e61146b565b5f826114ac57634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e61146b565b808202811582820484141761033e5761033e61146b56fea2646970667358221220dcff813b86dd38808694958c9a737d51423f91e9af2ee777888630650f47d44264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol",
- "buildInfoId": "solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#PoseidonT4.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#PoseidonT4.json
deleted file mode 100644
index 6767884..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#PoseidonT4.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PoseidonT4",
- "sourceName": "contracts/aggregator-alpha/utils/PoseidonT4.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[3]",
- "name": "",
- "type": "uint256[3]"
- }
- ],
- "name": "hash",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- }
- ],
- "bytecode": "0x6130c0610034600b8282823980515f1a607314602857634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe7300000000000000000000000000000000000000003014608060405260043610610034575f3560e01c806320cf0a3714610038575b5f5ffd5b61004b610046366004612f90565b61005d565b60405190815260200160405180910390f35b5f610793565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f52838409099450505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f528384090994505f51602061302b5f395f51905f5284850990505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528384090993505f51602061302b5f395f51905f5283840990505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528384090992505f51602061302b5f395f51905f5282830990505f51602061302b5f395f51905f52825f51602061302b5f395f51905f52838409099150505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b5f7f265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d65f51602061302b5f395f51905f5260805106017f199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa5f51602061302b5f395f51905f5260a05106017f157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf85f51602061302b5f395f51905f5260c05106015f51602061302b5f395f51905f5283840993505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528687090992505f51602061302b5f395f51905f5282830993505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528687090991505f51602061302b5f395f51905f5281820993505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528687090990505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287097f211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87097f19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87097f21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87097f26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be30101010660a052505050610c167f13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e7f251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b9967f0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e7f2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac949026103aa565b610ca27f04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b7f0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f3675497f011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca067f0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd47386103aa565b610d2e7f0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd69414324477f28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a17f259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f7f0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e86103aa565b610dba7f1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c57f26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee757f123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf8117f0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf610063565b610e467f2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a57f2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c7f011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e55747f1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0610063565b610ed27f179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb7f1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d857f192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b7f0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d610063565b610f5e7f10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b877f064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd597f225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e087f29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c610063565b610fea7f2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db7f1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b7f1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb7f0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c610063565b6110767f20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d7f0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b7f062100eb485db06269655cf186a68532985275428450359adc99cec6960711b87f2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926610063565b6111027f26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce57f22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e07f23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b7f25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a610063565b61118e7f1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa7f248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d7297f12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da7f070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9610063565b6112197f2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde1877f04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d657e94975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e7f28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf610063565b6112a47f159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a7eb7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b647f03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b07f2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3610063565b6113307f0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb1737f2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f7f1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d7f1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f610063565b6113bc7f22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea97f0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a7f0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed7057f02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16610063565b6114487f2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d835057f2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e57f1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d07f25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16610063565b6114d47f0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac7f02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a68003557f227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a53190257f044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d610063565b6115607f25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f7f1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c7f0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e57f1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38610063565b6115ec7f21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f9597f2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce7f13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a967f0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a610063565b6116787f09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f14557f0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf7f0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a47f05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b610063565b6117047f176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c4047f1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df7f2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b7f0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335610063565b6117907f2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c77f14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def7f226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a7f2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db610063565b61181c7f0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c7f03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f37f0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c297f2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7610063565b6118a77e780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef3631821857f0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa7f1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa91467f203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78610063565b6119327f222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c7e544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac167f10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e87f10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5610063565b6119be7f04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d7f06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf047467f062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b7f2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5610063565b611a4a7f14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f13647f0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae7f011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f17f13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a610063565b611ad67f2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a7f16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d582597f278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b6077f1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106610063565b611b627f02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe67692500420257f16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf7f15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c9847f29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8610063565b611bee7f1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec7f0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de89907f1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a427f05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119610063565b611c7a7f0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf7f2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d07f09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb96507f25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d610063565b611d067f24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d00567f1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f835297f2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f627f25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2610063565b611d927f2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f639257f06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f57f23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d7f25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74610063565b611e1e7f17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd7f13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be7f265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e7f15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5610063565b611eaa7f2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e7f2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e887f18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c7f21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d610063565b611f367f11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f57f0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c7f0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe57f277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7610063565b611fc27f30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad47f221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f4217f0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb8247f224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6610063565b61204e7f1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b317f0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc7f2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b7f23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0610063565b6120da7f1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b877f174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d77f22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d27f26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3610063565b6121667f2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c8755267f29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e7f0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade4577f1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1610063565b6121f27f0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad7257f1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f7f2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac7063641137f12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2610063565b61227e7f1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a7f2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e7f08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a37f07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492610063565b61230a7f265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e7f2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff7f2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d197f18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb610063565b6123967f01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf57f2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b87f094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf604177f2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c610063565b6124227f2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd8064617f27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d0287727f154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc747f0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb610063565b6124ae7f0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c7377f1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa957f298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc7f301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71610063565b61253a7f01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b7f1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d7f0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee7f0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279610063565b6125c67f2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe597f19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d7f23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c47f2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32610063565b6126527f0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c87f19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb07f0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b357f2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267610063565b6126de7f2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d7f0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af7f240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b7f16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca610063565b61276a7f242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d17f089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c377027f18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f7f166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6610063565b6127f67f0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e9617f1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b27f17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b7f174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b610063565b6128817eccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d1587f292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e7f12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec67f2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f610063565b61290d7f1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e87f0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e7f14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f7f185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b610063565b6129997f29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c0087f05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c0146047f2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c87f0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024610063565b612a257f1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f7f1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b7f1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc7f2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314610063565b612ab07f0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d7e6e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b7f191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c7f1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5610063565b612b3c7f0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc7f16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae7f12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a7f25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d610063565b612bc87f13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc8247f11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde547f03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b767f1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089610063565b612c547f2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec7f2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e7f1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db47f0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b6103aa565b612ce07f1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b7f2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd6073687f065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc33947f2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb3876103aa565b612d6b7eb4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd790787f0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f7f2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb7f027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd6103aa565b7f1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd55f51017f12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6602051017f13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db608051017f163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d560a051015f51602061302b5f395f51905f5284850994505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528788090993505f51602061302b5f395f51905f5283840994505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528788090992505f51602061302b5f395f51905f5282830994505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528788090991505f51602061302b5f395f51905f5281820994505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528788090990505f51602061302b5f395f51905f52805f51602061302b5f395f51905f525f51602061300b5f395f51905f5284095f51602061302b5f395f51905f525f51602061306b5f395f51905f5286095f51602061302b5f395f51905f525f51602061304b5f395f51905f5288095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8a0901010106065f5260205ff35b634e487b7160e01b5f52604160045260245ffd5b5f60608284031215612fa0575f5ffd5b82601f830112612fae575f5ffd5b6040516060810181811067ffffffffffffffff82111715612fd157612fd1612f7c565b604052806060840185811115612fe5575f5ffd5b845b81811015612fff578035835260209283019201612fe7565b50919594505050505056fe1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c130644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62a2646970667358221220f6d5cfe9ef56c84b95ece8760d16164e8a9649e1f378cc0d39152a9bac67d08e64736f6c634300081c0033",
- "deployedBytecode": "0x7300000000000000000000000000000000000000003014608060405260043610610034575f3560e01c806320cf0a3714610038575b5f5ffd5b61004b610046366004612f90565b61005d565b60405190815260200160405180910390f35b5f610793565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f52838409099450505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f528384090994505f51602061302b5f395f51905f5284850990505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528384090993505f51602061302b5f395f51905f5283840990505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528384090992505f51602061302b5f395f51905f5282830990505f51602061302b5f395f51905f52825f51602061302b5f395f51905f52838409099150505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b5f7f265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d65f51602061302b5f395f51905f5260805106017f199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa5f51602061302b5f395f51905f5260a05106017f157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf85f51602061302b5f395f51905f5260c05106015f51602061302b5f395f51905f5283840993505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528687090992505f51602061302b5f395f51905f5282830993505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528687090991505f51602061302b5f395f51905f5281820993505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528687090990505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287097f211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87097f19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87097f21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87097f26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be30101010660a052505050610c167f13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e7f251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b9967f0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e7f2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac949026103aa565b610ca27f04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b7f0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f3675497f011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca067f0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd47386103aa565b610d2e7f0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd69414324477f28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a17f259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f7f0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e86103aa565b610dba7f1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c57f26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee757f123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf8117f0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf610063565b610e467f2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a57f2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c7f011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e55747f1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0610063565b610ed27f179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb7f1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d857f192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b7f0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d610063565b610f5e7f10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b877f064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd597f225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e087f29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c610063565b610fea7f2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db7f1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b7f1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb7f0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c610063565b6110767f20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d7f0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b7f062100eb485db06269655cf186a68532985275428450359adc99cec6960711b87f2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926610063565b6111027f26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce57f22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e07f23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b7f25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a610063565b61118e7f1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa7f248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d7297f12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da7f070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9610063565b6112197f2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde1877f04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d657e94975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e7f28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf610063565b6112a47f159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a7eb7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b647f03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b07f2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3610063565b6113307f0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb1737f2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f7f1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d7f1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f610063565b6113bc7f22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea97f0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a7f0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed7057f02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16610063565b6114487f2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d835057f2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e57f1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d07f25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16610063565b6114d47f0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac7f02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a68003557f227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a53190257f044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d610063565b6115607f25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f7f1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c7f0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e57f1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38610063565b6115ec7f21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f9597f2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce7f13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a967f0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a610063565b6116787f09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f14557f0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf7f0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a47f05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b610063565b6117047f176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c4047f1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df7f2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b7f0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335610063565b6117907f2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c77f14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def7f226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a7f2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db610063565b61181c7f0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c7f03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f37f0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c297f2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7610063565b6118a77e780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef3631821857f0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa7f1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa91467f203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78610063565b6119327f222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c7e544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac167f10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e87f10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5610063565b6119be7f04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d7f06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf047467f062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b7f2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5610063565b611a4a7f14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f13647f0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae7f011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f17f13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a610063565b611ad67f2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a7f16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d582597f278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b6077f1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106610063565b611b627f02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe67692500420257f16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf7f15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c9847f29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8610063565b611bee7f1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec7f0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de89907f1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a427f05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119610063565b611c7a7f0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf7f2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d07f09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb96507f25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d610063565b611d067f24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d00567f1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f835297f2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f627f25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2610063565b611d927f2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f639257f06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f57f23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d7f25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74610063565b611e1e7f17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd7f13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be7f265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e7f15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5610063565b611eaa7f2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e7f2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e887f18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c7f21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d610063565b611f367f11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f57f0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c7f0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe57f277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7610063565b611fc27f30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad47f221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f4217f0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb8247f224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6610063565b61204e7f1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b317f0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc7f2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b7f23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0610063565b6120da7f1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b877f174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d77f22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d27f26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3610063565b6121667f2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c8755267f29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e7f0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade4577f1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1610063565b6121f27f0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad7257f1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f7f2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac7063641137f12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2610063565b61227e7f1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a7f2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e7f08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a37f07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492610063565b61230a7f265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e7f2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff7f2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d197f18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb610063565b6123967f01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf57f2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b87f094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf604177f2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c610063565b6124227f2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd8064617f27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d0287727f154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc747f0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb610063565b6124ae7f0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c7377f1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa957f298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc7f301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71610063565b61253a7f01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b7f1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d7f0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee7f0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279610063565b6125c67f2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe597f19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d7f23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c47f2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32610063565b6126527f0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c87f19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb07f0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b357f2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267610063565b6126de7f2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d7f0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af7f240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b7f16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca610063565b61276a7f242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d17f089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c377027f18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f7f166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6610063565b6127f67f0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e9617f1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b27f17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b7f174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b610063565b6128817eccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d1587f292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e7f12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec67f2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f610063565b61290d7f1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e87f0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e7f14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f7f185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b610063565b6129997f29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c0087f05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c0146047f2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c87f0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024610063565b612a257f1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f7f1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b7f1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc7f2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314610063565b612ab07f0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d7e6e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b7f191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c7f1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5610063565b612b3c7f0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc7f16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae7f12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a7f25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d610063565b612bc87f13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc8247f11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde547f03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b767f1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089610063565b612c547f2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec7f2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e7f1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db47f0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b6103aa565b612ce07f1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b7f2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd6073687f065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc33947f2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb3876103aa565b612d6b7eb4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd790787f0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f7f2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb7f027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd6103aa565b7f1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd55f51017f12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6602051017f13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db608051017f163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d560a051015f51602061302b5f395f51905f5284850994505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528788090993505f51602061302b5f395f51905f5283840994505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528788090992505f51602061302b5f395f51905f5282830994505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528788090991505f51602061302b5f395f51905f5281820994505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528788090990505f51602061302b5f395f51905f52805f51602061302b5f395f51905f525f51602061300b5f395f51905f5284095f51602061302b5f395f51905f525f51602061306b5f395f51905f5286095f51602061302b5f395f51905f525f51602061304b5f395f51905f5288095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8a0901010106065f5260205ff35b634e487b7160e01b5f52604160045260245ffd5b5f60608284031215612fa0575f5ffd5b82601f830112612fae575f5ffd5b6040516060810181811067ffffffffffffffff82111715612fd157612fd1612f7c565b604052806060840185811115612fe5575f5ffd5b845b81811015612fff578035835260209283019201612fe7565b50919594505050505056fe1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c130644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62a2646970667358221220f6d5cfe9ef56c84b95ece8760d16164e8a9649e1f378cc0d39152a9bac67d08e64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/utils/PoseidonT4.sol",
- "buildInfoId": "solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#aggregationVerifierDepth30.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#aggregationVerifierDepth30.json
deleted file mode 100644
index d311771..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#aggregationVerifierDepth30.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyAggregationVerifierAlpha_2_2_2_30",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2_30.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[14]",
- "name": "_pubSignals",
- "type": "uint256[14]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b50610a0d8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610975565b610054565b604051901515815260200160405180910390f35b5f610882565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f2677d6c999b93ce8836a26f68400342d9206d0042e5bef74384d97668d4fbd7185527f1c6dffd717c92db39b15ffaac7f1ca0896359f64d86ddbde53a9a724d53d687f60208601525f608086018661018e87357f1588203686d2c659beac6e6b6a0696c9a73b43167a1c23dcd156cd423a3486617f2a9a27b4754629f464e15757a6e1795285c772d60b824c8f1dcf721853505b648461008c565b6101de60208801357f0e7ef5047b47aa90a649bd18cea070121bf160cd07d5fb6f059d7f85959093037f0ad8fc97f11c92c12ec509d473fb3a2131cd46398b83b0f6931d5a316885bf4c8461008c565b61022e60408801357f1f360486c53217bd225c170d2c9bff57ce0401a846932d5998b0985302d0d0297f1f0d2c4008add8e5f828066af26a4893d22ede59ce5ed922805bbf72172f926f8461008c565b61027e60608801357f19038ac1aeb7fff5205df6e24fb20b79efc3e47b23ba901c6133a077fd25a41f7f06a8f121ae5a14cd6561c3d301b7a599cd187d66b69ec0dca5b594c90d359db18461008c565b6102ce60808801357f14392ad2a968554f2e9be3192822ee370df3835437d6bdd824f7c02486a799757f1a901b29f21dd86a23814194667419cdb034a8f419cce6f36219ebe12f1d03ce8461008c565b61031e60a08801357f222b41b2066c2e18de2ce8f1b38e21067945bf3a523068d9be283bdeb0b090ca7f260b831c981e5d0edf7c4a1ce05d34b900e8e771b704ff94f52c9945a1227a038461008c565b61036e60c08801357f03ba99acc272296f6b5e8b46fdd80641dc68056bf1f1d058d7b0ae82673e6e0a7f1a49fe52f86e2ce468118842968ef83a85cc11ca735d1707594d03c0fcc5f7a48461008c565b6103be60e08801357f1bb356cda8bd9d21ca448a588e9fe402a48c2c090cc2d9028aabebf7eae7f18f7f2ba484140c7672e35cc296b012b1c06c9d65fa7daf76d898d54502b9dd6e8f298461008c565b61040f6101008801357f158100efe205b2ae041cd2722595c576d8ad554efd549c541c0235ddb95cc70d7f16532b0559581e1c0ff25d04ef22b687551e792d5f5d2134877bffd292114f998461008c565b6104606101208801357f1ecea9cf3060c8c3e065cd2f2f05fe405f4d81a6e4a067c43f65de122d4a8ecc7f0271befe332df95f1520c793b30ab4bbc373b49d736fdf4954fa8129851d9e288461008c565b6104b16101408801357f01886e15dd9ecac1445aca0b7c14420423ce79e0e7b5e5e7ca612fdbbbb0c77f7f17567d5e10acb1c359a4936a01b981b1e6fb9b2bf8746cfa36232c503fd055d18461008c565b6105026101608801357f0fa31e0ed9c1e3ebd3ff073c06bd5ec2056806962a50a4f9490d9d2d3c9125d47f12de630747fad5d0d0b137586691387df79e8a34d3b2968dc56f775ab6b3f4788461008c565b6105536101808801357f0675adf13437ce0b6c1853a85e1ce69404e9b79fc48e04a0757066da7650c6007f25415c817f8b5a1b4b8b1fbaba8a708d3c69f7a1aa35a3834e454b146a0a719a8461008c565b6105a46101a08801357f21c1a157c26e7368b687ff48228bde51af963a5337385f672bf794b1e734c4de7f10d8fd6daf436328532c048653ff83bc1192914754b7a5c907de1869768706848461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f039e6c254fdbfdddb550d7b28587b6e3359a0978a174c832f180238460bf67f660c08201527f05a7b274497c5b63c2aa9486e0610bf9c9fa32e70ac3453f26f181300106533a60e08201527f0e5775bf946735d1ab10bc0fe721dac812003a0756b73371686b39a0c8e0a59a6101008201527f2e63b48c5263b864a5ac08e86eda8c54b609edde10946cdd944dd04bf8f706996101208201527f2a68fdf476b29776ff77059d8292dbdef8bf3835b1d0b8c5e61a8e9f9065804c6101408201527f1b6deed70cfcb89383c60b8d413374d552260ab753beccb04e2077b09a6b69216101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f158d15b191dda264a993425059ebfd021c32c1730e3d254e31fd87de0ab46bac6102808201527f250bca34a48b272729deaec79ae6cc9a702ed03a18a0b5dbd03e9355f52480a56102a08201527f1a999fb6f30f5cc719a772e575a1effffd30eac8e14132c3759716b124d6750b6102c08201527f1db0c59f9dd26d6b1e665961792353cbd44351a6e5108cc13ee1aae16c3734046102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108995f84013561005a565b6108a6602084013561005a565b6108b3604084013561005a565b6108c0606084013561005a565b6108cd608084013561005a565b6108da60a084013561005a565b6108e760c084013561005a565b6108f460e084013561005a565b61090261010084013561005a565b61091061012084013561005a565b61091e61014084013561005a565b61092c61016084013561005a565b61093a61018084013561005a565b6109486101a084013561005a565b610955818486888a6100f2565b9050805f5260205ff35b806040810183101561096f575f5ffd5b92915050565b5f5f5f5f6102c08587031215610989575f5ffd5b610993868661095f565b935060c08501868111156109a5575f5ffd5b6040860193506109b5878261095f565b925050856102c0860111156109c8575f5ffd5b5091949093509091610100019056fea2646970667358221220478778d0335dd646856137a27c3acb70f813b5d21368e81d0f8aa12044b1af5b64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610975565b610054565b604051901515815260200160405180910390f35b5f610882565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f2677d6c999b93ce8836a26f68400342d9206d0042e5bef74384d97668d4fbd7185527f1c6dffd717c92db39b15ffaac7f1ca0896359f64d86ddbde53a9a724d53d687f60208601525f608086018661018e87357f1588203686d2c659beac6e6b6a0696c9a73b43167a1c23dcd156cd423a3486617f2a9a27b4754629f464e15757a6e1795285c772d60b824c8f1dcf721853505b648461008c565b6101de60208801357f0e7ef5047b47aa90a649bd18cea070121bf160cd07d5fb6f059d7f85959093037f0ad8fc97f11c92c12ec509d473fb3a2131cd46398b83b0f6931d5a316885bf4c8461008c565b61022e60408801357f1f360486c53217bd225c170d2c9bff57ce0401a846932d5998b0985302d0d0297f1f0d2c4008add8e5f828066af26a4893d22ede59ce5ed922805bbf72172f926f8461008c565b61027e60608801357f19038ac1aeb7fff5205df6e24fb20b79efc3e47b23ba901c6133a077fd25a41f7f06a8f121ae5a14cd6561c3d301b7a599cd187d66b69ec0dca5b594c90d359db18461008c565b6102ce60808801357f14392ad2a968554f2e9be3192822ee370df3835437d6bdd824f7c02486a799757f1a901b29f21dd86a23814194667419cdb034a8f419cce6f36219ebe12f1d03ce8461008c565b61031e60a08801357f222b41b2066c2e18de2ce8f1b38e21067945bf3a523068d9be283bdeb0b090ca7f260b831c981e5d0edf7c4a1ce05d34b900e8e771b704ff94f52c9945a1227a038461008c565b61036e60c08801357f03ba99acc272296f6b5e8b46fdd80641dc68056bf1f1d058d7b0ae82673e6e0a7f1a49fe52f86e2ce468118842968ef83a85cc11ca735d1707594d03c0fcc5f7a48461008c565b6103be60e08801357f1bb356cda8bd9d21ca448a588e9fe402a48c2c090cc2d9028aabebf7eae7f18f7f2ba484140c7672e35cc296b012b1c06c9d65fa7daf76d898d54502b9dd6e8f298461008c565b61040f6101008801357f158100efe205b2ae041cd2722595c576d8ad554efd549c541c0235ddb95cc70d7f16532b0559581e1c0ff25d04ef22b687551e792d5f5d2134877bffd292114f998461008c565b6104606101208801357f1ecea9cf3060c8c3e065cd2f2f05fe405f4d81a6e4a067c43f65de122d4a8ecc7f0271befe332df95f1520c793b30ab4bbc373b49d736fdf4954fa8129851d9e288461008c565b6104b16101408801357f01886e15dd9ecac1445aca0b7c14420423ce79e0e7b5e5e7ca612fdbbbb0c77f7f17567d5e10acb1c359a4936a01b981b1e6fb9b2bf8746cfa36232c503fd055d18461008c565b6105026101608801357f0fa31e0ed9c1e3ebd3ff073c06bd5ec2056806962a50a4f9490d9d2d3c9125d47f12de630747fad5d0d0b137586691387df79e8a34d3b2968dc56f775ab6b3f4788461008c565b6105536101808801357f0675adf13437ce0b6c1853a85e1ce69404e9b79fc48e04a0757066da7650c6007f25415c817f8b5a1b4b8b1fbaba8a708d3c69f7a1aa35a3834e454b146a0a719a8461008c565b6105a46101a08801357f21c1a157c26e7368b687ff48228bde51af963a5337385f672bf794b1e734c4de7f10d8fd6daf436328532c048653ff83bc1192914754b7a5c907de1869768706848461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f039e6c254fdbfdddb550d7b28587b6e3359a0978a174c832f180238460bf67f660c08201527f05a7b274497c5b63c2aa9486e0610bf9c9fa32e70ac3453f26f181300106533a60e08201527f0e5775bf946735d1ab10bc0fe721dac812003a0756b73371686b39a0c8e0a59a6101008201527f2e63b48c5263b864a5ac08e86eda8c54b609edde10946cdd944dd04bf8f706996101208201527f2a68fdf476b29776ff77059d8292dbdef8bf3835b1d0b8c5e61a8e9f9065804c6101408201527f1b6deed70cfcb89383c60b8d413374d552260ab753beccb04e2077b09a6b69216101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f158d15b191dda264a993425059ebfd021c32c1730e3d254e31fd87de0ab46bac6102808201527f250bca34a48b272729deaec79ae6cc9a702ed03a18a0b5dbd03e9355f52480a56102a08201527f1a999fb6f30f5cc719a772e575a1effffd30eac8e14132c3759716b124d6750b6102c08201527f1db0c59f9dd26d6b1e665961792353cbd44351a6e5108cc13ee1aae16c3734046102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108995f84013561005a565b6108a6602084013561005a565b6108b3604084013561005a565b6108c0606084013561005a565b6108cd608084013561005a565b6108da60a084013561005a565b6108e760c084013561005a565b6108f460e084013561005a565b61090261010084013561005a565b61091061012084013561005a565b61091e61014084013561005a565b61092c61016084013561005a565b61093a61018084013561005a565b6109486101a084013561005a565b610955818486888a6100f2565b9050805f5260205ff35b806040810183101561096f575f5ffd5b92915050565b5f5f5f5f6102c08587031215610989575f5ffd5b610993868661095f565b935060c08501868111156109a5575f5ffd5b6040860193506109b5878261095f565b925050856102c0860111156109c8575f5ffd5b5091949093509091610100019056fea2646970667358221220478778d0335dd646856137a27c3acb70f813b5d21368e81d0f8aa12044b1af5b64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2_30.sol",
- "buildInfoId": "solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#insertionVerifierDepth30.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#insertionVerifierDepth30.json
deleted file mode 100644
index c37893e..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#insertionVerifierDepth30.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyInsertionVerifierAlpha_2_30",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_30.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[4]",
- "name": "_pubSignals",
- "type": "uint256[4]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506106638061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d6565b610054565b604051901515815260200160405180910390f35b5f61055b565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0924b2da45959e3db416d37c294a404744951be16e42f1d992acb2f9b1653c9b85527f1dd38cbdac759717b0ac22a4684a67b9dde133900fd0de04e84649d362c43af260208601525f608086018661018e87357f1b2708ad6d7e6be283e7de6a744c951d2b8e5364548e69df7856c3c97b573e1b7f0974e3e005ff370d47e3fdb7ccdf534091ef1e4a005206d2d1231e67b90511998461008c565b6101de60208801357f2ebb5ab1d89212403b8779a300f9ddc2d940387f8a35748b528e34a8ba9aa8eb7f19eeb6ab376be1165cb0ec80572317e9f5c4518602464a5713c215c980fefb428461008c565b61022e60408801357f057838b481ea687ebdd9e99e7b0a647b9fde53a265abb2ebf10f786977fd745d7f303b63a34f398feec2ee236d526cf0b1152e7c0322e5ff4d253c0a3a8bf17fdc8461008c565b61027e60608801357f19345bce990107cbcf966676e877fb4f5ca5266f5d57adab7678620d605636d87f180b99f92cc59f1eabdbad0ff4a62544fa9bf0cab8f5912f5a847c5640c1d7328461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f0e2bb878054469b448cc0e33dc738b287d43fe65e576af5b3b04e591fdb54f1e60c08201527f1bf275d3700d3f50dca59951ba350ffa3ea2372d0196c425caa92a9e67899ade60e08201527f0c44e70b0815f8e0e28ce0457dc505fe56b05e59d49b5ae4e11b055a806910336101008201527f1232e197aaa7b2d91e891300fac64a73564b798a3db3fa5fb3abf383bf2032606101208201527f28308763f703530f89d2cf0bfa677e8d6cee8f7d9027e414164185b9819db03d6101408201527f1992fd2f54f2bb493054e09c96436be20ea7137974f126e81c09c2b32f70290c6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1d12be17bc61349a2fa4a78986dc0c65250840b18d469b5239a06678fdaffff36102808201527f2b76fd205a71da739792da15aa42bf4e6e549970f2c5d27f19456ed6ef65f9136102a08201527f291ed4e167e08d61ceb08cb301209e3431b16f87170ed88f5265b625d5e194486102c08201527e6370563f1ca56b9f3f3329c4a4724e95130020346360fa7e450ed7315a22e16102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105725f84013561005a565b61057f602084013561005a565b61058c604084013561005a565b610599606084013561005a565b6105a6818486888a6100f2565b9050805f5260205ff35b80604081018310156105c0575f5ffd5b92915050565b80608081018310156105c0575f5ffd5b5f5f5f5f61018085870312156105ea575f5ffd5b6105f486866105b0565b935061060386604087016105c6565b92506106128660c087016105b0565b91506106228661010087016105c6565b90509295919450925056fea26469706673582212205a855661bcf2b5e7a6820e1e0d44203c68c61e39b2b0c99faac2b30e34af037964736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d6565b610054565b604051901515815260200160405180910390f35b5f61055b565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0924b2da45959e3db416d37c294a404744951be16e42f1d992acb2f9b1653c9b85527f1dd38cbdac759717b0ac22a4684a67b9dde133900fd0de04e84649d362c43af260208601525f608086018661018e87357f1b2708ad6d7e6be283e7de6a744c951d2b8e5364548e69df7856c3c97b573e1b7f0974e3e005ff370d47e3fdb7ccdf534091ef1e4a005206d2d1231e67b90511998461008c565b6101de60208801357f2ebb5ab1d89212403b8779a300f9ddc2d940387f8a35748b528e34a8ba9aa8eb7f19eeb6ab376be1165cb0ec80572317e9f5c4518602464a5713c215c980fefb428461008c565b61022e60408801357f057838b481ea687ebdd9e99e7b0a647b9fde53a265abb2ebf10f786977fd745d7f303b63a34f398feec2ee236d526cf0b1152e7c0322e5ff4d253c0a3a8bf17fdc8461008c565b61027e60608801357f19345bce990107cbcf966676e877fb4f5ca5266f5d57adab7678620d605636d87f180b99f92cc59f1eabdbad0ff4a62544fa9bf0cab8f5912f5a847c5640c1d7328461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f0e2bb878054469b448cc0e33dc738b287d43fe65e576af5b3b04e591fdb54f1e60c08201527f1bf275d3700d3f50dca59951ba350ffa3ea2372d0196c425caa92a9e67899ade60e08201527f0c44e70b0815f8e0e28ce0457dc505fe56b05e59d49b5ae4e11b055a806910336101008201527f1232e197aaa7b2d91e891300fac64a73564b798a3db3fa5fb3abf383bf2032606101208201527f28308763f703530f89d2cf0bfa677e8d6cee8f7d9027e414164185b9819db03d6101408201527f1992fd2f54f2bb493054e09c96436be20ea7137974f126e81c09c2b32f70290c6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1d12be17bc61349a2fa4a78986dc0c65250840b18d469b5239a06678fdaffff36102808201527f2b76fd205a71da739792da15aa42bf4e6e549970f2c5d27f19456ed6ef65f9136102a08201527f291ed4e167e08d61ceb08cb301209e3431b16f87170ed88f5265b625d5e194486102c08201527e6370563f1ca56b9f3f3329c4a4724e95130020346360fa7e450ed7315a22e16102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105725f84013561005a565b61057f602084013561005a565b61058c604084013561005a565b610599606084013561005a565b6105a6818486888a6100f2565b9050805f5260205ff35b80604081018310156105c0575f5ffd5b92915050565b80608081018310156105c0575f5ffd5b5f5f5f5f61018085870312156105ea575f5ffd5b6105f486866105b0565b935061060386604087016105c6565b92506106128660c087016105b0565b91506106228661010087016105c6565b90509295919450925056fea26469706673582212205a855661bcf2b5e7a6820e1e0d44203c68c61e39b2b0c99faac2b30e34af037964736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_30.sol",
- "buildInfoId": "solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#withdrawVerifierDepth30.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#withdrawVerifierDepth30.json
deleted file mode 100644
index 608fd52..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#withdrawVerifierDepth30.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyWithdrawVerifierAlpha_2_2_30",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2_30.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "_pA",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "_pB",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "_pC",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "_pubSignals",
- "type": "uint256[9]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b506108328061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b36600461079a565b610054565b604051901515815260200160405180910390f35b5f6106ed565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f03760d22d9f2d34545c9e1914bb1ce7a6044769221030d98d87baf999cce726d85527f156ecf9f5c2610839d6d385378a656c0efd32e94a04ebc9c7089f4fe125b838260208601525f608086018661018e87357f2b2c117485e91a1ea632fe27385f77f9331e1db2672e42e9c86a2f802d6f4a577f022aa120b95ee1b256867106394adb6006f30068c06b3ea2e7a6a5bd396d32b88461008c565b6101de60208801357f190133b406f620e57f93dac97d795ee3e6c1cd5c1380ff8efa9bb5ae36eb6f027f201b5a5bcdd373439d8e242f31c140092f2e5e54fd22a0cd50775e373802199e8461008c565b61022e60408801357f1dacf0b93a0b74bacc711d37c038bc8c83ade754b2ce6b8d14bdab54c5267fcf7f27793f520413175bff070cb1cf2a66e303cb460fc50eae4788cc70e37947189e8461008c565b61027e60608801357f20c614098c5807d4d609bcda798ec95ffb84ea0fc6b97e2383149f4797c4071c7f1fcbb72508f88430df9f833ac15e753e438b391af9ded7d805815264fb92b9a18461008c565b6102ce60808801357f0f412826e324f04afe142e271f643cfd1191362dbd52c4ab1027b6dc5f4505197f251f4cfcfa4754144730a6dc064fe7159ceceaa24682c33fa9ec26df30314a098461008c565b61031e60a08801357f0a87b48bf8cd64b224ef5e524ccc422db4d1a2ddc4c6a52bf1354155dbfaca107f11ba886ae51f5da62f1ef74ebc2d941ffe1c84c0cc86a039eea59d753cf737e58461008c565b61036e60c08801357f0eb0f1a445dc5bdf6debee9f4b65306030a8c1c70c87aa910f111314550ff7ca7f0497eac083a6ae9671da1e9e67b4d81eb1890f772f559945e8db07f731b89b948461008c565b6103be60e08801357f27d71145b77c48dc3f37b04048a4952390eff92adf283803d939a5ef357469fa7f2f1d2ecb7da3238e91f60101a82f95a2a0cf3f18513a3efea2ef960e0f1b05038461008c565b61040f6101008801357f1232a2dd4a7f2a4eb7706e0ef2ac142d17bdd99c74cac407523c83ae2c0b14bf7f3013a3053bd7992674a30da3c9e0d99c8b16d930ea2986caa9428a2b843bcf9e8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1e16c25ab763d8d1477730a7d1ccef12a682cea336a50d06e8fbf5c6179e17d460c08201527f075447418c2d22c69113fa9cdfa0d27ef53317ffdee3259adcd492ba271bc6d460e08201527f2cc1fb86ad7b8be8587556a4b94dc9e84e3b8666d59c51208ee844733934e6696101008201527f27d109e11d2b06dc95900781efaa5ef1fc6dfbdb31e61283628e962fd17fe8c16101208201527f2f8043381982846eac492d6f3a1d39a682c65bfa8dd02e323e7a95df562cf9c96101408201527f29b9eff97456a285bf27898a846691a82071d53474301e1ca6b49892eb4499a56101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f02eed0745f7d7332ae3ac78bd0254d1d2a4f9c1ce849e2228ea68328f9861bab6102808201527f0a53e8207852cc09b290c2038962e161eb338f5b97cb2e1df58d5d4dd059cbdd6102a08201527f251e2c5b50852e3d17871d61fea2a638e7bd6669af35a7a4239e571588856f356102c08201527f1a01f4782436380d4ee0769723d43073f4888b316a973df0e33004b2ded19df76102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107045f84013561005a565b610711602084013561005a565b61071e604084013561005a565b61072b606084013561005a565b610738608084013561005a565b61074560a084013561005a565b61075260c084013561005a565b61075f60e084013561005a565b61076d61010084013561005a565b61077a818486888a6100f2565b9050805f5260205ff35b8060408101831015610794575f5ffd5b92915050565b5f5f5f5f61022085870312156107ae575f5ffd5b6107b88686610784565b935060c08501868111156107ca575f5ffd5b6040860193506107da8782610784565b92505085610220860111156107ed575f5ffd5b5091949093509091610100019056fea2646970667358221220aa1cf904b8465ae86135852d29b474903154ff35037e293a5f977b17164b752c64736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b36600461079a565b610054565b604051901515815260200160405180910390f35b5f6106ed565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f03760d22d9f2d34545c9e1914bb1ce7a6044769221030d98d87baf999cce726d85527f156ecf9f5c2610839d6d385378a656c0efd32e94a04ebc9c7089f4fe125b838260208601525f608086018661018e87357f2b2c117485e91a1ea632fe27385f77f9331e1db2672e42e9c86a2f802d6f4a577f022aa120b95ee1b256867106394adb6006f30068c06b3ea2e7a6a5bd396d32b88461008c565b6101de60208801357f190133b406f620e57f93dac97d795ee3e6c1cd5c1380ff8efa9bb5ae36eb6f027f201b5a5bcdd373439d8e242f31c140092f2e5e54fd22a0cd50775e373802199e8461008c565b61022e60408801357f1dacf0b93a0b74bacc711d37c038bc8c83ade754b2ce6b8d14bdab54c5267fcf7f27793f520413175bff070cb1cf2a66e303cb460fc50eae4788cc70e37947189e8461008c565b61027e60608801357f20c614098c5807d4d609bcda798ec95ffb84ea0fc6b97e2383149f4797c4071c7f1fcbb72508f88430df9f833ac15e753e438b391af9ded7d805815264fb92b9a18461008c565b6102ce60808801357f0f412826e324f04afe142e271f643cfd1191362dbd52c4ab1027b6dc5f4505197f251f4cfcfa4754144730a6dc064fe7159ceceaa24682c33fa9ec26df30314a098461008c565b61031e60a08801357f0a87b48bf8cd64b224ef5e524ccc422db4d1a2ddc4c6a52bf1354155dbfaca107f11ba886ae51f5da62f1ef74ebc2d941ffe1c84c0cc86a039eea59d753cf737e58461008c565b61036e60c08801357f0eb0f1a445dc5bdf6debee9f4b65306030a8c1c70c87aa910f111314550ff7ca7f0497eac083a6ae9671da1e9e67b4d81eb1890f772f559945e8db07f731b89b948461008c565b6103be60e08801357f27d71145b77c48dc3f37b04048a4952390eff92adf283803d939a5ef357469fa7f2f1d2ecb7da3238e91f60101a82f95a2a0cf3f18513a3efea2ef960e0f1b05038461008c565b61040f6101008801357f1232a2dd4a7f2a4eb7706e0ef2ac142d17bdd99c74cac407523c83ae2c0b14bf7f3013a3053bd7992674a30da3c9e0d99c8b16d930ea2986caa9428a2b843bcf9e8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1e16c25ab763d8d1477730a7d1ccef12a682cea336a50d06e8fbf5c6179e17d460c08201527f075447418c2d22c69113fa9cdfa0d27ef53317ffdee3259adcd492ba271bc6d460e08201527f2cc1fb86ad7b8be8587556a4b94dc9e84e3b8666d59c51208ee844733934e6696101008201527f27d109e11d2b06dc95900781efaa5ef1fc6dfbdb31e61283628e962fd17fe8c16101208201527f2f8043381982846eac492d6f3a1d39a682c65bfa8dd02e323e7a95df562cf9c96101408201527f29b9eff97456a285bf27898a846691a82071d53474301e1ca6b49892eb4499a56101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f02eed0745f7d7332ae3ac78bd0254d1d2a4f9c1ce849e2228ea68328f9861bab6102808201527f0a53e8207852cc09b290c2038962e161eb338f5b97cb2e1df58d5d4dd059cbdd6102a08201527f251e2c5b50852e3d17871d61fea2a638e7bd6669af35a7a4239e571588856f356102c08201527f1a01f4782436380d4ee0769723d43073f4888b316a973df0e33004b2ded19df76102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107045f84013561005a565b610711602084013561005a565b61071e604084013561005a565b61072b606084013561005a565b610738608084013561005a565b61074560a084013561005a565b61075260c084013561005a565b61075f60e084013561005a565b61076d61010084013561005a565b61077a818486888a6100f2565b9050805f5260205ff35b8060408101831015610794575f5ffd5b92915050565b5f5f5f5f61022085870312156107ae575f5ffd5b6107b88686610784565b935060c08501868111156107ca575f5ffd5b6040860193506107da8782610784565b92505085610220860111156107ed575f5ffd5b5091949093509091610100019056fea2646970667358221220aa1cf904b8465ae86135852d29b474903154ff35037e293a5f977b17164b752c64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2_30.sol",
- "buildInfoId": "solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#withdrawVerifierV3.json b/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#withdrawVerifierV3.json
deleted file mode 100644
index 59b357b..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyAggregatorAlpha#withdrawVerifierV3.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyWithdrawVerifierAlphaV3_2",
- "sourceName": "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlphaV3_2.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "uint256[2]",
- "name": "a",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[2][2]",
- "name": "b",
- "type": "uint256[2][2]"
- },
- {
- "internalType": "uint256[2]",
- "name": "c",
- "type": "uint256[2]"
- },
- {
- "internalType": "uint256[9]",
- "name": "input",
- "type": "uint256[9]"
- }
- ],
- "name": "verifyProof",
- "outputs": [
- {
- "internalType": "bool",
- "name": "r",
- "type": "bool"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x6080604052348015600e575f5ffd5b5061149a8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b366004611300565b610054565b604051901515815260200160405180910390f35b5f61005d611127565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600980825261014082019093525f9290918201610120803683370190505090505f5b600981101561013357848160098110610109576101096113e0565b6020020151828281518110610120576101206113e0565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e9190611408565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb5783878281518110610217576102176113e0565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc85608001518460016102859190611408565b81518110610295576102956113e0565b60200260200101518a85815181106102af576102af6113e0565b6020026020010151610a94565b610b28565b91506001016101fb565b506102f38183608001515f815181106102e6576102e66113e0565b6020026020010151610b28565b9050610327610304865f0151610bbf565b8660200151845f015185602001518587604001518b604001518960600151610c5b565b610337576001935050505061033e565b5f93505050505b92915050565b61034c611175565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f05d000ba4551c1fa877c7a46107992624c3d99a3e6bdd57c50698771b613cc298185019081527f1ecc95a1dbdbe4f8cef976bf22affb6de7fa33cb89b48d77bead7102ad139892828401528152835180850185527f21db75587cbe02e9192f9b5f2b763c99648c02dd6b6a4c96c20df72fb841418a81527f2af9f7e11a5a29cdcb4b532c39193095513331f2834798b89072b995ad356a898185015281840152908401528151600a8082526101608201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f2660af19967ed5580208a84497fbdd099f460ed85561c98f23edb4a0384dcf7f81527f210fa1941084636ec27feec1eb19e46b9b48bfa53b306d017ae5963efad52a436020820152905180515f90610659576106596113e0565b602002602001018190525060405180604001604052807f2083fd8b0b70f84ff529e805d135f4a43429faa7993c7722807ae7a190df845581526020017f28811e77761972df5b4960cb74319c488f4edbeddc48333c6d4d1a6bf413ca3481525081608001516001815181106106d0576106d06113e0565b602002602001018190525060405180604001604052807f13dfc5473a9989ab659e0b9a6334f6941bc90555d51e4bca722dae72810e989881526020017f013b58637f2dae5dcc9fc8fbebfc8b1381840813185e0fb647f05168c697540c8152508160800151600281518110610747576107476113e0565b602002602001018190525060405180604001604052807f1c44dcfc07f5f9ae2c637ff60d5a89d2c1713bca6aff265abcb28620a852c34281526020017f19330ccf92e4c27c2b591f021a828cca5edab6049a9d1062686fd796b6d3f52d81525081608001516003815181106107be576107be6113e0565b602002602001018190525060405180604001604052807f23d7191b87dd317ce4294b631c1ce03e454f61c038c5d9c601c8abcc5003816b81526020017f21b455e02d8d7aa7549f9e769915f44c954cbc965220a0c8f61c0c1a367509818152508160800151600481518110610835576108356113e0565b602002602001018190525060405180604001604052807f2226e11fa0ed282b86920337d75253929cdead5afa79adbc98bbf0786a21503081526020017eab0bd68fd9de0ee282bc419521c647a219f5075248f5ebfb2016464f50ba1a81525081608001516005815181106108ab576108ab6113e0565b602002602001018190525060405180604001604052807f21a6f2274e37865052daf09f57ee7d7dafbc1d60cc54e26ab82120b995ed12f481526020017f0b5c832b69ae80552e1d9402009efab37ce39eb97825b4b343f5ea9581b31c1b8152508160800151600681518110610922576109226113e0565b602002602001018190525060405180604001604052807f091ecf7419c3a24ba36564b86a4859fd8f00157103bb0759ea5ba4928bfe460b81526020017f105c38b8731b3cbeed64c9c7e1aa313538e21302828e2f95fb3b05d777a0f7d88152508160800151600781518110610999576109996113e0565b602002602001018190525060405180604001604052807f100d9113bd2a6d16e7682a168a313a92f111d97fa62ab66b9b60339ab7edd8cf81526020017f0db625617d7f1e384b7fd3bfa6625ce178ced385ea8bef33da11938d7ebc389d8152508160800151600881518110610a1057610a106113e0565b602002602001018190525060405180604001604052807ec8fdc7d85d6600498e56ca6e7082bef46e29858708e318188919835ac6878881526020017f0c567e014f5306e60d7e0d42f3e9216db8a9837c77f300ff203b05060360a30a8152508160800151600981518110610a8657610a866113e0565b602002602001018190525090565b604080518082019091525f8082526020820152610aaf6111c5565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610add57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610b436111e3565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610b7c57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c0557506020830151155b15610c24575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610c48919061141b565b610c52908461143a565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610c7557505060408051600480825260a082019092529192505f9190602082015b610cbd611201565b815260200190600190039081610cb55790505090508a825f81518110610ce557610ce56113e0565b60200260200101819052508882600181518110610d0457610d046113e0565b60200260200101819052508682600281518110610d2357610d236113e0565b60200260200101819052508482600381518110610d4257610d426113e0565b602002602001018190525089815f81518110610d6057610d606113e0565b60200260200101819052508781600181518110610d7f57610d7f6113e0565b60200260200101819052508581600281518110610d9e57610d9e6113e0565b60200260200101819052508381600381518110610dbd57610dbd6113e0565b6020026020010181905250610dd28282610de1565b9b9a5050505050505050505050565b5f8151835114610e2c5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610e3a82600661144d565b90505f8167ffffffffffffffff811115610e5657610e5661125d565b604051908082528060200260200182016040528015610e7f578160200160208202803683370190505b5090505f5b838110156110ac57868181518110610e9e57610e9e6113e0565b60200260200101515f015182826006610eb7919061144d565b610ec1905f611408565b81518110610ed157610ed16113e0565b602002602001018181525050868181518110610eef57610eef6113e0565b60200260200101516020015182826006610f09919061144d565b610f14906001611408565b81518110610f2457610f246113e0565b602002602001018181525050858181518110610f4257610f426113e0565b6020908102919091010151515182610f5b83600661144d565b610f66906002611408565b81518110610f7657610f766113e0565b602002602001018181525050858181518110610f9457610f946113e0565b60209081029190910181015151015182610faf83600661144d565b610fba906003611408565b81518110610fca57610fca6113e0565b602002602001018181525050858181518110610fe857610fe86113e0565b6020026020010151602001515f60028110611005576110056113e0565b60200201518261101683600661144d565b611021906004611408565b81518110611031576110316113e0565b60200260200101818152505085818151811061104f5761104f6113e0565b60200260200101516020015160016002811061106d5761106d6113e0565b60200201518261107e83600661144d565b611089906005611408565b81518110611099576110996113e0565b6020908102919091010152600101610e84565b506110b5611221565b5f602082602086026020860160086107d05a03fa905080806110d357fe5b50806111195760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101611150611201565b815260200161117060405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c083019190915281526020810161119e611201565b81526020016111ab611201565b81526020016111b8611201565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061121461123f565b815260200161117061123f565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156112a657634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f8301126112bd575f5ffd5b5f6112c86040611271565b90508060408401858111156112db575f5ffd5b845b818110156112f55780358352602092830192016112dd565b509195945050505050565b5f5f5f5f6102208587031215611314575f5ffd5b61131e86866112ae565b935085605f86011261132e575f5ffd5b604061133981611271565b8060c088018981111561134a575f5ffd5b604089015b81811015611370576113618b826112ae565b8452602090930192840161134f565b5081965061137e8a826112ae565b95505050505061010085015f87601f830112611398575f5ffd5b5f6101206113a581611271565b91508301818a8211156113b6575f5ffd5b5b818510156113cf5784358152602094850194016113b7565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e6113f4565b5f8261143557634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e6113f4565b808202811582820484141761033e5761033e6113f456fea2646970667358221220ee56b55b73586c11a0ad84b93a1c92445f7a65f7be9aeed3d1e4fbaef2220a4364736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b366004611300565b610054565b604051901515815260200160405180910390f35b5f61005d611127565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600980825261014082019093525f9290918201610120803683370190505090505f5b600981101561013357848160098110610109576101096113e0565b6020020151828281518110610120576101206113e0565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e9190611408565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb5783878281518110610217576102176113e0565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc85608001518460016102859190611408565b81518110610295576102956113e0565b60200260200101518a85815181106102af576102af6113e0565b6020026020010151610a94565b610b28565b91506001016101fb565b506102f38183608001515f815181106102e6576102e66113e0565b6020026020010151610b28565b9050610327610304865f0151610bbf565b8660200151845f015185602001518587604001518b604001518960600151610c5b565b610337576001935050505061033e565b5f93505050505b92915050565b61034c611175565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f05d000ba4551c1fa877c7a46107992624c3d99a3e6bdd57c50698771b613cc298185019081527f1ecc95a1dbdbe4f8cef976bf22affb6de7fa33cb89b48d77bead7102ad139892828401528152835180850185527f21db75587cbe02e9192f9b5f2b763c99648c02dd6b6a4c96c20df72fb841418a81527f2af9f7e11a5a29cdcb4b532c39193095513331f2834798b89072b995ad356a898185015281840152908401528151600a8082526101608201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f2660af19967ed5580208a84497fbdd099f460ed85561c98f23edb4a0384dcf7f81527f210fa1941084636ec27feec1eb19e46b9b48bfa53b306d017ae5963efad52a436020820152905180515f90610659576106596113e0565b602002602001018190525060405180604001604052807f2083fd8b0b70f84ff529e805d135f4a43429faa7993c7722807ae7a190df845581526020017f28811e77761972df5b4960cb74319c488f4edbeddc48333c6d4d1a6bf413ca3481525081608001516001815181106106d0576106d06113e0565b602002602001018190525060405180604001604052807f13dfc5473a9989ab659e0b9a6334f6941bc90555d51e4bca722dae72810e989881526020017f013b58637f2dae5dcc9fc8fbebfc8b1381840813185e0fb647f05168c697540c8152508160800151600281518110610747576107476113e0565b602002602001018190525060405180604001604052807f1c44dcfc07f5f9ae2c637ff60d5a89d2c1713bca6aff265abcb28620a852c34281526020017f19330ccf92e4c27c2b591f021a828cca5edab6049a9d1062686fd796b6d3f52d81525081608001516003815181106107be576107be6113e0565b602002602001018190525060405180604001604052807f23d7191b87dd317ce4294b631c1ce03e454f61c038c5d9c601c8abcc5003816b81526020017f21b455e02d8d7aa7549f9e769915f44c954cbc965220a0c8f61c0c1a367509818152508160800151600481518110610835576108356113e0565b602002602001018190525060405180604001604052807f2226e11fa0ed282b86920337d75253929cdead5afa79adbc98bbf0786a21503081526020017eab0bd68fd9de0ee282bc419521c647a219f5075248f5ebfb2016464f50ba1a81525081608001516005815181106108ab576108ab6113e0565b602002602001018190525060405180604001604052807f21a6f2274e37865052daf09f57ee7d7dafbc1d60cc54e26ab82120b995ed12f481526020017f0b5c832b69ae80552e1d9402009efab37ce39eb97825b4b343f5ea9581b31c1b8152508160800151600681518110610922576109226113e0565b602002602001018190525060405180604001604052807f091ecf7419c3a24ba36564b86a4859fd8f00157103bb0759ea5ba4928bfe460b81526020017f105c38b8731b3cbeed64c9c7e1aa313538e21302828e2f95fb3b05d777a0f7d88152508160800151600781518110610999576109996113e0565b602002602001018190525060405180604001604052807f100d9113bd2a6d16e7682a168a313a92f111d97fa62ab66b9b60339ab7edd8cf81526020017f0db625617d7f1e384b7fd3bfa6625ce178ced385ea8bef33da11938d7ebc389d8152508160800151600881518110610a1057610a106113e0565b602002602001018190525060405180604001604052807ec8fdc7d85d6600498e56ca6e7082bef46e29858708e318188919835ac6878881526020017f0c567e014f5306e60d7e0d42f3e9216db8a9837c77f300ff203b05060360a30a8152508160800151600981518110610a8657610a866113e0565b602002602001018190525090565b604080518082019091525f8082526020820152610aaf6111c5565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610add57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610b436111e3565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610b7c57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c0557506020830151155b15610c24575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610c48919061141b565b610c52908461143a565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610c7557505060408051600480825260a082019092529192505f9190602082015b610cbd611201565b815260200190600190039081610cb55790505090508a825f81518110610ce557610ce56113e0565b60200260200101819052508882600181518110610d0457610d046113e0565b60200260200101819052508682600281518110610d2357610d236113e0565b60200260200101819052508482600381518110610d4257610d426113e0565b602002602001018190525089815f81518110610d6057610d606113e0565b60200260200101819052508781600181518110610d7f57610d7f6113e0565b60200260200101819052508581600281518110610d9e57610d9e6113e0565b60200260200101819052508381600381518110610dbd57610dbd6113e0565b6020026020010181905250610dd28282610de1565b9b9a5050505050505050505050565b5f8151835114610e2c5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610e3a82600661144d565b90505f8167ffffffffffffffff811115610e5657610e5661125d565b604051908082528060200260200182016040528015610e7f578160200160208202803683370190505b5090505f5b838110156110ac57868181518110610e9e57610e9e6113e0565b60200260200101515f015182826006610eb7919061144d565b610ec1905f611408565b81518110610ed157610ed16113e0565b602002602001018181525050868181518110610eef57610eef6113e0565b60200260200101516020015182826006610f09919061144d565b610f14906001611408565b81518110610f2457610f246113e0565b602002602001018181525050858181518110610f4257610f426113e0565b6020908102919091010151515182610f5b83600661144d565b610f66906002611408565b81518110610f7657610f766113e0565b602002602001018181525050858181518110610f9457610f946113e0565b60209081029190910181015151015182610faf83600661144d565b610fba906003611408565b81518110610fca57610fca6113e0565b602002602001018181525050858181518110610fe857610fe86113e0565b6020026020010151602001515f60028110611005576110056113e0565b60200201518261101683600661144d565b611021906004611408565b81518110611031576110316113e0565b60200260200101818152505085818151811061104f5761104f6113e0565b60200260200101516020015160016002811061106d5761106d6113e0565b60200201518261107e83600661144d565b611089906005611408565b81518110611099576110996113e0565b6020908102919091010152600101610e84565b506110b5611221565b5f602082602086026020860160086107d05a03fa905080806110d357fe5b50806111195760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101611150611201565b815260200161117060405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c083019190915281526020810161119e611201565b81526020016111ab611201565b81526020016111b8611201565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061121461123f565b815260200161117061123f565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156112a657634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f8301126112bd575f5ffd5b5f6112c86040611271565b90508060408401858111156112db575f5ffd5b845b818110156112f55780358352602092830192016112dd565b509195945050505050565b5f5f5f5f6102208587031215611314575f5ffd5b61131e86866112ae565b935085605f86011261132e575f5ffd5b604061133981611271565b8060c088018981111561134a575f5ffd5b604089015b81811015611370576113618b826112ae565b8452602090930192840161134f565b5081965061137e8a826112ae565b95505050505061010085015f87601f830112611398575f5ffd5b5f6101206113a581611271565b91508301818a8211156113b6575f5ffd5b5b818510156113cf5784358152602094850194016113b7565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e6113f4565b5f8261143557634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e6113f4565b808202811582820484141761033e5761033e6113f456fea2646970667358221220ee56b55b73586c11a0ad84b93a1c92445f7a65f7be9aeed3d1e4fbaef2220a4364736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlphaV3_2.sol",
- "buildInfoId": "solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV1Implementation.json b/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV1Implementation.json
deleted file mode 100644
index 6eca4c6..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV1Implementation.json
+++ /dev/null
@@ -1,898 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV1",
- "sourceName": "contracts/vault/CurvyVaultV1.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092ee20f800c61ffef7cf843cfdfb8556dc583253cc5041e6938d0f36f866cde564736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092ee20f800c61ffef7cf843cfdfb8556dc583253cc5041e6938d0f36f866cde564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6484
- },
- {
- "length": 32,
- "start": 6525
- },
- {
- "length": 32,
- "start": 6849
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV1.sol",
- "buildInfoId": "solc-0_8_28-058921f7f7dc564bf6aa8a523006ec8cbd607c64"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV2.json b/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV2.json
deleted file mode 100644
index 45e9d6b..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV2.json
+++ /dev/null
@@ -1,898 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV2",
- "sourceName": "contracts/vault/CurvyVaultV2.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212202a778473814d79a7a9c68762ac7b88d037ffd9a5579e8017bdea83dab1cac6c664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212202a778473814d79a7a9c68762ac7b88d037ffd9a5579e8017bdea83dab1cac6c664736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 5829
- },
- {
- "length": 32,
- "start": 5870
- },
- {
- "length": 32,
- "start": 6194
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV2.sol",
- "buildInfoId": "solc-0_8_28-f0322ae6d51b4110e2b55c267b545c35f2b0fd20"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV3.json b/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV3.json
deleted file mode 100644
index 5545902..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV3.json
+++ /dev/null
@@ -1,911 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV3",
- "sourceName": "contracts/vault/CurvyVaultV3.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5f6100f95f395f81816117f20152818161181b015261195f0152612d5f5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6130
- },
- {
- "length": 32,
- "start": 6171
- },
- {
- "length": 32,
- "start": 6495
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV3.sol",
- "buildInfoId": "solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV3Implementation.json b/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV3Implementation.json
deleted file mode 100644
index 5545902..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV3Implementation.json
+++ /dev/null
@@ -1,911 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV3",
- "sourceName": "contracts/vault/CurvyVaultV3.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5f6100f95f395f81816117f20152818161181b015261195f0152612d5f5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6130
- },
- {
- "length": 32,
- "start": 6171
- },
- {
- "length": 32,
- "start": 6495
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV3.sol",
- "buildInfoId": "solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV4.json b/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV4.json
deleted file mode 100644
index 8c91cae..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV4.json
+++ /dev/null
@@ -1,911 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV4",
- "sourceName": "contracts/vault/CurvyVaultV4.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5c6100f95f395f81816117ef01528181611818015261195c0152612d5c5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6127
- },
- {
- "length": 32,
- "start": 6168
- },
- {
- "length": 32,
- "start": 6492
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV4.sol",
- "buildInfoId": "solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV4Implementation.json b/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV4Implementation.json
deleted file mode 100644
index 8c91cae..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV4Implementation.json
+++ /dev/null
@@ -1,911 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV4",
- "sourceName": "contracts/vault/CurvyVaultV4.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ECDSAInvalidSignature",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "length",
- "type": "uint256"
- }
- ],
- "name": "ECDSAInvalidSignatureLength",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "s",
- "type": "bytes32"
- }
- ],
- "name": "ECDSAInvalidSignatureS",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForGas",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "balance",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "required",
- "type": "uint256"
- }
- ],
- "name": "InsufficientBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidGasSponsorship",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidSender",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidTransactionType",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "indexed": false,
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "signer",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "newNonce",
- "type": "uint256"
- }
- ],
- "name": "NonceChange",
- "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": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "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": "token_id",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Transfer",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address[]",
- "name": "owners",
- "type": "address[]"
- },
- {
- "internalType": "uint256[]",
- "name": "tokenIds",
- "type": "uint256[]"
- }
- ],
- "name": "balanceOfBatch",
- "outputs": [
- {
- "internalType": "uint256[]",
- "name": "",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasSponsorshipAmount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "_signer",
- "type": "address"
- }
- ],
- "name": "getNonce",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- },
- {
- "internalType": "uint96",
- "name": "fee",
- "type": "uint96"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "transfer",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "address",
- "name": "from",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "gasFee",
- "type": "uint256"
- },
- {
- "internalType": "enum CurvyTypes.MetaTransactionType",
- "name": "metaTransactionType",
- "type": "uint8"
- }
- ],
- "internalType": "struct CurvyTypes.MetaTransaction",
- "name": "metaTransaction",
- "type": "tuple"
- },
- {
- "internalType": "bytes",
- "name": "signature",
- "type": "bytes"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "stateMutability": "payable",
- "type": "receive"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5c6100f95f395f81816117ef01528181611818015261195c0152612d5c5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 6127
- },
- {
- "length": 32,
- "start": 6168
- },
- {
- "length": 32,
- "start": 6492
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV4.sol",
- "buildInfoId": "solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV5.json b/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV5.json
deleted file mode 100644
index dcf48aa..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV5.json
+++ /dev/null
@@ -1,717 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV5",
- "sourceName": "contracts/vault/CurvyVaultV5.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC20TransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidDestinationAddress",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregator",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregatorOrOwner",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenAlreadyRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "WithdrawalFeeNotSet",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Deposit",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "indexed": false,
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": false,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "TokenDeregistered",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Withdraw",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "collectFees",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "deregisterToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fd491bda775b94cc947797bcd0ac41b752963a10eb8562367f9c41712eda766664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fd491bda775b94cc947797bcd0ac41b752963a10eb8562367f9c41712eda766664736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4162
- },
- {
- "length": 32,
- "start": 4203
- },
- {
- "length": 32,
- "start": 4522
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV5.sol",
- "buildInfoId": "solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV5Implementation.json b/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV5Implementation.json
deleted file mode 100644
index dcf48aa..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV5Implementation.json
+++ /dev/null
@@ -1,717 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV5",
- "sourceName": "contracts/vault/CurvyVaultV5.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC20TransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidDestinationAddress",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregator",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregatorOrOwner",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenAlreadyRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "WithdrawalFeeNotSet",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Deposit",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "indexed": false,
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": false,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "TokenDeregistered",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Withdraw",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "collectFees",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "deregisterToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fd491bda775b94cc947797bcd0ac41b752963a10eb8562367f9c41712eda766664736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fd491bda775b94cc947797bcd0ac41b752963a10eb8562367f9c41712eda766664736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4162
- },
- {
- "length": 32,
- "start": 4203
- },
- {
- "length": 32,
- "start": 4522
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV5.sol",
- "buildInfoId": "solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV6.json b/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV6.json
deleted file mode 100644
index d4479df..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV6.json
+++ /dev/null
@@ -1,717 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV6",
- "sourceName": "contracts/vault/CurvyVaultV6.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC20TransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidDestinationAddress",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregator",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregatorOrOwner",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenAlreadyRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "WithdrawalFeeNotSet",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Deposit",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "indexed": false,
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": false,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "TokenDeregistered",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Withdraw",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "collectFees",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "deregisterToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220abf4833af5f4eaf00c587d9249e43bdb81105120a948ba55ef3190468959dffb64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220abf4833af5f4eaf00c587d9249e43bdb81105120a948ba55ef3190468959dffb64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4162
- },
- {
- "length": 32,
- "start": 4203
- },
- {
- "length": 32,
- "start": 4522
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV6.sol",
- "buildInfoId": "solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV6Implementation.json b/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV6Implementation.json
deleted file mode 100644
index d4479df..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#CurvyVaultV6Implementation.json
+++ /dev/null
@@ -1,717 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "CurvyVaultV6",
- "sourceName": "contracts/vault/CurvyVaultV6.sol",
- "abi": [
- {
- "inputs": [],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC20TransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ETHTransferFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidDestinationAddress",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidRecipient",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregator",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotCurvyAggregatorOrOwner",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenAlreadyRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "TokenNotRegistered",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "WithdrawalFeeNotSet",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "CurvyAggregatorAddressChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Deposit",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [],
- "name": "EIP712DomainChanged",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "indexed": false,
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "FeeChange",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "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": false,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "TokenDeregistered",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "address",
- "name": "token_address",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "token_id",
- "type": "uint256"
- }
- ],
- "name": "TokenRegistration",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "Withdraw",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "balanceOf",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "collectFees",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "deposit",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "depositFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "deregisterToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "eip712Domain",
- "outputs": [
- {
- "internalType": "bytes1",
- "name": "fields",
- "type": "bytes1"
- },
- {
- "internalType": "string",
- "name": "name",
- "type": "string"
- },
- {
- "internalType": "string",
- "name": "version",
- "type": "string"
- },
- {
- "internalType": "uint256",
- "name": "chainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "verifyingContract",
- "type": "address"
- },
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "uint256[]",
- "name": "extensions",
- "type": "uint256[]"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "getNumberOfTokens",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "name": "getTokenAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "getTokenId",
- "outputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- }
- ],
- "name": "registerToken",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "curvyAggregator",
- "type": "address"
- }
- ],
- "name": "setCurvyAggregatorAddress",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint96",
- "name": "depositFee",
- "type": "uint96"
- },
- {
- "internalType": "uint96",
- "name": "withdrawalFee",
- "type": "uint96"
- }
- ],
- "internalType": "struct CurvyTypes.FeeUpdate",
- "name": "feeUpdate",
- "type": "tuple"
- }
- ],
- "name": "setFeeAmount",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "transferFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "tokenId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "to",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "name": "withdraw",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "withdrawalFee",
- "outputs": [
- {
- "internalType": "uint96",
- "name": "",
- "type": "uint96"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220abf4833af5f4eaf00c587d9249e43bdb81105120a948ba55ef3190468959dffb64736f6c634300081c0033",
- "deployedBytecode": "0x608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220abf4833af5f4eaf00c587d9249e43bdb81105120a948ba55ef3190468959dffb64736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "482": [
- {
- "length": 32,
- "start": 4162
- },
- {
- "length": 32,
- "start": 4203
- },
- {
- "length": 32,
- "start": 4522
- }
- ]
- },
- "inputSourceName": "project/contracts/vault/CurvyVaultV6.sol",
- "buildInfoId": "solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#ERC1967Proxy.json b/ignition/deployments/staging_sepolia/artifacts/CurvyVault#ERC1967Proxy.json
deleted file mode 100644
index ad99af7..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/CurvyVault#ERC1967Proxy.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ERC1967Proxy",
- "sourceName": "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "_data",
- "type": "bytes"
- }
- ],
- "stateMutability": "payable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedCall",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "stateMutability": "payable",
- "type": "fallback"
- }
- ],
- "bytecode": "0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033",
- "deployedBytecode": "0x6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Proxy.sol",
- "buildInfoId": "solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/PortalFactory#CreateX.json b/ignition/deployments/staging_sepolia/artifacts/PortalFactory#CreateX.json
deleted file mode 100644
index 5d6f263..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/PortalFactory#CreateX.json
+++ /dev/null
@@ -1,906 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "ICreateX",
- "sourceName": "contracts/devenv/ICreateX.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "FailedContractCreation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedContractInitialisation",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "revertData",
- "type": "bytes"
- }
- ],
- "name": "FailedEtherTransfer",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidNonceValue",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "emitter",
- "type": "address"
- }
- ],
- "name": "InvalidSalt",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "name": "ContractCreation",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "Create3ProxyContractCreation",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes32",
- "name": "initCodeHash",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate2Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- }
- ],
- "name": "computeCreate3Address",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "deployer",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "nonce",
- "type": "uint256"
- }
- ],
- "name": "computeCreateAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "computedAddress",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate2AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreate2Clone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- }
- ],
- "name": "deployCreate3",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "salt",
- "type": "bytes32"
- },
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreate3AndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "initCode",
- "type": "bytes"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "constructorAmount",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "initCallAmount",
- "type": "uint256"
- }
- ],
- "internalType": "struct ICreateX.Values",
- "name": "values",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "refundAddress",
- "type": "address"
- }
- ],
- "name": "deployCreateAndInit",
- "outputs": [
- {
- "internalType": "address",
- "name": "newContract",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "deployCreateClone",
- "outputs": [
- {
- "internalType": "address",
- "name": "proxy",
- "type": "address"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "bytecode": "0x",
- "deployedBytecode": "0x",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/devenv/ICreateX.sol",
- "buildInfoId": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/PortalFactory#PortalFactory.json b/ignition/deployments/staging_sepolia/artifacts/PortalFactory#PortalFactory.json
deleted file mode 100644
index 8d81ec1..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/PortalFactory#PortalFactory.json
+++ /dev/null
@@ -1,377 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json b/ignition/deployments/staging_sepolia/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
deleted file mode 100644
index 6dc459e..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/PortalFactory#PortalFactory_ContractAt_V2.json
+++ /dev/null
@@ -1,357 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/PortalFactory#PortalFactory_V3.json b/ignition/deployments/staging_sepolia/artifacts/PortalFactory#PortalFactory_V3.json
deleted file mode 100644
index 0e873ff..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/PortalFactory#PortalFactory_V3.json
+++ /dev/null
@@ -1,367 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/PortalFactory#PortalFactory_V4.json b/ignition/deployments/staging_sepolia/artifacts/PortalFactory#PortalFactory_V4.json
deleted file mode 100644
index a7b61e5..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/PortalFactory#PortalFactory_V4.json
+++ /dev/null
@@ -1,367 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/PortalFactory#PortalFactory_V5.json b/ignition/deployments/staging_sepolia/artifacts/PortalFactory#PortalFactory_V5.json
deleted file mode 100644
index cd211a6..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/PortalFactory#PortalFactory_V5.json
+++ /dev/null
@@ -1,382 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "PortalFactory",
- "sourceName": "contracts/portal/PortalFactory.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "initialOwner",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [],
- "name": "DeploymentFailed",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InsufficientAmountForLiFiBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiDestinationChain",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidLiFiReceiver",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedBridging",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UnsupportedShielding",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployEntryBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "currency",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployExitBridgePortal",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "components": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "token",
- "type": "uint256"
- },
- {
- "internalType": "uint256",
- "name": "amount",
- "type": "uint256"
- }
- ],
- "internalType": "struct CurvyTypes.Note",
- "name": "note",
- "type": "tuple"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "deployShieldPortal",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getCreationCode",
- "outputs": [
- {
- "internalType": "bytes",
- "name": "",
- "type": "bytes"
- }
- ],
- "stateMutability": "pure",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "ownerHash",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getEntryPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "exitAddress",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "exitChainId",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "recovery",
- "type": "address"
- }
- ],
- "name": "getExitPortalAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "portalAddress",
- "type": "address"
- }
- ],
- "name": "portalIsRegistered",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "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",
- "name": "curvyVaultProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "curvyAggregatorAlphaProxyAddress",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "name": "updateConfig",
- "outputs": [
- {
- "internalType": "bool",
- "name": "",
- "type": "bool"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c0033",
- "deployedBytecode": "0x60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {},
- "inputSourceName": "project/contracts/portal/PortalFactory.sol",
- "buildInfoId": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/artifacts/TokenBridgeModule#TokenBridge.json b/ignition/deployments/staging_sepolia/artifacts/TokenBridgeModule#TokenBridge.json
deleted file mode 100644
index 0ca6446..0000000
--- a/ignition/deployments/staging_sepolia/artifacts/TokenBridgeModule#TokenBridge.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "_format": "hh3-artifact-1",
- "contractName": "TokenBridge",
- "sourceName": "contracts/smart-account/TokenBridge.sol",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "lifiDiamondAddress",
- "type": "address"
- }
- ],
- "stateMutability": "nonpayable",
- "type": "constructor"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "token",
- "type": "address"
- }
- ],
- "name": "SafeERC20FailedOperation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "_lifiDiamondAddress",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "tokenAddress",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "bridgeData",
- "type": "bytes"
- }
- ],
- "name": "bridgeFullBalance",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- }
- ],
- "bytecode": "0x60a060405234801561000f575f5ffd5b5060405161068f38038061068f83398101604081905261002e9161003f565b6001600160a01b031660805261006c565b5f6020828403121561004f575f5ffd5b81516001600160a01b0381168114610065575f5ffd5b9392505050565b6080516105f161009e5f395f8181603d015281816092015281816101d1015281816101f901526102d301526105f15ff3fe608060405234801561000f575f5ffd5b5060043610610034575f3560e01c80632b8c45ca14610038578063bfe24a741461007b575b5f5ffd5b61005f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b61008e61008936600461050a565b610090565b005b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166101165760405162461bcd60e51b815260206004820152602260248201527f546f6b656e4272696467653a20496e76616c6964204c492e4649206164647265604482015261737360f01b60648201526084015b60405180910390fd5b6001600160a01b0383161580159061014b57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156102c9576040516370a0823160e01b815230600482015283905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610196573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101ba9190610595565b905080156102c2576101f66001600160a01b0383167f0000000000000000000000000000000000000000000000000000000000000000836103a2565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031685856040516102319291906105ac565b5f604051808303815f865af19150503d805f811461026a576040519150601f19603f3d011682016040523d82523d5f602084013e61026f565b606091505b50509050806102c05760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b505b5050505050565b47801561039c575f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682858560405161030c9291906105ac565b5f6040518083038185875af1925050503d805f8114610346576040519150601f19603f3d011682016040523d82523d5f602084013e61034b565b606091505b50509050806102c25760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526103f38482610455565b61039c57604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261044b90859061049e565b61039c848261049e565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610494575081156104865780600114610494565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af1806104bd576040513d5f823e3d81fd5b50505f513d915081156104d45780600114156104e1565b6001600160a01b0384163b155b1561039c57604051635274afe760e01b81526001600160a01b038516600482015260240161010d565b5f5f5f6040848603121561051c575f5ffd5b83356001600160a01b0381168114610532575f5ffd5b9250602084013567ffffffffffffffff81111561054d575f5ffd5b8401601f8101861361055d575f5ffd5b803567ffffffffffffffff811115610573575f5ffd5b866020828401011115610584575f5ffd5b939660209190910195509293505050565b5f602082840312156105a5575f5ffd5b5051919050565b818382375f910190815291905056fea264697066735822122024b79e0e8ad787a3d9372fa489b74bacaa38a30e0b87794cfbd941ed4010f11664736f6c634300081c0033",
- "deployedBytecode": "0x608060405234801561000f575f5ffd5b5060043610610034575f3560e01c80632b8c45ca14610038578063bfe24a741461007b575b5f5ffd5b61005f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b61008e61008936600461050a565b610090565b005b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166101165760405162461bcd60e51b815260206004820152602260248201527f546f6b656e4272696467653a20496e76616c6964204c492e4649206164647265604482015261737360f01b60648201526084015b60405180910390fd5b6001600160a01b0383161580159061014b57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156102c9576040516370a0823160e01b815230600482015283905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610196573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101ba9190610595565b905080156102c2576101f66001600160a01b0383167f0000000000000000000000000000000000000000000000000000000000000000836103a2565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031685856040516102319291906105ac565b5f604051808303815f865af19150503d805f811461026a576040519150601f19603f3d011682016040523d82523d5f602084013e61026f565b606091505b50509050806102c05760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b505b5050505050565b47801561039c575f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682858560405161030c9291906105ac565b5f6040518083038185875af1925050503d805f8114610346576040519150601f19603f3d011682016040523d82523d5f602084013e61034b565b606091505b50509050806102c25760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526103f38482610455565b61039c57604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261044b90859061049e565b61039c848261049e565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610494575081156104865780600114610494565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af1806104bd576040513d5f823e3d81fd5b50505f513d915081156104d45780600114156104e1565b6001600160a01b0384163b155b1561039c57604051635274afe760e01b81526001600160a01b038516600482015260240161010d565b5f5f5f6040848603121561051c575f5ffd5b83356001600160a01b0381168114610532575f5ffd5b9250602084013567ffffffffffffffff81111561054d575f5ffd5b8401601f8101861361055d575f5ffd5b803567ffffffffffffffff811115610573575f5ffd5b866020828401011115610584575f5ffd5b939660209190910195509293505050565b5f602082840312156105a5575f5ffd5b5051919050565b818382375f910190815291905056fea264697066735822122024b79e0e8ad787a3d9372fa489b74bacaa38a30e0b87794cfbd941ed4010f11664736f6c634300081c0033",
- "linkReferences": {},
- "deployedLinkReferences": {},
- "immutableReferences": {
- "657": [
- {
- "length": 32,
- "start": 61
- },
- {
- "length": 32,
- "start": 146
- },
- {
- "length": 32,
- "start": 465
- },
- {
- "length": 32,
- "start": 505
- },
- {
- "length": 32,
- "start": 723
- }
- ]
- },
- "inputSourceName": "project/contracts/smart-account/TokenBridge.sol",
- "buildInfoId": "solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-073f43613e21cd9c4dda603b6759f0d8e61b5e93.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-073f43613e21cd9c4dda603b6759f0d8e61b5e93.json
deleted file mode 100644
index ae38b6f..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-073f43613e21cd9c4dda603b6759f0d8e61b5e93.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-073f43613e21cd9c4dda603b6759f0d8e61b5e93",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { PoseidonT4 } from \"./utils/PoseidonT4.sol\";\n\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport {\n ICurvyInsertionVerifier,\n ICurvyAggregationVerifier,\n ICurvyWithdrawVerifier\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV2 is Initializable, UUPSUpgradeable, OwnableUpgradeable {\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner, address curvyVaultProxyAddress) public initializer {\n maxDeposits = 2;\n maxWithdrawals = 2;\n maxAggregations = 2;\n\n __Ownable_init(initialOwner);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdate memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);\n }\n // TODO: We probably don't need this.\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVault(_update.curvyVault);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function depositNote(address from, CurvyTypes.Note memory note, bytes memory signature) public {\n // TODO: Gas fee\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n from,\n address(this),\n note.token,\n note.amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n ),\n signature\n );\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n require(\n _pendingIdsQueue[noteId],\n \"CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!\"\n );\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n require(\n _notesTreeRoot == publicInputs[numPublicInputs - 2],\n \"CurvyAggregator#commitDepositBatch: Invalid notes root!\"\n );\n\n require(\n insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitDepositBatch: Invalid proof!\"\n );\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n require(\n _notesTreeRoot == oldNotesTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!\"\n );\n require(\n _nullifiersTreeRoot == oldNullifiersTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!\"\n );\n\n require(\n aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitAggregationBatch: Invalid proof!\"\n );\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[10] memory publicInputs\n ) public returns (bool) {\n require(\n publicInputs[3] == _nullifiersTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!\"\n );\n require(\n publicInputs[2] == _notesTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!\"\n );\n\n require(\n withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!\"\n );\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[4 + i];\n address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n destinationAddress,\n publicInputs[numPublicInputs - 1],\n amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n }\n }\n\n // Fee collection\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n owner(),\n publicInputs[numPublicInputs - 1],\n publicInputs[1],\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe.json
deleted file mode 100644
index 78d979b..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe.json
+++ /dev/null
@@ -1,134 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-0b3440cad7e050bf4e351b7585d2cd0c3f5d8afe",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV3.sol": "project/contracts/vault/CurvyVaultV3.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/ECDSA.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.20;\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 }\n\n /**\n * @dev The signature derives the `address(0)`.\n */\n error ECDSAInvalidSignature();\n\n /**\n * @dev The signature has an invalid length.\n */\n error ECDSAInvalidSignatureLength(uint256 length);\n\n /**\n * @dev The signature has an S value that is in the upper half order.\n */\n error ECDSAInvalidSignatureS(bytes32 s);\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\n * and a bytes32 providing additional information about the error.\n *\n * If no error is returned, then the address can be used for verification purposes.\n *\n * The `ecrecover` EVM precompile 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 {MessageHashUtils-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 function tryRecover(\n bytes32 hash,\n bytes memory signature\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 (\"memory-safe\") {\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 {\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\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 precompile 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 {MessageHashUtils-toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\n _throwError(error, errorArg);\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[ERC-2098 short signatures]\n */\n function tryRecover(\n bytes32 hash,\n bytes32 r,\n bytes32 vs\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\n unchecked {\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n // We do not check for an overflow here since the shift operation results in 0 or 1.\n uint8 v = uint8((uint256(vs) >> 255) + 27);\n return tryRecover(hash, v, r, s);\n }\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n */\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\n _throwError(error, errorArg);\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 function tryRecover(\n bytes32 hash,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 ÷ 2 + 1, and for v in (302): v ∈ {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, s);\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, bytes32(0));\n }\n\n return (signer, RecoverError.NoError, bytes32(0));\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `v`,\n * `r` and `s` signature fields separately.\n */\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\n _throwError(error, errorArg);\n return recovered;\n }\n\n /**\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\n */\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\n if (error == RecoverError.NoError) {\n return; // no error: do nothing\n } else if (error == RecoverError.InvalidSignature) {\n revert ECDSAInvalidSignature();\n } else if (error == RecoverError.InvalidSignatureLength) {\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\n } else if (error == RecoverError.InvalidSignatureS) {\n revert ECDSAInvalidSignatureS(errorArg);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV3.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { EIP712Upgradeable } from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { ECDSA } from \"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\";\nimport \"./ICurvyVault.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract CurvyVaultV3 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH =\n keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"2.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Private functions\n\n function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {\n bytes32 structHash = keccak256(\n abi.encode(\n CURVY_META_TRANSACTION_TYPE_HASH,\n _nonces[metaTransaction.from],\n metaTransaction.from,\n metaTransaction.to,\n metaTransaction.tokenId,\n metaTransaction.amount,\n metaTransaction.gasFee,\n metaTransaction.metaTransactionType\n )\n );\n\n // Add domain data to the hash\n bytes32 hash = _hashTypedDataV4(structHash);\n\n // Check that the metaTransaction is signed by metaTransaction.from\n address signer = ECDSA.recover(hash, signature);\n require(signer == metaTransaction.from, \"CurvyVault#_validateSignature: Invalid signature!\");\n\n // Increment nonce\n _nonces[signer]++;\n emit NonceChange(signer, _nonces[signer]);\n }\n\n function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n if (metaTransaction.to == address(0)) revert InvalidRecipient();\n if (metaTransaction.metaTransactionType != CurvyTypes.MetaTransactionType.Transfer)\n revert InvalidTransactionType();\n\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.to][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (transferFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);\n }\n\n function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_withdraw: Invalid withdraw recipient!\");\n require(\n metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,\n \"CurvyVault#withdraw: Wrong type for meta transaction!\"\n );\n\n // Burn wrapped tokens\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n\n uint256 amountAfterFees = metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n amountAfterFees -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (withdrawalFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;\n amountAfterFees -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n // Withdraw\n if (metaTransaction.tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];\n IERC20(tokenAddress).safeTransfer(metaTransaction.to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success, ) = metaTransaction.to.call{ value: amountAfterFees }(\"\");\n require(success, \"CurvyVault#_withdraw: ETH withdrawal failed!\");\n }\n\n emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);\n }\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n require(_tokenAddressToTokenId[tokenAddress] == 0, \"CurvyVault#registerToken: Token already registered!\");\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {\n if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {\n depositFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {\n transferFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {\n withdrawalFee = fee;\n } else {\n revert(\"CurvyVault#setFeeAmount: Unknown fee type!\");\n }\n\n emit FeeChange(metaTransactionType, fee);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n\n require(msg.sender == _curvyAggregator, \"Only CurvyAggregator can do vault deposits through portal autoShield\");\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n require(msg.value == 0, \"CurvyVault#deposit: Don't send ETH with ERC20 deposit!\");\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n } else {\n // We are depositing ETH\n require(amount == msg.value, \"CurvyVault#deposit: Incorrect deposit value!\");\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)\n if (gasSponsorshipAmount != 0) {\n _balances[to][tokenId] -= gasSponsorshipAmount;\n _balances[owner()][tokenId] += gasSponsorshipAmount;\n }\n\n emit Transfer(address(0x0), to, tokenId, amount);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _transfer(metaTransaction);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _transfer(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _withdraw(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _withdraw(metaTransaction);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n require(tokenAddress != address(0x0), \"CurvyVault:#getIdAddress: Unregistered token!\");\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault:#getTokenID: Unregistered token!\");\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n function balanceOfBatch(\n address[] memory owners,\n uint256[] memory tokenIds\n ) external view returns (uint256[] memory) {\n require(owners.length == tokenIds.length, \"CurvyVault#balanceOfBatch: Invalid array length!\");\n\n // Variables\n uint256[] memory batchBalances = new uint256[](owners.length);\n\n // Iterate over each owner and token ID\n for (uint256 i = 0; i < owners.length; i++) {\n batchBalances[i] = _balances[owners[i]][tokenIds[i]];\n }\n\n return batchBalances;\n }\n\n function getNonce(address _signer) external view returns (uint256 nonce) {\n return _nonces[_signer];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-167fc5db862e5ca691aecf3160449d82b1d94083.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-167fc5db862e5ca691aecf3160449d82b1d94083.json
deleted file mode 100644
index 1b0da52..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-167fc5db862e5ca691aecf3160449d82b1d94083.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-167fc5db862e5ca691aecf3160449d82b1d94083",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-2345d7baa923964c5828a297965392391e6113b8.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-2345d7baa923964c5828a297965392391e6113b8.json
deleted file mode 100644
index 1faf141..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-2345d7baa923964c5828a297965392391e6113b8.json
+++ /dev/null
@@ -1,118 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-2345d7baa923964c5828a297965392391e6113b8",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport \"../portal/IPortalFactory.sol\";\nimport {\nICurvyInsertionVerifier,\nICurvyAggregationVerifier,\nICurvyWithdrawVerifier,\nICurvyWithdrawVerifierV3\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"./ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {ICurvyVaultV2} from \"../vault/ICurvyVaultV2.sol\";\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {PoseidonT4} from \"./utils/PoseidonT4.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV5 is ICurvyAggregatorAlpha, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n // Curvy's portal factory contract;\n IPortalFactory public portalFactory;\n\n ICurvyVaultV2 public curvyVaultV2;\n\n ICurvyWithdrawVerifierV3 public withdrawVerifierV3;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n __Ownable_init(initialOwner);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdateV2 memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifierV3 = ICurvyWithdrawVerifierV3(_update.withdrawVerifier);\n }\n if (_update.curvyVault != address(0)) {\n curvyVaultV2 = ICurvyVaultV2(_update.curvyVault);\n }\n if (_update.portalFactory != address(0)) {\n portalFactory = IPortalFactory(_update.portalFactory);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable {\n // Only allow auto shielding of portals that were deployed through the portalFactory\n if (!portalFactory.portalIsRegistered(msg.sender)) revert PortalNotRegistered();\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);\n IERC20(tokenAddress).forceApprove(address(curvyVaultV2), note.amount);\n }\n\n curvyVaultV2.deposit{ value: msg.value }(tokenAddress, address(this), note.amount, 0);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n if (!_pendingIdsQueue[noteId]) revert NoteNotScheduledForDeposit();\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n if (_notesTreeRoot != publicInputs[numPublicInputs - 2]) revert InvalidNotesRoot();\n\n if (!insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n if (_notesTreeRoot != oldNotesTreeRoot) revert CurrentNoteTreeRootMismatch();\n if (_nullifiersTreeRoot != oldNullifiersTreeRoot) revert CurrentNullifierTreeRootMismatch();\n\n if (!aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[9] memory publicInputs\n ) public returns (bool) {\n if (publicInputs[2] != _nullifiersTreeRoot) revert CurrentNullifierTreeRootMismatch();\n if (publicInputs[1] != _notesTreeRoot) revert CurrentNoteTreeRootMismatch();\n\n if (!withdrawVerifierV3.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[3 + i];\n address destinationAddress = address(uint160(publicInputs[3 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVaultV2.withdraw(\n publicInputs[numPublicInputs - 1], // tokenId\n destinationAddress,\n amount\n );\n }\n }\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\ninterface ICurvyWithdrawVerifierV3 {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[9] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV2 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount, uint256 gasSponsorshipAmount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenUnsupported(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAllreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error NoFeeUpdate();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n function unsupportToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd.json
deleted file mode 100644
index c5914f3..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-23b655e8bb0105b6787d4a3a8a7a7cc8d837aadd",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2_30.sol": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2_30.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2_30.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyAggregationVerifierAlpha_2_2_2_30 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 1636846776518434317996733932951972378772913817912419917762768475702381471734;\n uint256 constant alphay = 2557859348676819025385346933609180330308687626659434893060052940731235849018;\n uint256 constant betax1 = 6486908244102514188758219539984059501831627243372326134761579522465959290266;\n uint256 constant betax2 = 20982554991654900079360939570217720062255973982399814758284443662932208191129;\n uint256 constant betay1 = 19182644467787183843647819985681434389712148315951713380764435963668492288076;\n uint256 constant betay2 = 12406681655195816859272397663108739861438627022123343846745568062489563457825;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 9747844980327646408377936853901576964882208162979095558491855258874644032428;\n uint256 constant deltax2 = 16756406287301157016584371495328426384230959009782353619418027108198900859045;\n uint256 constant deltay1 = 12031563974052658626813022123817729103548385673602489380797509408050168362251;\n uint256 constant deltay2 = 13429401639598153332715865509706776334046884142780191754811231453515278136324;\n\n \n uint256 constant IC0x = 17399625455729226858193731763381735313995214152427932693079209346443273813361;\n uint256 constant IC0y = 12859111834604210549529111813676435741477721204446408540561580131023612373119;\n \n uint256 constant IC1x = 19269508121721386291058841803585817118599674808849286017476018587604958075748;\n uint256 constant IC1y = 9739083346977226558755028796693364133601235625996618276883249540221132637793;\n \n uint256 constant IC2x = 4906510788248149510349692841186321223500356486988078983311568678766686617420;\n uint256 constant IC2y = 6556693659005449888057044633727477467849788892491025455409405901466816779011;\n \n uint256 constant IC3x = 14044972721113237465916458767885969838881931162770098020949856358124091314799;\n uint256 constant IC3y = 14117139287964659766273454103382038851225246363664392925580043228576662736937;\n \n uint256 constant IC4x = 3012371627291579470375119311705692169706993162491904502205704114402133122481;\n uint256 constant IC4y = 11314079418441590611909244855959271743770501270574709172645731877756340642847;\n \n uint256 constant IC5x = 12014747518500042396257254926854732905212065822893454718881040190806844834766;\n uint256 constant IC5y = 9147262807133758476810323056110110965120211575681576794111913832114045819253;\n \n uint256 constant IC6x = 17208228463546580386283793027479680747415863706121256054456908792476918249987;\n uint256 constant IC6y = 15455064688675952318632388873661983654124978426049461390082396053486080921802;\n \n uint256 constant IC7x = 11890869179344231511453890841634284101019213344221032352195689057090808444836;\n uint256 constant IC7y = 1686632724578012404026531741296202004554825601863464229764451159902739394058;\n \n uint256 constant IC8x = 19740126978733293930114609559282015871184836365480012469082695053739727687465;\n uint256 constant IC8y = 12529311631088881627469970608969522997871884804075518341540042128460362543503;\n \n uint256 constant IC9x = 10097827894510155216618449121665995035774394468628598818421588397182493478809;\n uint256 constant IC9y = 9726499558835181108437959744805754000607141454601461826622961981576422672141;\n \n uint256 constant IC10x = 1105597600508673395153704990296305545165923034140397026472508603328041426472;\n uint256 constant IC10y = 13934527933778711255168756830771167066267892265285651597997494803168274058956;\n \n uint256 constant IC11x = 10556009619270442534492625284926806630007434804571327583511131615527605130705;\n uint256 constant IC11y = 693363830989493332783658305850455646188088196371520355545151751865010014079;\n \n uint256 constant IC12x = 8534554792067915579614604389696182629499240739879062333502112419263796212856;\n uint256 constant IC12y = 7072896253070058670565264175517999411490551474277670667755271140222925088212;\n \n uint256 constant IC13x = 16851058908720463266568610634766740724322613878197515393707044621237493592474;\n uint256 constant IC13y = 2921798703043006803004466566848382014657571511688478540130957201734680757760;\n \n uint256 constant IC14x = 7620393642241690544543596497893247026112057615774774075422598527638630237828;\n uint256 constant IC14y = 15268439033903233729000463443675295853249877185817343709378544191244820858078;\n \n \n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[14] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n \n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n \n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n \n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n \n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n \n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n \n g1_mulAccC(_pVk, IC5x, IC5y, calldataload(add(pubSignals, 128)))\n \n g1_mulAccC(_pVk, IC6x, IC6y, calldataload(add(pubSignals, 160)))\n \n g1_mulAccC(_pVk, IC7x, IC7y, calldataload(add(pubSignals, 192)))\n \n g1_mulAccC(_pVk, IC8x, IC8y, calldataload(add(pubSignals, 224)))\n \n g1_mulAccC(_pVk, IC9x, IC9y, calldataload(add(pubSignals, 256)))\n \n g1_mulAccC(_pVk, IC10x, IC10y, calldataload(add(pubSignals, 288)))\n \n g1_mulAccC(_pVk, IC11x, IC11y, calldataload(add(pubSignals, 320)))\n \n g1_mulAccC(_pVk, IC12x, IC12y, calldataload(add(pubSignals, 352)))\n \n g1_mulAccC(_pVk, IC13x, IC13y, calldataload(add(pubSignals, 384)))\n \n g1_mulAccC(_pVk, IC14x, IC14y, calldataload(add(pubSignals, 416)))\n \n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n \n checkField(calldataload(add(_pubSignals, 0)))\n \n checkField(calldataload(add(_pubSignals, 32)))\n \n checkField(calldataload(add(_pubSignals, 64)))\n \n checkField(calldataload(add(_pubSignals, 96)))\n \n checkField(calldataload(add(_pubSignals, 128)))\n \n checkField(calldataload(add(_pubSignals, 160)))\n \n checkField(calldataload(add(_pubSignals, 192)))\n \n checkField(calldataload(add(_pubSignals, 224)))\n \n checkField(calldataload(add(_pubSignals, 256)))\n \n checkField(calldataload(add(_pubSignals, 288)))\n \n checkField(calldataload(add(_pubSignals, 320)))\n \n checkField(calldataload(add(_pubSignals, 352)))\n \n checkField(calldataload(add(_pubSignals, 384)))\n \n checkField(calldataload(add(_pubSignals, 416)))\n \n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n }\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json
deleted file mode 100644
index 8a2c60d..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-36bdba7c15e43527af104403d9394d0a86b7dcb1",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external onlyOnce {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-3ef82ff417c69c039cc95b3eda5a58b15364ef49.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-3ef82ff417c69c039cc95b3eda5a58b15364ef49.json
deleted file mode 100644
index e6b6fd2..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-3ef82ff417c69c039cc95b3eda5a58b15364ef49.json
+++ /dev/null
@@ -1,130 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-3ef82ff417c69c039cc95b3eda5a58b15364ef49",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV5.sol": "project/contracts/vault/CurvyVaultV5.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV5.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { EIP712Upgradeable } from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport \"./ICurvyVaultV2.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract CurvyVaultV5 is ICurvyVaultV2, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH =\n keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n if (_tokenAddressToTokenId[tokenAddress] != 0) revert TokenAllreadyRegistered();\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function unsupportToken(address tokenAddress) external onlyOwner {\n uint256 tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n\n // Remove from both mappings\n _tokenAddressToTokenId[tokenAddress] = 0;\n _tokenIdToTokenAddress[tokenId] = address(0);\n\n emit TokenUnsupported(tokenAddress, tokenId);\n }\n\n function setFeeAmount(CurvyTypes.FeeUpdate calldata feeUpdate) external onlyOwner {\n if (feeUpdate.depositFee != 0) depositFee = feeUpdate.depositFee;\n else if (feeUpdate.withdrawalFee != 0) withdrawalFee = feeUpdate.withdrawalFee;\n else revert NoFeeUpdate();\n\n emit FeeChange(feeUpdate);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n function forceWithdrawal(uint256 amount, address destinationAddress, uint256 tokenId) external onlyOwner {\n if (destinationAddress == address(0)) revert InvalidDestinationAddress();\n\n // Burn wrapped tokens\n _balances[destinationAddress][tokenId] -= amount;\n\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) {\n revert TokenNotRegistered();\n }\n\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(destinationAddress, amount);\n } else {\n // We are withdrawing ETH\n (bool success, ) = destinationAddress.call{ value: amount }(\"\");\n if (!success) revert ETHTransferFailed();\n }\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n if (msg.sender != _curvyAggregator) revert NotCurvyAggregator();\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n if (msg.value != 0) revert ERC20TransferFailed();\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n } else {\n // We are depositing ETH\n if (amount != msg.value) revert ETHTransferFailed();\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // No fees or gas sponsorship deducted from balance (removed per requirements)\n\n emit Deposit(tokenAddress, to, amount, gasSponsorshipAmount);\n }\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external {\n if (msg.sender != _curvyAggregator && msg.sender != owner()) revert NotCurvyAggregatorOrOwner();\n if (to == address(0)) revert InvalidRecipient();\n if (withdrawalFee == 0) revert NoFeeUpdate();\n\n uint256 feeAmount = (amount * withdrawalFee) / FEE_DENOMINATOR;\n // Burn wrapped tokens\n _balances[msg.sender][tokenId] -= amount;\n _balances[owner()][tokenId] += feeAmount;\n\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n\n // Withdraw\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(to, amount - feeAmount);\n } else {\n // We are withdrawing ETH\n (bool success, ) = to.call{ value: amount - feeAmount }(\"\");\n if (!success) revert ETHTransferFailed();\n }\n\n emit Withdraw(tokenAddress, to, amount);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV2 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount, uint256 gasSponsorshipAmount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenUnsupported(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAllreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error NoFeeUpdate();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n function unsupportToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
deleted file mode 100644
index 272c9d5..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4874f70f2cd8c3fb9b9fb325744cf7da2458e555",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n if (extractedData.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
deleted file mode 100644
index 4b57fc4..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-4f85de33cf8bbb1bb049553acb0548f1acc6867e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/devenv/ICreateX.sol": "project/contracts/devenv/ICreateX.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/devenv/ICreateX.sol": {
- "content": "// SPDX-License-Identifier: AGPL-3.0-only\npragma solidity ^0.8.4;\n\n/**\n * @title CreateX Factory Interface Definition\n * @author pcaversaccio (https://web.archive.org/web/20230921103111/https://pcaversaccio.com/)\n * @custom:coauthor Matt Solomon (https://web.archive.org/web/20230921103335/https://mattsolomon.dev/)\n */\ninterface ICreateX {\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* TYPES */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n struct Values {\n uint256 constructorAmount;\n uint256 initCallAmount;\n }\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* EVENTS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n event ContractCreation(address indexed newContract, bytes32 indexed salt);\n event ContractCreation(address indexed newContract);\n event Create3ProxyContractCreation(address indexed newContract, bytes32 indexed salt);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CUSTOM ERRORS */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n error FailedContractCreation(address emitter);\n error FailedContractInitialisation(address emitter, bytes revertData);\n error InvalidSalt(address emitter);\n error InvalidNonceValue(address emitter);\n error FailedEtherTransfer(address emitter, bytes revertData);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreateAndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreateClone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreateAddress(address deployer, uint256 nonce) external view returns (address computedAddress);\n\n function computeCreateAddress(uint256 nonce) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE2 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate2(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate2AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate2Clone(\n bytes32 salt,\n address implementation,\n bytes memory data\n ) external payable returns (address proxy);\n\n function deployCreate2Clone(address implementation, bytes memory data) external payable returns (address proxy);\n\n function computeCreate2Address(\n bytes32 salt,\n bytes32 initCodeHash,\n address deployer\n ) external pure returns (address computedAddress);\n\n function computeCreate2Address(bytes32 salt, bytes32 initCodeHash) external view returns (address computedAddress);\n\n /*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/\n /* CREATE3 */\n /*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/\n\n function deployCreate3(bytes32 salt, bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3(bytes memory initCode) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes32 salt,\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values,\n address refundAddress\n ) external payable returns (address newContract);\n\n function deployCreate3AndInit(\n bytes memory initCode,\n bytes memory data,\n Values memory values\n ) external payable returns (address newContract);\n\n function computeCreate3Address(bytes32 salt, address deployer) external pure returns (address computedAddress);\n\n function computeCreate3Address(bytes32 salt) external view returns (address computedAddress);\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-562d871246bca4936e583b1e48d6b3183bd6bb39.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-562d871246bca4936e583b1e48d6b3183bd6bb39.json
deleted file mode 100644
index aa92aa9..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-562d871246bca4936e583b1e48d6b3183bd6bb39.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-562d871246bca4936e583b1e48d6b3183bd6bb39",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV5.sol": "project/contracts/vault/CurvyVaultV5.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV5.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport \"./ICurvyVaultV2.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract CurvyVaultV5 is ICurvyVaultV2, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH =\n keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n if (_tokenAddressToTokenId[tokenAddress] != 0) revert TokenAllreadyRegistered();\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function unsupportToken(address tokenAddress) external onlyOwner {\n uint256 tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n\n // Remove from both mappings\n _tokenAddressToTokenId[tokenAddress] = 0;\n _tokenIdToTokenAddress[tokenId] = address(0);\n\n emit TokenUnsupported(tokenAddress, tokenId);\n }\n\n function setFeeAmount(CurvyTypes.FeeUpdate calldata feeUpdate) external onlyOwner {\n if (feeUpdate.depositFee != 0) depositFee = feeUpdate.depositFee;\n else if (feeUpdate.withdrawalFee != 0) withdrawalFee = feeUpdate.withdrawalFee;\n else revert NoFeeUpdate();\n\n emit FeeChange(feeUpdate);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n function forceWithdrawal(uint256 amount, address destinationAddress, uint256 tokenId) external onlyOwner {\n if (destinationAddress == address(0)) revert InvalidDestinationAddress();\n\n // Burn wrapped tokens\n _balances[destinationAddress][tokenId] -= amount;\n\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) {\n revert TokenNotRegistered();\n }\n\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(destinationAddress, amount);\n } else {\n // We are withdrawing ETH\n (bool success, ) = destinationAddress.call{ value: amount }(\"\");\n if (!success) revert ETHTransferFailed();\n }\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n if (msg.sender != _curvyAggregator) revert NotCurvyAggregator();\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n if (msg.value != 0) revert ERC20TransferFailed();\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n } else {\n // We are depositing ETH\n if (amount != msg.value) revert ETHTransferFailed();\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // No fees or gas sponsorship deducted from balance (removed per requirements)\n\n emit Deposit(tokenAddress, to, amount, gasSponsorshipAmount);\n }\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external {\n if (msg.sender != _curvyAggregator && msg.sender != owner()) revert NotCurvyAggregatorOrOwner();\n if (to == address(0)) revert InvalidRecipient();\n if (withdrawalFee == 0) revert NoFeeUpdate();\n\n uint256 feeAmount = (amount * withdrawalFee) / FEE_DENOMINATOR;\n // Burn wrapped tokens\n _balances[msg.sender][tokenId] -= amount;\n _balances[owner()][tokenId] += feeAmount;\n\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n\n // Withdraw\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(to, amount - feeAmount);\n } else {\n // We are withdrawing ETH\n (bool success, ) = to.call{ value: amount - feeAmount }(\"\");\n if (!success) revert ETHTransferFailed();\n }\n\n emit Withdraw(tokenAddress, to, amount);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV2 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount, uint256 gasSponsorshipAmount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenUnsupported(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAllreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error NoFeeUpdate();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n function unsupportToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e.json
deleted file mode 100644
index 6e1588a..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-5815b81f9d0019905853b9b8c756b085ee00c21e",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV6.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport \"../portal/IPortalFactory.sol\";\nimport {\nICurvyInsertionVerifier,\nICurvyAggregationVerifier,\nICurvyWithdrawVerifier,\nICurvyWithdrawVerifierV3\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"./ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVaultV3} from \"../vault/ICurvyVaultV3.sol\";\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {PoseidonT4} from \"./utils/PoseidonT4.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV6 is ICurvyAggregatorAlphaV2, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations in one aggregation batch proof\n uint256 public maxAggregations;\n // Maximum number of withdrawals in one withdrawal batch proof\n uint256 public maxWithdrawals;\n\n // Queue of commited note ids waiting for proof verification and deposit batch commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVaultV3 public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifierV3 public withdrawVerifier;\n\n // Curvy's portal factory contract;\n IPortalFactory public portalFactory;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n __Ownable_init(initialOwner);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdateV2 memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifierV3(_update.withdrawVerifier);\n }\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVaultV3(_update.curvyVault);\n }\n if (_update.portalFactory != address(0)) {\n portalFactory = IPortalFactory(_update.portalFactory);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n /*\n * @dev This function allows the owner to reset the roots of the notes and nullifiers trees to a known state.\n * @notice Only to be used in emergency cases where the contract is in a bad state and cannot be recovered\n * through normal operation (i.e. proof verification and batch commitments).\n */\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable {\n // Only allow auto shielding of portals that were deployed through the portalFactory\n if (!portalFactory.portalIsRegistered(msg.sender)) revert PortalNotRegistered();\n\n // This will revert if tokenId is not found.\n address tokenAddress = curvyVault.getTokenAddress(note.token);\n\n if (tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);\n IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);\n }\n\n curvyVault.deposit{value: msg.value}(tokenAddress, address(this), note.amount);\n\n uint256 feeAmount = note.amount * curvyVault.depositFee() / 10000;\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount - feeAmount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n if (!_pendingIdsQueue[noteId]) revert NoteNotScheduledForDeposit();\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n if (_notesTreeRoot != publicInputs[numPublicInputs - 2]) revert InvalidNotesRoot();\n\n if (!insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n if (_notesTreeRoot != oldNotesTreeRoot) revert CurrentNoteTreeRootMismatch();\n if (_nullifiersTreeRoot != oldNullifiersTreeRoot) revert CurrentNullifierTreeRootMismatch();\n\n if (!aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[9] memory publicInputs\n ) public {\n if (publicInputs[2] != _nullifiersTreeRoot) {\n revert CurrentNullifierTreeRootMismatch();\n }\n if (publicInputs[1] != _notesTreeRoot) revert CurrentNoteTreeRootMismatch();\n\n if (!withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[3 + i];\n address destinationAddress = address(uint160(publicInputs[3 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.withdraw(\n publicInputs[numPublicInputs - 1], // tokenId\n destinationAddress,\n amount\n );\n }\n }\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifiersTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\ninterface ICurvyWithdrawVerifierV3 {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[9] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV3.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV3 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenDeregistered(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAlreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount) external payable;\n function deregisterToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n function depositFee() external view returns (uint96);\n function withdrawalFee() external view returns (uint96);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6.json
deleted file mode 100644
index 14dfbff..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-5cbd05f17ba023a485b8afdcfd9c652932bc55d6",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2.sol": {
- "content": "//\n// Copyright 2017 Christian Reitwiessner\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n//\n// 2019 OKIMS\n// ported to solidity 0.6\n// fixed linter warnings\n// added requiere error messages\n//\n//\n// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.28;\nlibrary Pairing {\n struct G1Point {\n uint X;\n uint Y;\n }\n // Encoding of field elements is: X[0] * z + X[1]\n struct G2Point {\n uint[2] X;\n uint[2] Y;\n }\n /// @return the generator of G1\n function P1() internal pure returns (G1Point memory) {\n return G1Point(1, 2);\n }\n /// @return the generator of G2\n function P2() internal pure returns (G2Point memory) {\n // Original code point\n return\n G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n\n /*\n // Changed by Jordi point\n return G2Point(\n [10857046999023057135944570762232829481370756359578518086990519993285655852781,\n 11559732032986387107991004021392285783925812861821192530917403151452391805634],\n [8495653923123431417604973247489272438418190587263600148770280649306958101930,\n 4082367875863433681332203403145435568316851327593401208105741076214120093531]\n );\n*/\n }\n /// @return r the negation of p, i.e. p.addition(p.negate()) should be zero.\n function negate(G1Point memory p) internal pure returns (G1Point memory r) {\n // The prime q in the base field F_q for G1\n uint q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n if (p.X == 0 && p.Y == 0) return G1Point(0, 0);\n return G1Point(p.X, q - (p.Y % q));\n }\n /// @return r the sum of two points of G1\n function addition(G1Point memory p1, G1Point memory p2) internal view returns (G1Point memory r) {\n uint[4] memory input;\n input[0] = p1.X;\n input[1] = p1.Y;\n input[2] = p2.X;\n input[3] = p2.Y;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-add-failed\");\n }\n /// @return r the product of a point on G1 and a scalar, i.e.\n /// p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.\n function scalar_mul(G1Point memory p, uint s) internal view returns (G1Point memory r) {\n uint[3] memory input;\n input[0] = p.X;\n input[1] = p.Y;\n input[2] = s;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-mul-failed\");\n }\n /// @return the result of computing the pairing check\n /// e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n /// For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n /// return true.\n function pairing(G1Point[] memory p1, G2Point[] memory p2) internal view returns (bool) {\n require(p1.length == p2.length, \"pairing-lengths-failed\");\n uint elements = p1.length;\n uint inputSize = elements * 6;\n uint[] memory input = new uint[](inputSize);\n for (uint i = 0; i < elements; i++) {\n input[i * 6 + 0] = p1[i].X;\n input[i * 6 + 1] = p1[i].Y;\n input[i * 6 + 2] = p2[i].X[0];\n input[i * 6 + 3] = p2[i].X[1];\n input[i * 6 + 4] = p2[i].Y[0];\n input[i * 6 + 5] = p2[i].Y[1];\n }\n uint[1] memory out;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-opcode-failed\");\n return out[0] != 0;\n }\n /// Convenience method for a pairing check for two pairs.\n function pairingProd2(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](2);\n G2Point[] memory p2 = new G2Point[](2);\n p1[0] = a1;\n p1[1] = b1;\n p2[0] = a2;\n p2[1] = b2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for three pairs.\n function pairingProd3(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](3);\n G2Point[] memory p2 = new G2Point[](3);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for four pairs.\n function pairingProd4(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2,\n G1Point memory d1,\n G2Point memory d2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](4);\n G2Point[] memory p2 = new G2Point[](4);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p1[3] = d1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n p2[3] = d2;\n return pairing(p1, p2);\n }\n}\ncontract CurvyWithdrawVerifierAlpha_2 {\n using Pairing for *;\n struct VerifyingKey {\n Pairing.G1Point alfa1;\n Pairing.G2Point beta2;\n Pairing.G2Point gamma2;\n Pairing.G2Point delta2;\n Pairing.G1Point[] IC;\n }\n struct Proof {\n Pairing.G1Point A;\n Pairing.G2Point B;\n Pairing.G1Point C;\n }\n function verifyingKey() internal pure returns (VerifyingKey memory vk) {\n vk.alfa1 = Pairing.G1Point(\n 16428432848801857252194528405604668803277877773566238944394625302971855135431,\n 16846502678714586896801519656441059708016666274385668027902869494772365009666\n );\n\n vk.beta2 = Pairing.G2Point(\n [\n 3182164110458002340215786955198810119980427837186618912744689678939861918171,\n 16348171800823588416173124589066524623406261996681292662100840445103873053252\n ],\n [\n 4920802715848186258981584729175884379674325733638798907835771393452862684714,\n 19687132236965066906216944365591810874384658708175106803089633851114028275753\n ]\n );\n vk.gamma2 = Pairing.G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n vk.delta2 = Pairing.G2Point(\n [\n 5134938851194498055138716288113036625141602053184981412733799136644539868397,\n 6999723686378219385015083566752410343544958362147775310371915283489773587081\n ],\n [\n 16143735824282086765904813373481689877955881811585622208150907274317775637256,\n 15167935180042832911506376747898747793167371423428120959483422819862011673604\n ]\n );\n vk.IC = new Pairing.G1Point[](11);\n\n vk.IC[0] = Pairing.G1Point(\n 7925322306079913650107293273085723111079883500364968736523058081294372258270,\n 14429458957753680242266563605661071578200444399506227155307129052603861999372\n );\n\n vk.IC[1] = Pairing.G1Point(\n 9621289505295595742569558738283422269339012970483732592198024818005547944199,\n 12111681074460052445442106828868414387187667992458469408832440570807241968538\n );\n\n vk.IC[2] = Pairing.G1Point(\n 7312128641250390938630229823853164701825981217883024106709148533481658390570,\n 12440505658580027463676844388904074300845923000490442514545302362020951914769\n );\n\n vk.IC[3] = Pairing.G1Point(\n 16877443780461134531177127919731997699796382227971205250997579019059067630688,\n 49152147949061934121116331361525073710464700984994035213208262218202566855\n );\n\n vk.IC[4] = Pairing.G1Point(\n 18696420709995272904249742465996319382995593873083879239060307166953665029183,\n 12007466175774591460576490507161035255928488364053833728962686940733506548534\n );\n\n vk.IC[5] = Pairing.G1Point(\n 4888833272471300078669542579753876773143068450802251901446392823653767491496,\n 16737220595164826793433974502199440968696340680754227465404664862229923440736\n );\n\n vk.IC[6] = Pairing.G1Point(\n 13927018071292564092594216699177107983276050775453219388810810008345720147931,\n 21289909446685655410617670235198232729874074282712000770937342029481198302756\n );\n\n vk.IC[7] = Pairing.G1Point(\n 410619771485288302733238769884660429689150676831325313990328694222201830648,\n 9570270376692734191686217026556366896517764137093201149479185260147900973818\n );\n\n vk.IC[8] = Pairing.G1Point(\n 15981118535239832607798426652562238258797467538556791923525133698106219023033,\n 17838190582793853033041876784548510169542454211941522962331441193096118683061\n );\n\n vk.IC[9] = Pairing.G1Point(\n 21414624434676218606022320224607110391590369224829219206993574118162544764206,\n 15330341033713101095090980677285886777683712546677347512441970386287355341362\n );\n\n vk.IC[10] = Pairing.G1Point(\n 18868358771793700272243668633223006755697535655297431894870707368785053232034,\n 10151002155083359926185957008537320894287083103144507387393430057508383162545\n );\n }\n function verify(uint[] memory input, Proof memory proof) internal view returns (uint) {\n uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n VerifyingKey memory vk = verifyingKey();\n require(input.length + 1 == vk.IC.length, \"verifier-bad-input\");\n // Compute the linear combination vk_x\n Pairing.G1Point memory vk_x = Pairing.G1Point(0, 0);\n for (uint i = 0; i < input.length; i++) {\n require(input[i] < snark_scalar_field, \"verifier-gte-snark-scalar-field\");\n vk_x = Pairing.addition(vk_x, Pairing.scalar_mul(vk.IC[i + 1], input[i]));\n }\n vk_x = Pairing.addition(vk_x, vk.IC[0]);\n if (\n !Pairing.pairingProd4(\n Pairing.negate(proof.A),\n proof.B,\n vk.alfa1,\n vk.beta2,\n vk_x,\n vk.gamma2,\n proof.C,\n vk.delta2\n )\n ) return 1;\n return 0;\n }\n /// @return r bool true if proof is valid\n function verifyProof(\n uint[2] memory a,\n uint[2][2] memory b,\n uint[2] memory c,\n uint[10] memory input\n ) public view returns (bool r) {\n Proof memory proof;\n proof.A = Pairing.G1Point(a[0], a[1]);\n proof.B = Pairing.G2Point([b[0][0], b[0][1]], [b[1][0], b[1][1]]);\n proof.C = Pairing.G1Point(c[0], c[1]);\n uint[] memory inputValues = new uint[](input.length);\n for (uint i = 0; i < input.length; i++) {\n inputValues[i] = input[i];\n }\n if (verify(inputValues, proof) == 0) {\n return true;\n } else {\n return false;\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440.json
deleted file mode 100644
index f3d5251..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440.json
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-76653fd5b586384d9a48c1d4b6800754a1708440",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol": "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Proxy.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Proxy.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.2.0) (proxy/ERC1967/ERC1967Proxy.sol)\n\npragma solidity ^0.8.22;\n\nimport {Proxy} from \"../Proxy.sol\";\nimport {ERC1967Utils} from \"./ERC1967Utils.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[ERC-1967], so that it doesn't conflict with the storage layout of the\n * implementation behind the proxy.\n */\ncontract ERC1967Proxy is Proxy {\n /**\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `implementation`.\n *\n * If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will typically be an\n * encoded function call, and allows initializing the storage of the proxy like a Solidity constructor.\n *\n * Requirements:\n *\n * - If `data` is empty, `msg.value` must be zero.\n */\n constructor(address implementation, bytes memory _data) payable {\n ERC1967Utils.upgradeToAndCall(implementation, _data);\n }\n\n /**\n * @dev Returns the current implementation address.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\n */\n function _implementation() internal view virtual override returns (address) {\n return ERC1967Utils.getImplementation();\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/Proxy.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)\n\npragma solidity ^0.8.20;\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 internal 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 overridden so it returns the address to which the fallback\n * function 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 internal call site, it will return directly to the external caller.\n */\n function _fallback() internal virtual {\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6.json
deleted file mode 100644
index ee14c1d..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-792cdd148188b4c56374f6b8ec2fd75c0e7583d6",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlphaV3_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlphaV3_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlphaV3_2.sol": {
- "content": "//\n// Copyright 2017 Christian Reitwiessner\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n//\n// 2019 OKIMS\n// ported to solidity 0.6\n// fixed linter warnings\n// added requiere error messages\n//\n//\n// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.28;\nlibrary Pairing {\n struct G1Point {\n uint X;\n uint Y;\n }\n // Encoding of field elements is: X[0] * z + X[1]\n struct G2Point {\n uint[2] X;\n uint[2] Y;\n }\n /// @return the generator of G1\n function P1() internal pure returns (G1Point memory) {\n return G1Point(1, 2);\n }\n /// @return the generator of G2\n function P2() internal pure returns (G2Point memory) {\n // Original code point\n return G2Point(\n [11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781],\n [4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930]\n );\n\n/*\n // Changed by Jordi point\n return G2Point(\n [10857046999023057135944570762232829481370756359578518086990519993285655852781,\n 11559732032986387107991004021392285783925812861821192530917403151452391805634],\n [8495653923123431417604973247489272438418190587263600148770280649306958101930,\n 4082367875863433681332203403145435568316851327593401208105741076214120093531]\n );\n*/\n }\n /// @return r the negation of p, i.e. p.addition(p.negate()) should be zero.\n function negate(G1Point memory p) internal pure returns (G1Point memory r) {\n // The prime q in the base field F_q for G1\n uint q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n if (p.X == 0 && p.Y == 0)\n return G1Point(0, 0);\n return G1Point(p.X, q - (p.Y % q));\n }\n /// @return r the sum of two points of G1\n function addition(G1Point memory p1, G1Point memory p2) internal view returns (G1Point memory r) {\n uint[4] memory input;\n input[0] = p1.X;\n input[1] = p1.Y;\n input[2] = p2.X;\n input[3] = p2.Y;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success case 0 { invalid() }\n }\n require(success,\"pairing-add-failed\");\n }\n /// @return r the product of a point on G1 and a scalar, i.e.\n /// p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.\n function scalar_mul(G1Point memory p, uint s) internal view returns (G1Point memory r) {\n uint[3] memory input;\n input[0] = p.X;\n input[1] = p.Y;\n input[2] = s;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success case 0 { invalid() }\n }\n require (success,\"pairing-mul-failed\");\n }\n /// @return the result of computing the pairing check\n /// e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n /// For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n /// return true.\n function pairing(G1Point[] memory p1, G2Point[] memory p2) internal view returns (bool) {\n require(p1.length == p2.length,\"pairing-lengths-failed\");\n uint elements = p1.length;\n uint inputSize = elements * 6;\n uint[] memory input = new uint[](inputSize);\n for (uint i = 0; i < elements; i++)\n {\n input[i * 6 + 0] = p1[i].X;\n input[i * 6 + 1] = p1[i].Y;\n input[i * 6 + 2] = p2[i].X[0];\n input[i * 6 + 3] = p2[i].X[1];\n input[i * 6 + 4] = p2[i].Y[0];\n input[i * 6 + 5] = p2[i].Y[1];\n }\n uint[1] memory out;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)\n // Use \"invalid\" to make gas estimation work\n switch success case 0 { invalid() }\n }\n require(success,\"pairing-opcode-failed\");\n return out[0] != 0;\n }\n /// Convenience method for a pairing check for two pairs.\n function pairingProd2(G1Point memory a1, G2Point memory a2, G1Point memory b1, G2Point memory b2) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](2);\n G2Point[] memory p2 = new G2Point[](2);\n p1[0] = a1;\n p1[1] = b1;\n p2[0] = a2;\n p2[1] = b2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for three pairs.\n function pairingProd3(\n G1Point memory a1, G2Point memory a2,\n G1Point memory b1, G2Point memory b2,\n G1Point memory c1, G2Point memory c2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](3);\n G2Point[] memory p2 = new G2Point[](3);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for four pairs.\n function pairingProd4(\n G1Point memory a1, G2Point memory a2,\n G1Point memory b1, G2Point memory b2,\n G1Point memory c1, G2Point memory c2,\n G1Point memory d1, G2Point memory d2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](4);\n G2Point[] memory p2 = new G2Point[](4);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p1[3] = d1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n p2[3] = d2;\n return pairing(p1, p2);\n }\n}\ncontract CurvyWithdrawVerifierAlphaV3_2 {\n using Pairing for *;\n struct VerifyingKey {\n Pairing.G1Point alfa1;\n Pairing.G2Point beta2;\n Pairing.G2Point gamma2;\n Pairing.G2Point delta2;\n Pairing.G1Point[] IC;\n }\n struct Proof {\n Pairing.G1Point A;\n Pairing.G2Point B;\n Pairing.G1Point C;\n }\n function verifyingKey() internal pure returns (VerifyingKey memory vk) {\n vk.alfa1 = Pairing.G1Point(\n 16428432848801857252194528405604668803277877773566238944394625302971855135431,\n 16846502678714586896801519656441059708016666274385668027902869494772365009666\n );\n\n vk.beta2 = Pairing.G2Point(\n [3182164110458002340215786955198810119980427837186618912744689678939861918171,\n 16348171800823588416173124589066524623406261996681292662100840445103873053252],\n [4920802715848186258981584729175884379674325733638798907835771393452862684714,\n 19687132236965066906216944365591810874384658708175106803089633851114028275753]\n );\n vk.gamma2 = Pairing.G2Point(\n [11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781],\n [4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930]\n );\n vk.delta2 = Pairing.G2Point(\n [2629073454240497276495237582203958829928240345954183892004220964215350086697,\n 13930854982623718453289732752136762003664282184105307951538851480572039239826],\n [15314073400369028500150070590166851671533164583934476504023782450681671139722,\n 19438795359737874000067950561613485070810449804447213710393780245436629871241]\n );\n vk.IC = new Pairing.G1Point[](10);\n \n vk.IC[0] = Pairing.G1Point( \n 17358714059841222655332555531812235894109831895939288822209597786484194004863,\n 14953941882192864699533120346316451540864449764432844191250995386043174562371\n ); \n \n vk.IC[1] = Pairing.G1Point( \n 14707218010613725880195470048650004212134541938119801136114039008326030689365,\n 18320647487748443634631050211111359198105608565369585954318403602972339849780\n ); \n \n vk.IC[2] = Pairing.G1Point( \n 8989312582885446885833748175655560409482657795311180950160518326342472603800,\n 557166861511881845529531194055084633607831351270765224971413965507323712524\n ); \n \n vk.IC[3] = Pairing.G1Point( \n 12786430539677617471552158293457307249781165226142263249913950566815750079298,\n 11398018832020179765870491364908913120010438413632357901814163805845358638381\n ); \n \n vk.IC[4] = Pairing.G1Point( \n 16210995105227059027055214569324979655672241758449305148063470834785622131051,\n 15244949167172684892832934586361646130136907223866787595966498705221149329793\n ); \n \n vk.IC[5] = Pairing.G1Point( \n 15447330785926537730466425182615917999104443954774877515677926064602210193456,\n 302212551864788351314950467567028950946317878468902126254042783216156326426\n ); \n \n vk.IC[6] = Pairing.G1Point( \n 15221291898292046222050336984382082815006716106268892115367982579336029737716,\n 5138896563554254177957933723143979887729763268835353232886728990578894380059\n ); \n \n vk.IC[7] = Pairing.G1Point( \n 4125252840753634499061230047644851300426147657383250128263001332984745707019,\n 7399946977839598911983525055350660162234308704827113722327110715122546440152\n ); \n \n vk.IC[8] = Pairing.G1Point( \n 7260975874555128741095427413685646957107200617415339174800132586489819027663,\n 6201891190318116751084429033679404898210718148112816120902223799122160007325\n ); \n \n vk.IC[9] = Pairing.G1Point( \n 355120942596678532382372578286663626822260096543361710393946745790670473096,\n 5580572685923606338084839985253731998127719266704886204917037156330299761418\n ); \n \n }\n function verify(uint[] memory input, Proof memory proof) internal view returns (uint) {\n uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n VerifyingKey memory vk = verifyingKey();\n require(input.length + 1 == vk.IC.length,\"verifier-bad-input\");\n // Compute the linear combination vk_x\n Pairing.G1Point memory vk_x = Pairing.G1Point(0, 0);\n for (uint i = 0; i < input.length; i++) {\n require(input[i] < snark_scalar_field,\"verifier-gte-snark-scalar-field\");\n vk_x = Pairing.addition(vk_x, Pairing.scalar_mul(vk.IC[i + 1], input[i]));\n }\n vk_x = Pairing.addition(vk_x, vk.IC[0]);\n if (!Pairing.pairingProd4(\n Pairing.negate(proof.A), proof.B,\n vk.alfa1, vk.beta2,\n vk_x, vk.gamma2,\n proof.C, vk.delta2\n )) return 1;\n return 0;\n }\n /// @return r bool true if proof is valid\n function verifyProof(\n uint[2] memory a,\n uint[2][2] memory b,\n uint[2] memory c,\n uint[9] memory input\n ) public view returns (bool r) {\n Proof memory proof;\n proof.A = Pairing.G1Point(a[0], a[1]);\n proof.B = Pairing.G2Point([b[0][0], b[0][1]], [b[1][0], b[1][1]]);\n proof.C = Pairing.G1Point(c[0], c[1]);\n uint[] memory inputValues = new uint[](input.length);\n for(uint i = 0; i < input.length; i++){\n inputValues[i] = input[i];\n }\n if (verify(inputValues, proof) == 0) {\n return true;\n } else {\n return false;\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
deleted file mode 100644
index 156f127..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a0f79db238dc98fa368fe6d6e935f28d91fbda4",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHash();\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { ICurvyAggregatorAlpha } from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { IPortal } from \"./IPortal.sol\";\nimport { SingleUse } from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address _recovery) {\n // TODO: add fee for deployment\n\n _ownerHash = ownerHash;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n // TODO: Emit shielding failed and if that event is detected in the simulation, then we will mark the shielding as failed.\n return; // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{ value: note.amount }(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n\n if (tokenAddress == NATIVE_ETH) {\n (bool success, ) = to.call{ value: balance }(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n token.safeTransfer(to, balance);\n }\n }\n\n function bridge(\n address lifiDiamondAddress,\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress\n ) external onlyOnce {\n if (lifiDiamondAddress == address(0)) {\n revert(\"Portal: Invalid LI.FI address\");\n }\n\n if (note.ownerHash != _ownerHash) {\n revert(\"Portal: Invalid owner hash\");\n }\n\n uint256 amount = note.amount;\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(lifiDiamondAddress, note.amount);\n amount = 0;\n }\n\n (bool success, ) = lifiDiamondAddress.call{ value: amount }(bridgeData);\n if (!success) {\n revert(\"Portal: Bridge call failed\");\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(uint256 ownerHash, address recovery) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) public payable {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert(\"PortalFactory: Shielding not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"PortalFactory: Bridging not supported on this chain\");\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert(\"PortalFactory: Deployment failed\");\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note, tokenAddress);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
deleted file mode 100644
index 6ea1fae..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c.json
+++ /dev/null
@@ -1,84 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-8a39001205f17943a052e0a1d2e591cbca50fa5c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidOwnerHash();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"../aggregator-alpha/ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\n\ncontract Portal is IPortal {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n ICurvyAggregatorAlphaV2 public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n bool private _used;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) {\n revert InvalidOwnerHashOrExitBridgeData();\n }\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlphaV2(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n _used = false; // We also set the used to false so that if the token gets registered in the near future, the user may reattempt shielding.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note);\n }\n }\n\n function bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory, ILiFiCalldataVerification } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractBridgeData(bridgeData);\n\n if (extractedData.receiver != getEntryPortalAddress(note.ownerHash, recovery)) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, note.amount, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n if (exitChainId == block.chainid) {\n ILiFiCalldataVerification.LiFiGenericSwapData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress).extractGenericSwapParameters(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n } else {\n ILiFiCalldataVerification.LiFiBridgeData memory extractedData = ILiFiCalldataVerification(_lifiDiamondAddress)\n .extractBridgeData(bridgeData);\n if (extractedData.receiver != exitAddress) {\n revert InvalidLiFiReceiver();\n }\n if (extractedData.destinationChainId != exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).bridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f.json
deleted file mode 100644
index f9024c3..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f.json
+++ /dev/null
@@ -1,130 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-915f4226bef13b6e9d8ccf97b34f615b8b839b0f",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV6.sol": "project/contracts/vault/CurvyVaultV6.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV6.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {EIP712Upgradeable} from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport \"./ICurvyVaultV3.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ncontract CurvyVaultV6 is ICurvyVaultV3, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n // DEPRECATED: This is no longer used, but because of storage layout it *MUST* not be deleted\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH = keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n // DEPRECATED: This is no longer used, but because of storage layout it *MUST* not be deleted\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @dev DO NOT REMOVE THIS FUNCTION.\n * This function does not affect existing deployments during an upgrade. The `initializer`\n * modifier guarantees it can only be executed once per proxy. When an existing proxy is\n * upgraded to this version, its state is already marked as initialized, making this\n * function safely uncallable and preventing any accidental state resets.\n *\n * The transferFee is unused anymore, but it is kept for storage layout reasons.\n */\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"1.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0;\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n if (_tokenAddressToTokenId[tokenAddress] != 0) revert TokenAlreadyRegistered();\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function deregisterToken(address tokenAddress) external onlyOwner {\n uint256 tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n\n // Remove from both mappings\n _tokenAddressToTokenId[tokenAddress] = 0;\n _tokenIdToTokenAddress[tokenId] = address(0);\n\n emit TokenDeregistered(tokenAddress, tokenId);\n }\n\n /**\n * @dev This function is used to set the fees for the vault.\n * @notice If you want to keep the current fee, pass the current fee values.\n */\n function setFeeAmount(CurvyTypes.FeeUpdate calldata feeUpdate) external onlyOwner {\n depositFee = feeUpdate.depositFee;\n withdrawalFee = feeUpdate.withdrawalFee;\n\n emit FeeChange(feeUpdate);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n function collectFees(uint256 tokenId) external onlyOwner {\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) {\n revert TokenNotRegistered();\n }\n\n uint256 amount = _balances[msg.sender][tokenId];\n\n // Burn wrapped tokens\n _balances[msg.sender][tokenId] = 0;\n\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(msg.sender, amount);\n } else {\n // We are withdrawing ETH\n (bool success,) = msg.sender.call{value: amount}(\"\");\n if (!success) revert ETHTransferFailed();\n }\n }\n\n //#endregion\n\n //#region Public functions\n\n function deposit(address tokenAddress, address to, uint256 amount) public payable {\n if (msg.sender != _curvyAggregator) revert NotCurvyAggregator();\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n if (msg.value != 0) revert ERC20TransferFailed();\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n } else {\n // We are depositing ETH\n if (amount != msg.value) revert ETHTransferFailed();\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n emit Deposit(tokenAddress, to, amount);\n }\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external {\n if (msg.sender != _curvyAggregator && msg.sender != owner()) revert NotCurvyAggregatorOrOwner();\n if (to == address(0)) revert InvalidRecipient();\n\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n\n _balances[msg.sender][tokenId] -= amount;\n\n uint256 amountAfterFees = amount;\n\n if (withdrawalFee != 0) {\n uint256 feeAmount = (amount * withdrawalFee) / FEE_DENOMINATOR;\n _balances[owner()][tokenId] += feeAmount;\n\n amountAfterFees -= feeAmount;\n }\n\n // Withdraw\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success,) = to.call{value: amountAfterFees}(\"\");\n if (!success) revert ETHTransferFailed();\n }\n\n emit Withdraw(tokenAddress, to, amount);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV3.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV3 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenDeregistered(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAlreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount) external payable;\n function deregisterToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n function depositFee() external view returns (uint96);\n function withdrawalFee() external view returns (uint96);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c.json
deleted file mode 100644
index af16376..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c.json
+++ /dev/null
@@ -1,59 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-949e94460af5009e6e5f9120544db8c345ec946c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/smart-account/TokenBridge.sol": "project/contracts/smart-account/TokenBridge.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/smart-account/TokenBridge.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\ncontract TokenBridge {\n using SafeERC20 for IERC20;\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n address public immutable _lifiDiamondAddress;\n\n constructor(address lifiDiamondAddress) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n function bridgeFullBalance(address tokenAddress, bytes calldata bridgeData) external {\n if (_lifiDiamondAddress == address(0)) {\n revert(\"TokenBridge: Invalid LI.FI address\");\n }\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20 token = IERC20(tokenAddress);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance > 0) {\n token.forceApprove(_lifiDiamondAddress, balance);\n (bool success, ) = _lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert(\"TokenBridge: Bridge call failed\");\n }\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance > 0) {\n (bool success, ) = _lifiDiamondAddress.call{ value: balance }(bridgeData);\n\n if (!success) {\n revert(\"TokenBridge: Bridge call failed\");\n }\n }\n }\n }\n}"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3.json
deleted file mode 100644
index 3d088ca..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-94a1e35e35c45e18bd63d036fee8d952b81f92d3",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2.sol": {
- "content": "//\n// Copyright 2017 Christian Reitwiessner\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n//\n// 2019 OKIMS\n// ported to solidity 0.6\n// fixed linter warnings\n// added requiere error messages\n//\n//\n// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.28;\nlibrary Pairing {\n struct G1Point {\n uint X;\n uint Y;\n }\n // Encoding of field elements is: X[0] * z + X[1]\n struct G2Point {\n uint[2] X;\n uint[2] Y;\n }\n /// @return the generator of G1\n function P1() internal pure returns (G1Point memory) {\n return G1Point(1, 2);\n }\n /// @return the generator of G2\n function P2() internal pure returns (G2Point memory) {\n // Original code point\n return\n G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n\n /*\n // Changed by Jordi point\n return G2Point(\n [10857046999023057135944570762232829481370756359578518086990519993285655852781,\n 11559732032986387107991004021392285783925812861821192530917403151452391805634],\n [8495653923123431417604973247489272438418190587263600148770280649306958101930,\n 4082367875863433681332203403145435568316851327593401208105741076214120093531]\n );\n*/\n }\n /// @return r the negation of p, i.e. p.addition(p.negate()) should be zero.\n function negate(G1Point memory p) internal pure returns (G1Point memory r) {\n // The prime q in the base field F_q for G1\n uint q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n if (p.X == 0 && p.Y == 0) return G1Point(0, 0);\n return G1Point(p.X, q - (p.Y % q));\n }\n /// @return r the sum of two points of G1\n function addition(G1Point memory p1, G1Point memory p2) internal view returns (G1Point memory r) {\n uint[4] memory input;\n input[0] = p1.X;\n input[1] = p1.Y;\n input[2] = p2.X;\n input[3] = p2.Y;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-add-failed\");\n }\n /// @return r the product of a point on G1 and a scalar, i.e.\n /// p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.\n function scalar_mul(G1Point memory p, uint s) internal view returns (G1Point memory r) {\n uint[3] memory input;\n input[0] = p.X;\n input[1] = p.Y;\n input[2] = s;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-mul-failed\");\n }\n /// @return the result of computing the pairing check\n /// e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n /// For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n /// return true.\n function pairing(G1Point[] memory p1, G2Point[] memory p2) internal view returns (bool) {\n require(p1.length == p2.length, \"pairing-lengths-failed\");\n uint elements = p1.length;\n uint inputSize = elements * 6;\n uint[] memory input = new uint[](inputSize);\n for (uint i = 0; i < elements; i++) {\n input[i * 6 + 0] = p1[i].X;\n input[i * 6 + 1] = p1[i].Y;\n input[i * 6 + 2] = p2[i].X[0];\n input[i * 6 + 3] = p2[i].X[1];\n input[i * 6 + 4] = p2[i].Y[0];\n input[i * 6 + 5] = p2[i].Y[1];\n }\n uint[1] memory out;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-opcode-failed\");\n return out[0] != 0;\n }\n /// Convenience method for a pairing check for two pairs.\n function pairingProd2(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](2);\n G2Point[] memory p2 = new G2Point[](2);\n p1[0] = a1;\n p1[1] = b1;\n p2[0] = a2;\n p2[1] = b2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for three pairs.\n function pairingProd3(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](3);\n G2Point[] memory p2 = new G2Point[](3);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for four pairs.\n function pairingProd4(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2,\n G1Point memory d1,\n G2Point memory d2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](4);\n G2Point[] memory p2 = new G2Point[](4);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p1[3] = d1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n p2[3] = d2;\n return pairing(p1, p2);\n }\n}\ncontract CurvyInsertionVerifierAlpha_2 {\n using Pairing for *;\n struct VerifyingKey {\n Pairing.G1Point alfa1;\n Pairing.G2Point beta2;\n Pairing.G2Point gamma2;\n Pairing.G2Point delta2;\n Pairing.G1Point[] IC;\n }\n struct Proof {\n Pairing.G1Point A;\n Pairing.G2Point B;\n Pairing.G1Point C;\n }\n function verifyingKey() internal pure returns (VerifyingKey memory vk) {\n vk.alfa1 = Pairing.G1Point(\n 16428432848801857252194528405604668803277877773566238944394625302971855135431,\n 16846502678714586896801519656441059708016666274385668027902869494772365009666\n );\n\n vk.beta2 = Pairing.G2Point(\n [\n 3182164110458002340215786955198810119980427837186618912744689678939861918171,\n 16348171800823588416173124589066524623406261996681292662100840445103873053252\n ],\n [\n 4920802715848186258981584729175884379674325733638798907835771393452862684714,\n 19687132236965066906216944365591810874384658708175106803089633851114028275753\n ]\n );\n vk.gamma2 = Pairing.G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n vk.delta2 = Pairing.G2Point(\n [\n 18636305219060197755142552798859754992691237779368175144321965215614772886749,\n 20631961236040874040284325043922269483493386739263319339179566539669024091553\n ],\n [\n 6062467770915580792523479562164363142131272842624386565050670208025880943712,\n 5683038379984125016950864290616138890020909462459316831254293410267557232813\n ]\n );\n vk.IC = new Pairing.G1Point[](5);\n\n vk.IC[0] = Pairing.G1Point(\n 5816405080132073842932636331548798060287333642513578277180259722519592795524,\n 167846514636555010335339211314249629625345112505210789316691533712824745017\n );\n\n vk.IC[1] = Pairing.G1Point(\n 16584502374027503506024692833264286792457678958231145828389358929597017385713,\n 15748689222547201941193319824722912430230667032882892650015734892750472090725\n );\n\n vk.IC[2] = Pairing.G1Point(\n 21809942545528186761024818449976149188699553835331594187000245837157587253784,\n 14731189013652074114558457413733648844549518028992110266510193006020163640258\n );\n\n vk.IC[3] = Pairing.G1Point(\n 12375928931499227586057462745689681279605957098146559032552961095082288974384,\n 21382385962682560488728021197264829649373546209573568813651131435191806663006\n );\n\n vk.IC[4] = Pairing.G1Point(\n 11590169247667311309535152367467028564534113649694348861287888388789778372825,\n 10050997091330424673052365058770795074460689984708190359138561322568592225656\n );\n }\n function verify(uint[] memory input, Proof memory proof) internal view returns (uint) {\n uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n VerifyingKey memory vk = verifyingKey();\n require(input.length + 1 == vk.IC.length, \"verifier-bad-input\");\n // Compute the linear combination vk_x\n Pairing.G1Point memory vk_x = Pairing.G1Point(0, 0);\n for (uint i = 0; i < input.length; i++) {\n require(input[i] < snark_scalar_field, \"verifier-gte-snark-scalar-field\");\n vk_x = Pairing.addition(vk_x, Pairing.scalar_mul(vk.IC[i + 1], input[i]));\n }\n vk_x = Pairing.addition(vk_x, vk.IC[0]);\n if (\n !Pairing.pairingProd4(\n Pairing.negate(proof.A),\n proof.B,\n vk.alfa1,\n vk.beta2,\n vk_x,\n vk.gamma2,\n proof.C,\n vk.delta2\n )\n ) return 1;\n return 0;\n }\n /// @return r bool true if proof is valid\n function verifyProof(\n uint[2] memory a,\n uint[2][2] memory b,\n uint[2] memory c,\n uint[4] memory input\n ) public view returns (bool r) {\n Proof memory proof;\n proof.A = Pairing.G1Point(a[0], a[1]);\n proof.B = Pairing.G2Point([b[0][0], b[0][1]], [b[1][0], b[1][1]]);\n proof.C = Pairing.G1Point(c[0], c[1]);\n uint[] memory inputValues = new uint[](input.length);\n for (uint i = 0; i < input.length; i++) {\n inputValues[i] = input[i];\n }\n if (verify(inputValues, proof) == 0) {\n return true;\n } else {\n return false;\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a.json
deleted file mode 100644
index 959d02b..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-9683ff00b9d7d43d732f0b3a9ad79b67e865982a",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2_30.sol": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2_30.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2_30.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyWithdrawVerifierAlpha_2_2_30 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 13609597477422817544806719940578211239660138492812767741570640666225907996628;\n uint256 constant alphay = 3315096884673693139303582008970220799715870802021815302955257248960229394132;\n uint256 constant betax1 = 20244502790401697640374985581353359627000854646412500262318694555628864857705;\n uint256 constant betax2 = 18009540316062949354047865494362899064185820891461168067970621853171214969025;\n uint256 constant betay1 = 21485324237153900776296822920524193097954549703233921348239585839570605636041;\n uint256 constant betay2 = 18873349741553391434573540024886497503852362769056818998084383144689457732005;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 1326573999234008915860970255668288665544687867246129633383511223618949749675;\n uint256 constant deltax2 = 4671378872751554262593117516718744941438728548819807763673365133047577037789;\n uint256 constant deltay1 = 16788886948198384057861007888463049568905967713972406315720808677012605857589;\n uint256 constant deltay2 = 11763588175345468321335670711599742080686820706950268603977732622497589861879;\n\n \n uint256 constant IC0x = 1565517161687003293015203570982904294478626690646768701975043216594621592173;\n uint256 constant IC0y = 9694355955203911819720634547311219374077692615266951917112047220710786696066;\n \n uint256 constant IC1x = 979945337289157544465183094998207304988359546651753529054442854403648860856;\n uint256 constant IC1y = 19527314231074839844772667723668224759674402860087649048034186839079758285399;\n \n uint256 constant IC2x = 14522339657615904046051278782672208276707120841768130534814843332473328376222;\n uint256 constant IC2y = 11309944904233649642419513097668591526894933049496988389467872182124635975426;\n \n uint256 constant IC3x = 17854426610750151012676330172911429119329082369774743182642967443717533145246;\n uint256 constant IC3y = 13422631716882796157367980767149467009150631687579343367693154869559844831183;\n \n uint256 constant IC4x = 14381632278275491454733551438059761643253582687536284462920350647287073126817;\n uint256 constant IC4y = 14823985165837034859254520683016322640783231019809121812600711785852273166108;\n \n uint256 constant IC5x = 16790879009575318221954224842324031534536849545047916454607058538194724276745;\n uint256 constant IC5y = 6899814906212521666943103904395568640983758257879132097464129073206566126873;\n \n uint256 constant IC6x = 8018893499351236263103155285420032758820796440251410495471541816315495266277;\n uint256 constant IC6y = 4762898927554697058046729761410725160386295046666187561218166645241266489872;\n \n uint256 constant IC7x = 2077665499933989871395901398270067713684599048254726261637808647152187513748;\n uint256 constant IC7y = 6645012713224753527444993508873936964659179606799301448287822376656176150474;\n \n uint256 constant IC8x = 21310265414724367103657686595975716121777979372889010619048140799543879599363;\n uint256 constant IC8y = 18020192422922234349073163820329272314687512021497633628908475759070524238330;\n \n uint256 constant IC9x = 21745711951983953323143648715757143291929632148515174524254308490186139094942;\n uint256 constant IC9y = 8231097676639530057501848745731491430367422729950269437691529859914575582399;\n \n \n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[9] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n \n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n \n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n \n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n \n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n \n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n \n g1_mulAccC(_pVk, IC5x, IC5y, calldataload(add(pubSignals, 128)))\n \n g1_mulAccC(_pVk, IC6x, IC6y, calldataload(add(pubSignals, 160)))\n \n g1_mulAccC(_pVk, IC7x, IC7y, calldataload(add(pubSignals, 192)))\n \n g1_mulAccC(_pVk, IC8x, IC8y, calldataload(add(pubSignals, 224)))\n \n g1_mulAccC(_pVk, IC9x, IC9y, calldataload(add(pubSignals, 256)))\n \n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n \n checkField(calldataload(add(_pubSignals, 0)))\n \n checkField(calldataload(add(_pubSignals, 32)))\n \n checkField(calldataload(add(_pubSignals, 64)))\n \n checkField(calldataload(add(_pubSignals, 96)))\n \n checkField(calldataload(add(_pubSignals, 128)))\n \n checkField(calldataload(add(_pubSignals, 160)))\n \n checkField(calldataload(add(_pubSignals, 192)))\n \n checkField(calldataload(add(_pubSignals, 224)))\n \n checkField(calldataload(add(_pubSignals, 256)))\n \n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n }\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14.json
deleted file mode 100644
index 2a021b6..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-a0d53cee885b7db4b898ad6f7fa8c33c33090e14",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/utils/PoseidonT4.sol": "project/contracts/aggregator-alpha/utils/PoseidonT4.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c.json
deleted file mode 100644
index acd3a77..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c.json
+++ /dev/null
@@ -1,134 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-a37cf98063fe2c1c30b3c999d217566623f8567c",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV4.sol": "project/contracts/vault/CurvyVaultV4.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/ECDSA.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.20;\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 }\n\n /**\n * @dev The signature derives the `address(0)`.\n */\n error ECDSAInvalidSignature();\n\n /**\n * @dev The signature has an invalid length.\n */\n error ECDSAInvalidSignatureLength(uint256 length);\n\n /**\n * @dev The signature has an S value that is in the upper half order.\n */\n error ECDSAInvalidSignatureS(bytes32 s);\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\n * and a bytes32 providing additional information about the error.\n *\n * If no error is returned, then the address can be used for verification purposes.\n *\n * The `ecrecover` EVM precompile 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 {MessageHashUtils-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 function tryRecover(\n bytes32 hash,\n bytes memory signature\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 (\"memory-safe\") {\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 {\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\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 precompile 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 {MessageHashUtils-toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\n _throwError(error, errorArg);\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[ERC-2098 short signatures]\n */\n function tryRecover(\n bytes32 hash,\n bytes32 r,\n bytes32 vs\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\n unchecked {\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n // We do not check for an overflow here since the shift operation results in 0 or 1.\n uint8 v = uint8((uint256(vs) >> 255) + 27);\n return tryRecover(hash, v, r, s);\n }\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n */\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\n _throwError(error, errorArg);\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 function tryRecover(\n bytes32 hash,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 ÷ 2 + 1, and for v in (302): v ∈ {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, s);\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, bytes32(0));\n }\n\n return (signer, RecoverError.NoError, bytes32(0));\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `v`,\n * `r` and `s` signature fields separately.\n */\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\n _throwError(error, errorArg);\n return recovered;\n }\n\n /**\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\n */\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\n if (error == RecoverError.NoError) {\n return; // no error: do nothing\n } else if (error == RecoverError.InvalidSignature) {\n revert ECDSAInvalidSignature();\n } else if (error == RecoverError.InvalidSignatureLength) {\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\n } else if (error == RecoverError.InvalidSignatureS) {\n revert ECDSAInvalidSignatureS(errorArg);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV4.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {EIP712Upgradeable} from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {ECDSA} from \"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\";\nimport \"./ICurvyVault.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ncontract CurvyVaultV4 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH = keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"2.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Private functions\n\n function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {\n bytes32 structHash = keccak256(\n abi.encode(\n CURVY_META_TRANSACTION_TYPE_HASH,\n _nonces[metaTransaction.from],\n metaTransaction.from,\n metaTransaction.to,\n metaTransaction.tokenId,\n metaTransaction.amount,\n metaTransaction.gasFee,\n metaTransaction.metaTransactionType\n )\n );\n\n // Add domain data to the hash\n bytes32 hash = _hashTypedDataV4(structHash);\n\n // Check that the metaTransaction is signed by metaTransaction.from\n address signer = ECDSA.recover(hash, signature);\n require(signer == metaTransaction.from, \"CurvyVault#_validateSignature: Invalid signature!\");\n\n // Increment nonce\n _nonces[signer]++;\n emit NonceChange(signer, _nonces[signer]);\n }\n\n function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n if (metaTransaction.to == address(0)) revert InvalidRecipient();\n if (metaTransaction.metaTransactionType != CurvyTypes.MetaTransactionType.Transfer) {\n revert InvalidTransactionType();\n }\n\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (transferFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);\n }\n\n function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_withdraw: Invalid withdraw recipient!\");\n require(\n metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,\n \"CurvyVault#withdraw: Wrong type for meta transaction!\"\n );\n\n // Burn wrapped tokens\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n\n uint256 amountAfterFees = metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n amountAfterFees -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (withdrawalFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;\n amountAfterFees -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n // Withdraw\n if (metaTransaction.tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];\n IERC20(tokenAddress).safeTransfer(metaTransaction.to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success,) = metaTransaction.to.call{value: amountAfterFees}(\"\");\n require(success, \"CurvyVault#_withdraw: ETH withdrawal failed!\");\n }\n\n emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);\n }\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n require(_tokenAddressToTokenId[tokenAddress] == 0, \"CurvyVault#registerToken: Token already registered!\");\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {\n if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {\n depositFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {\n transferFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {\n withdrawalFee = fee;\n } else {\n revert(\"CurvyVault#setFeeAmount: Unknown fee type!\");\n }\n\n emit FeeChange(metaTransactionType, fee);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n require(msg.sender == _curvyAggregator, \"Only CurvyAggregator can do vault deposits through portal autoShield\");\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n require(msg.value == 0, \"CurvyVault#deposit: Don't send ETH with ERC20 deposit!\");\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n } else {\n // We are depositing ETH\n require(amount == msg.value, \"CurvyVault#deposit: Incorrect deposit value!\");\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)\n if (gasSponsorshipAmount != 0) {\n _balances[to][tokenId] -= gasSponsorshipAmount;\n _balances[owner()][tokenId] += gasSponsorshipAmount;\n }\n\n emit Transfer(address(0x0), to, tokenId, amount);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _transfer(metaTransaction);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _transfer(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _withdraw(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _withdraw(metaTransaction);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n require(tokenAddress != address(0x0), \"CurvyVault:#getIdAddress: Unregistered token!\");\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault:#getTokenID: Unregistered token!\");\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n function balanceOfBatch(address[] memory owners, uint256[] memory tokenIds)\n external\n view\n returns (uint256[] memory)\n {\n require(owners.length == tokenIds.length, \"CurvyVault#balanceOfBatch: Invalid array length!\");\n\n // Variables\n uint256[] memory batchBalances = new uint256[](owners.length);\n\n // Iterate over each owner and token ID\n for (uint256 i = 0; i < owners.length; i++) {\n batchBalances[i] = _balances[owners[i]][tokenIds[i]];\n }\n\n return batchBalances;\n }\n\n function getNonce(address _signer) external view returns (uint256 nonce) {\n return _nonces[_signer];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf.json
deleted file mode 100644
index 22242df..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-a60a1e6c11a9eb6708bc3e3ba360eda041049fdf",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_2.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyInsertionVerifierAlpha_2_2 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 20307802206310835049281446719619406914403408233534023009065534288114617826473;\n uint256 constant alphay = 5124923528349004096804802867681163296253794121526069691105337288056989236534;\n uint256 constant betax1 = 17665584761811172121608977391651659832381211132533915972221722990910032624526;\n uint256 constant betax2 = 20634947832892786903702098392181315569158565212553131507288743678171240259127;\n uint256 constant betay1 = 14170370701364050801543403272076467220544732849936498879655467551776691049762;\n uint256 constant betay2 = 3981022164671254524634818017405389124636055168959450938940336390298178068387;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 8324458164872580116890275898155248989588293942324575877012805566566499276728;\n uint256 constant deltax2 = 8315309777885305610111807473453936168191945213991206111039245717203885893351;\n uint256 constant deltay1 = 7882777314230858165213889738077912354123609446151206037361232958412563127686;\n uint256 constant deltay2 = 12547494205828438908997366082022218578006480853790971582035574650149105921917;\n\n\n uint256 constant IC0x = 6892060391983583930786695607356201710633476603378493079140130305061253027956;\n uint256 constant IC0y = 19080513010577291544096152944295682098544960004869191446276625294423342895423;\n\n uint256 constant IC1x = 2963012065475003042271739402030206132721261823221997567008785725181941320123;\n uint256 constant IC1y = 9577798803486024577782087417325886468350268769123545804460990397049802395332;\n\n uint256 constant IC2x = 896693100646333969295278520057034307353923912762387119798142505789755794910;\n uint256 constant IC2y = 18401215118615681028646813305991791500210052969133418321764793803415915217356;\n\n uint256 constant IC3x = 8678736677087893343210029059877270687079384428934088844145551630105386635454;\n uint256 constant IC3y = 7641653529471813483495008224199427350806682431466620696180348099838063513182;\n\n uint256 constant IC4x = 1419338030980550849687672964605247848460934958329247722331319767569137152200;\n uint256 constant IC4y = 2768820051961925877239732948059596900621163756977367880461149400586087247362;\n\n\n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[4] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n\n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n\n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n\n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n\n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n\n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n\n checkField(calldataload(add(_pubSignals, 0)))\n\n checkField(calldataload(add(_pubSignals, 32)))\n\n checkField(calldataload(add(_pubSignals, 64)))\n\n checkField(calldataload(add(_pubSignals, 96)))\n\n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-afcc26c0e2a098ed3d6af1f251e333e826a18474.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-afcc26c0e2a098ed3d6af1f251e333e826a18474.json
deleted file mode 100644
index c20cdec..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-afcc26c0e2a098ed3d6af1f251e333e826a18474.json
+++ /dev/null
@@ -1,112 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-afcc26c0e2a098ed3d6af1f251e333e826a18474",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV3.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { PoseidonT4 } from \"./utils/PoseidonT4.sol\";\n\nimport { ICurvyAggregatorAlpha } from \"./ICurvyAggregatorAlpha.sol\";\nimport { ICurvyVault } from \"../vault/ICurvyVault.sol\";\nimport {\n ICurvyInsertionVerifier,\n ICurvyAggregationVerifier,\n ICurvyWithdrawVerifier\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV3 is ICurvyAggregatorAlpha, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner, address curvyVaultProxyAddress) public initializer {\n maxDeposits = 2;\n maxWithdrawals = 2;\n maxAggregations = 2;\n\n __Ownable_init(initialOwner);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdate memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);\n }\n // TODO: We probably don't need this.\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVault(_update.curvyVault);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable {\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);\n IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);\n }\n\n curvyVault.deposit{ value: msg.value }(tokenAddress, address(this), note.amount, 0);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function depositNote(address from, CurvyTypes.Note memory note, bytes memory signature) public {\n // TODO: Gas fee\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n from,\n address(this),\n note.token,\n note.amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n ),\n signature\n );\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n require(\n _pendingIdsQueue[noteId],\n \"CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!\"\n );\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n require(\n _notesTreeRoot == publicInputs[numPublicInputs - 2],\n \"CurvyAggregator#commitDepositBatch: Invalid notes root!\"\n );\n\n require(\n insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitDepositBatch: Invalid proof!\"\n );\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n require(\n _notesTreeRoot == oldNotesTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!\"\n );\n require(\n _nullifiersTreeRoot == oldNullifiersTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!\"\n );\n\n require(\n aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitAggregationBatch: Invalid proof!\"\n );\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[10] memory publicInputs\n ) public returns (bool) {\n require(\n publicInputs[3] == _nullifiersTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!\"\n );\n require(\n publicInputs[2] == _notesTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!\"\n );\n\n require(\n withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!\"\n );\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[4 + i];\n address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n destinationAddress,\n publicInputs[numPublicInputs - 1],\n amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n }\n }\n\n // Fee collection\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n owner(),\n publicInputs[numPublicInputs - 1],\n publicInputs[1],\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74.json
deleted file mode 100644
index 5c0e081..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74.json
+++ /dev/null
@@ -1,118 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b0b3e8f1306ff65a65828df54e90736a4b74ed74",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV5.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport \"../portal/IPortalFactory.sol\";\nimport {\n ICurvyInsertionVerifier,\n ICurvyAggregationVerifier,\n ICurvyWithdrawVerifier,\n ICurvyWithdrawVerifierV3\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlphaV2} from \"./ICurvyAggregatorAlphaV2.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {ICurvyVaultV2} from \"../vault/ICurvyVaultV2.sol\";\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {PoseidonT4} from \"./utils/PoseidonT4.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV5 is ICurvyAggregatorAlphaV2, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations in one aggregation batch proof\n uint256 public maxAggregations;\n // Maximum number of withdrawals in one withdrawal batch proof\n uint256 public maxWithdrawals;\n\n // Queue of commited note ids waiting for proof verification and deposit batch commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVaultV2 public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifierV3 public withdrawVerifier;\n\n // Curvy's portal factory contract;\n IPortalFactory public portalFactory;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n __Ownable_init(initialOwner);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdateV2 memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifierV3(_update.withdrawVerifier);\n }\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVaultV2(_update.curvyVault);\n }\n if (_update.portalFactory != address(0)) {\n portalFactory = IPortalFactory(_update.portalFactory);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n /*\n * @dev This function allows the owner to reset the roots of the notes and nullifiers trees to a known state.\n * @notice Only to be used in emergency cases where the contract is in a bad state and cannot be recovered\n * through normal operation (i.e. proof verification and batch commitments).\n */\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable {\n // Only allow auto shielding of portals that were deployed through the portalFactory\n if (!portalFactory.portalIsRegistered(msg.sender)) revert PortalNotRegistered();\n\n // This will revert if tokenId is not found.\n address tokenAddress = curvyVault.getTokenAddress(note.token);\n\n if (tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);\n IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);\n }\n\n curvyVault.deposit{value: msg.value}(tokenAddress, address(this), note.amount);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n if (!_pendingIdsQueue[noteId]) revert NoteNotScheduledForDeposit();\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n if (_notesTreeRoot != publicInputs[numPublicInputs - 2]) revert InvalidNotesRoot();\n\n if (!insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n if (_notesTreeRoot != oldNotesTreeRoot) revert CurrentNoteTreeRootMismatch();\n if (_nullifiersTreeRoot != oldNullifiersTreeRoot) revert CurrentNullifierTreeRootMismatch();\n\n if (!aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[9] memory publicInputs\n ) public {\n if (publicInputs[2] != _nullifiersTreeRoot) {\n revert CurrentNullifierTreeRootMismatch();\n }\n if (publicInputs[1] != _notesTreeRoot) revert CurrentNoteTreeRootMismatch();\n\n if (!withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs)) revert InvalidProof();\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[3 + i];\n address destinationAddress = address(uint160(publicInputs[3 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.withdraw(\n publicInputs[numPublicInputs - 1], // tokenId\n destinationAddress,\n amount\n );\n }\n }\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifiersTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlphaV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlphaV2 {\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\ninterface ICurvyWithdrawVerifierV3 {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[9] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ILiFiCalldataVerification {\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n struct LiFiGenericSwapData {\n address sendingAssetId;\n uint256 amount;\n address receiver;\n address receivingAssetId;\n uint256 receivingAmount;\n }\n\n function extractBridgeData(bytes calldata data) external pure returns (LiFiBridgeData memory);\n\n function extractGenericSwapParameters(bytes calldata data) external pure returns (LiFiGenericSwapData memory);\n}\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InsufficientAmountForLiFiBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV2 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenDeregistered(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAlreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount) external payable;\n function deregisterToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf.json
deleted file mode 100644
index dfc32e1..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf.json
+++ /dev/null
@@ -1,130 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-b6b74ba2e6abc25ea721a9fb7d85502fadefeebf",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV5.sol": "project/contracts/vault/CurvyVaultV5.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV5.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport {EIP712Upgradeable} from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport \"./ICurvyVaultV2.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ncontract CurvyVaultV5 is ICurvyVaultV2, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n // DEPRECATED: This is no longer used, but because of storage layout it *MUST* not be deleted\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH = keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n // DEPRECATED: This is no longer used, but because of storage layout it *MUST* not be deleted\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n address private _curvyAggregator;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n /**\n * @dev DO NOT REMOVE THIS FUNCTION.\n * This function does not affect existing deployments during an upgrade. The `initializer`\n * modifier guarantees it can only be executed once per proxy. When an existing proxy is\n * upgraded to this version, its state is already marked as initialized, making this\n * function safely uncallable and preventing any accidental state resets.\n *\n * The transferFee is unused anymore, but it is kept for storage layout reasons.\n */\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"1.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0;\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n if (_tokenAddressToTokenId[tokenAddress] != 0) revert TokenAlreadyRegistered();\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function deregisterToken(address tokenAddress) external onlyOwner {\n uint256 tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n\n // Remove from both mappings\n _tokenAddressToTokenId[tokenAddress] = 0;\n _tokenIdToTokenAddress[tokenId] = address(0);\n\n emit TokenDeregistered(tokenAddress, tokenId);\n }\n\n /**\n * @dev This function is used to set the fees for the vault.\n * @notice If you want to keep the current fee, pass the current fee values.\n */\n function setFeeAmount(CurvyTypes.FeeUpdate calldata feeUpdate) external onlyOwner {\n depositFee = feeUpdate.depositFee;\n withdrawalFee = feeUpdate.withdrawalFee;\n\n emit FeeChange(feeUpdate);\n }\n\n function setCurvyAggregatorAddress(address curvyAggregator) external onlyOwner {\n _curvyAggregator = curvyAggregator;\n emit CurvyAggregatorAddressChange(curvyAggregator);\n }\n\n function collectFees(uint256 tokenId) external onlyOwner {\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) {\n revert TokenNotRegistered();\n }\n\n uint256 amount = _balances[msg.sender][tokenId];\n\n // Burn wrapped tokens\n _balances[msg.sender][tokenId] = 0;\n\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(msg.sender, amount);\n } else {\n // We are withdrawing ETH\n (bool success,) = msg.sender.call{value: amount}(\"\");\n if (!success) revert ETHTransferFailed();\n }\n }\n\n //#endregion\n\n //#region Public functions\n\n function deposit(address tokenAddress, address to, uint256 amount) public payable {\n if (msg.sender != _curvyAggregator) revert NotCurvyAggregator();\n\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n if (msg.value != 0) revert ERC20TransferFailed();\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n } else {\n // We are depositing ETH\n if (amount != msg.value) revert ETHTransferFailed();\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n emit Deposit(tokenAddress, to, amount);\n }\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external {\n if (msg.sender != _curvyAggregator && msg.sender != owner()) revert NotCurvyAggregatorOrOwner();\n if (to == address(0)) revert InvalidRecipient();\n\n address tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n\n _balances[msg.sender][tokenId] -= amount;\n\n uint256 amountAfterFees = amount;\n\n if (withdrawalFee != 0) {\n uint256 feeAmount = (amount * withdrawalFee) / FEE_DENOMINATOR;\n _balances[owner()][tokenId] += feeAmount;\n\n amountAfterFees -= feeAmount;\n }\n\n // Withdraw\n if (tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n IERC20(tokenAddress).safeTransfer(to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success,) = to.call{value: amountAfterFees}(\"\");\n if (!success) revert ETHTransferFailed();\n }\n\n emit Withdraw(tokenAddress, to, amount);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n if (tokenAddress == address(0)) revert TokenNotRegistered();\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVaultV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVaultV2 {\n //#region Events\n\n event Deposit(address indexed tokenAddress, address indexed to, uint256 amount);\n event Withdraw(address indexed tokenAddress, address indexed to, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event TokenDeregistered(address tokenAddress, uint256 tokenId);\n event FeeChange(CurvyTypes.FeeUpdate feeUpdate);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error NotCurvyAggregator();\n error TokenAlreadyRegistered();\n error InvalidDestinationAddress();\n error TokenNotRegistered();\n error ETHTransferFailed();\n error ERC20TransferFailed();\n error WithdrawalFeeNotSet();\n error NotCurvyAggregatorOrOwner();\n\n //#endregion\n\n //#region Public functions\n\n function withdraw(uint256 tokenId, address to, uint256 amount) external;\n function deposit(address tokenAddress, address to, uint256 amount) external payable;\n function deregisterToken(address tokenAddress) external;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139.json
deleted file mode 100644
index d60dd44..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-c51f113f1e5f157faefe3ac7636c971eb6508139",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyWithdrawVerifierAlpha_2_2.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyWithdrawVerifierAlpha_2_2 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 12397805951025518106727837530396484148707566518486264449692018677592715552738;\n uint256 constant alphay = 15955090815437592355277639300964029657297847031418701683987115570774046891084;\n uint256 constant betax1 = 4558033428938724707702173270530051784881875483362452783309319477109892316105;\n uint256 constant betax2 = 562684918113878349440529415978735829020597426398767547815813179569677877300;\n uint256 constant betay1 = 20489741225546273474807268360309498543857989566183651420924474108165432690449;\n uint256 constant betay2 = 454381379487956449014758402076019864127573099149576738294140161985720735727;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 1942957736037963101203219158469259529546799241990758433727523856964538100073;\n uint256 constant deltax2 = 18751923381200656298966034357393007161012447906702590224817337765901518639673;\n uint256 constant deltay1 = 1133999629005264953340361763833931385589890012974815573425435607942024998386;\n uint256 constant deltay2 = 14471269438293025701528144565650621453664657630625879213448935801370895962940;\n\n\n uint256 constant IC0x = 11968520527261008482201395429648269043035616497073888658724571012437789293939;\n uint256 constant IC0y = 5136251148319110970366250455217987647549782888975639692208545140414393137884;\n\n uint256 constant IC1x = 5975241901947889428732629350826663755899042053573889198253119292209887821040;\n uint256 constant IC1y = 2685690711649235809807871684645747831411670364944637928549630358451580743776;\n\n uint256 constant IC2x = 21457725883524874632812608873663348299725989674105072179521462800873159704544;\n uint256 constant IC2y = 19168217719060062389194429118110295922878525697032925549314953343761367307141;\n\n uint256 constant IC3x = 17554887761244498448299647193645089417418333466521419290903975536912994480102;\n uint256 constant IC3y = 6828503642628660310065798863926994844602749634343008753314631578060116317289;\n\n uint256 constant IC4x = 18045958587858551125780098548280608486861406147719724376886960587385758892570;\n uint256 constant IC4y = 1460992944153042284168728471643688563838047682787154519800969757480118977318;\n\n uint256 constant IC5x = 8036932202895490274341216374336553590284129118220623742481357002018210069085;\n uint256 constant IC5y = 18124381701282194246396478048337342484804646549782698384328525226734865874217;\n\n uint256 constant IC6x = 20732565017826841759780149484537562794481082473815326973722686385643825053232;\n uint256 constant IC6y = 1578295143682207919150217030105921698678835562616948345397787740004184473466;\n\n uint256 constant IC7x = 13336419499841102064953828107563315860524065147821200507183965277570290809701;\n uint256 constant IC7y = 15646739618986350809196316363572210110061458933904816195180902726350713059476;\n\n uint256 constant IC8x = 3781871953990367480957688085798233518568839779161221598822628397760557895286;\n uint256 constant IC8y = 12817226393979548789463163683773821122513428271793963480322864256370266927153;\n\n uint256 constant IC9x = 2926575412652084811061107906584177183682681890851185080729303468987134565693;\n uint256 constant IC9y = 6977667946282706236499241992533773181650515025258779907882853261697686173390;\n\n uint256 constant IC10x = 13730737400268905683628732665166925183849825441370098666588386862696253859993;\n uint256 constant IC10y = 21232995117437150082021144389671781866736648491602691192891602074767930210292;\n\n\n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[10] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n\n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n\n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n\n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n\n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n\n g1_mulAccC(_pVk, IC5x, IC5y, calldataload(add(pubSignals, 128)))\n\n g1_mulAccC(_pVk, IC6x, IC6y, calldataload(add(pubSignals, 160)))\n\n g1_mulAccC(_pVk, IC7x, IC7y, calldataload(add(pubSignals, 192)))\n\n g1_mulAccC(_pVk, IC8x, IC8y, calldataload(add(pubSignals, 224)))\n\n g1_mulAccC(_pVk, IC9x, IC9y, calldataload(add(pubSignals, 256)))\n\n g1_mulAccC(_pVk, IC10x, IC10y, calldataload(add(pubSignals, 288)))\n\n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n\n checkField(calldataload(add(_pubSignals, 0)))\n\n checkField(calldataload(add(_pubSignals, 32)))\n\n checkField(calldataload(add(_pubSignals, 64)))\n\n checkField(calldataload(add(_pubSignals, 96)))\n\n checkField(calldataload(add(_pubSignals, 128)))\n\n checkField(calldataload(add(_pubSignals, 160)))\n\n checkField(calldataload(add(_pubSignals, 192)))\n\n checkField(calldataload(add(_pubSignals, 224)))\n\n checkField(calldataload(add(_pubSignals, 256)))\n\n checkField(calldataload(add(_pubSignals, 288)))\n\n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f.json
deleted file mode 100644
index 190f7aa..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-c9e290b8dd8d3f2d987389e90eb85a736927414f",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2_2_2.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyAggregationVerifierAlpha_2_2_2 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 12397805951025518106727837530396484148707566518486264449692018677592715552738;\n uint256 constant alphay = 15955090815437592355277639300964029657297847031418701683987115570774046891084;\n uint256 constant betax1 = 4558033428938724707702173270530051784881875483362452783309319477109892316105;\n uint256 constant betax2 = 562684918113878349440529415978735829020597426398767547815813179569677877300;\n uint256 constant betay1 = 20489741225546273474807268360309498543857989566183651420924474108165432690449;\n uint256 constant betay2 = 454381379487956449014758402076019864127573099149576738294140161985720735727;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 14247188116453405673621645482734779597271943579236786988002822486035578351827;\n uint256 constant deltax2 = 19127457743533062382695057246317969331583652196516180652505167533941470596184;\n uint256 constant deltay1 = 1120896676694033813888539165134426369540073925998956380068766205657266649164;\n uint256 constant deltay2 = 11509882780442288397461078955924788953216456968851718873762534083798685470176;\n\n\n uint256 constant IC0x = 29462445247651336873197670218881433811515270657621608123062437811400729293;\n uint256 constant IC0y = 18171755157403336899093830921271746363256651403384351735695773262049736733550;\n\n uint256 constant IC1x = 20155116508805270335695092444982456411255426185965433598991038764554589237491;\n uint256 constant IC1y = 15100236777573876942404435988104314855338324214411252535388491438352277620011;\n\n uint256 constant IC2x = 10211871721893502392904500352667359944639931168739288628275746498444439334624;\n uint256 constant IC2y = 14857576678067996171949154311157731596082175516312363029732523714738213679225;\n\n uint256 constant IC3x = 17681178928244319555205465208759196004958135576922343337773782176967565453923;\n uint256 constant IC3y = 12020350826305074268886914285212991819930696406522096455169685411373063924283;\n\n uint256 constant IC4x = 15990091135939845008053796985720708958381089922139813153004307037770120415376;\n uint256 constant IC4y = 14686431646476347283962842352013379254853767901657891326891810060612370131980;\n\n uint256 constant IC5x = 9836802977203983623311722609159922779452226468276418069924737841205211059775;\n uint256 constant IC5y = 5851543777081950781696453016189466308824375346225749203286800288308819146995;\n\n uint256 constant IC6x = 20494598241570455849918685888437752184000806835792517335988569390529750670399;\n uint256 constant IC6y = 5118171864497209081972949748612803357992268865433760622407683235582888296730;\n\n uint256 constant IC7x = 4161116648736026602325932141983145072422766799723371889670488259084982158410;\n uint256 constant IC7y = 9823852613097441041513408079495633594306721875095369575303676346788966932542;\n\n uint256 constant IC8x = 18765382825961060386998956112280419451294524096891700144870842762014869263482;\n uint256 constant IC8y = 19072335486260980952513432441473964489080839652759276569808438095375047060405;\n\n uint256 constant IC9x = 13461757427291354529150925761759132586768268951212262050759971788739599457371;\n uint256 constant IC9y = 4798781689873879774176109834716065302885296520372365401475518178120364765053;\n\n uint256 constant IC10x = 2825946145004188674530444966368925818974257222272928787863708902753465126277;\n uint256 constant IC10y = 1132081428014299195407240376318746218027138258204471169466177788741899724649;\n\n uint256 constant IC11x = 6037061286657655112833173191022971038494250639700090848969212974351407272955;\n uint256 constant IC11y = 14288245102826282599683294768365607032501106839126325328556517607105285011189;\n\n uint256 constant IC12x = 16666416945139505069027327107503900232722595465132986777080649891257196764894;\n uint256 constant IC12y = 16479310741244346892769904991381444059360278176600162038328339853031393579364;\n\n uint256 constant IC13x = 8457614266693283160896406297631606953977487470037761765606926637481574421021;\n uint256 constant IC13y = 7268797945103287108426579652981774503857175386562341294721963484244801300809;\n\n uint256 constant IC14x = 17506341415928441858395452534096119812461333575351484400640668498682876605148;\n uint256 constant IC14y = 3698938041800489752726811068263827706724617934585101138986055289302086103389;\n\n\n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[14] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n\n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n\n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n\n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n\n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n\n g1_mulAccC(_pVk, IC5x, IC5y, calldataload(add(pubSignals, 128)))\n\n g1_mulAccC(_pVk, IC6x, IC6y, calldataload(add(pubSignals, 160)))\n\n g1_mulAccC(_pVk, IC7x, IC7y, calldataload(add(pubSignals, 192)))\n\n g1_mulAccC(_pVk, IC8x, IC8y, calldataload(add(pubSignals, 224)))\n\n g1_mulAccC(_pVk, IC9x, IC9y, calldataload(add(pubSignals, 256)))\n\n g1_mulAccC(_pVk, IC10x, IC10y, calldataload(add(pubSignals, 288)))\n\n g1_mulAccC(_pVk, IC11x, IC11y, calldataload(add(pubSignals, 320)))\n\n g1_mulAccC(_pVk, IC12x, IC12y, calldataload(add(pubSignals, 352)))\n\n g1_mulAccC(_pVk, IC13x, IC13y, calldataload(add(pubSignals, 384)))\n\n g1_mulAccC(_pVk, IC14x, IC14y, calldataload(add(pubSignals, 416)))\n\n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n\n checkField(calldataload(add(_pubSignals, 0)))\n\n checkField(calldataload(add(_pubSignals, 32)))\n\n checkField(calldataload(add(_pubSignals, 64)))\n\n checkField(calldataload(add(_pubSignals, 96)))\n\n checkField(calldataload(add(_pubSignals, 128)))\n\n checkField(calldataload(add(_pubSignals, 160)))\n\n checkField(calldataload(add(_pubSignals, 192)))\n\n checkField(calldataload(add(_pubSignals, 224)))\n\n checkField(calldataload(add(_pubSignals, 256)))\n\n checkField(calldataload(add(_pubSignals, 288)))\n\n checkField(calldataload(add(_pubSignals, 320)))\n\n checkField(calldataload(add(_pubSignals, 352)))\n\n checkField(calldataload(add(_pubSignals, 384)))\n\n checkField(calldataload(add(_pubSignals, 416)))\n\n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
deleted file mode 100644
index 7489326..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-cadf447022ab6c9108f8bf7a75fbe0851f9cd6a1",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note) external;\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is purely the ABI-encoded struct\n * (e.g., it was encoded using abi.encode(bridgeData))\n */\n function _decodeBridgeDataStruct(bytes calldata bridgeCallData) internal pure returns (LiFiBridgeData memory) {\n return abi.decode(bridgeCallData, (LiFiBridgeData));\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, address sendingAssetId, uint256 amount) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (sendingAssetId != address(0) && sendingAssetId != NATIVE_ETH) {\n IERC20 token = IERC20(sendingAssetId);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, note.amount);\n }\n\n function exitBridge(address lifiDiamondAddress, uint256 amount, bytes calldata bridgeData)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeDataStruct(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, data.sendingAssetId, amount);\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, amount, bridgeData);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f.json
deleted file mode 100644
index f734896..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-d3a06aa8ec9a0e57fcab80b2c91f15d93a5e597f",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol": "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyAggregationVerifierAlpha_2.sol": {
- "content": "//\n// Copyright 2017 Christian Reitwiessner\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n//\n// 2019 OKIMS\n// ported to solidity 0.6\n// fixed linter warnings\n// added requiere error messages\n//\n//\n// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.28;\nlibrary Pairing {\n struct G1Point {\n uint X;\n uint Y;\n }\n // Encoding of field elements is: X[0] * z + X[1]\n struct G2Point {\n uint[2] X;\n uint[2] Y;\n }\n /// @return the generator of G1\n function P1() internal pure returns (G1Point memory) {\n return G1Point(1, 2);\n }\n /// @return the generator of G2\n function P2() internal pure returns (G2Point memory) {\n // Original code point\n return\n G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n\n /*\n // Changed by Jordi point\n return G2Point(\n [10857046999023057135944570762232829481370756359578518086990519993285655852781,\n 11559732032986387107991004021392285783925812861821192530917403151452391805634],\n [8495653923123431417604973247489272438418190587263600148770280649306958101930,\n 4082367875863433681332203403145435568316851327593401208105741076214120093531]\n );\n*/\n }\n /// @return r the negation of p, i.e. p.addition(p.negate()) should be zero.\n function negate(G1Point memory p) internal pure returns (G1Point memory r) {\n // The prime q in the base field F_q for G1\n uint q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n if (p.X == 0 && p.Y == 0) return G1Point(0, 0);\n return G1Point(p.X, q - (p.Y % q));\n }\n /// @return r the sum of two points of G1\n function addition(G1Point memory p1, G1Point memory p2) internal view returns (G1Point memory r) {\n uint[4] memory input;\n input[0] = p1.X;\n input[1] = p1.Y;\n input[2] = p2.X;\n input[3] = p2.Y;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 6, input, 0xc0, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-add-failed\");\n }\n /// @return r the product of a point on G1 and a scalar, i.e.\n /// p == p.scalar_mul(1) and p.addition(p) == p.scalar_mul(2) for all points p.\n function scalar_mul(G1Point memory p, uint s) internal view returns (G1Point memory r) {\n uint[3] memory input;\n input[0] = p.X;\n input[1] = p.Y;\n input[2] = s;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 7, input, 0x80, r, 0x60)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-mul-failed\");\n }\n /// @return the result of computing the pairing check\n /// e(p1[0], p2[0]) * .... * e(p1[n], p2[n]) == 1\n /// For example pairing([P1(), P1().negate()], [P2(), P2()]) should\n /// return true.\n function pairing(G1Point[] memory p1, G2Point[] memory p2) internal view returns (bool) {\n require(p1.length == p2.length, \"pairing-lengths-failed\");\n uint elements = p1.length;\n uint inputSize = elements * 6;\n uint[] memory input = new uint[](inputSize);\n for (uint i = 0; i < elements; i++) {\n input[i * 6 + 0] = p1[i].X;\n input[i * 6 + 1] = p1[i].Y;\n input[i * 6 + 2] = p2[i].X[0];\n input[i * 6 + 3] = p2[i].X[1];\n input[i * 6 + 4] = p2[i].Y[0];\n input[i * 6 + 5] = p2[i].Y[1];\n }\n uint[1] memory out;\n bool success;\n // solium-disable-next-line security/no-inline-assembly\n assembly {\n success := staticcall(sub(gas(), 2000), 8, add(input, 0x20), mul(inputSize, 0x20), out, 0x20)\n // Use \"invalid\" to make gas estimation work\n switch success\n case 0 {\n invalid()\n }\n }\n require(success, \"pairing-opcode-failed\");\n return out[0] != 0;\n }\n /// Convenience method for a pairing check for two pairs.\n function pairingProd2(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](2);\n G2Point[] memory p2 = new G2Point[](2);\n p1[0] = a1;\n p1[1] = b1;\n p2[0] = a2;\n p2[1] = b2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for three pairs.\n function pairingProd3(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](3);\n G2Point[] memory p2 = new G2Point[](3);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n return pairing(p1, p2);\n }\n /// Convenience method for a pairing check for four pairs.\n function pairingProd4(\n G1Point memory a1,\n G2Point memory a2,\n G1Point memory b1,\n G2Point memory b2,\n G1Point memory c1,\n G2Point memory c2,\n G1Point memory d1,\n G2Point memory d2\n ) internal view returns (bool) {\n G1Point[] memory p1 = new G1Point[](4);\n G2Point[] memory p2 = new G2Point[](4);\n p1[0] = a1;\n p1[1] = b1;\n p1[2] = c1;\n p1[3] = d1;\n p2[0] = a2;\n p2[1] = b2;\n p2[2] = c2;\n p2[3] = d2;\n return pairing(p1, p2);\n }\n}\ncontract CurvyAggregationVerifierAlpha_2 {\n using Pairing for *;\n struct VerifyingKey {\n Pairing.G1Point alfa1;\n Pairing.G2Point beta2;\n Pairing.G2Point gamma2;\n Pairing.G2Point delta2;\n Pairing.G1Point[] IC;\n }\n struct Proof {\n Pairing.G1Point A;\n Pairing.G2Point B;\n Pairing.G1Point C;\n }\n function verifyingKey() internal pure returns (VerifyingKey memory vk) {\n vk.alfa1 = Pairing.G1Point(\n 16428432848801857252194528405604668803277877773566238944394625302971855135431,\n 16846502678714586896801519656441059708016666274385668027902869494772365009666\n );\n\n vk.beta2 = Pairing.G2Point(\n [\n 3182164110458002340215786955198810119980427837186618912744689678939861918171,\n 16348171800823588416173124589066524623406261996681292662100840445103873053252\n ],\n [\n 4920802715848186258981584729175884379674325733638798907835771393452862684714,\n 19687132236965066906216944365591810874384658708175106803089633851114028275753\n ]\n );\n vk.gamma2 = Pairing.G2Point(\n [\n 11559732032986387107991004021392285783925812861821192530917403151452391805634,\n 10857046999023057135944570762232829481370756359578518086990519993285655852781\n ],\n [\n 4082367875863433681332203403145435568316851327593401208105741076214120093531,\n 8495653923123431417604973247489272438418190587263600148770280649306958101930\n ]\n );\n vk.delta2 = Pairing.G2Point(\n [\n 1825820289445528230748516471303857211851647812178238644398694711892060335102,\n 4501157781715747347326168237438946199631233637039603190454156790024140170532\n ],\n [\n 2976320905856289398462407715158750554758711795923018343152013782540268573338,\n 8065057629097218075468818461668875107508867318519822752109695059605063759743\n ]\n );\n vk.IC = new Pairing.G1Point[](15);\n\n vk.IC[0] = Pairing.G1Point(\n 11200124153184451635609882308695941695299065822515604818428490874957516968544,\n 351599459091154081834565481907831295536571009664154516711371514507534537924\n );\n\n vk.IC[1] = Pairing.G1Point(\n 17523841805234438479622380916346797360075392171607980673630575387049417242504,\n 13289142455981019844666631116997357642308096477675875239365376390530915636565\n );\n\n vk.IC[2] = Pairing.G1Point(\n 16746757079611460155423717702821756597011979265569706823451544529394680331569,\n 5895458274955609861385562616131856787903006372495797294609570835562705630636\n );\n\n vk.IC[3] = Pairing.G1Point(\n 14127482189652462155064731555835502755013656834412536971159921420581690974934,\n 20972656051236665024151562033324700560519205436455326893079525751320282585826\n );\n\n vk.IC[4] = Pairing.G1Point(\n 14580157399388369037332019611784129511147010464280832254037678387990510320216,\n 1156244037397095377907506151159747807385598085151953095125221542232459781707\n );\n\n vk.IC[5] = Pairing.G1Point(\n 14590871185281906275792434443685212134229407115720576014231924109918532363423,\n 5959209397832805552448947593117074559622964817162361505512971088303811736123\n );\n\n vk.IC[6] = Pairing.G1Point(\n 20201034757384523034750370638651840799381923260057426513046720249367942927662,\n 13310240425583744609524200316716161773019379466271897428566996672193783474644\n );\n\n vk.IC[7] = Pairing.G1Point(\n 12993571855859323326789126599640048145924820083081470964551627062894104638932,\n 2521467008216835644009977822413367714654763996963405057427943471742378187229\n );\n\n vk.IC[8] = Pairing.G1Point(\n 644479126338776177875611439307149801940697823408876598202163177696812056230,\n 3259608218321073927123799071684570288276186889110648470965811205442418453318\n );\n\n vk.IC[9] = Pairing.G1Point(\n 18616248727979558767963045303042732245655414233405863537147546654506877648919,\n 21007181885380641107567124859608576630313975132949218965313917530068026034348\n );\n\n vk.IC[10] = Pairing.G1Point(\n 16542765496795800099762929935049082290142877961245786125523420623234647385136,\n 20936230615665064995225716565795322981492740487463861151827401558596300599229\n );\n\n vk.IC[11] = Pairing.G1Point(\n 9256351824249849328111189255216609819183023880083950734211844506616465067031,\n 7708821775396992189236181896073504806661486656527392329166820850192121208270\n );\n\n vk.IC[12] = Pairing.G1Point(\n 194682654485999029052793081152618414270293252026507044373168224453479917315,\n 3149660330041749446855662611494401400910302078867553834930485587333418413096\n );\n\n vk.IC[13] = Pairing.G1Point(\n 740646390511892530424670165807113591122942423540196858609773072637607592792,\n 4800156649851932114269991997960979152383472708142020802762828152081927430386\n );\n\n vk.IC[14] = Pairing.G1Point(\n 4813266068119240960813116245992549920458196449520670498440968746560888020985,\n 8202677805642766197766182170871009520342188751173046950187476642267562851673\n );\n }\n function verify(uint[] memory input, Proof memory proof) internal view returns (uint) {\n uint256 snark_scalar_field = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n VerifyingKey memory vk = verifyingKey();\n require(input.length + 1 == vk.IC.length, \"verifier-bad-input\");\n // Compute the linear combination vk_x\n Pairing.G1Point memory vk_x = Pairing.G1Point(0, 0);\n for (uint i = 0; i < input.length; i++) {\n require(input[i] < snark_scalar_field, \"verifier-gte-snark-scalar-field\");\n vk_x = Pairing.addition(vk_x, Pairing.scalar_mul(vk.IC[i + 1], input[i]));\n }\n vk_x = Pairing.addition(vk_x, vk.IC[0]);\n if (\n !Pairing.pairingProd4(\n Pairing.negate(proof.A),\n proof.B,\n vk.alfa1,\n vk.beta2,\n vk_x,\n vk.gamma2,\n proof.C,\n vk.delta2\n )\n ) return 1;\n return 0;\n }\n /// @return r bool true if proof is valid\n function verifyProof(\n uint[2] memory a,\n uint[2][2] memory b,\n uint[2] memory c,\n uint[14] memory input\n ) public view returns (bool r) {\n Proof memory proof;\n proof.A = Pairing.G1Point(a[0], a[1]);\n proof.B = Pairing.G2Point([b[0][0], b[0][1]], [b[1][0], b[1][1]]);\n proof.C = Pairing.G1Point(c[0], c[1]);\n uint[] memory inputValues = new uint[](input.length);\n for (uint i = 0; i < input.length; i++) {\n inputValues[i] = input[i];\n }\n if (verify(inputValues, proof) == 0) {\n return true;\n } else {\n return false;\n }\n }\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477.json
deleted file mode 100644
index e538733..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-e5fe877dda4effeaee88ec460bf8e648c8c08477",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_30.sol": "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_30.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": []
- },
- "sources": {
- "project/contracts/aggregator-alpha/verifiers/CurvyInsertionVerifierAlpha_2_30.sol": {
- "content": "// SPDX-License-Identifier: GPL-3.0\n/*\n Copyright 2021 0KIMS association.\n\n This file is generated with [snarkJS](https://github.com/iden3/snarkjs).\n\n snarkJS is a free software: you can redistribute it and/or modify it\n under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n snarkJS is distributed in the hope that it will be useful, but WITHOUT\n ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\n or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public\n License for more details.\n\n You should have received a copy of the GNU General Public License\n along with snarkJS. If not, see .\n*/\n\npragma solidity >=0.7.0 <0.9.0;\n\ncontract CurvyInsertionVerifierAlpha_2_30 {\n // Scalar field size\n uint256 constant r = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n // Base field size\n uint256 constant q = 21888242871839275222246405745257275088696311157297823662689037894645226208583;\n\n // Verification Key data\n uint256 constant alphax = 6409627461027314381187468885143279306198448876048297566463301954058327510814;\n uint256 constant alphay = 12640837106096309059951908366270479311827929827962903462162212783594404420318;\n uint256 constant betax1 = 5549494384221185918318645225448751739016405918291851539409691184048609234995;\n uint256 constant betax2 = 8231530609589765620572345306193536337315037298983907898646122212897803219552;\n uint256 constant betay1 = 18178257033245058400722845292582229521725560892668828752442725877662722404413;\n uint256 constant betay2 = 11567528303928621672875082759207269099998905446359254464834566777644442986764;\n uint256 constant gammax1 = 11559732032986387107991004021392285783925812861821192530917403151452391805634;\n uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;\n uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;\n uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;\n uint256 constant deltax1 = 13150187827804098580167194353396651525401190924161928452717195968979198279667;\n uint256 constant deltax2 = 19659687456793278204393856162384522848917490025047546228310774933303031363859;\n uint256 constant deltay1 = 18599301451010334650893181475001684113283131999338606595494535648225928516680;\n uint256 constant deltay2 = 175693180205772694080223110192202412843423206625032649564534105696047342305;\n\n \n uint256 constant IC0x = 4135656527027618943839187826965702424585853129588027519355769429239703878811;\n uint256 constant IC0y = 13490848697663523098413137617593516625231121353036010990327157308917327084274;\n \n uint256 constant IC1x = 4277342632844015816144163412031098603531813411267905296660058137054759162265;\n uint256 constant IC1y = 12281413836847143766162883406525148477888833200311739953868211971043788013083;\n \n uint256 constant IC2x = 11729591549821466135250610177646826646615835478231762444594923545825176910658;\n uint256 constant IC2y = 21137417387833128216038636590746800605445709838492046953316924336043862960363;\n \n uint256 constant IC3x = 21815948384521701101362279090949311073966738683038664301487749963410452873180;\n uint256 constant IC3y = 2473977254957273979077603512259814337713693644954267768429404391046322680925;\n \n uint256 constant IC4x = 10876006368643772253894605942973519414689312177049486195205521130863288506162;\n uint256 constant IC4y = 11400330890729911598144462415260556565988610300976556417263527604260649187032;\n \n \n // Memory data\n uint16 constant pVk = 0;\n uint16 constant pPairing = 128;\n\n uint16 constant pLastMem = 896;\n\n function verifyProof(uint[2] calldata _pA, uint[2][2] calldata _pB, uint[2] calldata _pC, uint[4] calldata _pubSignals) public view returns (bool) {\n assembly {\n function checkField(v) {\n if iszero(lt(v, r)) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n \n // G1 function to multiply a G1 value(x,y) to value in an address\n function g1_mulAccC(pR, x, y, s) {\n let success\n let mIn := mload(0x40)\n mstore(mIn, x)\n mstore(add(mIn, 32), y)\n mstore(add(mIn, 64), s)\n\n success := staticcall(sub(gas(), 2000), 7, mIn, 96, mIn, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n\n mstore(add(mIn, 64), mload(pR))\n mstore(add(mIn, 96), mload(add(pR, 32)))\n\n success := staticcall(sub(gas(), 2000), 6, mIn, 128, pR, 64)\n\n if iszero(success) {\n mstore(0, 0)\n return(0, 0x20)\n }\n }\n\n function checkPairing(pA, pB, pC, pubSignals, pMem) -> isOk {\n let _pPairing := add(pMem, pPairing)\n let _pVk := add(pMem, pVk)\n\n mstore(_pVk, IC0x)\n mstore(add(_pVk, 32), IC0y)\n\n // Compute the linear combination vk_x\n \n g1_mulAccC(_pVk, IC1x, IC1y, calldataload(add(pubSignals, 0)))\n \n g1_mulAccC(_pVk, IC2x, IC2y, calldataload(add(pubSignals, 32)))\n \n g1_mulAccC(_pVk, IC3x, IC3y, calldataload(add(pubSignals, 64)))\n \n g1_mulAccC(_pVk, IC4x, IC4y, calldataload(add(pubSignals, 96)))\n \n\n // -A\n mstore(_pPairing, calldataload(pA))\n mstore(add(_pPairing, 32), mod(sub(q, calldataload(add(pA, 32))), q))\n\n // B\n mstore(add(_pPairing, 64), calldataload(pB))\n mstore(add(_pPairing, 96), calldataload(add(pB, 32)))\n mstore(add(_pPairing, 128), calldataload(add(pB, 64)))\n mstore(add(_pPairing, 160), calldataload(add(pB, 96)))\n\n // alpha1\n mstore(add(_pPairing, 192), alphax)\n mstore(add(_pPairing, 224), alphay)\n\n // beta2\n mstore(add(_pPairing, 256), betax1)\n mstore(add(_pPairing, 288), betax2)\n mstore(add(_pPairing, 320), betay1)\n mstore(add(_pPairing, 352), betay2)\n\n // vk_x\n mstore(add(_pPairing, 384), mload(add(pMem, pVk)))\n mstore(add(_pPairing, 416), mload(add(pMem, add(pVk, 32))))\n\n\n // gamma2\n mstore(add(_pPairing, 448), gammax1)\n mstore(add(_pPairing, 480), gammax2)\n mstore(add(_pPairing, 512), gammay1)\n mstore(add(_pPairing, 544), gammay2)\n\n // C\n mstore(add(_pPairing, 576), calldataload(pC))\n mstore(add(_pPairing, 608), calldataload(add(pC, 32)))\n\n // delta2\n mstore(add(_pPairing, 640), deltax1)\n mstore(add(_pPairing, 672), deltax2)\n mstore(add(_pPairing, 704), deltay1)\n mstore(add(_pPairing, 736), deltay2)\n\n\n let success := staticcall(sub(gas(), 2000), 8, _pPairing, 768, _pPairing, 0x20)\n\n isOk := and(success, mload(_pPairing))\n }\n\n let pMem := mload(0x40)\n mstore(0x40, add(pMem, pLastMem))\n\n // Validate that all evaluations ∈ F\n \n checkField(calldataload(add(_pubSignals, 0)))\n \n checkField(calldataload(add(_pubSignals, 32)))\n \n checkField(calldataload(add(_pubSignals, 64)))\n \n checkField(calldataload(add(_pubSignals, 96)))\n \n\n // Validate all evaluations\n let isValid := checkPairing(_pA, _pB, _pC, _pubSignals, pMem)\n\n mstore(0, isValid)\n return(0, 0x20)\n }\n }\n }\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-f0322ae6d51b4110e2b55c267b545c35f2b0fd20.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-f0322ae6d51b4110e2b55c267b545c35f2b0fd20.json
deleted file mode 100644
index 757c3fe..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-f0322ae6d51b4110e2b55c267b545c35f2b0fd20.json
+++ /dev/null
@@ -1,134 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-f0322ae6d51b4110e2b55c267b545c35f2b0fd20",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/vault/CurvyVaultV2.sol": "project/contracts/vault/CurvyVaultV2.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/cryptography/EIP712Upgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/cryptography/EIP712.sol)\n\npragma solidity ^0.8.20;\n\nimport {MessageHashUtils} from \"@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol\";\nimport {IERC5267} from \"@openzeppelin/contracts/interfaces/IERC5267.sol\";\nimport {Initializable} from \"../../proxy/utils/Initializable.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 scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose\n * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract\n * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to\n * produce the hash of their typed data 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 * NOTE: The upgradeable version of this contract does not use an immutable cache and recomputes the domain separator\n * each time {_domainSeparatorV4} is called. That is cheaper than accessing a cached version in cold storage.\n */\nabstract contract EIP712Upgradeable is Initializable, IERC5267 {\n bytes32 private constant TYPE_HASH =\n keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\");\n\n /// @custom:storage-location erc7201:openzeppelin.storage.EIP712\n struct EIP712Storage {\n /// @custom:oz-renamed-from _HASHED_NAME\n bytes32 _hashedName;\n /// @custom:oz-renamed-from _HASHED_VERSION\n bytes32 _hashedVersion;\n\n string _name;\n string _version;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.EIP712\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;\n\n function _getEIP712Storage() private pure returns (EIP712Storage storage $) {\n assembly {\n $.slot := EIP712StorageLocation\n }\n }\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 function __EIP712_init(string memory name, string memory version) internal onlyInitializing {\n __EIP712_init_unchained(name, version);\n }\n\n function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {\n EIP712Storage storage $ = _getEIP712Storage();\n $._name = name;\n $._version = version;\n\n // Reset prior values in storage if upgrading\n $._hashedName = 0;\n $._hashedVersion = 0;\n }\n\n /**\n * @dev Returns the domain separator for the current chain.\n */\n function _domainSeparatorV4() internal view returns (bytes32) {\n return _buildDomainSeparator();\n }\n\n function _buildDomainSeparator() private view returns (bytes32) {\n return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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 MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);\n }\n\n /// @inheritdoc IERC5267\n function eip712Domain()\n public\n view\n virtual\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n )\n {\n EIP712Storage storage $ = _getEIP712Storage();\n // If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized\n // and the EIP712 domain is not reliable, as it will be missing name and version.\n require($._hashedName == 0 && $._hashedVersion == 0, \"EIP712: Uninitialized\");\n\n return (\n hex\"0f\", // 01111\n _EIP712Name(),\n _EIP712Version(),\n block.chainid,\n address(this),\n bytes32(0),\n new uint256[](0)\n );\n }\n\n /**\n * @dev The name parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Name() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._name;\n }\n\n /**\n * @dev The version parameter for the EIP712 domain.\n *\n * NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs\n * are a concern.\n */\n function _EIP712Version() internal view virtual returns (string memory) {\n EIP712Storage storage $ = _getEIP712Storage();\n return $._version;\n }\n\n /**\n * @dev The hash of the name parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.\n */\n function _EIP712NameHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory name = _EIP712Name();\n if (bytes(name).length > 0) {\n return keccak256(bytes(name));\n } else {\n // If the name is empty, the contract may have been upgraded without initializing the new storage.\n // We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.\n bytes32 hashedName = $._hashedName;\n if (hashedName != 0) {\n return hashedName;\n } else {\n return keccak256(\"\");\n }\n }\n }\n\n /**\n * @dev The hash of the version parameter for the EIP712 domain.\n *\n * NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.\n */\n function _EIP712VersionHash() internal view returns (bytes32) {\n EIP712Storage storage $ = _getEIP712Storage();\n string memory version = _EIP712Version();\n if (bytes(version).length > 0) {\n return keccak256(bytes(version));\n } else {\n // If the version is empty, the contract may have been upgraded without initializing the new storage.\n // We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.\n bytes32 hashedVersion = $._hashedVersion;\n if (hashedVersion != 0) {\n return hashedVersion;\n } else {\n return keccak256(\"\");\n }\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC5267.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC5267.sol)\n\npragma solidity >=0.4.16;\n\ninterface IERC5267 {\n /**\n * @dev MAY be emitted to signal that the domain could have changed.\n */\n event EIP712DomainChanged();\n\n /**\n * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712\n * signature.\n */\n function eip712Domain()\n external\n view\n returns (\n bytes1 fields,\n string memory name,\n string memory version,\n uint256 chainId,\n address verifyingContract,\n bytes32 salt,\n uint256[] memory extensions\n );\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/ECDSA.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)\n\npragma solidity ^0.8.20;\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 }\n\n /**\n * @dev The signature derives the `address(0)`.\n */\n error ECDSAInvalidSignature();\n\n /**\n * @dev The signature has an invalid length.\n */\n error ECDSAInvalidSignatureLength(uint256 length);\n\n /**\n * @dev The signature has an S value that is in the upper half order.\n */\n error ECDSAInvalidSignatureS(bytes32 s);\n\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\n * and a bytes32 providing additional information about the error.\n *\n * If no error is returned, then the address can be used for verification purposes.\n *\n * The `ecrecover` EVM precompile 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 {MessageHashUtils-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 function tryRecover(\n bytes32 hash,\n bytes memory signature\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 (\"memory-safe\") {\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 {\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\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 precompile 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 {MessageHashUtils-toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\n _throwError(error, errorArg);\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[ERC-2098 short signatures]\n */\n function tryRecover(\n bytes32 hash,\n bytes32 r,\n bytes32 vs\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\n unchecked {\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\n // We do not check for an overflow here since the shift operation results in 0 or 1.\n uint8 v = uint8((uint256(vs) >> 255) + 27);\n return tryRecover(hash, v, r, s);\n }\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\n */\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\n _throwError(error, errorArg);\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 function tryRecover(\n bytes32 hash,\n uint8 v,\n bytes32 r,\n bytes32 s\n ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {\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 ÷ 2 + 1, and for v in (302): v ∈ {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, s);\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, bytes32(0));\n }\n\n return (signer, RecoverError.NoError, bytes32(0));\n }\n\n /**\n * @dev Overload of {ECDSA-recover} that receives the `v`,\n * `r` and `s` signature fields separately.\n */\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\n _throwError(error, errorArg);\n return recovered;\n }\n\n /**\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\n */\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\n if (error == RecoverError.NoError) {\n return; // no error: do nothing\n } else if (error == RecoverError.InvalidSignature) {\n revert ECDSAInvalidSignature();\n } else if (error == RecoverError.InvalidSignatureLength) {\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\n } else if (error == RecoverError.InvalidSignatureS) {\n revert ECDSAInvalidSignatureS(errorArg);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/cryptography/MessageHashUtils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/MessageHashUtils.sol)\n\npragma solidity ^0.8.20;\n\nimport {Strings} from \"../Strings.sol\";\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing a bytes32 `messageHash` with\n * `\"\\x19Ethereum Signed Message:\\n32\"` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\n * keccak256, although any bytes32 value can be safely used because the final digest will\n * be re-hashed.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, \"\\x19Ethereum Signed Message:\\n32\") // 32 is the bytes-length of messageHash\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x45` (`personal_sign` messages).\n *\n * The digest is calculated by prefixing an arbitrary `message` with\n * `\"\\x19Ethereum Signed Message:\\n\" + len(message)` and hashing the result. It corresponds with the\n * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.\n *\n * See {ECDSA-recover}.\n */\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\n return\n keccak256(bytes.concat(\"\\x19Ethereum Signed Message:\\n\", bytes(Strings.toString(message.length)), message));\n }\n\n /**\n * @dev Returns the keccak256 digest of an ERC-191 signed data with version\n * `0x00` (data with intended validator).\n *\n * The digest is calculated by prefixing an arbitrary `data` with `\"\\x19\\x00\"` and the intended\n * `validator` address. Then hashing the result.\n *\n * See {ECDSA-recover}.\n */\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\n return keccak256(abi.encodePacked(hex\"19_00\", validator, data));\n }\n\n /**\n * @dev Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.\n */\n function toDataWithIntendedValidatorHash(\n address validator,\n bytes32 messageHash\n ) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n mstore(0x00, hex\"19_00\")\n mstore(0x02, shl(96, validator))\n mstore(0x16, messageHash)\n digest := keccak256(0x00, 0x36)\n }\n }\n\n /**\n * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).\n *\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n *\n * See {ECDSA-recover}.\n */\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n mstore(ptr, hex\"19_01\")\n mstore(add(ptr, 0x02), domainSeparator)\n mstore(add(ptr, 0x22), structHash)\n digest := keccak256(ptr, 0x42)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/Math.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.20;\n\nimport {Panic} from \"../Panic.sol\";\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n enum Rounding {\n Floor, // Toward negative infinity\n Ceil, // Toward positive infinity\n Trunc, // Toward zero\n Expand // Away from zero\n }\n\n /**\n * @dev Return the 512-bit addition of two uint256.\n *\n * The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.\n */\n function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n assembly (\"memory-safe\") {\n low := add(a, b)\n high := lt(low, a)\n }\n }\n\n /**\n * @dev Return the 512-bit multiplication of two uint256.\n *\n * The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.\n */\n function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {\n // 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use\n // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n // variables such that product = high * 2²⁵⁶ + low.\n assembly (\"memory-safe\") {\n let mm := mulmod(a, b, not(0))\n low := mul(a, b)\n high := sub(sub(mm, low), lt(mm, low))\n }\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, with a success flag (no overflow).\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a + b;\n success = c >= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a - b;\n success = c <= a;\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n uint256 c = a * b;\n assembly (\"memory-safe\") {\n // Only true when the multiplication doesn't overflow\n // (c / a == b) || (a == 0)\n success := or(eq(div(c, a), b), iszero(a))\n }\n // equivalent to: success ? c : 0\n result = c * SafeCast.toUint(success);\n }\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a success flag (no division by zero).\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `DIV` opcode returns zero when the denominator is 0.\n result := div(a, b)\n }\n }\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {\n unchecked {\n success = b > 0;\n assembly (\"memory-safe\") {\n // The `MOD` opcode returns zero when the denominator is 0.\n result := mod(a, b)\n }\n }\n }\n\n /**\n * @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryAdd(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.\n */\n function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {\n (, uint256 result) = trySub(a, b);\n return result;\n }\n\n /**\n * @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.\n */\n function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {\n (bool success, uint256 result) = tryMul(a, b);\n return ternary(success, result, type(uint256).max);\n }\n\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * SafeCast.toUint(condition));\n }\n }\n\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return ternary(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 ternary(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 towards infinity instead\n * of rounding towards zero.\n */\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n if (b == 0) {\n // Guarantee the same behavior as in a regular Solidity division.\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n\n // The following calculation ensures accurate ceiling division without overflow.\n // Since a is non-zero, (a - 1) / b will not overflow.\n // The largest possible result occurs when (a - 1) / b is type(uint256).max,\n // but the largest value we can obtain is type(uint256).max - 1, which happens\n // when a = type(uint256).max and b = 1.\n unchecked {\n return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);\n }\n }\n\n /**\n * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\n * denominator == 0.\n *\n * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\n * Uniswap Labs also under MIT license.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n\n // Handle non-overflow cases, 256 by 256 division.\n if (high == 0) {\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n // The surrounding unchecked block does not change this fact.\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n return low / denominator;\n }\n\n // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.\n if (denominator <= high) {\n Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));\n }\n\n ///////////////////////////////////////////////\n // 512 by 256 division.\n ///////////////////////////////////////////////\n\n // Make division exact by subtracting the remainder from [high low].\n uint256 remainder;\n assembly (\"memory-safe\") {\n // Compute remainder using mulmod.\n remainder := mulmod(x, y, denominator)\n\n // Subtract 256 bit number from 512 bit number.\n high := sub(high, gt(remainder, low))\n low := sub(low, remainder)\n }\n\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\n\n uint256 twos = denominator & (0 - denominator);\n assembly (\"memory-safe\") {\n // Divide denominator by twos.\n denominator := div(denominator, twos)\n\n // Divide [high low] by twos.\n low := div(low, twos)\n\n // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.\n twos := add(div(sub(0, twos), twos), 1)\n }\n\n // Shift in bits from high into low.\n low |= high * twos;\n\n // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such\n // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for\n // four bits. That is, denominator * inv ≡ 1 mod 2⁴.\n uint256 inverse = (3 * denominator) ^ 2;\n\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\n // works in modular arithmetic, doubling the correct bits in each step.\n inverse *= 2 - denominator * inverse; // inverse mod 2⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶\n inverse *= 2 - denominator * inverse; // inverse mod 2³²\n inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴\n inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸\n inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶\n\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is\n // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high\n // is no longer required.\n result = low * inverse;\n return result;\n }\n }\n\n /**\n * @dev Calculates x * y / denominator with full precision, following the selected rounding direction.\n */\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);\n }\n\n /**\n * @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.\n */\n function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {\n unchecked {\n (uint256 high, uint256 low) = mul512(x, y);\n if (high >= 1 << n) {\n Panic.panic(Panic.UNDER_OVERFLOW);\n }\n return (high << (256 - n)) | (low >> n);\n }\n }\n\n /**\n * @dev Calculates x * y >> n with full precision, following the selected rounding direction.\n */\n function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {\n return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);\n }\n\n /**\n * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.\n *\n * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.\n * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.\n *\n * If the input value is not inversible, 0 is returned.\n *\n * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the\n * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.\n */\n function invMod(uint256 a, uint256 n) internal pure returns (uint256) {\n unchecked {\n if (n == 0) return 0;\n\n // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)\n // Used to compute integers x and y such that: ax + ny = gcd(a, n).\n // When the gcd is 1, then the inverse of a modulo n exists and it's x.\n // ax + ny = 1\n // ax = 1 + (-y)n\n // ax ≡ 1 (mod n) # x is the inverse of a modulo n\n\n // If the remainder is 0 the gcd is n right away.\n uint256 remainder = a % n;\n uint256 gcd = n;\n\n // Therefore the initial coefficients are:\n // ax + ny = gcd(a, n) = n\n // 0a + 1n = n\n int256 x = 0;\n int256 y = 1;\n\n while (remainder != 0) {\n uint256 quotient = gcd / remainder;\n\n (gcd, remainder) = (\n // The old remainder is the next gcd to try.\n remainder,\n // Compute the next remainder.\n // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd\n // where gcd is at most n (capped to type(uint256).max)\n gcd - remainder * quotient\n );\n\n (x, y) = (\n // Increment the coefficient of a.\n y,\n // Decrement the coefficient of n.\n // Can overflow, but the result is casted to uint256 so that the\n // next value of y is \"wrapped around\" to a value between 0 and n - 1.\n x - y * int256(quotient)\n );\n }\n\n if (gcd != 1) return 0; // No inverse exists.\n return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.\n }\n }\n\n /**\n * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.\n *\n * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is\n * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that\n * `a**(p-2)` is the modular multiplicative inverse of a in Fp.\n *\n * NOTE: this function does NOT check that `p` is a prime greater than `2`.\n */\n function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {\n unchecked {\n return Math.modExp(a, p - 2, p);\n }\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)\n *\n * Requirements:\n * - modulus can't be zero\n * - underlying staticcall to precompile must succeed\n *\n * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make\n * sure the chain you're using it on supports the precompiled contract for modular exponentiation\n * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,\n * the underlying function will succeed given the lack of a revert, but the result may be incorrectly\n * interpreted as 0.\n */\n function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {\n (bool success, uint256 result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).\n * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying\n * to operate modulo 0 or if the underlying precompile reverted.\n *\n * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain\n * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in\n * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack\n * of a revert, but the result may be incorrectly interpreted as 0.\n */\n function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {\n if (m == 0) return (false, 0);\n assembly (\"memory-safe\") {\n let ptr := mload(0x40)\n // | Offset | Content | Content (Hex) |\n // |-----------|------------|--------------------------------------------------------------------|\n // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |\n // | 0x60:0x7f | value of b | 0x<.............................................................b> |\n // | 0x80:0x9f | value of e | 0x<.............................................................e> |\n // | 0xa0:0xbf | value of m | 0x<.............................................................m> |\n mstore(ptr, 0x20)\n mstore(add(ptr, 0x20), 0x20)\n mstore(add(ptr, 0x40), 0x20)\n mstore(add(ptr, 0x60), b)\n mstore(add(ptr, 0x80), e)\n mstore(add(ptr, 0xa0), m)\n\n // Given the result < m, it's guaranteed to fit in 32 bytes,\n // so we can use the memory scratch space located at offset 0.\n success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)\n result := mload(0x00)\n }\n }\n\n /**\n * @dev Variant of {modExp} that supports inputs of arbitrary length.\n */\n function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {\n (bool success, bytes memory result) = tryModExp(b, e, m);\n if (!success) {\n Panic.panic(Panic.DIVISION_BY_ZERO);\n }\n return result;\n }\n\n /**\n * @dev Variant of {tryModExp} that supports inputs of arbitrary length.\n */\n function tryModExp(\n bytes memory b,\n bytes memory e,\n bytes memory m\n ) internal view returns (bool success, bytes memory result) {\n if (_zeroBytes(m)) return (false, new bytes(0));\n\n uint256 mLen = m.length;\n\n // Encode call args in result and move the free memory pointer\n result = abi.encodePacked(b.length, e.length, mLen, b, e, m);\n\n assembly (\"memory-safe\") {\n let dataPtr := add(result, 0x20)\n // Write result on top of args to avoid allocating extra memory.\n success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)\n // Overwrite the length.\n // result.length > returndatasize() is guaranteed because returndatasize() == m.length\n mstore(result, mLen)\n // Set the memory pointer after the returned data.\n mstore(0x40, add(dataPtr, mLen))\n }\n }\n\n /**\n * @dev Returns whether the provided byte array is zero.\n */\n function _zeroBytes(bytes memory byteArray) private pure returns (bool) {\n for (uint256 i = 0; i < byteArray.length; ++i) {\n if (byteArray[i] != 0) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\n * towards zero.\n *\n * This method is based on Newton's method for computing square roots; the algorithm is restricted to only\n * using integer operations.\n */\n function sqrt(uint256 a) internal pure returns (uint256) {\n unchecked {\n // Take care of easy edge cases when a == 0 or a == 1\n if (a <= 1) {\n return a;\n }\n\n // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a\n // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between\n // the current value as `ε_n = | x_n - sqrt(a) |`.\n //\n // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root\n // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is\n // bigger than any uint256.\n //\n // By noticing that\n // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`\n // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar\n // to the msb function.\n uint256 aa = a;\n uint256 xn = 1;\n\n if (aa >= (1 << 128)) {\n aa >>= 128;\n xn <<= 64;\n }\n if (aa >= (1 << 64)) {\n aa >>= 64;\n xn <<= 32;\n }\n if (aa >= (1 << 32)) {\n aa >>= 32;\n xn <<= 16;\n }\n if (aa >= (1 << 16)) {\n aa >>= 16;\n xn <<= 8;\n }\n if (aa >= (1 << 8)) {\n aa >>= 8;\n xn <<= 4;\n }\n if (aa >= (1 << 4)) {\n aa >>= 4;\n xn <<= 2;\n }\n if (aa >= (1 << 2)) {\n xn <<= 1;\n }\n\n // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).\n //\n // We can refine our estimation by noticing that the middle of that interval minimizes the error.\n // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).\n // This is going to be our x_0 (and ε_0)\n xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)\n\n // From here, Newton's method give us:\n // x_{n+1} = (x_n + a / x_n) / 2\n //\n // One should note that:\n // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a\n // = ((x_n² + a) / (2 * x_n))² - a\n // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a\n // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)\n // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)\n // = (x_n² - a)² / (2 * x_n)²\n // = ((x_n² - a) / (2 * x_n))²\n // ≥ 0\n // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n\n //\n // This gives us the proof of quadratic convergence of the sequence:\n // ε_{n+1} = | x_{n+1} - sqrt(a) |\n // = | (x_n + a / x_n) / 2 - sqrt(a) |\n // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |\n // = | (x_n - sqrt(a))² / (2 * x_n) |\n // = | ε_n² / (2 * x_n) |\n // = ε_n² / | (2 * x_n) |\n //\n // For the first iteration, we have a special case where x_0 is known:\n // ε_1 = ε_0² / | (2 * x_0) |\n // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))\n // ≤ 2**(2*e-4) / (3 * 2**(e-1))\n // ≤ 2**(e-3) / 3\n // ≤ 2**(e-3-log2(3))\n // ≤ 2**(e-4.5)\n //\n // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:\n // ε_{n+1} = ε_n² / | (2 * x_n) |\n // ≤ (2**(e-k))² / (2 * 2**(e-1))\n // ≤ 2**(2*e-2*k) / 2**e\n // ≤ 2**(e-2*k)\n xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above\n xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5\n xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9\n xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18\n xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36\n xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72\n\n // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision\n // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either\n // sqrt(a) or sqrt(a) + 1.\n return xn - SafeCast.toUint(xn > a / xn);\n }\n }\n\n /**\n * @dev Calculates sqrt(a), following the selected rounding direction.\n */\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = sqrt(a);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);\n }\n }\n\n /**\n * @dev Return the log in base 2 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log2(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // If upper 8 bits of 16-bit half set, add 8 to result\n r |= SafeCast.toUint((x >> r) > 0xff) << 3;\n // If upper 4 bits of 8-bit half set, add 4 to result\n r |= SafeCast.toUint((x >> r) > 0xf) << 2;\n\n // Shifts value right by the current result and use it as an index into this lookup table:\n //\n // | x (4 bits) | index | table[index] = MSB position |\n // |------------|---------|-----------------------------|\n // | 0000 | 0 | table[0] = 0 |\n // | 0001 | 1 | table[1] = 0 |\n // | 0010 | 2 | table[2] = 1 |\n // | 0011 | 3 | table[3] = 1 |\n // | 0100 | 4 | table[4] = 2 |\n // | 0101 | 5 | table[5] = 2 |\n // | 0110 | 6 | table[6] = 2 |\n // | 0111 | 7 | table[7] = 2 |\n // | 1000 | 8 | table[8] = 3 |\n // | 1001 | 9 | table[9] = 3 |\n // | 1010 | 10 | table[10] = 3 |\n // | 1011 | 11 | table[11] = 3 |\n // | 1100 | 12 | table[12] = 3 |\n // | 1101 | 13 | table[13] = 3 |\n // | 1110 | 14 | table[14] = 3 |\n // | 1111 | 15 | table[15] = 3 |\n //\n // The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.\n assembly (\"memory-safe\") {\n r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))\n }\n }\n\n /**\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log2(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);\n }\n }\n\n /**\n * @dev Return the log in base 10 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n */\n function log10(uint256 value) internal pure returns (uint256) {\n uint256 result = 0;\n unchecked {\n if (value >= 10 ** 64) {\n value /= 10 ** 64;\n result += 64;\n }\n if (value >= 10 ** 32) {\n value /= 10 ** 32;\n result += 32;\n }\n if (value >= 10 ** 16) {\n value /= 10 ** 16;\n result += 16;\n }\n if (value >= 10 ** 8) {\n value /= 10 ** 8;\n result += 8;\n }\n if (value >= 10 ** 4) {\n value /= 10 ** 4;\n result += 4;\n }\n if (value >= 10 ** 2) {\n value /= 10 ** 2;\n result += 2;\n }\n if (value >= 10 ** 1) {\n result += 1;\n }\n }\n return result;\n }\n\n /**\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log10(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);\n }\n }\n\n /**\n * @dev Return the log in base 256 of a positive value rounded towards zero.\n * Returns 0 if given 0.\n *\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n */\n function log256(uint256 x) internal pure returns (uint256 r) {\n // If value has upper 128 bits set, log2 result is at least 128\n r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;\n // If upper 64 bits of 128-bit half set, add 64 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;\n // If upper 32 bits of 64-bit half set, add 32 to result\n r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;\n // If upper 16 bits of 32-bit half set, add 16 to result\n r |= SafeCast.toUint((x >> r) > 0xffff) << 4;\n // Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8\n return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);\n }\n\n /**\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n * Returns 0 if given 0.\n */\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n unchecked {\n uint256 result = log256(value);\n return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);\n }\n }\n\n /**\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\n */\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\n return uint8(rounding) % 2 == 1;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SafeCast.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Wrappers over Solidity's uintXX/intXX/bool 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 */\nlibrary SafeCast {\n /**\n * @dev Value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\n\n /**\n * @dev An int value doesn't fit in an uint of `bits` size.\n */\n error SafeCastOverflowedIntToUint(int256 value);\n\n /**\n * @dev Value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\n\n /**\n * @dev An uint value doesn't fit in an int of `bits` size.\n */\n error SafeCastOverflowedUintToInt(uint256 value);\n\n /**\n * @dev Returns the downcasted uint248 from uint256, reverting on\n * overflow (when the input is greater than largest uint248).\n *\n * Counterpart to Solidity's `uint248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toUint248(uint256 value) internal pure returns (uint248) {\n if (value > type(uint248).max) {\n revert SafeCastOverflowedUintDowncast(248, value);\n }\n return uint248(value);\n }\n\n /**\n * @dev Returns the downcasted uint240 from uint256, reverting on\n * overflow (when the input is greater than largest uint240).\n *\n * Counterpart to Solidity's `uint240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toUint240(uint256 value) internal pure returns (uint240) {\n if (value > type(uint240).max) {\n revert SafeCastOverflowedUintDowncast(240, value);\n }\n return uint240(value);\n }\n\n /**\n * @dev Returns the downcasted uint232 from uint256, reverting on\n * overflow (when the input is greater than largest uint232).\n *\n * Counterpart to Solidity's `uint232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toUint232(uint256 value) internal pure returns (uint232) {\n if (value > type(uint232).max) {\n revert SafeCastOverflowedUintDowncast(232, value);\n }\n return uint232(value);\n }\n\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 if (value > type(uint224).max) {\n revert SafeCastOverflowedUintDowncast(224, value);\n }\n return uint224(value);\n }\n\n /**\n * @dev Returns the downcasted uint216 from uint256, reverting on\n * overflow (when the input is greater than largest uint216).\n *\n * Counterpart to Solidity's `uint216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toUint216(uint256 value) internal pure returns (uint216) {\n if (value > type(uint216).max) {\n revert SafeCastOverflowedUintDowncast(216, value);\n }\n return uint216(value);\n }\n\n /**\n * @dev Returns the downcasted uint208 from uint256, reverting on\n * overflow (when the input is greater than largest uint208).\n *\n * Counterpart to Solidity's `uint208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toUint208(uint256 value) internal pure returns (uint208) {\n if (value > type(uint208).max) {\n revert SafeCastOverflowedUintDowncast(208, value);\n }\n return uint208(value);\n }\n\n /**\n * @dev Returns the downcasted uint200 from uint256, reverting on\n * overflow (when the input is greater than largest uint200).\n *\n * Counterpart to Solidity's `uint200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toUint200(uint256 value) internal pure returns (uint200) {\n if (value > type(uint200).max) {\n revert SafeCastOverflowedUintDowncast(200, value);\n }\n return uint200(value);\n }\n\n /**\n * @dev Returns the downcasted uint192 from uint256, reverting on\n * overflow (when the input is greater than largest uint192).\n *\n * Counterpart to Solidity's `uint192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toUint192(uint256 value) internal pure returns (uint192) {\n if (value > type(uint192).max) {\n revert SafeCastOverflowedUintDowncast(192, value);\n }\n return uint192(value);\n }\n\n /**\n * @dev Returns the downcasted uint184 from uint256, reverting on\n * overflow (when the input is greater than largest uint184).\n *\n * Counterpart to Solidity's `uint184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toUint184(uint256 value) internal pure returns (uint184) {\n if (value > type(uint184).max) {\n revert SafeCastOverflowedUintDowncast(184, value);\n }\n return uint184(value);\n }\n\n /**\n * @dev Returns the downcasted uint176 from uint256, reverting on\n * overflow (when the input is greater than largest uint176).\n *\n * Counterpart to Solidity's `uint176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toUint176(uint256 value) internal pure returns (uint176) {\n if (value > type(uint176).max) {\n revert SafeCastOverflowedUintDowncast(176, value);\n }\n return uint176(value);\n }\n\n /**\n * @dev Returns the downcasted uint168 from uint256, reverting on\n * overflow (when the input is greater than largest uint168).\n *\n * Counterpart to Solidity's `uint168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toUint168(uint256 value) internal pure returns (uint168) {\n if (value > type(uint168).max) {\n revert SafeCastOverflowedUintDowncast(168, value);\n }\n return uint168(value);\n }\n\n /**\n * @dev Returns the downcasted uint160 from uint256, reverting on\n * overflow (when the input is greater than largest uint160).\n *\n * Counterpart to Solidity's `uint160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toUint160(uint256 value) internal pure returns (uint160) {\n if (value > type(uint160).max) {\n revert SafeCastOverflowedUintDowncast(160, value);\n }\n return uint160(value);\n }\n\n /**\n * @dev Returns the downcasted uint152 from uint256, reverting on\n * overflow (when the input is greater than largest uint152).\n *\n * Counterpart to Solidity's `uint152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toUint152(uint256 value) internal pure returns (uint152) {\n if (value > type(uint152).max) {\n revert SafeCastOverflowedUintDowncast(152, value);\n }\n return uint152(value);\n }\n\n /**\n * @dev Returns the downcasted uint144 from uint256, reverting on\n * overflow (when the input is greater than largest uint144).\n *\n * Counterpart to Solidity's `uint144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toUint144(uint256 value) internal pure returns (uint144) {\n if (value > type(uint144).max) {\n revert SafeCastOverflowedUintDowncast(144, value);\n }\n return uint144(value);\n }\n\n /**\n * @dev Returns the downcasted uint136 from uint256, reverting on\n * overflow (when the input is greater than largest uint136).\n *\n * Counterpart to Solidity's `uint136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toUint136(uint256 value) internal pure returns (uint136) {\n if (value > type(uint136).max) {\n revert SafeCastOverflowedUintDowncast(136, value);\n }\n return uint136(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 if (value > type(uint128).max) {\n revert SafeCastOverflowedUintDowncast(128, value);\n }\n return uint128(value);\n }\n\n /**\n * @dev Returns the downcasted uint120 from uint256, reverting on\n * overflow (when the input is greater than largest uint120).\n *\n * Counterpart to Solidity's `uint120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toUint120(uint256 value) internal pure returns (uint120) {\n if (value > type(uint120).max) {\n revert SafeCastOverflowedUintDowncast(120, value);\n }\n return uint120(value);\n }\n\n /**\n * @dev Returns the downcasted uint112 from uint256, reverting on\n * overflow (when the input is greater than largest uint112).\n *\n * Counterpart to Solidity's `uint112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toUint112(uint256 value) internal pure returns (uint112) {\n if (value > type(uint112).max) {\n revert SafeCastOverflowedUintDowncast(112, value);\n }\n return uint112(value);\n }\n\n /**\n * @dev Returns the downcasted uint104 from uint256, reverting on\n * overflow (when the input is greater than largest uint104).\n *\n * Counterpart to Solidity's `uint104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toUint104(uint256 value) internal pure returns (uint104) {\n if (value > type(uint104).max) {\n revert SafeCastOverflowedUintDowncast(104, value);\n }\n return uint104(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 if (value > type(uint96).max) {\n revert SafeCastOverflowedUintDowncast(96, value);\n }\n return uint96(value);\n }\n\n /**\n * @dev Returns the downcasted uint88 from uint256, reverting on\n * overflow (when the input is greater than largest uint88).\n *\n * Counterpart to Solidity's `uint88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toUint88(uint256 value) internal pure returns (uint88) {\n if (value > type(uint88).max) {\n revert SafeCastOverflowedUintDowncast(88, value);\n }\n return uint88(value);\n }\n\n /**\n * @dev Returns the downcasted uint80 from uint256, reverting on\n * overflow (when the input is greater than largest uint80).\n *\n * Counterpart to Solidity's `uint80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toUint80(uint256 value) internal pure returns (uint80) {\n if (value > type(uint80).max) {\n revert SafeCastOverflowedUintDowncast(80, value);\n }\n return uint80(value);\n }\n\n /**\n * @dev Returns the downcasted uint72 from uint256, reverting on\n * overflow (when the input is greater than largest uint72).\n *\n * Counterpart to Solidity's `uint72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toUint72(uint256 value) internal pure returns (uint72) {\n if (value > type(uint72).max) {\n revert SafeCastOverflowedUintDowncast(72, value);\n }\n return uint72(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 if (value > type(uint64).max) {\n revert SafeCastOverflowedUintDowncast(64, value);\n }\n return uint64(value);\n }\n\n /**\n * @dev Returns the downcasted uint56 from uint256, reverting on\n * overflow (when the input is greater than largest uint56).\n *\n * Counterpart to Solidity's `uint56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toUint56(uint256 value) internal pure returns (uint56) {\n if (value > type(uint56).max) {\n revert SafeCastOverflowedUintDowncast(56, value);\n }\n return uint56(value);\n }\n\n /**\n * @dev Returns the downcasted uint48 from uint256, reverting on\n * overflow (when the input is greater than largest uint48).\n *\n * Counterpart to Solidity's `uint48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toUint48(uint256 value) internal pure returns (uint48) {\n if (value > type(uint48).max) {\n revert SafeCastOverflowedUintDowncast(48, value);\n }\n return uint48(value);\n }\n\n /**\n * @dev Returns the downcasted uint40 from uint256, reverting on\n * overflow (when the input is greater than largest uint40).\n *\n * Counterpart to Solidity's `uint40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toUint40(uint256 value) internal pure returns (uint40) {\n if (value > type(uint40).max) {\n revert SafeCastOverflowedUintDowncast(40, value);\n }\n return uint40(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 if (value > type(uint32).max) {\n revert SafeCastOverflowedUintDowncast(32, value);\n }\n return uint32(value);\n }\n\n /**\n * @dev Returns the downcasted uint24 from uint256, reverting on\n * overflow (when the input is greater than largest uint24).\n *\n * Counterpart to Solidity's `uint24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toUint24(uint256 value) internal pure returns (uint24) {\n if (value > type(uint24).max) {\n revert SafeCastOverflowedUintDowncast(24, value);\n }\n return uint24(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 if (value > type(uint16).max) {\n revert SafeCastOverflowedUintDowncast(16, value);\n }\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 if (value > type(uint8).max) {\n revert SafeCastOverflowedUintDowncast(8, value);\n }\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 if (value < 0) {\n revert SafeCastOverflowedIntToUint(value);\n }\n return uint256(value);\n }\n\n /**\n * @dev Returns the downcasted int248 from int256, reverting on\n * overflow (when the input is less than smallest int248 or\n * greater than largest int248).\n *\n * Counterpart to Solidity's `int248` operator.\n *\n * Requirements:\n *\n * - input must fit into 248 bits\n */\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\n downcasted = int248(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(248, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int240 from int256, reverting on\n * overflow (when the input is less than smallest int240 or\n * greater than largest int240).\n *\n * Counterpart to Solidity's `int240` operator.\n *\n * Requirements:\n *\n * - input must fit into 240 bits\n */\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\n downcasted = int240(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(240, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int232 from int256, reverting on\n * overflow (when the input is less than smallest int232 or\n * greater than largest int232).\n *\n * Counterpart to Solidity's `int232` operator.\n *\n * Requirements:\n *\n * - input must fit into 232 bits\n */\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\n downcasted = int232(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(232, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int224 from int256, reverting on\n * overflow (when the input is less than smallest int224 or\n * greater than largest int224).\n *\n * Counterpart to Solidity's `int224` operator.\n *\n * Requirements:\n *\n * - input must fit into 224 bits\n */\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\n downcasted = int224(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(224, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int216 from int256, reverting on\n * overflow (when the input is less than smallest int216 or\n * greater than largest int216).\n *\n * Counterpart to Solidity's `int216` operator.\n *\n * Requirements:\n *\n * - input must fit into 216 bits\n */\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\n downcasted = int216(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(216, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int208 from int256, reverting on\n * overflow (when the input is less than smallest int208 or\n * greater than largest int208).\n *\n * Counterpart to Solidity's `int208` operator.\n *\n * Requirements:\n *\n * - input must fit into 208 bits\n */\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\n downcasted = int208(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(208, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int200 from int256, reverting on\n * overflow (when the input is less than smallest int200 or\n * greater than largest int200).\n *\n * Counterpart to Solidity's `int200` operator.\n *\n * Requirements:\n *\n * - input must fit into 200 bits\n */\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\n downcasted = int200(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(200, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int192 from int256, reverting on\n * overflow (when the input is less than smallest int192 or\n * greater than largest int192).\n *\n * Counterpart to Solidity's `int192` operator.\n *\n * Requirements:\n *\n * - input must fit into 192 bits\n */\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\n downcasted = int192(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(192, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int184 from int256, reverting on\n * overflow (when the input is less than smallest int184 or\n * greater than largest int184).\n *\n * Counterpart to Solidity's `int184` operator.\n *\n * Requirements:\n *\n * - input must fit into 184 bits\n */\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\n downcasted = int184(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(184, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int176 from int256, reverting on\n * overflow (when the input is less than smallest int176 or\n * greater than largest int176).\n *\n * Counterpart to Solidity's `int176` operator.\n *\n * Requirements:\n *\n * - input must fit into 176 bits\n */\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\n downcasted = int176(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(176, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int168 from int256, reverting on\n * overflow (when the input is less than smallest int168 or\n * greater than largest int168).\n *\n * Counterpart to Solidity's `int168` operator.\n *\n * Requirements:\n *\n * - input must fit into 168 bits\n */\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\n downcasted = int168(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(168, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int160 from int256, reverting on\n * overflow (when the input is less than smallest int160 or\n * greater than largest int160).\n *\n * Counterpart to Solidity's `int160` operator.\n *\n * Requirements:\n *\n * - input must fit into 160 bits\n */\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\n downcasted = int160(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(160, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int152 from int256, reverting on\n * overflow (when the input is less than smallest int152 or\n * greater than largest int152).\n *\n * Counterpart to Solidity's `int152` operator.\n *\n * Requirements:\n *\n * - input must fit into 152 bits\n */\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\n downcasted = int152(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(152, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int144 from int256, reverting on\n * overflow (when the input is less than smallest int144 or\n * greater than largest int144).\n *\n * Counterpart to Solidity's `int144` operator.\n *\n * Requirements:\n *\n * - input must fit into 144 bits\n */\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\n downcasted = int144(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(144, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int136 from int256, reverting on\n * overflow (when the input is less than smallest int136 or\n * greater than largest int136).\n *\n * Counterpart to Solidity's `int136` operator.\n *\n * Requirements:\n *\n * - input must fit into 136 bits\n */\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\n downcasted = int136(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(136, value);\n }\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 function toInt128(int256 value) internal pure returns (int128 downcasted) {\n downcasted = int128(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(128, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int120 from int256, reverting on\n * overflow (when the input is less than smallest int120 or\n * greater than largest int120).\n *\n * Counterpart to Solidity's `int120` operator.\n *\n * Requirements:\n *\n * - input must fit into 120 bits\n */\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\n downcasted = int120(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(120, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int112 from int256, reverting on\n * overflow (when the input is less than smallest int112 or\n * greater than largest int112).\n *\n * Counterpart to Solidity's `int112` operator.\n *\n * Requirements:\n *\n * - input must fit into 112 bits\n */\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\n downcasted = int112(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(112, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int104 from int256, reverting on\n * overflow (when the input is less than smallest int104 or\n * greater than largest int104).\n *\n * Counterpart to Solidity's `int104` operator.\n *\n * Requirements:\n *\n * - input must fit into 104 bits\n */\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\n downcasted = int104(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(104, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int96 from int256, reverting on\n * overflow (when the input is less than smallest int96 or\n * greater than largest int96).\n *\n * Counterpart to Solidity's `int96` operator.\n *\n * Requirements:\n *\n * - input must fit into 96 bits\n */\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\n downcasted = int96(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(96, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int88 from int256, reverting on\n * overflow (when the input is less than smallest int88 or\n * greater than largest int88).\n *\n * Counterpart to Solidity's `int88` operator.\n *\n * Requirements:\n *\n * - input must fit into 88 bits\n */\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\n downcasted = int88(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(88, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int80 from int256, reverting on\n * overflow (when the input is less than smallest int80 or\n * greater than largest int80).\n *\n * Counterpart to Solidity's `int80` operator.\n *\n * Requirements:\n *\n * - input must fit into 80 bits\n */\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\n downcasted = int80(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(80, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int72 from int256, reverting on\n * overflow (when the input is less than smallest int72 or\n * greater than largest int72).\n *\n * Counterpart to Solidity's `int72` operator.\n *\n * Requirements:\n *\n * - input must fit into 72 bits\n */\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\n downcasted = int72(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(72, value);\n }\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 function toInt64(int256 value) internal pure returns (int64 downcasted) {\n downcasted = int64(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(64, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int56 from int256, reverting on\n * overflow (when the input is less than smallest int56 or\n * greater than largest int56).\n *\n * Counterpart to Solidity's `int56` operator.\n *\n * Requirements:\n *\n * - input must fit into 56 bits\n */\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\n downcasted = int56(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(56, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int48 from int256, reverting on\n * overflow (when the input is less than smallest int48 or\n * greater than largest int48).\n *\n * Counterpart to Solidity's `int48` operator.\n *\n * Requirements:\n *\n * - input must fit into 48 bits\n */\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\n downcasted = int48(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(48, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int40 from int256, reverting on\n * overflow (when the input is less than smallest int40 or\n * greater than largest int40).\n *\n * Counterpart to Solidity's `int40` operator.\n *\n * Requirements:\n *\n * - input must fit into 40 bits\n */\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\n downcasted = int40(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(40, value);\n }\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 function toInt32(int256 value) internal pure returns (int32 downcasted) {\n downcasted = int32(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(32, value);\n }\n }\n\n /**\n * @dev Returns the downcasted int24 from int256, reverting on\n * overflow (when the input is less than smallest int24 or\n * greater than largest int24).\n *\n * Counterpart to Solidity's `int24` operator.\n *\n * Requirements:\n *\n * - input must fit into 24 bits\n */\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\n downcasted = int24(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(24, value);\n }\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 function toInt16(int256 value) internal pure returns (int16 downcasted) {\n downcasted = int16(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(16, value);\n }\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 function toInt8(int256 value) internal pure returns (int8 downcasted) {\n downcasted = int8(value);\n if (downcasted != value) {\n revert SafeCastOverflowedIntDowncast(8, value);\n }\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 if (value > uint256(type(int256).max)) {\n revert SafeCastOverflowedUintToInt(value);\n }\n return int256(value);\n }\n\n /**\n * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.\n */\n function toUint(bool b) internal pure returns (uint256 u) {\n assembly (\"memory-safe\") {\n u := iszero(iszero(b))\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/math/SignedMath.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.20;\n\nimport {SafeCast} from \"./SafeCast.sol\";\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n /**\n * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.\n *\n * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.\n * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute\n * one branch when needed, making this function more expensive.\n */\n function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {\n unchecked {\n // branchless ternary works because:\n // b ^ (a ^ b) == a\n // b ^ 0 == b\n return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));\n }\n }\n\n /**\n * @dev Returns the largest of two signed numbers.\n */\n function max(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a > b, a, b);\n }\n\n /**\n * @dev Returns the smallest of two signed numbers.\n */\n function min(int256 a, int256 b) internal pure returns (int256) {\n return ternary(a < b, a, b);\n }\n\n /**\n * @dev Returns the average of two signed numbers without overflow.\n * The result is rounded towards zero.\n */\n function average(int256 a, int256 b) internal pure returns (int256) {\n // Formula from the book \"Hacker's Delight\"\n int256 x = (a & b) + ((a ^ b) >> 1);\n return x + (int256(uint256(x) >> 255) & (a ^ b));\n }\n\n /**\n * @dev Returns the absolute unsigned value of a signed value.\n */\n function abs(int256 n) internal pure returns (uint256) {\n unchecked {\n // Formula from the \"Bit Twiddling Hacks\" by Sean Eron Anderson.\n // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,\n // taking advantage of the most significant (or \"sign\" bit) in two's complement representation.\n // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,\n // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).\n int256 mask = n >> 255;\n\n // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.\n return uint256((n + mask) ^ mask);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Panic.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Helper library for emitting standardized panic codes.\n *\n * ```solidity\n * contract Example {\n * using Panic for uint256;\n *\n * // Use any of the declared internal constants\n * function foo() { Panic.GENERIC.panic(); }\n *\n * // Alternatively\n * function foo() { Panic.panic(Panic.GENERIC); }\n * }\n * ```\n *\n * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].\n *\n * _Available since v5.1._\n */\n// slither-disable-next-line unused-state\nlibrary Panic {\n /// @dev generic / unspecified error\n uint256 internal constant GENERIC = 0x00;\n /// @dev used by the assert() builtin\n uint256 internal constant ASSERT = 0x01;\n /// @dev arithmetic underflow or overflow\n uint256 internal constant UNDER_OVERFLOW = 0x11;\n /// @dev division or modulo by zero\n uint256 internal constant DIVISION_BY_ZERO = 0x12;\n /// @dev enum conversion error\n uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;\n /// @dev invalid encoding in storage\n uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;\n /// @dev empty array pop\n uint256 internal constant EMPTY_ARRAY_POP = 0x31;\n /// @dev array out of bounds access\n uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;\n /// @dev resource error (too large allocation or too large array)\n uint256 internal constant RESOURCE_ERROR = 0x41;\n /// @dev calling invalid internal function\n uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;\n\n /// @dev Reverts with a panic code. Recommended to use with\n /// the internal constants with predefined codes.\n function panic(uint256 code) internal pure {\n assembly (\"memory-safe\") {\n mstore(0x00, 0x4e487b71)\n mstore(0x20, code)\n revert(0x1c, 0x24)\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Strings.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Strings.sol)\n\npragma solidity ^0.8.20;\n\nimport {Math} from \"./math/Math.sol\";\nimport {SafeCast} from \"./math/SafeCast.sol\";\nimport {SignedMath} from \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n using SafeCast for *;\n\n bytes16 private constant HEX_DIGITS = \"0123456789abcdef\";\n uint8 private constant ADDRESS_LENGTH = 20;\n uint256 private constant SPECIAL_CHARS_LOOKUP =\n (1 << 0x08) | // backspace\n (1 << 0x09) | // tab\n (1 << 0x0a) | // newline\n (1 << 0x0c) | // form feed\n (1 << 0x0d) | // carriage return\n (1 << 0x22) | // double quote\n (1 << 0x5c); // backslash\n\n /**\n * @dev The `value` string doesn't fit in the specified `length`.\n */\n error StringsInsufficientHexLength(uint256 value, uint256 length);\n\n /**\n * @dev The string being parsed contains characters that are not in scope of the given base.\n */\n error StringsInvalidChar();\n\n /**\n * @dev The string being parsed is not a properly formatted address.\n */\n error StringsInvalidAddressFormat();\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n */\n function toString(uint256 value) internal pure returns (string memory) {\n unchecked {\n uint256 length = Math.log10(value) + 1;\n string memory buffer = new string(length);\n uint256 ptr;\n assembly (\"memory-safe\") {\n ptr := add(add(buffer, 0x20), length)\n }\n while (true) {\n ptr--;\n assembly (\"memory-safe\") {\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\n }\n value /= 10;\n if (value == 0) break;\n }\n return buffer;\n }\n }\n\n /**\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\n */\n function toStringSigned(int256 value) internal pure returns (string memory) {\n return string.concat(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value)));\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n */\n function toHexString(uint256 value) internal pure returns (string memory) {\n unchecked {\n return toHexString(value, Math.log256(value) + 1);\n }\n }\n\n /**\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n */\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n uint256 localValue = value;\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_DIGITS[localValue & 0xf];\n localValue >>= 4;\n }\n if (localValue != 0) {\n revert StringsInsufficientHexLength(value, length);\n }\n return string(buffer);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\n * representation.\n */\n function toHexString(address addr) internal pure returns (string memory) {\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\n }\n\n /**\n * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal\n * representation, according to EIP-55.\n */\n function toChecksumHexString(address addr) internal pure returns (string memory) {\n bytes memory buffer = bytes(toHexString(addr));\n\n // hash the hex part of buffer (skip length + 2 bytes, length 40)\n uint256 hashValue;\n assembly (\"memory-safe\") {\n hashValue := shr(96, keccak256(add(buffer, 0x22), 40))\n }\n\n for (uint256 i = 41; i > 1; --i) {\n // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)\n if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {\n // case shift by xoring with 0x20\n buffer[i] ^= 0x20;\n }\n hashValue >>= 4;\n }\n return string(buffer);\n }\n\n /**\n * @dev Returns true if the two strings are equal.\n */\n function equal(string memory a, string memory b) internal pure returns (bool) {\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input) internal pure returns (uint256) {\n return parseUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[0-9]*`\n * - The result must fit into an `uint256` type\n */\n function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n uint256 result = 0;\n for (uint256 i = begin; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 9) return (false, 0);\n result *= 10;\n result += chr;\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a decimal string and returns the value as a `int256`.\n *\n * Requirements:\n * - The string must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input) internal pure returns (int256) {\n return parseInt(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `[-+]?[0-9]*`\n * - The result must fit in an `int256` type.\n */\n function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {\n (bool success, int256 value) = tryParseInt(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if\n * the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {\n return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);\n }\n\n uint256 private constant ABS_MIN_INT256 = 2 ** 255;\n\n /**\n * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid\n * character or if the result does not fit in a `int256`.\n *\n * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.\n */\n function tryParseInt(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, int256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseIntUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseIntUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, int256 value) {\n bytes memory buffer = bytes(input);\n\n // Check presence of a negative sign.\n bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n bool positiveSign = sign == bytes1(\"+\");\n bool negativeSign = sign == bytes1(\"-\");\n uint256 offset = (positiveSign || negativeSign).toUint();\n\n (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);\n\n if (absSuccess && absValue < ABS_MIN_INT256) {\n return (true, negativeSign ? -int256(absValue) : int256(absValue));\n } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {\n return (true, type(int256).min);\n } else return (false, 0);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as a `uint256`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input) internal pure returns (uint256) {\n return parseHexUint(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`\n * - The result must fit in an `uint256` type.\n */\n function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {\n (bool success, uint256 value) = tryParseHexUint(input, begin, end);\n if (!success) revert StringsInvalidChar();\n return value;\n }\n\n /**\n * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {\n return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an\n * invalid character.\n *\n * NOTE: This function will revert if the result does not fit in a `uint256`.\n */\n function tryParseHexUint(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, uint256 value) {\n if (end > bytes(input).length || begin > end) return (false, 0);\n return _tryParseHexUintUncheckedBounds(input, begin, end);\n }\n\n /**\n * @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that\n * `begin <= end <= input.length`. Other inputs would result in undefined behavior.\n */\n function _tryParseHexUintUncheckedBounds(\n string memory input,\n uint256 begin,\n uint256 end\n ) private pure returns (bool success, uint256 value) {\n bytes memory buffer = bytes(input);\n\n // skip 0x prefix if present\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 offset = hasPrefix.toUint() * 2;\n\n uint256 result = 0;\n for (uint256 i = begin + offset; i < end; ++i) {\n uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));\n if (chr > 15) return (false, 0);\n result *= 16;\n unchecked {\n // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).\n // This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.\n result += chr;\n }\n }\n return (true, result);\n }\n\n /**\n * @dev Parse a hexadecimal string (with or without \"0x\" prefix), and returns the value as an `address`.\n *\n * Requirements:\n * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input) internal pure returns (address) {\n return parseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and\n * `end` (excluded).\n *\n * Requirements:\n * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`\n */\n function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {\n (bool success, address value) = tryParseAddress(input, begin, end);\n if (!success) revert StringsInvalidAddressFormat();\n return value;\n }\n\n /**\n * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly\n * formatted address. See {parseAddress-string} requirements.\n */\n function tryParseAddress(string memory input) internal pure returns (bool success, address value) {\n return tryParseAddress(input, 0, bytes(input).length);\n }\n\n /**\n * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly\n * formatted address. See {parseAddress-string-uint256-uint256} requirements.\n */\n function tryParseAddress(\n string memory input,\n uint256 begin,\n uint256 end\n ) internal pure returns (bool success, address value) {\n if (end > bytes(input).length || begin > end) return (false, address(0));\n\n bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2(\"0x\"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty\n uint256 expectedLength = 40 + hasPrefix.toUint() * 2;\n\n // check that input is the correct length\n if (end - begin == expectedLength) {\n // length guarantees that this does not overflow, and value is at most type(uint160).max\n (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);\n return (s, address(uint160(v)));\n } else {\n return (false, address(0));\n }\n }\n\n function _tryParseChr(bytes1 chr) private pure returns (uint8) {\n uint8 value = uint8(chr);\n\n // Try to parse `chr`:\n // - Case 1: [0-9]\n // - Case 2: [a-f]\n // - Case 3: [A-F]\n // - otherwise not supported\n unchecked {\n if (value > 47 && value < 58) value -= 48;\n else if (value > 96 && value < 103) value -= 87;\n else if (value > 64 && value < 71) value -= 55;\n else return type(uint8).max;\n }\n\n return value;\n }\n\n /**\n * @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.\n *\n * WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.\n *\n * NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of\n * RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode\n * characters that are not in this range, but other tooling may provide different results.\n */\n function escapeJSON(string memory input) internal pure returns (string memory) {\n bytes memory buffer = bytes(input);\n bytes memory output = new bytes(2 * buffer.length); // worst case scenario\n uint256 outputLength = 0;\n\n for (uint256 i; i < buffer.length; ++i) {\n bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));\n if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {\n output[outputLength++] = \"\\\\\";\n if (char == 0x08) output[outputLength++] = \"b\";\n else if (char == 0x09) output[outputLength++] = \"t\";\n else if (char == 0x0a) output[outputLength++] = \"n\";\n else if (char == 0x0c) output[outputLength++] = \"f\";\n else if (char == 0x0d) output[outputLength++] = \"r\";\n else if (char == 0x5c) output[outputLength++] = \"\\\\\";\n else if (char == 0x22) {\n // solhint-disable-next-line quotes\n output[outputLength++] = '\"';\n }\n } else {\n output[outputLength++] = char;\n }\n }\n // write the actual length and deallocate unused memory\n assembly (\"memory-safe\") {\n mstore(output, outputLength)\n mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))\n }\n\n return string(output);\n }\n\n /**\n * @dev Reads a bytes32 from a bytes array without bounds checking.\n *\n * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the\n * assembly block as such would prevent some optimizations.\n */\n function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {\n // This is not memory safe in the general case, but all calls to this private function are within bounds.\n assembly (\"memory-safe\") {\n value := mload(add(add(buffer, 0x20), offset))\n }\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/CurvyVaultV2.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Initializable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport { UUPSUpgradeable } from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\nimport { EIP712Upgradeable } from \"@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol\";\nimport { OwnableUpgradeable } from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport { ECDSA } from \"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\";\nimport \"./ICurvyVault.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract CurvyVaultV2 is ICurvyVault, Initializable, EIP712Upgradeable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n\n //#region Constants\n\n uint256 private constant ETH_ID = 0x1;\n address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);\n\n uint96 private constant FEE_DENOMINATOR = 10000;\n\n bytes32 private constant CURVY_META_TRANSACTION_TYPE_HASH =\n keccak256(\n \"CurvyMetaTransaction(uint256 nonce,address from,address to,uint256 tokenId,uint256 amount,uint256 gasFee,uint8 metaTransactionType)\"\n );\n\n //#endregion\n\n //#region State variables\n\n mapping(address => mapping(uint256 => uint256)) private _balances;\n mapping(address => uint256) internal _nonces;\n\n // Number of ERC-20 tokens registered\n uint256 private _numberOfTokens;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(address => uint256) private _tokenAddressToTokenId;\n // Maps the ERC-20 contract addresses to their tokenId\n mapping(uint256 => address) private _tokenIdToTokenAddress;\n\n uint96 public depositFee;\n uint96 public transferFee;\n uint96 public withdrawalFee;\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n // Set native currency (ETH) in the token mappings\n _tokenAddressToTokenId[ETH_ADDRESS] = ETH_ID;\n _tokenIdToTokenAddress[ETH_ID] = ETH_ADDRESS;\n _numberOfTokens = 1;\n\n __EIP712_init(\"Curvy Privacy Vault\", \"2.0\");\n __Ownable_init(initialOwner);\n\n depositFee = 10;\n transferFee = 0; // Transfer fee is 0 because we are doing the fee collection for Agg dep/wit on CurvyAggregator.sol\n withdrawalFee = 20;\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Private functions\n\n function _validateSignature(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) internal {\n bytes32 structHash = keccak256(\n abi.encode(\n CURVY_META_TRANSACTION_TYPE_HASH,\n _nonces[metaTransaction.from],\n metaTransaction.from,\n metaTransaction.to,\n metaTransaction.tokenId,\n metaTransaction.amount,\n metaTransaction.gasFee,\n metaTransaction.metaTransactionType\n )\n );\n\n // Add domain data to the hash\n bytes32 hash = _hashTypedDataV4(structHash);\n\n // Check that the metaTransaction is signed by metaTransaction.from\n address signer = ECDSA.recover(hash, signature);\n require(signer == metaTransaction.from, \"CurvyVault#_validateSignature: Invalid signature!\");\n\n // Increment nonce\n _nonces[signer]++;\n emit NonceChange(signer, _nonces[signer]);\n }\n\n function _transfer(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n if (metaTransaction.to == address(0)) revert InvalidRecipient();\n if (metaTransaction.metaTransactionType != CurvyTypes.MetaTransactionType.Transfer)\n revert InvalidTransactionType();\n\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n _balances[metaTransaction.to][metaTransaction.tokenId] += metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n _balances[metaTransaction.to][metaTransaction.tokenId] -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (transferFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * transferFee) / FEE_DENOMINATOR;\n _balances[metaTransaction.from][metaTransaction.tokenId] -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n emit Transfer(metaTransaction.from, metaTransaction.to, metaTransaction.tokenId, metaTransaction.amount);\n }\n\n function _withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) private {\n require(metaTransaction.to != address(0), \"CurvyVault#_withdraw: Invalid withdraw recipient!\");\n require(\n metaTransaction.metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw,\n \"CurvyVault#withdraw: Wrong type for meta transaction!\"\n );\n\n // Burn wrapped tokens\n _balances[metaTransaction.from][metaTransaction.tokenId] -= metaTransaction.amount;\n\n uint256 amountAfterFees = metaTransaction.amount;\n\n // Refund gas if metaTransaction.gasFee is not 0\n if (metaTransaction.gasFee != 0) {\n amountAfterFees -= metaTransaction.gasFee;\n _balances[tx.origin][metaTransaction.tokenId] += metaTransaction.gasFee;\n }\n\n // Collect fees if they are set\n if (withdrawalFee != 0) {\n uint256 feeAmount = (metaTransaction.amount * withdrawalFee) / FEE_DENOMINATOR;\n amountAfterFees -= feeAmount;\n _balances[owner()][metaTransaction.tokenId] += feeAmount;\n }\n\n // Withdraw\n if (metaTransaction.tokenId != ETH_ID) {\n // We are withdrawing ERC20s\n address tokenAddress = _tokenIdToTokenAddress[metaTransaction.tokenId];\n IERC20(tokenAddress).safeTransfer(metaTransaction.to, amountAfterFees);\n } else {\n // We are withdrawing ETH\n (bool success, ) = metaTransaction.to.call{ value: amountAfterFees }(\"\");\n require(success, \"CurvyVault#_withdraw: ETH withdrawal failed!\");\n }\n\n emit Transfer(metaTransaction.from, address(0x0), metaTransaction.tokenId, metaTransaction.amount);\n }\n\n //#endregion\n\n //#region Owner functions\n\n function registerToken(address tokenAddress) external onlyOwner {\n require(_tokenAddressToTokenId[tokenAddress] == 0, \"CurvyVault#registerToken: Token already registered!\");\n\n // Register ID\n _numberOfTokens++;\n _tokenIdToTokenAddress[_numberOfTokens] = tokenAddress;\n _tokenAddressToTokenId[tokenAddress] = _numberOfTokens;\n\n // Emit registration event\n emit TokenRegistration(tokenAddress, _numberOfTokens);\n }\n\n function setFeeAmount(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee) external onlyOwner {\n if (metaTransactionType == CurvyTypes.MetaTransactionType.Deposit) {\n depositFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Transfer) {\n transferFee = fee;\n } else if (metaTransactionType == CurvyTypes.MetaTransactionType.Withdraw) {\n withdrawalFee = fee;\n } else {\n revert(\"CurvyVault#setFeeAmount: Unknown fee type!\");\n }\n\n emit FeeChange(metaTransactionType, fee);\n }\n\n //#endregion\n\n //#region Public functions\n\n receive() external payable {\n deposit(ETH_ADDRESS, msg.sender, msg.value, 0);\n }\n\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) public payable {\n if (to == address(0x0)) revert InvalidRecipient();\n\n uint256 tokenId;\n\n if (tokenAddress != ETH_ADDRESS) {\n // We are depositing ERC20\n require(msg.value == 0, \"CurvyVault#deposit: Don't send ETH with ERC20 deposit!\");\n\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), amount);\n\n tokenId = _tokenAddressToTokenId[tokenAddress];\n if (tokenId == 0) revert TokenNotRegistered();\n } else {\n // We are depositing ETH\n require(amount == msg.value, \"CurvyVault#deposit: Incorrect deposit value!\");\n tokenId = ETH_ID;\n }\n\n // Mint wrapped tokens\n _balances[to][tokenId] += amount;\n\n // Collect fees if they are set\n if (depositFee != 0) {\n uint256 feeAmount = (amount * depositFee) / FEE_DENOMINATOR;\n _balances[to][tokenId] -= feeAmount;\n _balances[owner()][tokenId] += feeAmount;\n }\n\n // Collect gas fee when we sponsored by sending you ETH for a primitive gas sponsorship (DEPRECATED)\n if (gasSponsorshipAmount != 0) {\n _balances[to][tokenId] -= gasSponsorshipAmount;\n _balances[owner()][tokenId] += gasSponsorshipAmount;\n }\n\n emit Transfer(address(0x0), to, tokenId, amount);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _transfer(metaTransaction);\n }\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _transfer(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction) external {\n if (msg.sender != metaTransaction.from) revert InvalidSender();\n if (metaTransaction.gasFee != 0) revert InvalidGasSponsorship();\n\n _withdraw(metaTransaction);\n }\n\n function withdraw(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external {\n _validateSignature(metaTransaction, signature);\n\n _withdraw(metaTransaction);\n }\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) public view returns (address tokenAddress) {\n tokenAddress = _tokenIdToTokenAddress[tokenId];\n require(tokenAddress != address(0x0), \"CurvyVault:#getIdAddress: Unregistered token!\");\n return tokenAddress;\n }\n\n function getTokenId(address tokenAddress) public view returns (uint256 tokenId) {\n tokenId = _tokenAddressToTokenId[tokenAddress];\n require(tokenId != 0, \"CurvyVault:#getTokenID: Unregistered token!\");\n return tokenId;\n }\n\n function getNumberOfTokens() external view returns (uint256) {\n return _numberOfTokens;\n }\n\n function balanceOf(address owner, uint256 tokenId) external view returns (uint256) {\n return _balances[owner][tokenId];\n }\n\n function balanceOfBatch(\n address[] memory owners,\n uint256[] memory tokenIds\n ) external view returns (uint256[] memory) {\n require(owners.length == tokenIds.length, \"CurvyVault#balanceOfBatch: Invalid array length!\");\n\n // Variables\n uint256[] memory batchBalances = new uint256[](owners.length);\n\n // Iterate over each owner and token ID\n for (uint256 i = 0; i < owners.length; i++) {\n batchBalances[i] = _balances[owners[i]][tokenIds[i]];\n }\n\n return batchBalances;\n }\n\n function getNonce(address _signer) external view returns (uint256 nonce) {\n return _nonces[_signer];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json
deleted file mode 100644
index 2ee23a8..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-f831a55edf25200e8002aad30b17b60b8646feea",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency) external;\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is purely the ABI-encoded struct\n * (e.g., it was encoded using abi.encode(bridgeData))\n */\n function _decodeBridgeDataStruct(bytes calldata bridgeCallData) internal pure returns (LiFiBridgeData memory) {\n return abi.decode(bridgeCallData, (LiFiBridgeData));\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency ) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, note.amount,currency );\n }\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeDataStruct(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, amount,currency );\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
deleted file mode 100644
index 2d07272..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ff75dfb780238c4350fe0a01a35ade7b3b98db03",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/portal/PortalFactory.sol": "project/contracts/portal/PortalFactory.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts@5.4.0/access/Ownable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../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 * The initial owner is set to the address provided by the deployer. This can\n * 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 /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n constructor(address initialOwner) {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\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 the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Context.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\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 function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n\n //#region Errors\n\n error PortalNotRegistered();\n error NoteNotScheduledForDeposit();\n error InvalidNotesRoot();\n error InvalidProof();\n error CurrentNoteTreeRootMismatch();\n error CurrentNullifierTreeRootMismatch();\n error InvalidWithdrawProof();\n\n //#endregion\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface IPortal {\n //#region Errors\n\n error InvalidOwnerHashOrExitBridgeData();\n error InvalidLiFiAddress();\n error InvalidRecoveryAddress();\n error InvalidLiFiReceiver();\n error InvalidLiFiDestinationChain();\n error InvalidOwnerHash();\n error InsufficientAmountForLiFiBridging();\n error InsufficientBalanceForLiFiBridging();\n error InvalidSignatureOrTamperedData();\n error BridgeCallFailed();\n\n //#endregion\n\n //#region Events\n\n /// @notice Emitted when a shielding attempt fails\n event ShieldingFailed(uint256 indexed ownerHash, address indexed token, uint256 amount, string reason);\n\n //#endregion\n\n //#region Structs\n\n struct LiFiBridgeData {\n bytes32 transactionId;\n string bridge;\n string integrator;\n address referrer;\n address sendingAssetId;\n address receiver;\n uint256 minAmount;\n uint256 destinationChainId;\n bool hasSourceSwaps;\n bool hasDestinationCall;\n }\n\n //#endregion\n\n //#region Public functions\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAgrgegatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external;\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency) external;\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency) external;\n\n /**\n * @notice Used by the user to recover funds from the Portal.\n * @dev This is typically used when auto-shielding fails or if funds are accidentally sent to the Portal address.\n * @param tokenAddress The address of the token to recover.\n * @param to The address to send the recovered funds to.\n */\n function recover(address tokenAddress, address to) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n //#region Errors\n\n error UnsupportedShielding();\n error DeploymentFailed();\n error UnsupportedBridging();\n\n //#endregion\n\n //#region Public functions\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address exitAddress, uint256 exitChainId, address recovery) external pure returns (bytes memory);\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function getExitPortalAddress(address exitAddress, uint256 exitChainId, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployEntryBridgePortal(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address currency,\n address recovery\n ) external;\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) external;\n\n //#endregion\n}\n"
- },
- "project/contracts/portal/Portal.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"../aggregator-alpha/ICurvyAggregatorAlpha.sol\";\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {SafeERC20, IERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {IPortal} from \"./IPortal.sol\";\nimport {SingleUse} from \"../utils/SingleUse.sol\";\n\ncontract Portal is IPortal, SingleUse {\n using SafeERC20 for IERC20;\n\n uint256 private _ownerHash;\n address private _exitAddress;\n uint256 private _exitChainId;\n\n address private constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n uint256 private constant AGGREGATOR_CHAIN_ID = 42161;\n\n ICurvyAggregatorAlpha public curvyAggregator;\n ICurvyVault public curvyVault;\n\n address public recovery;\n\n modifier onlyRecovery() {\n require(msg.sender == recovery, \"Portal: Only recovery\");\n _;\n }\n\n constructor(uint256 ownerHash, address exitAddress, uint256 exitChainId, address _recovery) {\n // TODO: add fee for deployment\n if (_recovery == address(0)) revert InvalidRecoveryAddress();\n if ((ownerHash == 0) == (exitAddress == address(0)) || (ownerHash == 0) == (exitChainId == 0)) revert InvalidOwnerHashOrExitBridgeData();\n\n _ownerHash = ownerHash;\n _exitAddress = exitAddress;\n _exitChainId = exitChainId;\n recovery = _recovery;\n }\n\n /**\n * @dev Use this if the bridgeCallData is a full transaction payload\n * where the struct is the very first parameter after the 4-byte function selector.\n */\n function _decodeBridgeData(bytes calldata txData) internal pure returns (LiFiBridgeData memory) {\n // The first 4 bytes are the function selector, so we skip them\n return abi.decode(txData[4:], (LiFiBridgeData));\n }\n\n function _bridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency ) internal {\n if (lifiDiamondAddress == address(0)) {\n revert InvalidLiFiAddress();\n }\n \n if (currency != address(0) && currency != NATIVE_ETH) {\n IERC20 token = IERC20(currency);\n\n uint256 balance = token.balanceOf(address(this));\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n token.forceApprove(lifiDiamondAddress, amount);\n (bool success,) = lifiDiamondAddress.call(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n } else {\n uint256 balance = address(this).balance;\n if (balance < amount) {\n revert InsufficientBalanceForLiFiBridging();\n }\n\n (bool success,) = lifiDiamondAddress.call{value: amount}(bridgeData);\n\n if (!success) {\n revert BridgeCallFailed();\n }\n }\n }\n\n function shield(\n CurvyTypes.Note memory note,\n address curvyAggregatorAlphaProxyAddress,\n address curvyVaultProxyAddress\n ) external onlyOnce {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n curvyAggregator = ICurvyAggregatorAlpha(curvyAggregatorAlphaProxyAddress);\n curvyVault = ICurvyVault(curvyVaultProxyAddress);\n\n address tokenAddress;\n try curvyVault.getTokenAddress(note.token) returns (address _tokenAddress) {\n tokenAddress = _tokenAddress;\n } catch {\n emit ShieldingFailed(note.ownerHash, tokenAddress, note.amount, \"Failed to get token address from vault\");\n // Here we just do a return because we want the deployment to pass so that the user can call the recover method.\n return;\n }\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).forceApprove(address(curvyAggregator), note.amount);\n curvyAggregator.autoShield(note, tokenAddress);\n } else {\n curvyAggregator.autoShield{value: note.amount}(note, tokenAddress);\n }\n }\n\n function recover(address tokenAddress, address to) external onlyRecovery {\n if (tokenAddress == NATIVE_ETH) {\n uint256 balance = address(this).balance;\n (bool success,) = to.call{value: balance}(\"\");\n require(success, \"Portal: ETH transfer failed\");\n } else {\n IERC20 token = IERC20(tokenAddress);\n uint256 balance = token.balanceOf(address(this));\n token.safeTransfer(to, balance);\n }\n }\n\n function entryBridge(address lifiDiamondAddress, bytes calldata bridgeData, CurvyTypes.Note memory note, address currency)\n external\n onlyOnce\n {\n if (note.ownerHash != _ownerHash) {\n revert InvalidOwnerHash();\n }\n\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != address(this)) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != AGGREGATOR_CHAIN_ID) {\n revert InvalidLiFiDestinationChain();\n }\n\n if (data.minAmount > note.amount) {\n revert InsufficientAmountForLiFiBridging();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, note.amount,currency );\n }\n\n function exitBridge(address lifiDiamondAddress, bytes calldata bridgeData, uint256 amount, address currency)\n external\n onlyOnce\n {\n LiFiBridgeData memory data = _decodeBridgeData(bridgeData);\n\n if (data.receiver != _exitAddress) {\n revert InvalidLiFiReceiver();\n }\n\n if (data.destinationChainId != _exitChainId) {\n revert InvalidLiFiDestinationChain();\n }\n\n _bridge(lifiDiamondAddress, bridgeData, amount,currency );\n }\n}\n"
- },
- "project/contracts/portal/PortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { Ownable } from \"@openzeppelin/contracts/access/Ownable.sol\";\n\nimport { IPortal } from \"./IPortal.sol\";\nimport { IPortalFactory } from \"./IPortalFactory.sol\";\nimport { Portal } from \"./Portal.sol\";\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ncontract PortalFactory is IPortalFactory, Ownable {\n bytes32 private _salt = keccak256(abi.encodePacked(\"curvy-portal-factory-salt\"));\n\n address private _curvyVaultProxyAddress;\n address private _curvyAggregatorAlphaProxyAddress;\n address private _lifiDiamondAddress;\n\n // Portals checked for compliance and deployed\n mapping(address => bool) private _registeredPortals;\n\n constructor(address initialOwner) Ownable(initialOwner) {}\n\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external onlyOwner returns (bool) {\n if (curvyVaultProxyAddress != address(0)) {\n _curvyVaultProxyAddress = curvyVaultProxyAddress;\n }\n\n if (curvyAggregatorAlphaProxyAddress != address(0)) {\n _curvyAggregatorAlphaProxyAddress = curvyAggregatorAlphaProxyAddress;\n }\n\n if (lifiDiamondAddress != address(0)) {\n _lifiDiamondAddress = lifiDiamondAddress;\n }\n\n return true;\n }\n\n function getCreationCode(\n uint256 ownerHash,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public pure returns (bytes memory) {\n bytes memory bytecode = type(Portal).creationCode;\n bytes memory encodedArgs = abi.encode(ownerHash, exitAddress, exitChainId, recovery);\n return abi.encodePacked(bytecode, encodedArgs);\n }\n\n function getEntryPortalAddress(uint256 ownerHash, address recovery) public view returns (address) {\n bytes memory code = getCreationCode(ownerHash, address(0), 0, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function getExitPortalAddress(\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public view returns (address) {\n bytes memory code = getCreationCode(0, exitAddress, exitChainId, recovery);\n bytes32 hash = keccak256(abi.encodePacked(bytes1(0xff), address(this), _salt, keccak256(code)));\n return address(uint160(uint256(hash)));\n }\n\n function portalIsRegistered(address portalAddress) public view returns (bool) {\n return _registeredPortals[portalAddress];\n }\n\n function deployShieldPortal(CurvyTypes.Note memory note, address recovery) public payable onlyOwner {\n if (_curvyVaultProxyAddress == address(0) || _curvyAggregatorAlphaProxyAddress == address(0)) {\n revert UnsupportedShielding();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n _registeredPortals[portalAddress] = true;\n\n IPortal(portalAddress).shield(note, _curvyAggregatorAlphaProxyAddress, _curvyVaultProxyAddress);\n }\n\n function deployEntryBridgePortal(bytes calldata bridgeData, CurvyTypes.Note memory note, address currency, address recovery) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(note.ownerHash, address(0), 0, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).entryBridge(_lifiDiamondAddress, bridgeData, note, currency);\n }\n\n function deployExitBridgePortal(\n bytes calldata bridgeData,\n uint256 amount,\n address currency,\n address exitAddress,\n uint256 exitChainId,\n address recovery\n ) public {\n if (_lifiDiamondAddress == address(0)) {\n revert UnsupportedBridging();\n }\n\n bytes memory creationCodeWithArgs = getCreationCode(0, exitAddress, exitChainId, recovery);\n address portalAddress;\n\n bytes32 salt = _salt;\n\n assembly {\n // Deploy using CREATE2: value in wei, data pointer, data length, salt\n portalAddress := create2(\n callvalue(), // value to send\n add(creationCodeWithArgs, 0x20), // pointer to start of bytecode\n mload(creationCodeWithArgs), // length of bytecode (will load what we skip in previous argument)\n salt // the salt\n )\n }\n if (portalAddress == address(0)) {\n revert DeploymentFailed();\n }\n\n IPortal(portalAddress).exitBridge(_lifiDiamondAddress, bridgeData, amount, currency);\n }\n}\n"
- },
- "project/contracts/utils/SingleUse.sol": {
- "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\ncontract SingleUse {\n bool private _used;\n\n modifier onlyOnce() {\n require(!_used, \"SingleUse: Already used\");\n _;\n _used = true;\n }\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n\n struct FeeUpdate {\n uint96 depositFee;\n uint96 withdrawalFee;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport {CurvyTypes} from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd.json b/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd.json
deleted file mode 100644
index 74d5a07..0000000
--- a/ignition/deployments/staging_sepolia/build-info/solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd.json
+++ /dev/null
@@ -1,115 +0,0 @@
-{
- "_format": "hh3-sol-build-info-1",
- "id": "solc-0_8_28-ffce441fffd7e29eb732f3ee471a608738832edd",
- "solcVersion": "0.8.28",
- "solcLongVersion": "0.8.28+commit.7893614a",
- "userSourceNameMap": {
- "contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol": "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol"
- },
- "input": {
- "language": "Solidity",
- "settings": {
- "evmVersion": "cancun",
- "optimizer": {
- "enabled": true,
- "runs": 200
- },
- "outputSelection": {
- "*": {
- "": [
- "ast"
- ],
- "*": [
- "abi",
- "evm.bytecode",
- "evm.deployedBytecode",
- "evm.methodIdentifiers",
- "metadata"
- ]
- }
- },
- "remappings": [
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts-upgradeable/=npm/@openzeppelin/contracts-upgradeable@5.4.0/",
- "project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.4.0/"
- ]
- },
- "sources": {
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/access/OwnableUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {ContextUpgradeable} from \"../utils/ContextUpgradeable.sol\";\nimport {Initializable} from \"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\n struct OwnableStorage {\n address _owner;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Ownable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\n\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\n assembly {\n $.slot := OwnableStorageLocation\n }\n }\n\n /**\n * @dev The caller account is not authorized to perform an operation.\n */\n error OwnableUnauthorizedAccount(address account);\n\n /**\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\n */\n error OwnableInvalidOwner(address owner);\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n */\n function __Ownable_init(address initialOwner) internal onlyInitializing {\n __Ownable_init_unchained(initialOwner);\n }\n\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\n if (initialOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\n _transferOwnership(initialOwner);\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n OwnableStorage storage $ = _getOwnableStorage();\n return $._owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n if (owner() != _msgSender()) {\n revert OwnableUnauthorizedAccount(_msgSender());\n }\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling 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 if (newOwner == address(0)) {\n revert OwnableInvalidOwner(address(0));\n }\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 OwnableStorage storage $ = _getOwnableStorage();\n address oldOwner = $._owner;\n $._owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/Initializable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\n *\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\n * reused. This mechanism prevents re-execution of each \"step\" but allows the creation of new initialization steps in\n * case an upgrade adds a module that needs to be initialized.\n *\n * For example:\n *\n * [.hljs-theme-light.nopadding]\n * ```solidity\n * contract MyToken is ERC20Upgradeable {\n * function initialize() initializer public {\n * __ERC20_init(\"MyToken\", \"MTK\");\n * }\n * }\n *\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\n * function initializeV2() reinitializer(2) public {\n * __ERC20Permit_init(\"MyToken\");\n * }\n * }\n * ```\n *\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\n *\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\n *\n * [CAUTION]\n * ====\n * Avoid leaving a contract uninitialized.\n *\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\n *\n * [.hljs-theme-light.nopadding]\n * ```\n * /// @custom:oz-upgrades-unsafe-allow constructor\n * constructor() {\n * _disableInitializers();\n * }\n * ```\n * ====\n */\nabstract contract Initializable {\n /**\n * @dev Storage of the initializable contract.\n *\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\n * when using with upgradeable contracts.\n *\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\n */\n struct InitializableStorage {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n uint64 _initialized;\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool _initializing;\n }\n\n // keccak256(abi.encode(uint256(keccak256(\"openzeppelin.storage.Initializable\")) - 1)) & ~bytes32(uint256(0xff))\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\n\n /**\n * @dev The contract is already initialized.\n */\n error InvalidInitialization();\n\n /**\n * @dev The contract is not initializing.\n */\n error NotInitializing();\n\n /**\n * @dev Triggered when the contract has been initialized or reinitialized.\n */\n event Initialized(uint64 version);\n\n /**\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\n * `onlyInitializing` functions can be used to initialize parent contracts.\n *\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\n * production.\n *\n * Emits an {Initialized} event.\n */\n modifier initializer() {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n // Cache values to avoid duplicated sloads\n bool isTopLevelCall = !$._initializing;\n uint64 initialized = $._initialized;\n\n // Allowed calls:\n // - initialSetup: the contract is not in the initializing state and no previous version was\n // initialized\n // - construction: the contract is initialized at version 1 (no reinitialization) and the\n // current contract is just being deployed\n bool initialSetup = initialized == 0 && isTopLevelCall;\n bool construction = initialized == 1 && address(this).code.length == 0;\n\n if (!initialSetup && !construction) {\n revert InvalidInitialization();\n }\n $._initialized = 1;\n if (isTopLevelCall) {\n $._initializing = true;\n }\n _;\n if (isTopLevelCall) {\n $._initializing = false;\n emit Initialized(1);\n }\n }\n\n /**\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\n * used to initialize parent contracts.\n *\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\n * are added through upgrades and that require initialization.\n *\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\n * cannot be nested. If one is invoked in the context of another, execution will revert.\n *\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\n * a contract, executing them in the right order is up to the developer or operator.\n *\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\n *\n * Emits an {Initialized} event.\n */\n modifier reinitializer(uint64 version) {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing || $._initialized >= version) {\n revert InvalidInitialization();\n }\n $._initialized = version;\n $._initializing = true;\n _;\n $._initializing = false;\n emit Initialized(version);\n }\n\n /**\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\n */\n modifier onlyInitializing() {\n _checkInitializing();\n _;\n }\n\n /**\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\n */\n function _checkInitializing() internal view virtual {\n if (!_isInitializing()) {\n revert NotInitializing();\n }\n }\n\n /**\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\n * through proxies.\n *\n * Emits an {Initialized} event the first time it is successfully executed.\n */\n function _disableInitializers() internal virtual {\n // solhint-disable-next-line var-name-mixedcase\n InitializableStorage storage $ = _getInitializableStorage();\n\n if ($._initializing) {\n revert InvalidInitialization();\n }\n if ($._initialized != type(uint64).max) {\n $._initialized = type(uint64).max;\n emit Initialized(type(uint64).max);\n }\n }\n\n /**\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\n */\n function _getInitializedVersion() internal view returns (uint64) {\n return _getInitializableStorage()._initialized;\n }\n\n /**\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\n */\n function _isInitializing() internal view returns (bool) {\n return _getInitializableStorage()._initializing;\n }\n\n /**\n * @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.\n *\n * NOTE: Consider following the ERC-7201 formula to derive storage locations.\n */\n function _initializableStorageSlot() internal pure virtual returns (bytes32) {\n return INITIALIZABLE_STORAGE;\n }\n\n /**\n * @dev Returns a pointer to the storage namespace.\n */\n // solhint-disable-next-line var-name-mixedcase\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\n bytes32 slot = _initializableStorageSlot();\n assembly {\n $.slot := slot\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/proxy/utils/UUPSUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/UUPSUpgradeable.sol)\n\npragma solidity ^0.8.22;\n\nimport {IERC1822Proxiable} from \"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\";\nimport {ERC1967Utils} from \"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\";\nimport {Initializable} from \"./Initializable.sol\";\n\n/**\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\n *\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\n * `UUPSUpgradeable` with a custom implementation of upgrades.\n *\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\n */\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\n address private immutable __self = address(this);\n\n /**\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\n * If the getter returns `\"5.0.0\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\n * during an upgrade.\n */\n string public constant UPGRADE_INTERFACE_VERSION = \"5.0.0\";\n\n /**\n * @dev The call is from an unauthorized context.\n */\n error UUPSUnauthorizedCallContext();\n\n /**\n * @dev The storage `slot` is unsupported as a UUID.\n */\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\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 ERC-1967) 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 ERC-1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\n * fail.\n */\n modifier onlyProxy() {\n _checkProxy();\n _;\n }\n\n /**\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\n * callable on the implementing contract but not through proxies.\n */\n modifier notDelegated() {\n _checkNotDelegated();\n _;\n }\n\n function __UUPSUpgradeable_init() internal onlyInitializing {\n }\n\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\n }\n /**\n * @dev Implementation of the ERC-1822 {proxiableUUID} function. This returns the storage slot used by the\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\n */\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\n return ERC1967Utils.IMPLEMENTATION_SLOT;\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 * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\n _authorizeUpgrade(newImplementation);\n _upgradeToAndCallUUPS(newImplementation, data);\n }\n\n /**\n * @dev Reverts if the execution is not performed via delegatecall or the execution\n * context is not of a proxy with an ERC-1967 compliant implementation pointing to self.\n */\n function _checkProxy() internal view virtual {\n if (\n address(this) == __self || // Must be called through delegatecall\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\n ) {\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Reverts if the execution is performed via delegatecall.\n * See {notDelegated}.\n */\n function _checkNotDelegated() internal view virtual {\n if (address(this) != __self) {\n // Must not be called through delegatecall\n revert UUPSUnauthorizedCallContext();\n }\n }\n\n /**\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\n * {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 onlyOwner {}\n * ```\n */\n function _authorizeUpgrade(address newImplementation) internal virtual;\n\n /**\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\n *\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\n * is expected to be the implementation slot in ERC-1967.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\n revert UUPSUnsupportedProxiableUUID(slot);\n }\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\n } catch {\n // The implementation is not UUPS\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts-upgradeable@5.4.0/utils/ContextUpgradeable.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\nimport {Initializable} from \"../proxy/utils/Initializable.sol\";\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract ContextUpgradeable is Initializable {\n function __Context_init() internal onlyInitializing {\n }\n\n function __Context_init_unchained() internal onlyInitializing {\n }\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/draft-IERC1822.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/draft-IERC1822.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev ERC-1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\n * proxy whose upgrades are fully controlled by the current implementation.\n */\ninterface IERC1822Proxiable {\n /**\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\n * address.\n *\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\n * function revert if invoked through a proxy.\n */\n function proxiableUUID() external view returns (bytes32);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1363.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)\n\npragma solidity >=0.6.2;\n\nimport {IERC20} from \"./IERC20.sol\";\nimport {IERC165} from \"./IERC165.sol\";\n\n/**\n * @title IERC1363\n * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].\n *\n * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract\n * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.\n */\ninterface IERC1363 is IERC20, IERC165 {\n /*\n * Note: the ERC-165 identifier for this interface is 0xb0202a11.\n * 0xb0202a11 ===\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 * bytes4(keccak256('approveAndCall(address,uint256)')) ^\n * bytes4(keccak256('approveAndCall(address,uint256,bytes)'))\n */\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism\n * and then calls {IERC1363Receiver-onTransferReceived} on `to`.\n * @param from The address which you want to send tokens from.\n * @param to The address which you want to transfer to.\n * @param value The amount of tokens to be transferred.\n * @param data Additional data with no specified format, sent in call to `to`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value) external returns (bool);\n\n /**\n * @dev Sets a `value` amount of tokens as the allowance of `spender` over the\n * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.\n * @param spender The address which will spend the funds.\n * @param value The amount of tokens to be spent.\n * @param data Additional data with no specified format, sent in call to `spender`.\n * @return A boolean value indicating whether the operation succeeded unless throwing.\n */\n function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC165} from \"../utils/introspection/IERC165.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC1967.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1967.sol)\n\npragma solidity >=0.4.11;\n\n/**\n * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.\n */\ninterface IERC1967 {\n /**\n * @dev Emitted when the implementation is upgraded.\n */\n event Upgraded(address indexed implementation);\n\n /**\n * @dev Emitted when the admin account has changed.\n */\n event AdminChanged(address previousAdmin, address newAdmin);\n\n /**\n * @dev Emitted when the beacon is changed.\n */\n event BeaconUpgraded(address indexed beacon);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/interfaces/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)\n\npragma solidity >=0.4.16;\n\nimport {IERC20} from \"../token/ERC20/IERC20.sol\";\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/beacon/IBeacon.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/beacon/IBeacon.sol)\n\npragma solidity >=0.4.16;\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 * {UpgradeableBeacon} will check that this address is a contract.\n */\n function implementation() external view returns (address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/proxy/ERC1967/ERC1967Utils.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (proxy/ERC1967/ERC1967Utils.sol)\n\npragma solidity ^0.8.21;\n\nimport {IBeacon} from \"../beacon/IBeacon.sol\";\nimport {IERC1967} from \"../../interfaces/IERC1967.sol\";\nimport {Address} from \"../../utils/Address.sol\";\nimport {StorageSlot} from \"../../utils/StorageSlot.sol\";\n\n/**\n * @dev This library provides getters and event emitting update functions for\n * https://eips.ethereum.org/EIPS/eip-1967[ERC-1967] slots.\n */\nlibrary ERC1967Utils {\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\n\n /**\n * @dev The `implementation` of the proxy is invalid.\n */\n error ERC1967InvalidImplementation(address implementation);\n\n /**\n * @dev The `admin` of the proxy is invalid.\n */\n error ERC1967InvalidAdmin(address admin);\n\n /**\n * @dev The `beacon` of the proxy is invalid.\n */\n error ERC1967InvalidBeacon(address beacon);\n\n /**\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\n */\n error ERC1967NonPayable();\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 ERC-1967 implementation slot.\n */\n function _setImplementation(address newImplementation) private {\n if (newImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(newImplementation);\n }\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\n }\n\n /**\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-Upgraded} event.\n */\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\n _setImplementation(newImplementation);\n emit IERC1967.Upgraded(newImplementation);\n\n if (data.length > 0) {\n Address.functionDelegateCall(newImplementation, data);\n } else {\n _checkNonPayable();\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.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\n\n /**\n * @dev Returns the current admin.\n *\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by ERC-1967) using\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\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 ERC-1967 admin slot.\n */\n function _setAdmin(address newAdmin) private {\n if (newAdmin == address(0)) {\n revert ERC1967InvalidAdmin(address(0));\n }\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\n }\n\n /**\n * @dev Changes the admin of the proxy.\n *\n * Emits an {IERC1967-AdminChanged} event.\n */\n function changeAdmin(address newAdmin) internal {\n emit IERC1967.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 the keccak-256 hash of \"eip1967.proxy.beacon\" subtracted by 1.\n */\n // solhint-disable-next-line private-vars-leading-underscore\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\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 ERC-1967 beacon slot.\n */\n function _setBeacon(address newBeacon) private {\n if (newBeacon.code.length == 0) {\n revert ERC1967InvalidBeacon(newBeacon);\n }\n\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\n\n address beaconImplementation = IBeacon(newBeacon).implementation();\n if (beaconImplementation.code.length == 0) {\n revert ERC1967InvalidImplementation(beaconImplementation);\n }\n }\n\n /**\n * @dev Change the beacon and trigger a setup call if data is nonempty.\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\n * to avoid stuck value in the contract.\n *\n * Emits an {IERC1967-BeaconUpgraded} event.\n *\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\n * efficiency.\n */\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\n _setBeacon(newBeacon);\n emit IERC1967.BeaconUpgraded(newBeacon);\n\n if (data.length > 0) {\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\n } else {\n _checkNonPayable();\n }\n }\n\n /**\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\n * if an upgrade doesn't perform an initialization call.\n */\n function _checkNonPayable() private {\n if (msg.value > 0) {\n revert ERC1967NonPayable();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/IERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-20 standard as defined in the ERC.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the value of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the value of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves a `value` amount of tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 value) 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 a `value` amount of tokens as the allowance of `spender` over the\n * 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 value) external returns (bool);\n\n /**\n * @dev Moves a `value` amount of tokens from `from` to `to` using the\n * allowance mechanism. `value` 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 from, address to, uint256 value) external returns (bool);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/token/ERC20/utils/SafeERC20.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)\n\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"../IERC20.sol\";\nimport {IERC1363} from \"../../../interfaces/IERC1363.sol\";\n\n/**\n * @title SafeERC20\n * @dev Wrappers around ERC-20 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 /**\n * @dev An operation with an ERC-20 token failed.\n */\n error SafeERC20FailedOperation(address token);\n\n /**\n * @dev Indicates a failed `decreaseAllowance` request.\n */\n error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);\n\n /**\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n */\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\n */\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\n _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));\n }\n\n /**\n * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.\n */\n function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {\n return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));\n }\n\n /**\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\n uint256 oldAllowance = token.allowance(address(this), spender);\n forceApprove(token, spender, oldAllowance + value);\n }\n\n /**\n * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no\n * value, non-reverting calls are assumed to be successful.\n *\n * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the \"client\"\n * smart contract uses ERC-7674 to set temporary allowances, then the \"client\" smart contract should avoid using\n * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract\n * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.\n */\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {\n unchecked {\n uint256 currentAllowance = token.allowance(address(this), spender);\n if (currentAllowance < requestedDecrease) {\n revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);\n }\n forceApprove(token, spender, currentAllowance - requestedDecrease);\n }\n }\n\n /**\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\n * to be set to zero before setting it to a non-zero value, such as USDT.\n *\n * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function\n * only sets the \"standard\" allowance. Any temporary allowance will remain active, in addition to the value being\n * set here.\n */\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\n bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));\n\n if (!_callOptionalReturnBool(token, approvalCall)) {\n _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));\n _callOptionalReturn(token, approvalCall);\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n safeTransfer(token, to, value);\n } else if (!token.transferAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target\n * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * Reverts if the returned value is other than `true`.\n */\n function transferFromAndCallRelaxed(\n IERC1363 token,\n address from,\n address to,\n uint256 value,\n bytes memory data\n ) internal {\n if (to.code.length == 0) {\n safeTransferFrom(token, from, to, value);\n } else if (!token.transferFromAndCall(from, to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\n }\n }\n\n /**\n * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no\n * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when\n * targeting contracts.\n *\n * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.\n * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}\n * once without retrying, and relies on the returned value to be true.\n *\n * Reverts if the returned value is other than `true`.\n */\n function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {\n if (to.code.length == 0) {\n forceApprove(token, to, value);\n } else if (!token.approveAndCall(to, value, data)) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.\n */\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n // bubble errors\n if iszero(success) {\n let ptr := mload(0x40)\n returndatacopy(ptr, 0, returndatasize())\n revert(ptr, returndatasize())\n }\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n\n if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {\n revert SafeERC20FailedOperation(address(token));\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 * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.\n */\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\n bool success;\n uint256 returnSize;\n uint256 returnValue;\n assembly (\"memory-safe\") {\n success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)\n returnSize := returndatasize()\n returnValue := mload(0)\n }\n return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Address.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/Address.sol)\n\npragma solidity ^0.8.20;\n\nimport {Errors} from \"./Errors.sol\";\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev There's no code at `target` (it is not a contract).\n */\n error AddressEmptyCode(address target);\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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n if (address(this).balance < amount) {\n revert Errors.InsufficientBalance(address(this).balance, amount);\n }\n\n (bool success, bytes memory returndata) = recipient.call{value: amount}(\"\");\n if (!success) {\n _revert(returndata);\n }\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 or custom error, it is bubbled\n * up by this function (like regular Solidity function calls). However, if\n * the call reverted with no returned reason, this function reverts with a\n * {Errors.FailedCall} error.\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 function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0);\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 function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n if (address(this).balance < value) {\n revert Errors.InsufficientBalance(address(this).balance, value);\n }\n (bool success, bytes memory returndata) = target.call{value: value}(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n (bool success, bytes memory returndata) = target.staticcall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return verifyCallResultFromTarget(target, success, returndata);\n }\n\n /**\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\n * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case\n * of an unsuccessful call.\n */\n function verifyCallResultFromTarget(\n address target,\n bool success,\n bytes memory returndata\n ) internal view returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n // only check if target is a contract if the call was successful and the return data is empty\n // otherwise we already know that it was a contract\n if (returndata.length == 0 && target.code.length == 0) {\n revert AddressEmptyCode(target);\n }\n return returndata;\n }\n }\n\n /**\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\n * revert reason or with a default {Errors.FailedCall} error.\n */\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\n if (!success) {\n _revert(returndata);\n } else {\n return returndata;\n }\n }\n\n /**\n * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}.\n */\n function _revert(bytes memory returndata) private pure {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n assembly (\"memory-safe\") {\n revert(add(returndata, 0x20), mload(returndata))\n }\n } else {\n revert Errors.FailedCall();\n }\n }\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/Errors.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Collection of common custom errors used in multiple contracts\n *\n * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library.\n * It is recommended to avoid relying on the error API for critical functionality.\n *\n * _Available since v5.1._\n */\nlibrary Errors {\n /**\n * @dev The ETH balance of the account is not enough to perform the operation.\n */\n error InsufficientBalance(uint256 balance, uint256 needed);\n\n /**\n * @dev A call to an address target failed. The target may have reverted.\n */\n error FailedCall();\n\n /**\n * @dev The deployment failed.\n */\n error FailedDeployment();\n\n /**\n * @dev A necessary precompile is missing.\n */\n error MissingPrecompile(address);\n}\n"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/introspection/IERC165.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)\n\npragma solidity >=0.4.16;\n\n/**\n * @dev Interface of the ERC-165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[ERC].\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[ERC 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"
- },
- "npm/@openzeppelin/contracts@5.4.0/utils/StorageSlot.sol": {
- "content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\n\npragma solidity ^0.8.20;\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 ERC-1967 implementation slot:\n * ```solidity\n * contract ERC1967 {\n * // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.\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(newImplementation.code.length > 0);\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\n * }\n * }\n * ```\n *\n * TIP: Consider using this library along with {SlotDerivation}.\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 struct Int256Slot {\n int256 value;\n }\n\n struct StringSlot {\n string value;\n }\n\n struct BytesSlot {\n bytes 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 (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `BooleanSlot` with member `value` located at `slot`.\n */\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.\n */\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Uint256Slot` with member `value` located at `slot`.\n */\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `Int256Slot` with member `value` located at `slot`.\n */\n function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns a `StringSlot` with member `value` located at `slot`.\n */\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\n */\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n\n /**\n * @dev Returns a `BytesSlot` with member `value` located at `slot`.\n */\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := slot\n }\n }\n\n /**\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\n */\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\n assembly (\"memory-safe\") {\n r.slot := store.slot\n }\n }\n}\n"
- },
- "project/contracts/aggregator-alpha/CurvyAggregatorAlphaV4.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport \"../portal/IPortalFactory.sol\";\nimport {\nICurvyInsertionVerifier,\nICurvyAggregationVerifier,\nICurvyWithdrawVerifier\n} from \"./verifiers/ICurvyVerifiersAlpha.sol\";\nimport {CurvyTypes} from \"../utils/Types.sol\";\nimport {ICurvyAggregatorAlpha} from \"./ICurvyAggregatorAlpha.sol\";\n\nimport {ICurvyVault} from \"../vault/ICurvyVault.sol\";\nimport {Initializable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\";\nimport {OwnableUpgradeable} from \"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\";\nimport {PoseidonT4} from \"./utils/PoseidonT4.sol\";\nimport { SafeERC20, IERC20 } from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\nimport {UUPSUpgradeable} from \"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\";\n\n/**\n * @title CurvyAggregator\n * @author Curvy Protocol (https://curvy.box)\n * @dev Curvy's Aggregator contract.\n */\ncontract CurvyAggregatorAlphaV4 is ICurvyAggregatorAlpha, Initializable, UUPSUpgradeable, OwnableUpgradeable {\n using SafeERC20 for IERC20;\n //#region Events\n\n event DepositedNote(uint256 noteId);\n\n //#endregion\n\n address constant NATIVE_ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n //#region State variables\n\n // Maximum number of notes to commit in deposit\n uint256 public maxDeposits;\n // Maximum number of aggregations\n uint256 public maxAggregations;\n // Maximum number of withdrawals\n uint256 public maxWithdrawals;\n\n // Queue of note ids waiting for deposit commitment\n mapping(uint256 => bool) private _pendingIdsQueue;\n\n // Root of the tree containing all notes.\n uint256 private _notesTreeRoot;\n // Root of the tree contaiing all of the used nullifiers.\n uint256 private _nullifiersTreeRoot;\n\n // Curvy's vault contract\n ICurvyVault public curvyVault;\n\n //Curvy's insertion verifier.\n ICurvyInsertionVerifier public insertionVerifier;\n //Curvy's aggregation verifier.\n ICurvyAggregationVerifier public aggregationVerifier;\n //Curvy's withdraw verifier.\n ICurvyWithdrawVerifier public withdrawVerifier;\n\n // Curvy's portal factory contract;\n IPortalFactory public portalFactory;\n\n\n //#endregion\n\n //#region Init functions\n\n /// @custom:oz-upgrades-unsafe-allow constructor\n constructor() {\n _disableInitializers();\n }\n\n function initialize(address initialOwner) public initializer {\n __Ownable_init(initialOwner);\n }\n\n function _authorizeUpgrade(address) internal override onlyOwner {}\n\n //#endregion\n\n //#region Owner functions\n\n function updateConfig(CurvyTypes.AggregatorConfigurationUpdateV2 memory _update) external onlyOwner returns (bool) {\n if (_update.insertionVerifier != address(0)) {\n insertionVerifier = ICurvyInsertionVerifier(_update.insertionVerifier);\n }\n if (_update.aggregationVerifier != address(0)) {\n aggregationVerifier = ICurvyAggregationVerifier(_update.aggregationVerifier);\n }\n if (_update.withdrawVerifier != address(0)) {\n withdrawVerifier = ICurvyWithdrawVerifier(_update.withdrawVerifier);\n }\n if (_update.curvyVault != address(0)) {\n curvyVault = ICurvyVault(_update.curvyVault);\n }\n if (_update.portalFactory != address(0)) {\n portalFactory = IPortalFactory(_update.portalFactory);\n }\n if (_update.maxDeposits != 0) {\n maxDeposits = _update.maxDeposits;\n }\n if (_update.maxAggregations != 0) {\n maxAggregations = _update.maxAggregations;\n }\n if (_update.maxWithdrawals != 0) {\n maxWithdrawals = _update.maxWithdrawals;\n }\n\n return true;\n }\n\n function reset(uint256 newNotesTreeRoot, uint256 newNullifiersTreeRoot) external onlyOwner {\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n }\n\n //#endregions\n\n //#region Public functions\n\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable {\n // Only allow auto shielding of portals that were deployed through the portalFactory\n require(portalFactory.portalIsRegistered(msg.sender), \"CurvyAggregator: portal is not registered\");\n\n if (tokenAddress != address(0) && tokenAddress != NATIVE_ETH) {\n IERC20(tokenAddress).safeTransferFrom(msg.sender, address(this), note.amount);\n IERC20(tokenAddress).forceApprove(address(curvyVault), note.amount);\n }\n\n curvyVault.deposit{ value: msg.value }(tokenAddress, address(this), note.amount, 0);\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function depositNote(address from, CurvyTypes.Note memory note, bytes memory signature) public {\n // TODO: Gas fee\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n from,\n address(this),\n note.token,\n note.amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n ),\n signature\n );\n\n uint256 noteId = PoseidonT4.hash([note.ownerHash, note.amount, note.token]);\n\n _pendingIdsQueue[noteId] = true;\n\n emit DepositedNote(noteId);\n }\n\n function commitDepositBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[4] memory publicInputs\n ) public returns (bool success) {\n for (uint256 i = 0; i < maxDeposits; i += 1) {\n uint256 noteId = publicInputs[i];\n if (noteId != 0) {\n require(\n _pendingIdsQueue[noteId],\n \"CurvyAggregator#commitDepositBatch: Note not scheduled for deposit!\"\n );\n delete _pendingIdsQueue[noteId];\n }\n }\n\n uint256 numPublicInputs = publicInputs.length;\n\n require(\n _notesTreeRoot == publicInputs[numPublicInputs - 2],\n \"CurvyAggregator#commitDepositBatch: Invalid notes root!\"\n );\n\n require(\n insertionVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitDepositBatch: Invalid proof!\"\n );\n\n _notesTreeRoot = publicInputs[numPublicInputs - 1];\n\n return true;\n }\n\n function commitAggregationBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[14] memory publicInputs\n ) public returns (bool) {\n uint256 oldNullifiersTreeRoot = publicInputs[2 * maxAggregations + 1];\n uint256 newNullifiersTreeRoot = publicInputs[2 * maxAggregations + 2];\n uint256 oldNotesTreeRoot = publicInputs[2 * maxAggregations + 3];\n uint256 newNotesTreeRoot = publicInputs[2 * maxAggregations + 4];\n\n require(\n _notesTreeRoot == oldNotesTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current note tree root mismatch!\"\n );\n require(\n _nullifiersTreeRoot == oldNullifiersTreeRoot,\n \"CurvyAggregator#commitAggregationBatch: Current nullifier tree root mismatch!\"\n );\n\n require(\n aggregationVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitAggregationBatch: Invalid proof!\"\n );\n\n // Update the roots of the trees\n _notesTreeRoot = newNotesTreeRoot;\n _nullifiersTreeRoot = newNullifiersTreeRoot;\n\n return true;\n }\n\n function commitWithdrawalBatch(\n uint256[2] memory proof_a,\n uint256[2][2] memory proof_b,\n uint256[2] memory proof_c,\n uint256[10] memory publicInputs\n ) public returns (bool) {\n require(\n publicInputs[3] == _nullifiersTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current nullifier tree root mismatch!\"\n );\n require(\n publicInputs[2] == _notesTreeRoot,\n \"CurvyAggregator#commitWithdrawalBatch: Current note tree root mismatch!\"\n );\n\n require(\n withdrawVerifier.verifyProof(proof_a, proof_b, proof_c, publicInputs),\n \"CurvyAggregator#commitWithdrawalBatch: Invalid withdraw proof!\"\n );\n\n // Update the root of the nullifier tree\n _nullifiersTreeRoot = publicInputs[0];\n\n uint256 numPublicInputs = publicInputs.length;\n\n // Transfer withdrawals\n for (uint256 i = 0; i < maxWithdrawals; i += 1) {\n uint256 amount = publicInputs[4 + i];\n address destinationAddress = address(uint160(publicInputs[4 + maxWithdrawals + i]));\n if (amount != 0) {\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n destinationAddress,\n publicInputs[numPublicInputs - 1],\n amount,\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n }\n }\n\n // Fee collection\n curvyVault.transfer(\n CurvyTypes.MetaTransaction(\n address(this),\n owner(),\n publicInputs[numPublicInputs - 1],\n publicInputs[1],\n 0,\n CurvyTypes.MetaTransactionType.Transfer\n )\n );\n\n return true;\n }\n\n //#endregion\n\n //#region View functions\n\n function getNoteTreeRoot() external view returns (uint256) {\n return _notesTreeRoot;\n }\n\n function getNullifierTreeRoot() external view returns (uint256) {\n return _nullifiersTreeRoot;\n }\n\n function noteInQueue(uint256 noteId) external view returns (bool) {\n return _pendingIdsQueue[noteId];\n }\n\n //#endregion\n}\n"
- },
- "project/contracts/aggregator-alpha/ICurvyAggregatorAlpha.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyAggregatorAlpha {\n function autoShield(CurvyTypes.Note memory note, address tokenAddress) external payable;\n}\n"
- },
- "project/contracts/aggregator-alpha/utils/PoseidonT4.sol": {
- "content": "/// SPDX-License-Identifier: MIT\npragma solidity ^0.8.28;\n\nlibrary PoseidonT4 {\n uint constant F = 21888242871839275222246405745257275088548364400416034343698204186575808495617;\n\n uint constant M00 = 0x236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad;\n uint constant M01 = 0x2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c;\n uint constant M02 = 0x2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed42;\n uint constant M03 = 0x2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e7677;\n uint constant M10 = 0x277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19;\n uint constant M11 = 0x083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e;\n uint constant M12 = 0x2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab;\n uint constant M13 = 0x23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e;\n uint constant M20 = 0x023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62;\n uint constant M21 = 0x1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f;\n uint constant M22 = 0x0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b608;\n uint constant M23 = 0x014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd6;\n uint constant M30 = 0x1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c1;\n uint constant M31 = 0x0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af;\n uint constant M32 = 0x03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb;\n uint constant M33 = 0x00c15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a;\n\n // See here for a simplified implementation: https://github.com/vimwitch/poseidon-solidity/blob/e57becdabb65d99fdc586fe1e1e09e7108202d53/contracts/Poseidon.sol#L40\n // Inspired by: https://github.com/iden3/circomlibjs/blob/v0.0.8/src/poseidon_slow.js\n function hash(uint[3] memory) public pure returns (uint) {\n assembly {\n // memory 0x00 to 0x3f (64 bytes) is scratch space for hash algos\n // we can use it in inline assembly because we're not calling e.g. keccak\n //\n // memory 0x80 is the default offset for free memory\n // we take inputs as a memory argument so we simply write over\n // that memory after loading it\n\n // we have the following variables at memory offsets\n // state0 - 0x00\n // state1 - 0x20\n // state2 - 0x80\n // state3 - 0xa0\n // state4 - ...\n\n function pRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n function fRound(c0, c1, c2, c3) {\n let state0 := add(mload(0x0), c0)\n let state1 := add(mload(0x20), c1)\n let state2 := add(mload(0x80), c2)\n let state3 := add(mload(0xa0), c3)\n\n let p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F))\n mstore(0x20, mod(add(add(add(mulmod(state0, M01, F), mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F))\n mstore(0x80, mod(add(add(add(mulmod(state0, M02, F), mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F))\n mstore(0xa0, mod(add(add(add(mulmod(state0, M03, F), mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F))\n }\n\n // scratch variable for exponentiation\n let p\n\n {\n // load the inputs from memory\n let state1 := add(mod(mload(0x80), F), 0x265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d6)\n let state2 := add(mod(mload(0xa0), F), 0x199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa)\n let state3 := add(mod(mload(0xc0), F), 0x157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf8)\n\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n // state0 pow5mod and M[] multiplications are pre-calculated\n\n mstore(\n 0x0,\n mod(add(add(add(0x211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7, mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F)\n )\n mstore(\n 0x20,\n mod(add(add(add(0x19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a, mulmod(state1, M11, F)), mulmod(state2, M21, F)), mulmod(state3, M31, F)), F)\n )\n mstore(\n 0x80,\n mod(add(add(add(0x21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf, mulmod(state1, M12, F)), mulmod(state2, M22, F)), mulmod(state3, M32, F)), F)\n )\n mstore(\n 0xa0,\n mod(add(add(add(0x26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be3, mulmod(state1, M13, F)), mulmod(state2, M23, F)), mulmod(state3, M33, F)), F)\n )\n }\n\n fRound(\n 0x2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac94902,\n 0x0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e,\n 0x251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b996,\n 0x13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e\n )\n\n fRound(\n 0x0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd4738,\n 0x011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca06,\n 0x0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f367549,\n 0x04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b\n )\n\n fRound(\n 0x0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e8,\n 0x259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f,\n 0x28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a1,\n 0x0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd6941432447\n )\n\n pRound(\n 0x0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf,\n 0x123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf811,\n 0x26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee75,\n 0x1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c5\n )\n\n pRound(\n 0x1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0,\n 0x011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e5574,\n 0x2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c,\n 0x2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a5\n )\n\n pRound(\n 0x0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d,\n 0x192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b,\n 0x1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d85,\n 0x179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb\n )\n\n pRound(\n 0x29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c,\n 0x225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e08,\n 0x064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd59,\n 0x10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b87\n )\n\n pRound(\n 0x0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c,\n 0x1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb,\n 0x1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b,\n 0x2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db\n )\n\n pRound(\n 0x2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926,\n 0x062100eb485db06269655cf186a68532985275428450359adc99cec6960711b8,\n 0x0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b,\n 0x20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d\n )\n\n pRound(\n 0x25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a,\n 0x23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b,\n 0x22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e0,\n 0x26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce5\n )\n\n pRound(\n 0x070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9,\n 0x12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da,\n 0x248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d729,\n 0x1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa\n )\n\n pRound(\n 0x28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf,\n 0x0094975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e,\n 0x04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d65,\n 0x2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde187\n )\n\n pRound(\n 0x2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3,\n 0x03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b0,\n 0x00b7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b64,\n 0x159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a\n )\n\n pRound(\n 0x1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f,\n 0x1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d,\n 0x2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f,\n 0x0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb173\n )\n\n pRound(\n 0x02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16,\n 0x0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed705,\n 0x0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a,\n 0x22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea9\n )\n\n pRound(\n 0x25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16,\n 0x1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d0,\n 0x2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e5,\n 0x2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d83505\n )\n\n pRound(\n 0x044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d,\n 0x227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a5319025,\n 0x02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a6800355,\n 0x0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac\n )\n\n pRound(\n 0x1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38,\n 0x0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e5,\n 0x1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c,\n 0x25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f\n )\n\n pRound(\n 0x0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a,\n 0x13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a96,\n 0x2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce,\n 0x21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f959\n )\n\n pRound(\n 0x05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b,\n 0x0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a4,\n 0x0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf,\n 0x09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f1455\n )\n\n pRound(\n 0x0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335,\n 0x2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b,\n 0x1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df,\n 0x176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c404\n )\n\n pRound(\n 0x2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db,\n 0x226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a,\n 0x14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def,\n 0x2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c7\n )\n\n pRound(\n 0x2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7,\n 0x0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c29,\n 0x03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f3,\n 0x0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c\n )\n\n pRound(\n 0x203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78,\n 0x1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa9146,\n 0x0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa,\n 0x00780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef363182185\n )\n\n pRound(\n 0x10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5,\n 0x10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e8,\n 0x00544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac16,\n 0x222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c\n )\n\n pRound(\n 0x2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5,\n 0x062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b,\n 0x06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf04746,\n 0x04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d\n )\n\n pRound(\n 0x13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a,\n 0x011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f1,\n 0x0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae,\n 0x14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f1364\n )\n\n pRound(\n 0x1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106,\n 0x278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b607,\n 0x16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d58259,\n 0x2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a\n )\n\n pRound(\n 0x29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8,\n 0x15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c984,\n 0x16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf,\n 0x02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe6769250042025\n )\n\n pRound(\n 0x05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119,\n 0x1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a42,\n 0x0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de8990,\n 0x1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec\n )\n\n pRound(\n 0x25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d,\n 0x09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb9650,\n 0x2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d0,\n 0x0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf\n )\n\n pRound(\n 0x25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2,\n 0x2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f62,\n 0x1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f83529,\n 0x24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d0056\n )\n\n pRound(\n 0x25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74,\n 0x23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d,\n 0x06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f5,\n 0x2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f63925\n )\n\n pRound(\n 0x15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5,\n 0x265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e,\n 0x13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be,\n 0x17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd\n )\n\n pRound(\n 0x21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d,\n 0x18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c,\n 0x2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e88,\n 0x2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e\n )\n\n pRound(\n 0x277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7,\n 0x0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe5,\n 0x0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c,\n 0x11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f5\n )\n\n pRound(\n 0x224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6,\n 0x0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb824,\n 0x221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f421,\n 0x30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad4\n )\n\n pRound(\n 0x23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0,\n 0x2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b,\n 0x0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc,\n 0x1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b31\n )\n\n pRound(\n 0x26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3,\n 0x22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d2,\n 0x174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d7,\n 0x1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b87\n )\n\n pRound(\n 0x1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1,\n 0x0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade457,\n 0x29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e,\n 0x2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c875526\n )\n\n pRound(\n 0x12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2,\n 0x2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac706364113,\n 0x1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f,\n 0x0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad725\n )\n\n pRound(\n 0x07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492,\n 0x08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a3,\n 0x2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e,\n 0x1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a\n )\n\n pRound(\n 0x18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb,\n 0x2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d19,\n 0x2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff,\n 0x265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e\n )\n\n pRound(\n 0x2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c,\n 0x094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf60417,\n 0x2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b8,\n 0x01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf5\n )\n\n pRound(\n 0x0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb,\n 0x154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc74,\n 0x27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d028772,\n 0x2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd806461\n )\n\n pRound(\n 0x301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71,\n 0x298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc,\n 0x1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa95,\n 0x0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c737\n )\n\n pRound(\n 0x0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279,\n 0x0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee,\n 0x1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d,\n 0x01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b\n )\n\n pRound(\n 0x2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32,\n 0x23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c4,\n 0x19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d,\n 0x2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe59\n )\n\n pRound(\n 0x2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267,\n 0x0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b35,\n 0x19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb0,\n 0x0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c8\n )\n\n pRound(\n 0x16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca,\n 0x240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b,\n 0x0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af,\n 0x2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d\n )\n\n pRound(\n 0x166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6,\n 0x18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f,\n 0x089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c37702,\n 0x242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d1\n )\n\n pRound(\n 0x174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b,\n 0x17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b,\n 0x1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b2,\n 0x0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e961\n )\n\n pRound(\n 0x2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f,\n 0x12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec6,\n 0x292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e,\n 0x00ccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d158\n )\n\n pRound(\n 0x185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b,\n 0x14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f,\n 0x0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e,\n 0x1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e8\n )\n\n pRound(\n 0x0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024,\n 0x2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c8,\n 0x05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c014604,\n 0x29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c008\n )\n\n pRound(\n 0x2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314,\n 0x1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc,\n 0x1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b,\n 0x1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f\n )\n\n pRound(\n 0x1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5,\n 0x191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c,\n 0x006e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b,\n 0x0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d\n )\n\n pRound(\n 0x25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d,\n 0x12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a,\n 0x16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae,\n 0x0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc\n )\n\n pRound(\n 0x1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089,\n 0x03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b76,\n 0x11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde54,\n 0x13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc824\n )\n\n fRound(\n 0x0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b,\n 0x1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db4,\n 0x2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e,\n 0x2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec\n )\n\n fRound(\n 0x2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb387,\n 0x065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc3394,\n 0x2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd607368,\n 0x1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b\n )\n\n fRound(\n 0x027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd,\n 0x2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb,\n 0x0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f,\n 0x00b4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd79078\n )\n\n {\n let state0 := add(mload(0x0), 0x1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd5)\n let state1 := add(mload(0x20), 0x12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6)\n let state2 := add(mload(0x80), 0x13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db)\n let state3 := add(mload(0xa0), 0x163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d5)\n\n p := mulmod(state0, state0, F)\n state0 := mulmod(mulmod(p, p, F), state0, F)\n p := mulmod(state1, state1, F)\n state1 := mulmod(mulmod(p, p, F), state1, F)\n p := mulmod(state2, state2, F)\n state2 := mulmod(mulmod(p, p, F), state2, F)\n p := mulmod(state3, state3, F)\n state3 := mulmod(mulmod(p, p, F), state3, F)\n\n mstore(0x0, mod(mod(add(add(add(mulmod(state0, M00, F), mulmod(state1, M10, F)), mulmod(state2, M20, F)), mulmod(state3, M30, F)), F), F))\n return(0, 0x20)\n }\n }\n }\n}"
- },
- "project/contracts/aggregator-alpha/verifiers/ICurvyVerifiersAlpha.sol": {
- "content": "// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.28;\n\n/**\n * @title CurvyVerifiers interfaces\n * @author Curvy Protocol (https://curvy.box)\n * @dev Wrapper arround Curvy's Verifiers contracts where interfaces are manually created.\n */\n\n/**\n * @notice Interface for the Curvy Insertion Verifier.\n */\ninterface ICurvyInsertionVerifier {\n /**\n * @notice Verifies a proof for inserting a note into the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[4] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Withdraw Verifier.\n */\ninterface ICurvyWithdrawVerifier {\n /**\n * @notice Verifies a proof for withdrawing a note from the note tree.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[10] memory input)\n external\n view\n returns (bool r);\n}\n\n/**\n * @notice Interface for the Curvy Aggregation Verifier.\n */\ninterface ICurvyAggregationVerifier {\n /**\n * @notice Verifies a proof for aggregating notes.\n * @param a The first part of the proof.\n * @param b The second part of the proof.\n * @param c The third part of the proof.\n * @param input The public input to the proof.\n * @return r True if the proof is valid, false otherwise.\n */\n function verifyProof(uint256[2] memory a, uint256[2][2] memory b, uint256[2] memory c, uint256[14] memory input)\n external\n view\n returns (bool r);\n}"
- },
- "project/contracts/portal/IPortalFactory.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.28;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface IPortalFactory {\n function updateConfig(\n address curvyVaultProxyAddress,\n address curvyAggregatorAlphaProxyAddress,\n address lifiDiamondAddress\n ) external returns (bool);\n\n function getCreationCode(uint256 ownerHash, address recovery) external pure returns (bytes memory);\n\n function getPortalAddress(uint256 ownerHash, address recovery) external view returns (address);\n\n function portalIsRegistered(address portalAddress) external view returns (bool);\n\n function deployAndShield(CurvyTypes.Note memory note, address recovery) external payable;\n\n function deployAndBridge(\n bytes calldata bridgeData,\n CurvyTypes.Note memory note,\n address tokenAddress,\n address recovery\n ) external;\n}\n"
- },
- "project/contracts/utils/Types.sol": {
- "content": "// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.10;\n\nlibrary CurvyTypes {\n enum MetaTransactionType {\n Withdraw,\n Transfer,\n Deposit\n }\n\n struct MetaTransaction {\n // + nonce when signing\n address from;\n address to;\n uint256 tokenId;\n uint256 amount;\n uint256 gasFee;\n MetaTransactionType metaTransactionType;\n }\n\n struct AggregatorConfigurationUpdate {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct AggregatorConfigurationUpdateV2 {\n address insertionVerifier;\n address aggregationVerifier;\n address withdrawVerifier;\n address curvyVault;\n address portalFactory;\n uint256 maxDeposits;\n uint256 maxWithdrawals;\n uint256 maxAggregations;\n }\n\n struct Note {\n uint256 ownerHash;\n uint256 token;\n uint256 amount;\n }\n}\n"
- },
- "project/contracts/vault/ICurvyVault.sol": {
- "content": "// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.8.10;\n\nimport { CurvyTypes } from \"../utils/Types.sol\";\n\ninterface ICurvyVault {\n //#region Events\n\n event Transfer(address indexed from, address indexed to, uint256 token_id, uint256 amount);\n event TokenRegistration(address token_address, uint256 token_id);\n event NonceChange(address indexed signer, uint256 newNonce);\n event FeeChange(CurvyTypes.MetaTransactionType metaTransactionType, uint96 fee);\n event CurvyAggregatorAddressChange(address curvyAggregator);\n\n //#endregion\n\n //#region Errors\n\n error InvalidRecipient();\n error InvalidSender();\n error InvalidTransactionType();\n error InvalidGasSponsorship();\n error TokenNotRegistered();\n error InsufficientBalance(uint256 balance, uint256 required);\n error InsufficientAmountForGas();\n error ETHTransferFailed();\n\n //#endregion\n\n //#region Public functions\n\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction) external;\n function transfer(CurvyTypes.MetaTransaction calldata metaTransaction, bytes memory signature) external;\n function deposit(address tokenAddress, address to, uint256 amount, uint256 gasSponsorshipAmount) external payable;\n\n //#endregion\n\n //#region View functions\n\n function getTokenAddress(uint256 tokenId) external view returns (address);\n\n //#endregion\n}\n"
- }
- }
- }
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/deployed_addresses.json b/ignition/deployments/staging_sepolia/deployed_addresses.json
deleted file mode 100644
index 4f51042..0000000
--- a/ignition/deployments/staging_sepolia/deployed_addresses.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2": "0xE340e895B07e90DEE5792ACDF6E4Ad868254BA89",
- "CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2": "0x607E3Fcd7F1b41609Db51fC3232E9dFA92416Bfa",
- "CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2": "0xad811bFfE111eD645e33ea8251eF09e8E8e5ded4",
- "CurvyAggregatorAlpha#PoseidonT4": "0x8584baE2E04A9481cBd8E896188f265fDD7136e1",
- "CurvyVault#CurvyVaultV1Implementation": "0x68EE689410a167820ba3027DC399a06F48d66d4d",
- "CurvyVault#CurvyVaultV2Implementation": "0xde15Dd34F5ebaA2F98CfA7bC600C3a1A3559b2A6",
- "CurvyVault#CurvyVaultV3Implementation": "0x86e341d2F2e1d762940eac489EAa76eb4af7F59d",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation": "0x750d1d7017c4f5674767DB335F30102f05eAEd93",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation": "0x406B0D00F7Fa04993F9eF685761dC256996b3eB8",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation": "0xA7b915120552FdE0C6CEfDEdF1Dbb4219d3C5aDC",
- "CurvyVault#ERC1967Proxy": "0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD",
- "CurvyVault#CurvyVaultV1": "0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD",
- "CurvyVault#CurvyVaultV2": "0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD",
- "CurvyVault#CurvyVaultV3": "0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD",
- "CurvyAggregatorAlpha#ERC1967Proxy": "0x97FfCE8e772EA1594BE3C34F85B43e9c00522320",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV1": "0x97FfCE8e772EA1594BE3C34F85B43e9c00522320",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV2": "0x97FfCE8e772EA1594BE3C34F85B43e9c00522320",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV3": "0x97FfCE8e772EA1594BE3C34F85B43e9c00522320",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV4": "0x97FfCE8e772EA1594BE3C34F85B43e9c00522320",
- "CurvyAggregatorAlpha#NewInsertionVerifier_v2": "0xd40E27D59763DC8B5727A2D09073427E8064095D",
- "CurvyAggregatorAlpha#NewAggregationVerifier_v2": "0xa4d33955253d18411f30EddB5d28171722415C85",
- "CurvyAggregatorAlpha#NewWithdrawVerifier_v2": "0xa573d954f7db86b08Bd6aeDAa3eB24375Ea508bd",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation": "0x76c53EB316dFb2ae31E880cdc613970A66748C9f",
- "TokenBridgeModule#TokenBridge": "0xD6e2B1A78656327a0B63dDBB813effaefc2F89C7",
- "CurvyVault#CurvyVaultV4": "0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD",
- "CurvyVault#CurvyVaultV4Implementation": "0x10Cf9e1ABDe7360abAf59231c518D59908a527B2",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV5": "0x97FfCE8e772EA1594BE3C34F85B43e9c00522320",
- "CurvyVault#CurvyVaultV5": "0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD",
- "CurvyVault#CurvyVaultV5Implementation": "0x64D17d6fa773Aca9170D3751B6c866b06B4471f6",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation": "0x3482BB877fdd5A25c7328fA85C2d9A134E348b85",
- "CurvyAggregatorAlpha#withdrawVerifierV3": "0x542F0837199Cd45BdE8a58b7aBB10185C16C348A",
- "PortalFactory#PortalFactory": "0x7125Ed21e90A790090245748A47753F3BE54Ccb3",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV6": "0x97FfCE8e772EA1594BE3C34F85B43e9c00522320",
- "CurvyVault#CurvyVaultV6": "0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD",
- "CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation": "0xfE753596d74145b8ec2F1C78e8eeD050FB17A73e",
- "CurvyVault#CurvyVaultV6Implementation": "0x7a725623696ef0303B110523D9A39DABd3C5c3c1",
- "CurvyAggregatorAlpha#insertionVerifierDepth30": "0x3e4C55949136286Ec2d30E8772cf9e0f0323Bc9E",
- "CurvyAggregatorAlpha#aggregationVerifierDepth30": "0x6e9b3C08967206Ab39C12DEFe7f17f3212B61694",
- "CurvyAggregatorAlpha#withdrawVerifierDepth30": "0x9206F178070A41d5Ff4Ff53f4555A8159EA0FA3e"
-}
\ No newline at end of file
diff --git a/ignition/deployments/staging_sepolia/journal.jsonl b/ignition/deployments/staging_sepolia/journal.jsonl
deleted file mode 100644
index ed65b82..0000000
--- a/ignition/deployments/staging_sepolia/journal.jsonl
+++ /dev/null
@@ -1,612 +0,0 @@
-
-{"chainId":11155111,"type":"DEPLOYMENT_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","constructorArgs":[],"contractName":"CurvyAggregationVerifierAlpha_2_2_2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b50610a0c8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610974565b610054565b604051901515815260200160405180910390f35b5f610881565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7e10acd6d4ce082a72b623deeac4b4c1c526b8ab76ab54f82d13b63a6f23e2cd85527f282cd953fc7bc024a80710dd645d4cd8e4ef6d10eb7403a76618f96eddb5336e60208601525f608086018661018d87357f21626e5f52776516ac007ae23e14ca016f4e7623b79f63f4ab59482e4872c52b7f2c8f6445390acb60223f07dcf516fee816534c9940dc8d59595786b35106f0f38461008c565b6101dd60208801357f20d91723fc6a5cff2a4d8bd53db8c7647c86b9245b27d7042634dd317becf0797f1693b6ee023f9ef0c9e7cb1d290717e3df5f6d2154ba30f3a6a833f3171c2ee08461008c565b61022d60408801357f1a9347082efac79b5d64033c95c7f2190984cd2a19884b4ad26162ea47e0ea3b7f27173150520b68cc7844935166da0f68924aeccc8a30ae9ca0768eb597cf2a638461008c565b61027d60608801357f207839c9f296371e642b17ab83a64fca9b9044d10b0f6a5319ae0e2ee2a76c0c7f235a1223ea30a75c93efd51c3abd465c611878ebc52d9830e61978f914d7c8908461008c565b6102cd60808801357f0cefdb3db08f930f2ed5534a797dc304a1189c61a2835aabb6c5831f0ca838f37f15bf6ee50fbb6b6a07695b99fa739330553161a7de0b0380556b61ebe950563f8461008c565b61031d60a08801357f0b50c85999c665bad3101fb618ca967aa4860c1c07f4c54bcf692b7b30b2c11a7f2d4f881288f63fa77f63eaad252bd5efbbbda01e21976fb645aaadd286929c3f8461008c565b61036d60c08801357f15b81a815c06b38295623648d75372799d4755f7a0b74f7bd655f5f64715a03e7f09331bcaac14f8bcf495ed09470e01f3c268f1fdb4e019c19c836e2c8310044a8461008c565b6103bd60e08801357f2a2a8f30efa6592960fa69f190f96c5f0b432948973a9c53269de3e6b8abebb57f297cd48dfb07dc7ad0120ed8151942d511ebca1b71a736b61ac6375e2a51947a8461008c565b61040e6101008801357f0a9c03a1994f221c057f75855cb14a95329dde81e32a7a8660a3828c46e4af7d7f1dc315ae7bd487ac77c690ee6e5d2fe7bbfd5ae36935ffac15114a4f2748dc5b8461008c565b61045f6101208801357f0280bc41f56d2038589161b139f5c3704eeb19e9da2f170a5b4e977678a727697f063f6dc839c18a58049574763b3de59bc2c20609b01907e66dcfe264b091cd858461008c565b6104b06101408801357f1f96dc322de85ba0a31ce878d61f5047eba9ad25489230b888ede7739aeb36f57f0d58db0890c2f6ee0bda8261a76d6ad9da96e539d0df7046cd0799f0176a53fb8461008c565b6105016101608801357f246ef5979ae9aea616e30dbab411c28406510a656ddd2043a5b9211d31edd1647f24d8db926da6b7c4a17804818d83058eb0f5dfa6163c3922aa9a7edeb4b85ede8461008c565b6105526101808801357f1011fe6c75f7c6cf1a8a62ff71387fef8a19e46d0af37193380a7c603f7529497f12b2d70c94e401c6f3822578fb27c67f97bf1827a1b9e0cc1c2fb34a68a6521d8461008c565b6105a36101a08801357f082d86555b48de36b698d5bc0cb44148b3a0eb1d3b992638453070deb120b15d7f26b43cf48f595a8e3e2a3b8515b7df9db6ffebecbc968995b4071e0f2dad32dc8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1f7f9f69ea5e04a56ee102635a0fcdbefd57b4c7f37a1e0d903ba69281a5f0d36102808201527f2a49c1e717e044ad7bc38e0b841e28e08eebe51b906016be33a2ff2d74f10c586102a08201527f027a67b0798b9350cd04c5ce09117b7e660dbe3e1449f667ea13c3c43255f84c6102c08201527f19725ce00771a3c317cb70a3c5856f91c6ac2313426f5863fcd93969d2384de06102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108985f84013561005a565b6108a5602084013561005a565b6108b2604084013561005a565b6108bf606084013561005a565b6108cc608084013561005a565b6108d960a084013561005a565b6108e660c084013561005a565b6108f360e084013561005a565b61090161010084013561005a565b61090f61012084013561005a565b61091d61014084013561005a565b61092b61016084013561005a565b61093961018084013561005a565b6109476101a084013561005a565b610954818486888a6100f2565b9050805f5260205ff35b806040810183101561096e575f5ffd5b92915050565b5f5f5f5f6102c08587031215610988575f5ffd5b610992868661095e565b935060c08501868111156109a4575f5ffd5b6040860193506109b4878261095e565b925050856102c0860111156109c7575f5ffd5b5091949093509091610100019056fea2646970667358221220c5df5a746d614b72f69595bc69601e5559fe5a1a70d66d8b1723b65d65e2b55c64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","networkInteractionId":1,"nonce":766,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","networkInteractionId":1,"nonce":766,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1919536945"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xfcbf43aeceaea1b3c7af1ee3899f529b8809123755a5495f4e84fa669835e729"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","constructorArgs":[],"contractName":"CurvyInsertionVerifierAlpha_2_2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506106648061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d7565b610054565b604051901515815260200160405180910390f35b5f61055c565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0f3cc497f7f2ad2db9f9a01e1d1e237e7bd547ee48d3698641bae08ce37c187485527f2a2f300a2bc9b5576e8d348d9542dedfce1dd7566c9f7ad0c7936e9508f2d13f60208601525f608086018661018e87357f152cd78e51c23961af90e069fcceb20b0358a4c13f4d05ad78f5554803410ec47f068d0161c738b8256d8f80c113a6f2adc60bf92724e5ba844434551f353109bb8461008c565b6101de60208801357f28aeb7fafb1d5864b489fac2ac75795429a84564ed301367b95bdbbda22e41cc7f01fb82a3a457b9782065bddb3961e014b8602fe337a83a253a4edbe7f9eca5de8461008c565b61022e60408801357f10e505cabab95d2954811e50e0c907e6e27d3ea37df4576cb85d2b024b758e5e7f132ffdaaa0e5fbd39240ae81be15c78f27d1a5e9f0b046bc50a19ebd0e1f50be8461008c565b61027e60608801357f061f18bbab38fe7f8eca85f2017b25f057fb908ca68d0965746884ca8b0b2e027f0323511d8b4f23d71a970779314d464e5993156eaed0970a246cd2a43da830c88461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f2ce5cf088183ccc73bfeb1244cdee7ae92ceb0e007194b0bf6c6e9819a863ca960c08201527f0b549a9abb46bc0c3ed48341aa21baa4532bca1fb1ff7a8ef409d3384eb73d3660e08201527f270e5ddc8a3d6e364fae6b353c6deedc579e522582d3d1d60036e9c43428bb8e6101008201527f2d9ef7723573eb05565ba62424d4b2f2d5a0e68d542f8c45daadb2f10a5cde376101208201527f1f542545a1550702631817615d0eac929e73ccc384d92ac156c7d3577e01d5226101408201527f08cd2dbefe01d914cd9826b6a1309de1d3c645a028b69cc3c690a05c183a9fa36101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f126779f2434a76e4e37da855f43a1df5648908e4e91eebf1e086544970eed7b86102808201527f12624c6dbae3875cc0583ab185cb81fc69d606519eef4d6140b7ac67aa6e26e76102a08201527f116d7e6cfc0480d16acdcebb03bef4a46abe3cff28a3aa60d1bf691b43679d866102c08201527f1bbda14ad6f8f4d5d33363f1d50fd72bf4b3b25d615b896c9e050098f5016f7d6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105735f84013561005a565b610580602084013561005a565b61058d604084013561005a565b61059a606084013561005a565b6105a7818486888a6100f2565b9050805f5260205ff35b80604081018310156105c1575f5ffd5b92915050565b80608081018310156105c1575f5ffd5b5f5f5f5f61018085870312156105eb575f5ffd5b6105f586866105b1565b935061060486604087016105c7565b92506106138660c087016105b1565b91506106238661010087016105c7565b90509295919450925056fea26469706673582212206f782de436746e389d2f3f8eeac94b985e369b9a2c08f0f7a2167fc9a1fa233d64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","networkInteractionId":1,"nonce":767,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","networkInteractionId":1,"nonce":767,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1919536945"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x3bfdb5c27d619c334d4cf201b5d50989f19dc6fe98b76a09e032f32781c8bbc0"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlpha_2_2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506108918061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b3660046107f9565b610054565b604051901515815260200160405180910390f35b5f61073e565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f1a75f14b8b1faa4b851f07b25985339af1f9563cb229396803fd379fead2bd7385527f0b5b03df8219c60d5be03ad52394f3d6330cf3e7cea9e656bc22982dd15cbadc60208601525f608086018661018e87357f05f00c0d109f87a8cf18b9d3052caae6027871b0d6fea2f54ca225891e16b0607f0d35ddf8253fb232d095057744ccb6f9d5887bee97ea61f885d511934169bcf08461008c565b6101de60208801357f2a60d3a69ccee567e2b57a0a42bcf19ba0d2335ceb81a2dcb71439314fea13857f2f70a47844f43803cbb4ce9a69cd5b3db4647da90f325d2ef456abea72d0bfe08461008c565b61022e60408801357f0f18cbcd1cbf7d154a35393c17382058e4b30517ab8be123af7d1951c671d4697f26cfb6e0961b50d6d1f534baef948730bec2a603ebf189eaaf72036e2a4d2fe68461008c565b61027e60608801357f033ae488254843311cd5bb9676251b2c80852d467355d37f443e17d049a503267f27e5a68de42fcbcbadd940c39e2013830c75dbb9ad6714cb768ba7d14af9421a8461008c565b6102ce60808801357f28120958d688c8a0d58372b242df5ec1c75aa124ab6f19c90c4b76b81057fd297f11c4be0f98ac33b680d4607a898dc72cdfc6d9946943b3e9f0080fe825263a5d8461008c565b61031e60a08801357f037d488c8ba35a919f4cfd44b1a9be07a0ca1ea689695c6b238ad364c47bbf7a7f2dd63748d624fd0124f265891b52eeb7d5565727b674658be4378d6e5b46be308461008c565b61036e60c08801357f2297bda45459480a6a488bd3386537b38ae11ffecb6beaec43e291d33dd2f8947f1d7c255c5e9cfa6d8457dc20e4af90332c6550fa6bea6ac80b2fcae91e31fb658461008c565b6103be60e08801357f1c564b05c0c5fc1db338de776a71a9b6408e0f1062ee5eec1ead8fe1fb68f0317f085c76b320e78e8fc1c30cd9a86ee083c737af478c344a985ff23109398c4e768461008c565b61040f6101008801357f0f6d3858a35815b73d414424416d4e35babb3e0141641fb6f11c5899b96ff6ce7f0678620b35e9ade6b5807cf7ccd5210ae099894132f0bff6345ba129e944dd3d8461008c565b6104606101208801357f2ef17308df02f12bcd04a63c4f9642e6a21bbfecd79bc266d9278cba32c0b7f47f1e5b526c2f7dbd765611c3117d2aa8924597b68d5b8d3654c375174d6affa8998461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1b68e8d4e2bf2e13e0f6fb9437ef2cd6955656f0f56896e6376454cfd801e7e260c08201527f234642e9dfbcd3e1858480459a71761590651c90d7887f90eb0f083975e75c4c60e08201527f0a13c1684beced0b4b14cca45263d7f348131eba4b263892d78139af2c13fbc96101008201527f013e77e79777b70b6608e3221c8c3894b4c505cb787e5f479c8ee8c5c37d40346101208201527f2d4cc855cc431552ff1d8f27d0660e5364cdbf9be3cdc40b17c50b5c802a47116101408201527f01012bb61356f56aeb7aa0f95e3d0228cb81b445790d67d9f990815967fdd7ef6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f044bacd3d9b251fa2cdcb89c1e71c78d2d0ff824d43403d616a47c804c0469696102808201527f297536676d7cec34d41955f24cc5034a5b79d92b20c48c6d8073bc32016612396102a08201527f0281d22ffce2cf0ca8b4109517cf30ceed20be4d2ed307fda036ad8ef5e12df26102c08201527f1ffe72c016746c242459c1973b77d50d6415bb22ce31c61ee504c42c65b3d33c6102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107555f84013561005a565b610762602084013561005a565b61076f604084013561005a565b61077c606084013561005a565b610789608084013561005a565b61079660a084013561005a565b6107a360c084013561005a565b6107b060e084013561005a565b6107be61010084013561005a565b6107cc61012084013561005a565b6107d9818486888a6100f2565b9050805f5260205ff35b80604081018310156107f3575f5ffd5b92915050565b5f5f5f5f610240858703121561080d575f5ffd5b61081786866107e3565b935060c0850186811115610829575f5ffd5b60408601935061083987826107e3565b925050856102408601111561084c575f5ffd5b5091949093509091610100019056fea2646970667358221220703faca2770b9c9f7e9a23c6d18d7c741c60c3262a4a3449160cfe04d5d9618164736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","networkInteractionId":1,"nonce":768,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","networkInteractionId":1,"nonce":768,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1919536945"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x8cfdc70a13400206ee355647bb173fcf6eb405c62831fd8de7bf17d2e66f01b7"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#PoseidonT4","constructorArgs":[],"contractName":"PoseidonT4","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#PoseidonT4","futureType":"NAMED_ARTIFACT_LIBRARY_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","networkInteraction":{"data":"0x6130c0610034600b8282823980515f1a607314602857634e487b7160e01b5f525f60045260245ffd5b305f52607381538281f3fe7300000000000000000000000000000000000000003014608060405260043610610034575f3560e01c806320cf0a3714610038575b5f5ffd5b61004b610046366004612f90565b61005d565b60405190815260200160405180910390f35b5f610793565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f52838409099450505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b805f5101826020510184608051018660a051015f51602061302b5f395f51905f528485095f51602061302b5f395f51905f52855f51602061302b5f395f51905f528384090994505f51602061302b5f395f51905f5284850990505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528384090993505f51602061302b5f395f51905f5283840990505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528384090992505f51602061302b5f395f51905f5282830990505f51602061302b5f395f51905f52825f51602061302b5f395f51905f52838409099150505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8909010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87095f51602061302b5f395f51905f527f2a75a171563b807db525be259699ab28fe9bc7fb1f70943ff049bc970e841a0c8909010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87095f51602061302b5f395f51905f527f2070679e798782ef592a52ca9cef820d497ad2eecbaa7e42f366b3e521c4ed428909010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87095f51602061302b5f395f51905f527f2f545e578202c9732488540e41f783b68ff0613fd79375f8ba8b3d30958e767789090101010660a0525050505050505050565b5f7f265ddfe127dd51bd7239347b758f0a1320eb2cc7450acc1dad47f80c8dcf34d65f51602061302b5f395f51905f5260805106017f199750ec472f1809e0f66a545e1e51624108ac845015c2aa3dfc36bab497d8aa5f51602061302b5f395f51905f5260a05106017f157ff3fe65ac7208110f06a5f74302b14d743ea25067f0ffd032f787c7f1cdf85f51602061302b5f395f51905f5260c05106015f51602061302b5f395f51905f5283840993505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528687090992505f51602061302b5f395f51905f5282830993505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528687090991505f51602061302b5f395f51905f5281820993505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528687090990505f51602061302b5f395f51905f52805f51602061300b5f395f51905f5283095f51602061302b5f395f51905f525f51602061306b5f395f51905f5285095f51602061302b5f395f51905f525f51602061304b5f395f51905f5287097f211184aac7468125da9b5527788aed6331caa8335774fe66f16acc6c66c456d7010101065f525f51602061302b5f395f51905f52807f0d745fd00dd167fb86772133640f02ce945004a7bc2c59e8790f725c5d84f0af83095f51602061302b5f395f51905f527f1a5ad71bbbecd8a97dc49cfdbae303ad24d5c4741eab8b7568a9ff8253a1eb6f85095f51602061302b5f395f51905f527f083abff5e10051f078e2827d092e1ae808b4dd3e15ccc3706f38ce4157b6770e87097f19764435729b98150ca53b559b7b1bdd91692d645e831f4a30d30d510792687a010101066020525f51602061302b5f395f51905f52807f03f3e6fab791f16628168e4b14dbaeb657035ee3da6b2ca83f0c2491e0b403eb83095f51602061302b5f395f51905f527f0fa86f0f27e4d3dd7f3367ce86f684f1f2e4386d3e5b9f38fa283c6aa723b60885095f51602061302b5f395f51905f527f2e18c8570d20bf5df800739a53da75d906ece318cd224ab6b3a2be979e2d7eab87097f21f642c132b82c867835f1753eecedd4679085e8c78f6a0ae4a8cd81e9834bdf010101066080525f51602061302b5f395f51905f52807ec15fc3a1d5733dd835eae0823e377f8ba4a8b627627cc2bb661c25d20fb52a83095f51602061302b5f395f51905f527f014fcd5eb0be6d5beeafc4944034cf321c068ef930f10be2207ed58d2a34cdd685095f51602061302b5f395f51905f527f23810bf82877fc19bff7eefeae3faf4bb8104c32ba4cd701596a15623d01476e87097f26bc2b5c607af61196105d955bd3d9b2cf795edcf9e39d1e508c542ca85d6be30101010660a052505050610c167f13da07dc64d428369873e97160234641f8beb56fdd05e5f3563fa39d9c22df4e7f251ad47cb15c4f1105f109ae5e944f1ba9d9e7806d667ffec6fe723002e0b9967f0e35fb89981890520d4aef2b6d6506c3cb2f0b6973c24fa82731345ffa2d1f1e7f2e49c43c4569dd9c5fd35ac45fca33f10b15c590692f8beefe18f4896ac949026103aa565b610ca27f04dba94a7b0ce9e221acad41472b6bbe3aec507f5eb3d33f463672264c9f789b7f0ed69e5e383a688f209d9a561daa79612f3f78d0467ad45485df07093f3675497f011f16b1c63a854f01992e3956f42d8b04eb650c6d535eb0203dec74befdca067f0c009b84e650e6d23dc00c7dccef7483a553939689d350cd46e7b89055fd47386103aa565b610d2e7f0a1ca941f057037526ea200f489be8d4c37c85bbcce6a2aeec91bd69414324477f28bf7459c9b2f4c6d8e7d06a4ee3a47f7745d4271038e5157a32fdf7ede0d6a17f259a666f129eea198f8a1c502fdb38fa39b1f075569564b6e54a485d1182323f7f0a3f2637d840f3a16eb094271c9d237b6036757d4bb50bf7ce732ff1d4fa28e86103aa565b610dba7f1cb55cad7bd133de18a64c5c47b9c97cbe4d8b7bf9e095864471537e6a4ae2c57f26e1ba52ad9285d97dd3ab52f8e840085e8fa83ff1e8f1877b074867cd2dee757f123106a93cd17578d426e8128ac9d90aa9e8a00708e296e084dd57e69caaf8117f0c6f8f958be0e93053d7fd4fc54512855535ed1539f051dcb43a26fd926361cf610063565b610e467f2539de1785b735999fb4dac35ee17ed0ef995d05ab2fc5faeaa69ae87bcec0a57f2b1e809ac1d10ab29ad5f20d03a57dfebadfe5903f58bafed7c508dd2287ae8c7f011003e32f6d9c66f5852f05474a4def0cda294a0eb4e9b9b12b9bb4512e55747f1dcd73e46acd8f8e0e2c7ce04bde7f6d2a53043d5060a41c7143f08e6e9055d0610063565b610ed27f179190e5d0e22179e46f8282872abc88db6e2fdc0dee99e69768bd98c5d06bfb7f1eae0ad8ab68b2f06a0ee36eeb0d0c058529097d91096b756d8fdc2fb5a60d857f192089c4974f68e95408148f7c0632edbb09e6a6ad1a1c2f3f0305f5d03b527b7f0c246c5a2ef8ee0126497f222b3e0a0ef4e1c3d41c86d46e43982cb11d77951d610063565b610f5e7f10ba3a0e01df92e87f301c4b716d8a394d67f4bf42a75c10922910a78f6b5b877f064760623c25c8cf753d238055b444532be13557451c087de09efd454b23fd597f225d394e42207599403efd0c2464a90d52652645882aac35b10e590e6e691e087f29bb9e2c9076732576e9a81c7ac4b83214528f7db00f31bf6cafe794a9b3cd1c610063565b610fea7f2ec93189bd1ab4f69117d0fe980c80ff8785c2961829f701bb74ac1f303b17db7f1d7cb39bafb8c744e148787a2e70230f9d4e917d5713bb050487b5aa7d74070b7f1b94cd61b051b04dd39755ff93821a73ccd6cb11d2491d8aa7f921014de252fb7f0e070bf53f8451b24f9c6e96b0c2a801cb511bc0c242eb9d361b77693f21471c610063565b6110767f20fc411a114d13992c2705aa034e3f315d78608a0f7de4ccf7a72e494855ad0d7f0761d33c66614aaa570e7f1e8244ca1120243f92fa59e4f900c567bf41f5a59b7f062100eb485db06269655cf186a68532985275428450359adc99cec6960711b87f2db366bfdd36d277a692bb825b86275beac404a19ae07a9082ea46bd83517926610063565b6111027f26c0c8fe09eb30b7e27a74dc33492347e5bdff409aa3610254413d3fad795ce57f22734b4c5c3f9493606c4ba9012499bf0f14d13bfcfcccaa16102a29cc2f69e07f23b1822d278ed632a494e58f6df6f5ed038b186d8474155ad87e7dff62b37f4b7f25b5c004a4bdfcb5add9ec4e9ab219ba102c67e8b3effb5fc3a30f317250bc5a610063565b61118e7f1a306d439d463b0816fc6fd64cc939318b45eb759ddde4aa106d15d9bd9baaaa7f248d97d7f76283d63bec30e7a5876c11c06fca9b275c671c5e33d95bb7e8d7297f12b6595bdb329b6fb043ba78bb28c3bec2c0a6de46d8c5ad6067c4ebfd4250da7f070dd0ccb6bd7bbae88eac03fa1fbb26196be3083a809829bbd626df348ccad9610063565b6112197f2a6cf5e9aa03d4336349ad6fb8ed2269c7bef54b8822cc76d08495c12efde1877f04d5ee4c3aa78f7d80fde60d716480d3593f74d4f653ae83f4103246db2e8d657e94975717f9a8a8bb35152f24d43294071ce320c829f388bc852183e1e2ce7e7f28a8f8372e3c38daced7c00421cb4621f4f1b54ddc27821b0d62d3d6ec7c56cf610063565b6112a47f159f81ada0771799ec38fca2d4bf65ebb13d3a74f3298db36272c5ca65e92d9a7eb7258ded52bbda2248404d55ee5044798afc3a209193073f7954d4d63b0b647f03fd9ac865a4b2a6d5e7009785817249bff08a7e0726fcb4e1c11d39d199f0b07f2304d31eaab960ba9274da43e19ddeb7f792180808fd6e43baae48d7efcba3f3610063565b6113307f0832e5753ceb0ff6402543b1109229c165dc2d73bef715e3f1c6e07c168bb1737f2b1b045def3a166cec6ce768d079ba74b18c844e570e1f826575c1068c94c33f7f1e65f838515e5ff0196b49aa41a2d2568df739bc176b08ec95a79ed82932e30d7f1ef90e67437fbc8550237a75bc28e3bb9000130ea25f0c5471e144cf4264431f610063565b6113bc7f22ead100e8e482674decdab17066c5a26bb1515355d5461a3dc06cc85327cea97f0493630b7c670b6deb7c84d414e7ce79049f0ec098c3c7c50768bbe29214a53a7f0e2427d38bd46a60dd640b8e362cad967370ebb777bedff40f6a0be27e7ed7057f02f614e9cedfb3dc6b762ae0a37d41bab1b841c2e8b6451bc5a8e3c390b6ad16610063565b6114487f2f569b8a9a4424c9278e1db7311e889f54ccbf10661bab7fcd18e7c7a7d835057f2fa2a871c15a387cc50f68f6f3c3455b23c00995f05078f672a9864074d412e57f1e32752ada8836ef5837a6cde8ff13dbb599c336349e4c584b4fdc0a0cf6f9d07f25b3e56e655b42cdaae2626ed2554d48583f1ae35626d04de5084e0b6d2a6f16610063565b6114d47f0ef915f0ac120b876abccceb344a1d36bad3f3c5ab91a8ddcbec2e060d8befac7f02fcca2934e046bc623adead873579865d03781ae090ad4a8579d2e7a68003557f227808de93906d5d420246157f2e42b191fe8c90adfe118178ddc723a53190257f044cb455110a8fdd531ade530234c518a7df93f7332ffd2144165374b246b43d610063565b6115607f25721c4fc15a3f2853b57c338fa538d85f8fbba6c6b9c6090611889b797b9c5f7f1fffb9ec1992d66ba1e77a7b93209af6f8fa76d48acb664796174b5326a31a5c7f0a76225dc04170ae3306c85abab59e608c7f497c20156d4d36c668555decc6e57f1797130f4b7a3e1777eb757bc6f287f6ab0fb85f6be63b09f3b16ef2b1405d38610063565b6115ec7f21ca859468a746b6aaa79474a37dab49f1ca5a28c748bc7157e1b3345bb0f9597f2106feea546224ea12ef7f39987a46c85c1bc3dc29bdbd7a92cd60acb4d391ce7f13abe3f5239915d39f7e13c2c24970b6df8cf86ce00a22002bc15866e52b5a967f0c817fd42d5f7a41215e3d07ba197216adb4c3790705da95eb63b982bfcaf75a610063565b6116787f09d3dca9173ed2faceea125157683d18924cadad3f655a60b72f5864961f14557f0558531a4e25470c6157794ca36d0e9647dbfcfe350d64838f5b1a8a2de0d4bf7f0f0e34a64b70a626e464d846674c4c8816c4fb267fe44fe6ea28678cb09490a47f05ccd6255c1e6f0c5cf1f0df934194c62911d14d0321662a8f1a48999e34185b610063565b6117047f176563472456aaa746b694c60e1823611ef39039b2edc7ff391e6f2293d2c4047f1daf345a58006b736499c583cb76c316d6f78ed6a6dffc82111e11a63fe412df7f2bf07216e2aff0a223a487b1a7094e07e79e7bcc9798c648ee3347dd5329d34b7f0328cbd54e8c0913493f866ed03d218bf23f92d68aaec48617d4c722e5bd4335610063565b6117907f2debff156e276bb5742c3373f2635b48b8e923d301f372f8e550cfd4034212c77f14bce3549cc3db7428126b4c3a15ae0ff8148c89f13fb35d35734eb5d4ad0def7f226c9b1af95babcf17b2b1f57c7310179c1803dec5ae8f0a1779ed36c817ae2a7f2ef1e0fad9f08e87a3bb5e47d7e33538ca964d2b7d1083d4fb0225035bd3f8db610063565b61181c7f0b61811a9210be78b05974587486d58bddc8f51bfdfebbb87afe8b7aa7d3199c7f03152169d4f3d06ec33a79bfac91a02c99aa0200db66d5aa7b835265f9c9c8f37f0c225b7bcd04bf9c34b911262fdc9c1b91bf79a10c0184d89c317c53d7161c297f2d4083cf5a87f5b6fc2395b22e356b6441afe1b6b29c47add7d0432d1d4760c7610063565b6118a77e780af2ca1cad6465a2171250fdfc32d6fc241d3214177f3d553ef3631821857f0376b4fae08cb03d3500afec1a1f56acb8e0fde75a2106d7002f59c5611d4daa7f1a44bf0937c722d1376672b69f6c9655ba7ee386fda1112c0757143d1bfa91467f203e000cad298daaf7eba6a5c5921878b8ae48acf7048f16046d637a533b6f78610063565b6119327f222c01175718386f2e2e82eb122789e352e105a3b8fa852613bc534433ee428c7e544b8338791518b2c7645a50392798b21f75bb60e3596170067d00141cac167f10dc6e9c006ea38b04b1e03b4bd9490c0d03f98929ca1d7fb56821fd19d3b6e87f10774d9ab80c25bdeb808bedfd72a8d9b75dbe18d5221c87e9d857079bdc31d5610063565b6119be7f04a533f236c422d1ff900a368949b0022c7a2ae092f308d82b1dcbbf51f5000d7f06041bdac48205ac87adb87c20a478a71c9950c12a80bc0a55a8e83eaaf047467f062752f86eebe11a009c937e468c335b04554574c2990196508e01fa5860186b7f2840d045e9bc22b259cfb8811b1e0f45b77f7bdb7f7e2b46151a1430f608e3c5610063565b611a4a7f14abdec8db9c6dc970291ee638690209b65080781ef9fd13d84c7a726b5f13647f0b0d219346b8574525b1a270e0b4cba5d56c928e3e2c2bd0a1ecaed015aaf6ae7f011c2683ae91eb4dfbc13d6357e8599a9279d1648ff2c95d2f79905bb13920f17f13e31d7a67232fd811d6a955b3d4f25dfe066d1e7dc33df04bde50a2b2d05b2a610063565b611ad67f2567a658a81ffb444f240088fa5524c69a9e53eeab6b7f8c41c3479dcf8c644a7f16eb59494a9776cf57866214dbd1473f3f0738a325638d8ba36535e011d582597f278543721f96d1307b6943f9804e7fe56401deb2ef99c4d12704882e7278b6077f1a0b70b4b26fdc28fcd32aa3d266478801eb12202ef47ced988d0376610be106610063565b611b627f02db50480a07be0eb2c2e13ed6ef4074c0182d9b668b8e08ffe67692500420257f16bd7d22ff858e5e0882c2c999558d77e7673ad5f1915f9feb679a8115f014cf7f15c091233e60efe0d4bbfce2b36415006a4f017f9a85388ce206b91f99f2c9847f29aa1d7c151e9ad0a7ab39f1abd9cf77ab78e0215a5715a6b882ade840bb13d8610063565b611bee7f1498a307e68900065f5e8276f62aef1c37414b84494e1577ad1a6d64341b78ec7f0184bef721888187f645b6fee3667f3c91da214414d89ba5cd301f22b0de89907f1dda05ebc30170bc98cbf2a5ee3b50e8b5f70bc424d39fa4104d37f1cbcf7a427f05e4a220e6a3bc9f7b6806ec9d6cdba186330ef2bf7adb4c13ba866343b73119610063565b611c7a7f0f53dafd535a9f4473dc266b6fccc6841bbd336963f254c152f89e785f729bbf7f2f77d77786d979b23ba4ce4a4c1b3bd0a41132cd467a86ab29b913b6cf3149d07f09d317cc670251943f6f5862a30d2ea9e83056ce4907bfbbcb1ff31ce5bb96507f25f40f82b31dacc4f4939800b9d2c3eacef737b8fab1f864fe33548ad46bd49d610063565b611d067f24a6073f91addc33a49a1fa306df008801c5ec569609034d2fc50f7f0f4d00567f1ce1580a3452ecf302878c8976b82be96676dd114d1dc8d25527405762f835297f2a902c8980c17faae368d385d52d16be41af95c84eaea3cf893e65d6ce4a8f627f25c1fd72e223045265c3a099e17526fa0e6976e1c00baf16de96de85deef2fa2610063565b611d927f2754114281286546b75f09f115fc751b4778303d0405c1b4cc7df0d8e9f639257f06342da370cc0d8c49b77594f6b027c480615d50be36243a99591bc9924ed6f57f23dffae3c423fa7a93468dbccfb029855974be4d0a7b29946796e5b6cd70f15d7f25e52dbd6124530d9fc27fe306d71d4583e07ca554b5d1577f256c68b0be2b74610063565b611e1e7f17662f7456789739f81cd3974827a887d92a5e05bdf3fe6b9fbccca4524aaebd7f13ccf689d67a3ec9f22cb7cd0ac3a327d377ac5cd0146f048debfd098d3ec7be7f265fe062766d08fab4c78d0d9ef3cabe366f3be0a821061679b4b3d2d77d5f3e7f15c19e8534c5c1a8862c2bc1d119eddeabf214153833d7bdb59ee197f8187cf5610063565b611eaa7f2ddb2e376f54d64a563840480df993feb4173203c2bd94ad0e602077aef9a03e7f2bc07ea2bfad68e8dc724f5fef2b37c2d34f761935ffd3b739ceec4668f37e887f18137478382aadba441eb97fe27901989c06738165215319939eb17b01fa975c7f21b29c76329b31c8ef18631e515f7f2f82ca6a5cca70cee4e809fd624be7ad5d610063565b611f367f11fe5b18fbbea1a86e06930cb89f7d4a26e186a65945e96574247fddb720f8f57f0b8442bfe9e4a1b4428673b6bd3eea6f9f445697058f134aae908d0279a29f0c7f0d4de47e1aba34269d0c620904f01a56b33fc4b450c0db50bb7f87734c9a1fe57f277eb50f2baa706106b41cb24c602609e8a20f8d72f613708adb25373596c3f7610063565b611fc27f30185c48b7b2f1d53d4120801b047d087493bce64d4d24aedce2f4836bb84ad47f221b63d66f0b45f9d40c54053a28a06b1d0a4ce41d364797a1a7e0c96529f4217f0b2ca6a999fe6887e0704dad58d03465a96bc9e37d1091f61bc9f9c62bbeb8247f224026f6dfaf71e24d25d8f6d9f90021df5b774dcad4d883170e4ad89c33a0d6610063565b61204e7f1444e8f592bdbfd8025d91ab4982dd425f51682d31472b05e81c43c0f9434b317f0977545836866fa204ca1d853ec0909e3d140770c80ac67dc930c69748d5d4bc7f2716683b32c755fd1bf8235ea162b1f388e1e0090d06162e8e6dfbe4328f3e3b7f23f5d372a3f0e3cba989e223056227d3533356f0faa48f27f8267318632a61f0610063565b6120da7f1db1db8aa45283f31168fa66694cf2808d2189b87c8c8143d56c871907b39b877f174b54d9907d8f5c6afd672a738f42737ec338f3a0964c629f7474dd44c5c8d77f22a5c2fa860d11fe34ee47a5cd9f869800f48f4febe29ad6df69816fb1a914d27f26e04b65e9ca8270beb74a1c5cb8fee8be3ffbfe583f7012a00f874e7718fbe3610063565b6121667f2b30d53ed1759bfb8503da66c92cf4077abe82795dc272b377df57d77c8755267f29c25a22fe2164604552aaea377f448d587ab977fc8227787bd2dc0f36bcf41e7f0b73f613993229f59f01c1cec8760e9936ead9edc8f2814889330a2f2bade4577f1530bf0f46527e889030b8c7b7dfde126f65faf8cce0ab66387341d813d1bfd1610063565b6121f27f0a99b3e178db2e2e432f5cd5bef8fe4483bf5cbf70ed407c08aae24b830ad7257f1ec9daea860971ecdda8ed4f346fa967ac9bc59278277393c68f09fa03b8b95f7f2520e18300afda3f61a40a0b8837293a55ad01071028d4841ffa9ac7063641137f12f6d703b5702aab7b7b7e69359d53a2756c08c85ede7227cf5f0a2916787cd2610063565b61227e7f1049a6c65ff019f0d28770072798e8b7909432bd0c129813a9f179ba627f7d6a7f2737f8ce1d5a67b349590ddbfbd709ed9af54a2a3f2719d33801c9c17bdd9c9e7f08c9c65a4f955e8952d571b191bb0adb49bd8290963203b35d48aab38f8fc3a37f07cda9e63db6e39f086b89b601c2bbe407ee0abac3c817a1317abad7c5778492610063565b61230a7f265a5eccd8b92975e33ad9f75bf3426d424a4c6a7794ee3f08c1d100378e545e7f2ec5f2f1928fe932e56c789b8f6bbcb3e8be4057cbd8dbd18a1b352f5cef42ff7f2ff2b6fd22df49d2440b2eaeeefa8c02a6f478cfcf11f1b2a4f7473483885d197f18b4fe968732c462c0ea5a9beb27cecbde8868944fdf64ee60a5122361daeddb610063565b6123967f01a75666f6241f6825d01cc6dcb1622d4886ea583e87299e6aa2fc716fdb6cf57f2c30d5f33bb32c5c22b9979a605bf64d508b705221e6a686330c9625c2afe0b87f094c97d8c194c42e88018004cbbf2bc5fdb51955d8b2d66b76dd98a2dbf604177f2405eaa4c0bde1129d6242bb5ada0e68778e656cfcb366bf20517da1dfd4279c610063565b6124227f2cf4051e6cab48301a8b2e3bca6099d756bbdf485afa1f549d395bbcbd8064617f27aa8d3e25380c0b1b172d79c6f22eee99231ef5dc69d8dc13a4b5095d0287727f154ade9ca36e268dfeb38461425bb0d8c31219d8fa0dfc75ecd21bf69aa0cc747f0a3290e8398113ea4d12ac091e87be7c6d359ab9a66979fcf47bf2e87d382fcb610063565b6124ae7f0dc8a2146110c0b375432902999223d5aa1ef6e78e1e5ebcbc1d9ba41dc1c7377f1b362e72a5f847f84d03fd291c3c471ed1c14a15b221680acf11a3f02e46aa957f298beb64f812d25d8b4d9620347ab02332dc4cef113ae60d17a8d7a4c91f83bc7f301e70f729f3c94b1d3f517ddff9f2015131feab8afa5eebb0843d7f84b23e71610063565b61253a7f01001cf512ac241d47ebe2239219bc6a173a8bbcb8a5b987b4eac1f533315b6b7f1b5b2946f7c28975f0512ff8e6ca362f8826edd7ea9c29f382ba8a2a0892fd5d7f0a87391fb1cd8cdf6096b64a82f9e95f0fe46f143b702d74545bb314881098ee7f0a48663b34ce5e1c05dc93092cb69778cb21729a72ddc03a08afa1eb922ff279610063565b6125c67f2d9b10c2f2e7ac1afddccffd94a563028bf29b646d020830919f9d5ca1cefe597f19d43ee0c6081c052c9c0df6161eaac1aec356cf435888e79f27f22ff03fa25d7f23c0039a3fab4ad3c2d7cc688164f39e761d5355c05444d99be763a97793a9c47f2fd977c70f645db4f704fa7d7693da727ac093d3fb5f5febc72beb17d8358a32610063565b6126527f0f97ae3033ffa01608aafb26ae13cd393ee0e4ec041ba644a3d3ab546e98c9c87f19d2cc5ca549d1d40cebcd37f3ea54f31161ac3993acf3101d2c2bc30eac1eb07f0abc392fe85eda855820592445094022811ee8676ed6f0c3044dfb54a7c10b357f2457ca6c2f2aa30ec47e4aff5a66f5ce2799283e166fc81cdae2f2b9f83e4267610063565b6126de7f2e47e15ea4a47ff1a6a853aaf3a644ca38d5b085ac1042fdc4a705a7ce089f4d7f0a1bb075aa37ff0cfe6c8531e55e1770eaba808c8fdb6dbf46f8cab58d9ef1af7f240faf28f11499b916f085f73bc4f22eef8344e576f8ad3d1827820366d5e07b7f16dbc78fd28b7fb8260e404cf1d427a7fa15537ea4e168e88a166496e88cfeca610063565b61276a7f242acd3eb3a2f72baf7c7076dd165adf89f9339c7b971921d9e70863451dd8d17f089cb1b032238f5e4914788e3e3c7ead4fc368020b3ed38221deab1051c377027f18b42d7ffdd2ea4faf235902f057a2740cacccd027233001ed10f96538f0916f7f166e5bf073378348860ca4a9c09d39e1673ab059935f4df35fb14528375772b6610063565b6127f67f0529898dc0649907e1d4d5e284b8d1075198c55cad66e8a9bf40f92938e2e9617f1e8e40ac853b7d42f00f2e383982d024f098b9f8fd455953a2fd380c4df7f6b27f17340e71d96f466d61f3058ce092c67d2891fb2bb318613f780c275fe1116c6b7f174fbb104a4ee302bf47f2bd82fce896eac9a068283f326474af860457245c3b610063565b6128817eccf13e0cb6f9d81d52951bea990bd5b6c07c5d98e66ff71db6e74d5b87d1587f292643e3ba2026affcb8c5279313bd51a733c93353e9d9c79cb723136526508e7f12c7553698c4bf6f3ceb250ae00c58c2a9f9291efbde4c8421bef44741752ec67f2162754db0baa030bf7de5bb797364dce8c77aa017ee1d7bf65f21c4d4e5df8f610063565b61290d7f1b8fd9ff39714e075df124f887bf40b383143374fd2080ba0c0a6b6e8fa5b3e87f0f356841b3f556fce5dbe4680457691c2919e2af53008184d03ee1195d72449e7f14c61c836d55d3df742bdf11c60efa186778e3de0f024c0f13fe53f8d8764e1f7f185d1e20e23b0917dd654128cf2f3aaab6723873cb30fc22b0f86c15ab645b4b610063565b6129997f29a3110463a5aae76c3d152875981d0c1daf2dcd65519ef5ca8929851da8c0087f05d797f1ab3647237c14f9d1df032bc9ff9fe1a0ecd377972ce5fd5a0c0146047f2e6c5e898f5547770e5462ad932fcdd2373fc43820ca2b16b0861421e79155c87f0e86a8c2009c140ca3f873924e2aaa14fc3c8ae04e9df0b3e9103418796f6024610063565b612a257f1e6aac1c6d3dd3157956257d3d234ef18c91e82589a78169fbb4a8770977dc2f7f1c793ef0dcc51123654ff26d8d863feeae29e8c572eca912d80c8ae36e40fe9b7f1ed0fb06699ba249b2a30621c05eb12ca29cb91aa082c8bfcce9c522889b47dc7f2974da7bc074322273c3a4b91c05354cdc71640a8bbd1f864b732f8163883314610063565b612ab07f0b0d7e69c651910bbef3e68d417e9fa0fbd57f596c8f29831eff8c0174cdb06d7e6e5979da7e7ef53a825aa6fddc3abfc76f200b3740b8b232ef481f5d06297b7f191033d6d85ceaa6fc7a9a23a6fd9996642d772045ece51335d49306728af96c7f1a20ada7576234eee6273dd6fa98b25ed037748080a47d948fcda33256fb6bf5610063565b612b3c7f0136df457c80588dd687fb2f3be18691705b87ec5a4cfdc168d31084256b67dc7f16af29695157aba9b8bbe3afeb245feee5a929d9f928b9b81de6dadc78c32aae7f12c1ea892cc31e0d9af8b796d9645872f7f77442d62fd4c8085b2f150f72472a7f25caf5b0c1b93bc516435ec084e2ecd44ac46dbbb033c5112c4b20a25c9cdf9d610063565b612bc87f13f9b9a41274129479c5e6138c6c8ee36a670e6bc68c7a49642b645807bfc8247f11aeeb527dc8ce44b4d14aaddca3cfe2f77a1e40fc6da97c249830de1edfde547f03d62fbf82fd1d4313f8e650f587ec06816c28b700bdc50f7e232bd9b5ca9b767f1639a28c5b4c81166aea984fba6e71479e07b1efbc74434db95a285060e7b089610063565b612c547f2cf0a09a55ca93af8abd068f06a7287fb08b193b608582a27379ce35da915dec7f2bedb66e1ad5a1d571e16e2953f48731f66463c2eb54a245444d1c0a3a25707e7f1b39a00cbc81e427de4bdec58febe8d8b5971752067a612b39fc46a68c5d4db47f0e4772fa3d75179dc8484cd26c7c1f635ddeeed7a939440c506cae8b7ebcd15b6103aa565b612ce07f1aa9d3fe4c644910f76b92b3e13b30d500dae5354e79508c3c49c8aa99e0258b7f2d933ff19217a5545013b12873452bebcc5f9969033f15ec642fb464bd6073687f065610c6f4f92491f423d3071eb83539f7c0d49c1387062e630d7fd283dc33947f2d1bd78fa90e77aa88830cabfef2f8d27d1a512050ba7db0753c8fb863efb3876103aa565b612d6b7eb4567186bc3f7c62a7b56acf4f76207a1f43c2d30d0fe4a627dcdd9bd790787f0c7c382443c6aa787c8718d86747c7f74693ae25b1e55df13f7c3c1dd735db0f7f2b7d524c5172cbbb15db4e00668a8c449f67a2605d9ec03802e3fa136ad0b8fb7f027ef04869e482b1c748638c59111c6b27095fa773e1aca078cea1f1c8450bdd6103aa565b7f1e41fc29b825454fe6d61737fe08b47fb07fe739e4c1e61d0337490883db4fd55f51017f12507cd556b7bbcc72ee6dafc616584421e1af872d8c0e89002ae8d3ba0653b6602051017f13d437083553006bcef312e5e6f52a5d97eb36617ef36fe4d77d3e97f71cb5db608051017f163ec73251f85443687222487dda9a65467d90b22f0b38664686077c6a4486d560a051015f51602061302b5f395f51905f5284850994505f51602061302b5f395f51905f52845f51602061302b5f395f51905f528788090993505f51602061302b5f395f51905f5283840994505f51602061302b5f395f51905f52835f51602061302b5f395f51905f528788090992505f51602061302b5f395f51905f5282830994505f51602061302b5f395f51905f52825f51602061302b5f395f51905f528788090991505f51602061302b5f395f51905f5281820994505f51602061302b5f395f51905f52815f51602061302b5f395f51905f528788090990505f51602061302b5f395f51905f52805f51602061302b5f395f51905f525f51602061300b5f395f51905f5284095f51602061302b5f395f51905f525f51602061306b5f395f51905f5286095f51602061302b5f395f51905f525f51602061304b5f395f51905f5288095f51602061302b5f395f51905f527f236d13393ef85cc48a351dd786dd7a1de5e39942296127fd87947223ae5108ad8a0901010106065f5260205ff35b634e487b7160e01b5f52604160045260245ffd5b5f60608284031215612fa0575f5ffd5b82601f830112612fae575f5ffd5b6040516060810181811067ffffffffffffffff82111715612fd157612fd1612f7c565b604052806060840185811115612fe5575f5ffd5b845b81811015612fff578035835260209283019201612fe7565b50919594505050505056fe1d359d245f286c12d50d663bae733f978af08cdbd63017c57b3a75646ff382c130644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001277686494f7644bbc4a9b194e10724eb967f1dc58718e59e3cedc821b2a7ae19023db68784e3f0cc0b85618826a9b3505129c16479973b0a84a4529e66b09c62a2646970667358221220f6d5cfe9ef56c84b95ece8760d16164e8a9649e1f378cc0d39152a9bac67d08e64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","networkInteractionId":1,"nonce":769,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","networkInteractionId":1,"nonce":769,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1919536945"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xed608ae9acf3d723731053049ac01b987992f47e4e98199710c48b3c07bd2d6a"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyVault#CurvyVaultV1Implementation","constructorArgs":[],"contractName":"CurvyVaultV1","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV1Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612efd6100f95f395f81816119540152818161197d0152611ac10152612efd5ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e366004612738565b610882565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612760565b6108aa565b61016e6101d3366004612779565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612760565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e61022636600461287f565b6109c1565b348015610236575f5ffd5b5061024a610245366004612958565b6109d8565b60405161019d9190612a4b565b61016e610265366004612a5d565b610b27565b348015610275575f5ffd5b50610193610b42565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf366004612a92565b610b5d565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610bdc565b34801561030b575f5ffd5b50610314610bef565b60405161019d9796959493929190612ad7565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c98565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d9190612b46565b3480156103c8575f5ffd5b5061016e6103d7366004612b58565b610cc6565b3480156103e7575f5ffd5b5061016e6103f6366004612b80565b610de4565b348015610406575f5ffd5b5061016e610415366004612760565b610f3c565b348015610425575f5ffd5b5061016e610434366004612b58565b611123565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612760565b61123e565b348015610477575f5ffd5b5061016e610486366004612760565b6112ba565b348015610496575f5ffd5b5061016e6104a536600461287f565b6112f4565b6001600160a01b0383166105205760405162461bcd60e51b815260206004820152603260248201527f43757276795661756c74236465706f7369743a20496e76616c696420726563696044820152717069656e7420666f72206465706f7369742160701b60648201526084015b60405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461064f5734156105b25760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610517565b6105c76001600160a01b038616333086611307565b506001600160a01b0384165f908152600360205260408120549081900361064a5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74236465706f7369743a20546f6b656e2061646472657360448201527073206e6f7420726567697374657265642160781b6064820152608401610517565b6106b7565b3483146106b35760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610517565b5060015b6001600160a01b0384165f90815260208181526040808320848452909152812080548592906106e7908490612bd4565b90915550506005546001600160601b0316156107ac576005545f9061271090610719906001600160601b031686612be7565b6107239190612bfe565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610758908490612c1d565b909155508190505f80610769610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107a59190612bd4565b9091555050505b8115610835576001600160a01b0384165f90815260208181526040808320848452909152812080548492906107e2908490612c1d565b909155508290505f806107f3610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461082f9190612bd4565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108b2611374565b6001600160a01b0381165f90815260036020526040902054156109335760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610517565b60028054905f61094283612c30565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b6109cb82826113a6565b6109d482611578565b5050565b60608151835114610a445760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610517565b5f835167ffffffffffffffff811115610a5f57610a5f6127ce565b604051908082528060200260200182016040528015610a88578160200160208202803683370190505b5090505f5b8451811015610b1f575f5f868381518110610aaa57610aaa612c48565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610ae457610ae4612c48565b602002602001015181526020019081526020015f2054828281518110610b0c57610b0c612c48565b6020908102919091010152600101610a8d565b509392505050565b610b2f611949565b610b38826119ed565b6109d482826119f5565b5f610b4b611ab6565b505f516020612ea85f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610bd75760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610517565b919050565b610be4611374565b610bed5f611aff565b565b5f60608082808083815f516020612e885f395f51905f528054909150158015610c1a57506001810154155b610c5e5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610517565b610c66611b6f565b610c6e611c2f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610cd36020820182612760565b6001600160a01b0316336001600160a01b031614610d445760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c742377697468647261773a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b608081013515610dd85760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c742377697468647261773a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611c6d565b50565b610dec611374565b6002826002811115610e0057610e00612c5c565b03610e2557600580546001600160601b0319166001600160601b038316179055610eff565b6001826002811115610e3957610e39612c5c565b03610e6c57600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610eff565b5f826002811115610e7f57610e7f612c5c565b03610ea457600680546001600160601b0319166001600160601b038316179055610eff565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610517565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f30929190612c90565b60405180910390a15050565b5f610f4561207d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f6c5750825b90505f8267ffffffffffffffff166001148015610f885750303b155b905081158015610f96575080155b15610fb45760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fde57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b928201929092526110a691906120a5565b6110af866120b7565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561111b57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6111306020820182612760565b6001600160a01b0316336001600160a01b0316146111a15760405162461bcd60e51b815260206004820152602860248201527f43757276795661756c74237472616e736665723a20496e76616c6964206d73676044820152672e73656e6465722160c01b6064820152608401610517565b6080810135156112355760405162461bcd60e51b815260206004820152605360248201527f43757276795661756c74237472616e736665723a20676173466565206d75737460448201527f2062652030207768656e206e6f742072656c6179696e67206d6574615472616e60648201527273616374696f6e20666f72206f74686572732160681b608482015260a401610517565b610de181611578565b6001600160a01b0381165f9081526003602052604081205490819003610bd75760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610517565b6112c2611374565b6001600160a01b0381166112eb57604051631e4fbdf760e01b81525f6004820152602401610517565b610de181611aff565b6112fe82826113a6565b6109d482611c6d565b6040516001600160a01b03848116602483015283811660448301526064820183905261136e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506120c8565b50505050565b3361137d610c98565b6001600160a01b031614610bed5760405163118cdaa760e01b8152336004820152602401610517565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826113d86020870187612760565b6001600160a01b031681526020808201929092526040015f2054906113ff90860186612760565b61140f6040870160208801612760565b60408701356060880135608089013561142e60c08b0160a08c01612cb4565b604051602001611445989796959493929190612ccd565b6040516020818303038152906040528051906020012090505f61146782612134565b90505f6114748285612160565b90506114836020860186612760565b6001600160a01b0316816001600160a01b0316146114fd5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610517565b6001600160a01b0381165f90815260016020526040812080549161152083612c30565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6115896040830160208401612760565b6001600160a01b0316036115fd5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74235f7472616e736665723a20496e76616c696420726560448201527463697069656e7420666f72207472616e736665722160581b6064820152608401610517565b600161160f60c0830160a08401612cb4565b600281111561162057611620612c5c565b1461168b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c74237472616e736665723a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f8061169f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546116df9190612c1d565b909155505060608101355f806116fb6040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461173b9190612bd4565b90915550506080810135156117da5760808101355f806117616040850160208601612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546117a19190612c1d565b9091555050325f9081526020818152604080832081850135845290915281208054608084013592906117d4908490612bd4565b90915550505b600554600160601b90046001600160601b0316156118cd576005545f906127109061181990600160601b90046001600160601b03166060850135612be7565b6118239190612bfe565b9050805f806118356020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118759190612c1d565b909155508190505f80611886610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546118c69190612bd4565b9091555050505b6118dd6040820160208301612760565b6001600160a01b03166118f36020830183612760565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc448360400135846060013560405161193e929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806119cf57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166119c35f516020612ea85f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610bed5760405163703e46dd60e11b815260040160405180910390fd5b610de1611374565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611a4f575060408051601f3d908101601f19168201909252611a4c91810190612d22565b60015b611a7757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610517565b5f516020612ea85f395f51905f528114611aa757604051632a87526960e21b815260048101829052602401610517565b611ab18383612188565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bed5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612e885f395f51905f5291611bad90612d39565b80601f0160208091040260200160405190810160405280929190818152602001828054611bd990612d39565b8015611c245780601f10611bfb57610100808354040283529160200191611c24565b820191905f5260205f20905b815481529060010190602001808311611c0757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612e885f395f51905f5291611bad90612d39565b5f611c7e6040830160208401612760565b6001600160a01b031603611cee5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610517565b5f611cff60c0830160a08401612cb4565b6002811115611d1057611d10612c5c565b14611d7b5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610517565b60608101355f80611d8f6020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611dcf9190612c1d565b9091555050608081013515611e6b5760808101355f80611df26020850185612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611e329190612c1d565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611e65908490612bd4565b90915550505b6006546001600160601b031615611f50576006545f9061271090611e9c906001600160601b03166060850135612be7565b611ea69190612bfe565b9050805f80611eb86020860186612760565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611ef89190612c1d565b909155508190505f80611f09610c98565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f828254611f499190612bd4565b9091555050505b6001816040013514611fa657604080820180355f90815260046020908152929020546001600160a01b031691611fa091611f8b918501612760565b6001600160a01b0383169060608501356121dd565b5061206f565b5f611fb76040830160208401612760565b6001600160a01b031682606001356040515f6040518083038185875af1925050503d805f8114612002576040519150601f19603f3d011682016040523d82523d5f602084013e612007565b606091505b505090508061206d5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610517565b505b5f6118f36020830183612760565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108a4565b6120ad61220e565b6109d48282612233565b6120bf61220e565b610de181612292565b5f5f60205f8451602086015f885af1806120e7576040513d5f823e3d81fd5b50505f513d915081156120fe57806001141561210b565b6001600160a01b0384163b155b1561136e57604051635274afe760e01b81526001600160a01b0385166004820152602401610517565b5f6108a461214061229a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f61216e86866122a8565b92509250925061217e82826122f1565b5090949350505050565b612191826123a9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156121d557611ab1828261240c565b6109d461247e565b6040516001600160a01b03838116602483015260448201839052611ab191859182169063a9059cbb9060640161133c565b61221661249d565b610bed57604051631afcd79f60e31b815260040160405180910390fd5b61223b61220e565b5f516020612e885f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026122748482612db6565b50600381016122838382612db6565b505f8082556001909101555050565b6112c261220e565b5f6122a36124b6565b905090565b5f5f5f83516041036122df576020840151604085015160608601515f1a6122d188828585612529565b9550955095505050506122ea565b505081515f91506002905b9250925092565b5f82600381111561230457612304612c5c565b0361230d575050565b600182600381111561232157612321612c5c565b0361233f5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561235357612353612c5c565b036123745760405163fce698f760e01b815260048101829052602401610517565b600382600381111561238857612388612c5c565b036109d4576040516335e2f38360e21b815260048101829052602401610517565b806001600160a01b03163b5f036123de57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610517565b5f516020612ea85f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516124289190612e71565b5f60405180830381855af49150503d805f8114612460576040519150601f19603f3d011682016040523d82523d5f602084013e612465565b606091505b50915091506124758583836125f1565b95945050505050565b3415610bed5760405163b398979f60e01b815260040160405180910390fd5b5f6124a661207d565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6124e0612650565b6124e86126b8565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561256257505f915060039050826125e7565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156125b3573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b0381166125de57505f9250600191508290506125e7565b92505f91508190505b9450945094915050565b60608261260657612601826126fa565b612649565b815115801561261d57506001600160a01b0384163b155b1561264657604051639996b31560e01b81526001600160a01b0385166004820152602401610517565b50805b9392505050565b5f5f516020612e885f395f51905f5281612668611b6f565b80519091501561268057805160209091012092915050565b8154801561268f579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612e885f395f51905f52816126d0611c2f565b8051909150156126e857805160209091012092915050565b6001820154801561268f579392505050565b80511561270957805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610bd7575f5ffd5b5f5f60408385031215612749575f5ffd5b61275283612722565b946020939093013593505050565b5f60208284031215612770575f5ffd5b61264982612722565b5f5f5f5f6080858703121561278c575f5ffd5b61279585612722565b93506127a360208601612722565b93969395505050506040820135916060013590565b5f60c082840312156127c8575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561280b5761280b6127ce565b604052919050565b5f82601f830112612822575f5ffd5b813567ffffffffffffffff81111561283c5761283c6127ce565b61284f601f8201601f19166020016127e2565b818152846020838601011115612863575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e08385031215612890575f5ffd5b61289a84846127b8565b915060c083013567ffffffffffffffff8111156128b5575f5ffd5b6128c185828601612813565b9150509250929050565b5f67ffffffffffffffff8211156128e4576128e46127ce565b5060051b60200190565b5f82601f8301126128fd575f5ffd5b813561291061290b826128cb565b6127e2565b8082825260208201915060208360051b860101925085831115612931575f5ffd5b602085015b8381101561294e578035835260209283019201612936565b5095945050505050565b5f5f60408385031215612969575f5ffd5b823567ffffffffffffffff81111561297f575f5ffd5b8301601f8101851361298f575f5ffd5b803561299d61290b826128cb565b8082825260208201915060208360051b8501019250878311156129be575f5ffd5b6020840193505b828410156129e7576129d684612722565b8252602093840193909101906129c5565b9450505050602083013567ffffffffffffffff811115612a05575f5ffd5b6128c1858286016128ee565b5f8151808452602084019350602083015f5b82811015612a41578151865260209586019590910190600101612a23565b5093949350505050565b602081525f6126496020830184612a11565b5f5f60408385031215612a6e575f5ffd5b612a7783612722565b9150602083013567ffffffffffffffff8111156128b5575f5ffd5b5f60208284031215612aa2575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f612af560e0830189612aa9565b8281036040840152612b078189612aa9565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050612b388185612a11565b9a9950505050505050505050565b602081525f6126496020830184612aa9565b5f60c08284031215612b68575f5ffd5b61264983836127b8565b803560038110610bd7575f5ffd5b5f5f60408385031215612b91575f5ffd5b612b9a83612b72565b915060208301356001600160601b0381168114612bb5575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108a4576108a4612bc0565b80820281158282048414176108a4576108a4612bc0565b5f82612c1857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108a4576108a4612bc0565b5f60018201612c4157612c41612bc0565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612c8c57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612c9e8285612c70565b6001600160601b03831660208301529392505050565b5f60208284031215612cc4575f5ffd5b61264982612b72565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612d1560e0830184612c70565b9998505050505050505050565b5f60208284031215612d32575f5ffd5b5051919050565b600181811c90821680612d4d57607f821691505b6020821081036127c857634e487b7160e01b5f52602260045260245ffd5b601f821115611ab157805f5260205f20601f840160051c81016020851015612d905750805b601f840160051c820191505b81811015612daf575f8155600101612d9c565b5050505050565b815167ffffffffffffffff811115612dd057612dd06127ce565b612de481612dde8454612d39565b84612d6b565b6020601f821160018114612e16575f8315612dff5750848201515b5f19600385901b1c1916600184901b178455612daf565b5f84815260208120601f198516915b82811015612e455787850151825560209485019460019092019101612e25565b5084821015612e6257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092ee20f800c61ffef7cf843cfdfb8556dc583253cc5041e6938d0f36f866cde564736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteractionId":1,"nonce":770,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","networkInteractionId":1,"nonce":770,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1919536945"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x0ca0b310f89910a0ba76e1ea7208405ee636d0cf1b89a1c6d0e8594ec4bf6b6d"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyVault#CurvyVaultV2Implementation","constructorArgs":[],"contractName":"CurvyVaultV2","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV2Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612c326100f95f395f81816116c5015281816116ee01526118320152612c325ff3fe608060405260043610610149575f3560e01c80638bc7e8c4116100b3578063c4d66de81161006d578063c4d66de8146103fb578063de1a27201461041a578063efeecb5114610439578063f15376861461044d578063f2fde38b1461046c578063fe54fd6a1461048b575f5ffd5b80638bc7e8c4146103275780638da5cb5b14610346578063acb2ad6f1461035a578063ad3cb1cc14610380578063ad8623cc146103bd578063b86c4d72146103dc575f5ffd5b80634f1ef286116101045780634f1ef2861461025757806352d1902d1461026a57806367a527931461027e57806367ccdf38146102b5578063715018a6146102ec57806384b0196e14610300575f5ffd5b8062fdd58e1461017457806309824a80146101a657806320e8c565146101c55780632d0335ab146101d857806331ddbddc1461020c5780634e1273f41461022b575f5ffd5b366101705761016e73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104aa565b005b5f5ffd5b34801561017f575f5ffd5b5061019361018e36600461246d565b6107ef565b6040519081526020015b60405180910390f35b3480156101b1575f5ffd5b5061016e6101c0366004612495565b610817565b61016e6101d33660046124ae565b6104aa565b3480156101e3575f5ffd5b506101936101f2366004612495565b6001600160a01b03165f9081526001602052604090205490565b348015610217575f5ffd5b5061016e6102263660046125b4565b61092e565b348015610236575f5ffd5b5061024a61024536600461268d565b610945565b60405161019d9190612780565b61016e610265366004612792565b610a94565b348015610275575f5ffd5b50610193610aaf565b348015610289575f5ffd5b5060055461029d906001600160601b031681565b6040516001600160601b03909116815260200161019d565b3480156102c0575f5ffd5b506102d46102cf3660046127c7565b610aca565b6040516001600160a01b03909116815260200161019d565b3480156102f7575f5ffd5b5061016e610b49565b34801561030b575f5ffd5b50610314610b5c565b60405161019d979695949392919061280c565b348015610332575f5ffd5b5060065461029d906001600160601b031681565b348015610351575f5ffd5b506102d4610c05565b348015610365575f5ffd5b5060055461029d90600160601b90046001600160601b031681565b34801561038b575f5ffd5b506103b0604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161019d919061287b565b3480156103c8575f5ffd5b5061016e6103d736600461288d565b610c33565b3480156103e7575f5ffd5b5061016e6103f63660046128b5565b610ca0565b348015610406575f5ffd5b5061016e610415366004612495565b610df8565b348015610425575f5ffd5b5061016e61043436600461288d565b610fdf565b348015610444575f5ffd5b50600254610193565b348015610458575f5ffd5b50610193610467366004612495565b611049565b348015610477575f5ffd5b5061016e610486366004612495565b6110c5565b348015610496575f5ffd5b5061016e6104a53660046125b4565b6110ff565b6001600160a01b0383166104d157604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105bc5734156105685760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b60648201526084015b60405180910390fd5b61057d6001600160a01b038616333086611112565b506001600160a01b0384165f90815260036020526040812054908190036105b75760405163259ba1ad60e01b815260040160405180910390fd5b610624565b3483146106205760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b606482015260840161055f565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610654908490612909565b90915550506005546001600160601b031615610719576005545f9061271090610686906001600160601b03168661291c565b6106909190612933565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906106c5908490612952565b909155508190505f806106d6610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107129190612909565b9091555050505b81156107a2576001600160a01b0384165f908152602081815260408083208484529091528120805484929061074f908490612952565b909155508290505f80610760610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461079c9190612909565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61081f61117f565b6001600160a01b0381165f90815260036020526040902054156108a05760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b606482015260840161055f565b60028054905f6108af83612965565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f910160405180910390a150565b61093882826111b1565b61094182611383565b5050565b606081518351146109b15760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b606482015260840161055f565b5f835167ffffffffffffffff8111156109cc576109cc612503565b6040519080825280602002602001820160405280156109f5578160200160208202803683370190505b5090505f5b8451811015610a8c575f5f868381518110610a1757610a1761297d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610a5157610a5161297d565b602002602001015181526020019081526020015f2054828281518110610a7957610a7961297d565b60209081029190910101526001016109fa565b509392505050565b610a9c6116ba565b610aa58261175e565b6109418282611766565b5f610ab8611827565b505f516020612bdd5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610b445760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b606482015260840161055f565b919050565b610b5161117f565b610b5a5f611870565b565b5f60608082808083815f516020612bbd5f395f51905f528054909150158015610b8757506001810154155b610bcb5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b604482015260640161055f565b610bd36118e0565b610bdb6119a0565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610c406020820182612495565b6001600160a01b0316336001600160a01b031614610c7157604051636edaef2f60e11b815260040160405180910390fd5b608081013515610c945760405163094816b760e41b815260040160405180910390fd5b610c9d816119de565b50565b610ca861117f565b6002826002811115610cbc57610cbc612991565b03610ce157600580546001600160601b0319166001600160601b038316179055610dbb565b6001826002811115610cf557610cf5612991565b03610d2857600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610dbb565b5f826002811115610d3b57610d3b612991565b03610d6057600680546001600160601b0319166001600160601b038316179055610dbb565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b606482015260840161055f565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610dec9291906129c5565b60405180910390a15050565b5f610e01611db2565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610e285750825b90505f8267ffffffffffffffff166001148015610e445750303b155b905081158015610e52575080155b15610e705760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610e9a57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b92820192909252610f629190611dda565b610f6b86611dec565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610fd757845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b610fec6020820182612495565b6001600160a01b0316336001600160a01b03161461101d57604051636edaef2f60e11b815260040160405180910390fd5b6080810135156110405760405163094816b760e41b815260040160405180910390fd5b610c9d81611383565b6001600160a01b0381165f9081526003602052604081205490819003610b445760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b606482015260840161055f565b6110cd61117f565b6001600160a01b0381166110f657604051631e4fbdf760e01b81525f600482015260240161055f565b610c9d81611870565b61110982826111b1565b610941826119de565b6040516001600160a01b0384811660248301528381166044830152606482018390526111799186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611dfd565b50505050565b33611188610c05565b6001600160a01b031614610b5a5760405163118cdaa760e01b815233600482015260240161055f565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e6001826111e36020870187612495565b6001600160a01b031681526020808201929092526040015f20549061120a90860186612495565b61121a6040870160208801612495565b60408701356060880135608089013561123960c08b0160a08c016129e9565b604051602001611250989796959493929190612a02565b6040516020818303038152906040528051906020012090505f61127282611e69565b90505f61127f8285611e95565b905061128e6020860186612495565b6001600160a01b0316816001600160a01b0316146113085760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b606482015260840161055f565b6001600160a01b0381165f90815260016020526040812080549161132b83612965565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6113946040830160208401612495565b6001600160a01b0316036113bb57604051634e46966960e11b815260040160405180910390fd5b60016113cd60c0830160a084016129e9565b60028111156113de576113de612991565b146113fc57604051637513b90360e01b815260040160405180910390fd5b60608101355f806114106020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114509190612952565b909155505060608101355f8061146c6040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546114ac9190612909565b909155505060808101351561154b5760808101355f806114d26040850160208601612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115129190612952565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611545908490612909565b90915550505b600554600160601b90046001600160601b03161561163e576005545f906127109061158a90600160601b90046001600160601b0316606085013561291c565b6115949190612933565b9050805f806115a66020860186612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546115e69190612952565b909155508190505f806115f7610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546116379190612909565b9091555050505b61164e6040820160208301612495565b6001600160a01b03166116646020830183612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516116af929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061174057507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166117345f516020612bdd5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610b5a5760405163703e46dd60e11b815260040160405180910390fd5b610c9d61117f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156117c0575060408051601f3d908101601f191682019092526117bd91810190612a57565b60015b6117e857604051634c9c8ce360e01b81526001600160a01b038316600482015260240161055f565b5f516020612bdd5f395f51905f52811461181857604051632a87526960e21b81526004810182905260240161055f565b6118228383611ebd565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b5a5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612bbd5f395f51905f529161191e90612a6e565b80601f016020809104026020016040519081016040528092919081815260200182805461194a90612a6e565b80156119955780601f1061196c57610100808354040283529160200191611995565b820191905f5260205f20905b81548152906001019060200180831161197857829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612bbd5f395f51905f529161191e90612a6e565b5f6119ef6040830160208401612495565b6001600160a01b031603611a5f5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b606482015260840161055f565b5f611a7060c0830160a084016129e9565b6002811115611a8157611a81612991565b14611aec5760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b606482015260840161055f565b60608101355f80611b006020850185612495565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611b409190612952565b90915550506060810135608082013515611b9b57611b62608083013582612952565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611b95908490612909565b90915550505b6006546001600160601b031615611c36576006545f9061271090611bcc906001600160601b0316606086013561291c565b611bd69190612933565b9050611be28183612952565b9150805f5f611bef610c05565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611c2f9190612909565b9091555050505b6001826040013514611c8857604080830180355f90815260046020908152929020546001600160a01b031691611c8291611c71918601612495565b6001600160a01b0383169084611f12565b50611d4d565b5f611c996040840160208501612495565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611ce0576040519150601f19603f3d011682016040523d82523d5f602084013e611ce5565b606091505b5050905080611d4b5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b606482015260840161055f565b505b5f611d5b6020840184612495565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611da6929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610811565b611de2611f43565b6109418282611f68565b611df4611f43565b610c9d81611fc7565b5f5f60205f8451602086015f885af180611e1c576040513d5f823e3d81fd5b50505f513d91508115611e33578060011415611e40565b6001600160a01b0384163b155b1561117957604051635274afe760e01b81526001600160a01b038516600482015260240161055f565b5f610811611e75611fcf565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611ea38686611fdd565b925092509250611eb38282612026565b5090949350505050565b611ec6826120de565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115611f0a576118228282612141565b6109416121b3565b6040516001600160a01b0383811660248301526044820183905261182291859182169063a9059cbb90606401611147565b611f4b6121d2565b610b5a57604051631afcd79f60e31b815260040160405180910390fd5b611f70611f43565b5f516020612bbd5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102611fa98482612aeb565b5060038101611fb88382612aeb565b505f8082556001909101555050565b6110cd611f43565b5f611fd86121eb565b905090565b5f5f5f8351604103612014576020840151604085015160608601515f1a6120068882858561225e565b95509550955050505061201f565b505081515f91506002905b9250925092565b5f82600381111561203957612039612991565b03612042575050565b600182600381111561205657612056612991565b036120745760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561208857612088612991565b036120a95760405163fce698f760e01b81526004810182905260240161055f565b60038260038111156120bd576120bd612991565b03610941576040516335e2f38360e21b81526004810182905260240161055f565b806001600160a01b03163b5f0361211357604051634c9c8ce360e01b81526001600160a01b038216600482015260240161055f565b5f516020612bdd5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161215d9190612ba6565b5f60405180830381855af49150503d805f8114612195576040519150601f19603f3d011682016040523d82523d5f602084013e61219a565b606091505b50915091506121aa858383612326565b95945050505050565b3415610b5a5760405163b398979f60e01b815260040160405180910390fd5b5f6121db611db2565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f612215612385565b61221d6123ed565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561229757505f9150600390508261231c565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa1580156122e8573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661231357505f92506001915082905061231c565b92505f91508190505b9450945094915050565b60608261233b576123368261242f565b61237e565b815115801561235257506001600160a01b0384163b155b1561237b57604051639996b31560e01b81526001600160a01b038516600482015260240161055f565b50805b9392505050565b5f5f516020612bbd5f395f51905f528161239d6118e0565b8051909150156123b557805160209091012092915050565b815480156123c4579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612bbd5f395f51905f52816124056119a0565b80519091501561241d57805160209091012092915050565b600182015480156123c4579392505050565b80511561243e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610b44575f5ffd5b5f5f6040838503121561247e575f5ffd5b61248783612457565b946020939093013593505050565b5f602082840312156124a5575f5ffd5b61237e82612457565b5f5f5f5f608085870312156124c1575f5ffd5b6124ca85612457565b93506124d860208601612457565b93969395505050506040820135916060013590565b5f60c082840312156124fd575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561254057612540612503565b604052919050565b5f82601f830112612557575f5ffd5b813567ffffffffffffffff81111561257157612571612503565b612584601f8201601f1916602001612517565b818152846020838601011115612598575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156125c5575f5ffd5b6125cf84846124ed565b915060c083013567ffffffffffffffff8111156125ea575f5ffd5b6125f685828601612548565b9150509250929050565b5f67ffffffffffffffff82111561261957612619612503565b5060051b60200190565b5f82601f830112612632575f5ffd5b813561264561264082612600565b612517565b8082825260208201915060208360051b860101925085831115612666575f5ffd5b602085015b8381101561268357803583526020928301920161266b565b5095945050505050565b5f5f6040838503121561269e575f5ffd5b823567ffffffffffffffff8111156126b4575f5ffd5b8301601f810185136126c4575f5ffd5b80356126d261264082612600565b8082825260208201915060208360051b8501019250878311156126f3575f5ffd5b6020840193505b8284101561271c5761270b84612457565b8252602093840193909101906126fa565b9450505050602083013567ffffffffffffffff81111561273a575f5ffd5b6125f685828601612623565b5f8151808452602084019350602083015f5b82811015612776578151865260209586019590910190600101612758565b5093949350505050565b602081525f61237e6020830184612746565b5f5f604083850312156127a3575f5ffd5b6127ac83612457565b9150602083013567ffffffffffffffff8111156125ea575f5ffd5b5f602082840312156127d7575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61282a60e08301896127de565b828103604084015261283c81896127de565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061286d8185612746565b9a9950505050505050505050565b602081525f61237e60208301846127de565b5f60c0828403121561289d575f5ffd5b61237e83836124ed565b803560038110610b44575f5ffd5b5f5f604083850312156128c6575f5ffd5b6128cf836128a7565b915060208301356001600160601b03811681146128ea575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610811576108116128f5565b8082028115828204841417610811576108116128f5565b5f8261294d57634e487b7160e01b5f52601260045260245ffd5b500490565b81810381811115610811576108116128f5565b5f60018201612976576129766128f5565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b600381106129c157634e487b7160e01b5f52602160045260245ffd5b9052565b604081016129d382856129a5565b6001600160601b03831660208301529392505050565b5f602082840312156129f9575f5ffd5b61237e826128a7565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612a4a60e08301846129a5565b9998505050505050505050565b5f60208284031215612a67575f5ffd5b5051919050565b600181811c90821680612a8257607f821691505b6020821081036124fd57634e487b7160e01b5f52602260045260245ffd5b601f82111561182257805f5260205f20601f840160051c81016020851015612ac55750805b601f840160051c820191505b81811015612ae4575f8155600101612ad1565b5050505050565b815167ffffffffffffffff811115612b0557612b05612503565b612b1981612b138454612a6e565b84612aa0565b6020601f821160018114612b4b575f8315612b345750848201515b5f19600385901b1c1916600184901b178455612ae4565b5f84815260208120601f198516915b82811015612b7a5787850151825560209485019460019092019101612b5a565b5084821015612b9757868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212202a778473814d79a7a9c68762ac7b88d037ffd9a5579e8017bdea83dab1cac6c664736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteractionId":1,"nonce":771,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","networkInteractionId":1,"nonce":771,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1919536945"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xc85445f33c80973d6a122c43f6bf1ffe55d3303312368fa1f71830929951179d"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyVault#CurvyVaultV3Implementation","constructorArgs":[],"contractName":"CurvyVaultV3","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV3Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5f6100f95f395f81816117f20152818161181b015261195f0152612d5f5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a836600461259a565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125c2565b6108e5565b6101886101ed3660046125db565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125c2565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126e1565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127ba565b610a14565b6040516101b791906128ad565b61018861027f3660046128bf565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f4565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125c2565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612939565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a8565b348015610401575f5ffd5b506101886104103660046129ba565b610d60565b348015610420575f5ffd5b5061018861042f3660046129e2565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125c2565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129ba565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125c2565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125c2565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126e1565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a36565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a49565b61075e9190612a60565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7f565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a36565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7f565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a36565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a92565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b612630565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aaa565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aaa565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aaa565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e7565b610b748261188b565b610a108282611893565b5f610b87611954565b505f516020612d0a5f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199d565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612cea5f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0d565b610d08611acd565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125c2565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b0b565b50565b610dd56112ac565b6002826002811115610de957610de9612abe565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abe565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abe565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612af2565b60405180910390a15050565b5f610f2e611edf565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f07565b61109886611f19565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125c2565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199d565b61123682826112de565b610a1082611b0b565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f2a565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125c2565b6001600160a01b031681526020808201929092526040015f205490611337908601866125c2565b61134760408701602088016125c2565b60408701356060880135608089013561136660c08b0160a08c01612b16565b60405160200161137d989796959493929190612b2f565b6040516020818303038152906040528051906020012090505f61139f82611f96565b90505f6113ac8285611fc2565b90506113bb60208601866125c2565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a92565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125c2565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b16565b600281111561150b5761150b612abe565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7f565b909155505060608101355f8061159960408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a36565b90915550506080810135156116785760808101355f806115ff60408501602086016125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163f9190612a7f565b9091555050325f908152602081815260408083208185013584529091528120805460808401359290611672908490612a36565b90915550505b600554600160601b90046001600160601b03161561176b576005545f90612710906116b790600160601b90046001600160601b03166060850135612a49565b6116c19190612a60565b9050805f806116d360208601866125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117139190612a7f565b909155508190505f80611724610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117649190612a36565b9091555050505b61177b60408201602083016125c2565b6001600160a01b031661179160208301836125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117dc929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118615f516020612d0a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ed575060408051601f3d908101601f191682019092526118ea91810190612b84565b60015b61191557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d0a5f395f51905f52811461194557604051632a87526960e21b815260048101829052602401610574565b61194f8383611fea565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612cea5f395f51905f5291611a4b90612b9b565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7790612b9b565b8015611ac25780601f10611a9957610100808354040283529160200191611ac2565b820191905f5260205f20905b815481529060010190602001808311611aa557829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612cea5f395f51905f5291611a4b90612b9b565b5f611b1c60408301602084016125c2565b6001600160a01b031603611b8c5760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9d60c0830160a08401612b16565b6002811115611bae57611bae612abe565b14611c195760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2d60208501856125c2565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6d9190612a7f565b90915550506060810135608082013515611cc857611c8f608083013582612a7f565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cc2908490612a36565b90915550505b6006546001600160601b031615611d63576006545f9061271090611cf9906001600160601b03166060860135612a49565b611d039190612a60565b9050611d0f8183612a7f565b9150805f5f611d1c610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d5c9190612a36565b9091555050505b6001826040013514611db557604080830180355f90815260046020908152929020546001600160a01b031691611daf91611d9e9186016125c2565b6001600160a01b038316908461203f565b50611e7a565b5f611dc660408401602085016125c2565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0d576040519150601f19603f3d011682016040523d82523d5f602084013e611e12565b606091505b5050905080611e785760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8860208401846125c2565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed3929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0f612070565b610a108282612095565b611f21612070565b610dca816120f4565b5f5f60205f8451602086015f885af180611f49576040513d5f823e3d81fd5b50505f513d91508115611f60578060011415611f6d565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611fa26120fc565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fd0868661210a565b925092509250611fe08282612153565b5090949350505050565b611ff38261220b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120375761194f828261226e565b610a106122e0565b6040516001600160a01b0383811660248301526044820183905261194f91859182169063a9059cbb90606401611274565b6120786122ff565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209d612070565b5f516020612cea5f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d68482612c18565b50600381016120e58382612c18565b505f8082556001909101555050565b6111fa612070565b5f612105612318565b905090565b5f5f5f8351604103612141576020840151604085015160608601515f1a6121338882858561238b565b95509550955050505061214c565b505081515f91506002905b9250925092565b5f82600381111561216657612166612abe565b0361216f575050565b600182600381111561218357612183612abe565b036121a15760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b5576121b5612abe565b036121d65760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121ea576121ea612abe565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361224057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d0a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161228a9190612cd3565b5f60405180830381855af49150503d805f81146122c2576040519150601f19603f3d011682016040523d82523d5f602084013e6122c7565b606091505b50915091506122d7858383612453565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612308611edf565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6123426124b2565b61234a61251a565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c457505f91506003905082612449565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612415573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661244057505f925060019150829050612449565b92505f91508190505b9450945094915050565b606082612468576124638261255c565b6124ab565b815115801561247f57506001600160a01b0384163b155b156124a857604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612cea5f395f51905f52816124ca611a0d565b8051909150156124e257805160209091012092915050565b815480156124f1579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612cea5f395f51905f5281612532611acd565b80519091501561254a57805160209091012092915050565b600182015480156124f1579392505050565b80511561256b57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125ab575f5ffd5b6125b483612584565b946020939093013593505050565b5f602082840312156125d2575f5ffd5b6124ab82612584565b5f5f5f5f608085870312156125ee575f5ffd5b6125f785612584565b935061260560208601612584565b93969395505050506040820135916060013590565b5f60c0828403121561262a575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266d5761266d612630565b604052919050565b5f82601f830112612684575f5ffd5b813567ffffffffffffffff81111561269e5761269e612630565b6126b1601f8201601f1916602001612644565b8181528460208386010111156126c5575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126f2575f5ffd5b6126fc848461261a565b915060c083013567ffffffffffffffff811115612717575f5ffd5b61272385828601612675565b9150509250929050565b5f67ffffffffffffffff82111561274657612746612630565b5060051b60200190565b5f82601f83011261275f575f5ffd5b813561277261276d8261272d565b612644565b8082825260208201915060208360051b860101925085831115612793575f5ffd5b602085015b838110156127b0578035835260209283019201612798565b5095945050505050565b5f5f604083850312156127cb575f5ffd5b823567ffffffffffffffff8111156127e1575f5ffd5b8301601f810185136127f1575f5ffd5b80356127ff61276d8261272d565b8082825260208201915060208360051b850101925087831115612820575f5ffd5b6020840193505b828410156128495761283884612584565b825260209384019390910190612827565b9450505050602083013567ffffffffffffffff811115612867575f5ffd5b61272385828601612750565b5f8151808452602084019350602083015f5b828110156128a3578151865260209586019590910190600101612885565b5093949350505050565b602081525f6124ab6020830184612873565b5f5f604083850312156128d0575f5ffd5b6128d983612584565b9150602083013567ffffffffffffffff811115612717575f5ffd5b5f60208284031215612904575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295760e083018961290b565b8281036040840152612969818961290b565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152905061299a8185612873565b9a9950505050505050505050565b602081525f6124ab602083018461290b565b5f60c082840312156129ca575f5ffd5b6124ab838361261a565b803560038110610c13575f5ffd5b5f5f604083850312156129f3575f5ffd5b6129fc836129d4565b915060208301356001600160601b0381168114612a17575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a22565b80820281158282048414176108df576108df612a22565b5f82612a7a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a22565b5f60018201612aa357612aa3612a22565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aee57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612b008285612ad2565b6001600160601b03831660208301529392505050565b5f60208284031215612b26575f5ffd5b6124ab826129d4565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7760e0830184612ad2565b9998505050505050505050565b5f60208284031215612b94575f5ffd5b5051919050565b600181811c90821680612baf57607f821691505b60208210810361262a57634e487b7160e01b5f52602260045260245ffd5b601f82111561194f57805f5260205f20601f840160051c81016020851015612bf25750805b601f840160051c820191505b81811015612c11575f8155600101612bfe565b5050505050565b815167ffffffffffffffff811115612c3257612c32612630565b612c4681612c408454612b9b565b84612bcd565b6020601f821160018114612c78575f8315612c615750848201515b5f19600385901b1c1916600184901b178455612c11565b5f84815260208120601f198516915b82811015612ca75787850151825560209485019460019092019101612c87565b5084821015612cc457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220c20887547f3b6ec5a8a0b6ef1c424ebd44a1a0f260ed15c8ef26d40b2c678f1964736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","networkInteractionId":1,"nonce":772,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","networkInteractionId":1,"nonce":772,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1919536945"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x5e573aaae27e5b5fa99189eba3fe1c42292026d138be01c2bf4fdffe5245b522"},"type":"TRANSACTION_SEND"}
-{"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","contractName":"ICreateX","dependencies":[],"futureId":"PortalFactory#CreateX","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","hash":"0xfcbf43aeceaea1b3c7af1ee3899f529b8809123755a5495f4e84fa669835e729","networkInteractionId":1,"receipt":{"blockHash":"0x461a85fc2be8d00221d32fc2541987666e7c8b2986c8b2db106c7bb96da7e4b0","blockNumber":10203746,"contractAddress":"0xE340e895B07e90DEE5792ACDF6E4Ad868254BA89","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","result":{"address":"0xE340e895B07e90DEE5792ACDF6E4Ad868254BA89","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","hash":"0x3bfdb5c27d619c334d4cf201b5d50989f19dc6fe98b76a09e032f32781c8bbc0","networkInteractionId":1,"receipt":{"blockHash":"0x461a85fc2be8d00221d32fc2541987666e7c8b2986c8b2db106c7bb96da7e4b0","blockNumber":10203746,"contractAddress":"0x607E3Fcd7F1b41609Db51fC3232E9dFA92416Bfa","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","result":{"address":"0x607E3Fcd7F1b41609Db51fC3232E9dFA92416Bfa","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","hash":"0x8cfdc70a13400206ee355647bb173fcf6eb405c62831fd8de7bf17d2e66f01b7","networkInteractionId":1,"receipt":{"blockHash":"0x461a85fc2be8d00221d32fc2541987666e7c8b2986c8b2db106c7bb96da7e4b0","blockNumber":10203746,"contractAddress":"0xad811bFfE111eD645e33ea8251eF09e8E8e5ded4","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2","result":{"address":"0xad811bFfE111eD645e33ea8251eF09e8E8e5ded4","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","hash":"0xed608ae9acf3d723731053049ac01b987992f47e4e98199710c48b3c07bd2d6a","networkInteractionId":1,"receipt":{"blockHash":"0x461a85fc2be8d00221d32fc2541987666e7c8b2986c8b2db106c7bb96da7e4b0","blockNumber":10203746,"contractAddress":"0x8584baE2E04A9481cBd8E896188f265fDD7136e1","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#PoseidonT4","result":{"address":"0x8584baE2E04A9481cBd8E896188f265fDD7136e1","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","hash":"0x0ca0b310f89910a0ba76e1ea7208405ee636d0cf1b89a1c6d0e8594ec4bf6b6d","networkInteractionId":1,"receipt":{"blockHash":"0x461a85fc2be8d00221d32fc2541987666e7c8b2986c8b2db106c7bb96da7e4b0","blockNumber":10203746,"contractAddress":"0x68EE689410a167820ba3027DC399a06F48d66d4d","logs":[{"address":"0x68EE689410a167820ba3027DC399a06F48d66d4d","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":234,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV1Implementation","result":{"address":"0x68EE689410a167820ba3027DC399a06F48d66d4d","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","hash":"0xc85445f33c80973d6a122c43f6bf1ffe55d3303312368fa1f71830929951179d","networkInteractionId":1,"receipt":{"blockHash":"0x461a85fc2be8d00221d32fc2541987666e7c8b2986c8b2db106c7bb96da7e4b0","blockNumber":10203746,"contractAddress":"0xde15Dd34F5ebaA2F98CfA7bC600C3a1A3559b2A6","logs":[{"address":"0xde15Dd34F5ebaA2F98CfA7bC600C3a1A3559b2A6","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":235,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV2Implementation","result":{"address":"0xde15Dd34F5ebaA2F98CfA7bC600C3a1A3559b2A6","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","hash":"0x5e573aaae27e5b5fa99189eba3fe1c42292026d138be01c2bf4fdffe5245b522","networkInteractionId":1,"receipt":{"blockHash":"0xd1706dfb0052f119c7bec13641f2406110537c7fde4c8123f9749073239dcfb4","blockNumber":10203747,"contractAddress":"0x86e341d2F2e1d762940eac489EAa76eb4af7F59d","logs":[{"address":"0x86e341d2F2e1d762940eac489EAa76eb4af7F59d","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":234,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV3Implementation","result":{"address":"0x86e341d2F2e1d762940eac489EAa76eb4af7F59d","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV1","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0x8584baE2E04A9481cBd8E896188f265fDD7136e1"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f676100f95f395f81816112ba015281816112e301526114270152611f675ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b2565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611900565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a2565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c2565b610884565b348015610237575f5ffd5b5061015f610246366004611a36565b610cbb565b61015f610259366004611a67565b610ddc565b348015610269575f5ffd5b506101c8610dfb565b34801561027d575f5ffd5b5061018061028c366004611ab2565b610e16565b34801561029c575f5ffd5b5061015f6110a0565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b23565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b3565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b68565b3480156103ab575f5ffd5b506101806103ba366004611b7a565b6110e1565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c17565b611205565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611caa565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f9350738584baE2E04A9481cBd8E896188f265fDD7136e192506320cf0a37916104fd91600401611cd1565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d01565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2c565b6105b4906001611d43565b600e81106105c4576105c4611d56565b602002015190505f8360015460026105dc9190611d2c565b6105e7906002611d43565b600e81106105f7576105f7611d56565b602002015190505f84600154600261060f9190611d2c565b61061a906003611d43565b600e811061062a5761062a611d56565b602002015190505f8560015460026106429190611d2c565b61064d906004611d43565b600e811061065d5761065d611d56565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dbf565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1b565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611242565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3a565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1b565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bca575f84610aa8836004611d43565b600a8110610ab857610ab8611d56565b602002015190505f85836002546004610ad19190611d43565b610adb9190611d43565b600a8110610aeb57610aeb611d56565b602002015190508115610bb5576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8a565b600a8110610b4057610b40611d56565b602002015181526020018581526020015f81526020015f6002811115610b6857610b68611c30565b8152506040518263ffffffff1660e01b8152600401610b879190611e9d565b5f604051808303815f87803b158015610b9e575f5ffd5b505af1158015610bb0573d5f5f3e3d5ffd5b505050505b50610bc39050600182611d43565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfa6110b3565b6001600160a01b0316815260200186610c14600187611e8a565b600a8110610c2457610c24611d56565b60200201518152602001866001600a8110610c4157610c41611d56565b602002015181526020015f81526020015f6002811115610c6357610c63611c30565b8152506040518263ffffffff1660e01b8152600401610c829190611e9d565b5f604051808303815f87803b158015610c99575f5ffd5b505af1158015610cab573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc4611274565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ceb5750825b90505f8267ffffffffffffffff166001148015610d075750303b155b905081158015610d15575080155b15610d335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5d57845460ff60401b1916600160401b1785555b60025f819055808055600155610d728761129e565b600680546001600160a01b0319166001600160a01b0388161790558315610dd357845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de46112af565b610ded82611353565b610df7828261135b565b5050565b5f610e0461141c565b505f516020611f125f395f51905f5290565b5f805b5f54811015610efa575f838260048110610e3557610e35611d56565b602002015190508015610ee7575f8181526003602052604090205460ff16610ed15760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef3600182611d43565b9050610e19565b50600482610f09600283611e8a565b60048110610f1957610f19611d56565b602002015160045414610f945760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fca908990899089908990600401611eab565b602060405180830381865afa158015610fe5573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110099190611e1b565b6110705760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107c600183611e8a565b6004811061108c5761108c611d56565b602002015160045550600195945050505050565b6110a8611242565b6110b15f611465565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ea611242565b81516001600160a01b03161561111c578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611154576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118c576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c4576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d65760808201515f555b60c0820151156111e95760c08201516001555b60a0820151156111fc5760a08201516002555b5060015b919050565b61120d611242565b6001600160a01b03811661123657604051631e4fbdf760e01b81525f60048201526024016106e8565b61123f81611465565b50565b3361124b6110b3565b6001600160a01b0316146110b15760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a66114d5565b61123f816114fa565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166113295f516020611f125f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b15760405163703e46dd60e11b815260040160405180910390fd5b61123f611242565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b5575060408051601f3d908101601f191682019092526113b291810190611d01565b60015b6113dd57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f125f395f51905f52811461140d57604051632a87526960e21b8152600481018290526024016106e8565b6114178383611502565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b15760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114dd611557565b6110b157604051631afcd79f60e31b815260040160405180910390fd5b61120d6114d5565b61150b82611570565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561154f5761141782826115d3565b610df7611645565b5f611560611274565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a557604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f125f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115ef9190611efb565b5f60405180830381855af49150503d805f8114611627576040519150601f19603f3d011682016040523d82523d5f602084013e61162c565b606091505b509150915061163c858383611664565b95945050505050565b34156110b15760405163b398979f60e01b815260040160405180910390fd5b60608261167957611674826116c3565b6116bc565b815115801561169057506001600160a01b0384163b155b156116b957604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611200575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561173e5761173e611701565b604052919050565b5f82601f830112611755575f5ffd5b813567ffffffffffffffff81111561176f5761176f611701565b611782601f8201601f1916602001611715565b818152846020838601011115611796575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c5575f5ffd5b6117ce856116eb565b93506060601f19820112156117e1575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180557611805611701565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff81111561183e575f5ffd5b61184a86828701611746565b9150509250925092565b5f82601f830112611863575f5ffd5b5f61186e6040611715565b9050806040840185811115611881575f5ffd5b845b8181101561189b578035835260209283019201611883565b509195945050505050565b5f82601f8301126118b5575f5ffd5b60406118c081611715565b8060808501868111156118d1575f5ffd5b855b818110156118f4576118e58882611854565b845260209093019284016118d3565b50909695505050505050565b5f5f5f5f6102c08587031215611914575f5ffd5b61191e8686611854565b935061192d86604087016118a6565b925061193c8660c08701611854565b91505f8661011f87011261194e575f5ffd5b505f806101c061195d81611715565b9150508091506102c0870188811115611974575f5ffd5b61010088015b8181101561199257803584526020938401930161197a565b5050809250505092959194509250565b5f5f604083850312156119b3575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d6575f5ffd5b6119e08686611854565b93506119ef86604087016118a6565b92506119fe8660c08701611854565b91505f8661011f870112611a10575f5ffd5b505f80610140611a1f81611715565b915050809150610240870188811115611974575f5ffd5b5f5f60408385031215611a47575f5ffd5b611a50836116eb565b9150611a5e602084016116eb565b90509250929050565b5f5f60408385031215611a78575f5ffd5b611a81836116eb565b9150602083013567ffffffffffffffff811115611a9c575f5ffd5b611aa885828601611746565b9150509250929050565b5f5f5f5f6101808587031215611ac6575f5ffd5b611ad08686611854565b9350611adf86604087016118a6565b9250611aee8660c08701611854565b91505f8661011f870112611b00575f5ffd5b505f80611b0d6080611715565b9050809150610180870188811115611974575f5ffd5b5f60208284031215611b33575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116bc6020830184611b3a565b5f60e0828403128015611b8b575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611baf57611baf611701565b604052611bbb836116eb565b8152611bc9602084016116eb565b6020820152611bda604084016116eb565b6040820152611beb606084016116eb565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c27575f5ffd5b6116bc826116eb565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611c9f57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb48184611c44565b60e060c08201525f611cc960e0830184611b3a565b949350505050565b6060810181835f5b6003811015611cf8578151835260209283019290910190600101611cd9565b50505092915050565b5f60208284031215611d11575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129857611298611d18565b8082018082111561129857611298611d18565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8c578151845260209384019390910190600101611d6d565b50505050565b805f5b6002811015611d8c57611da9848351611d6a565b6040939093019260209190910190600101611d95565b6102c08101611dce8287611d6a565b611ddb6040830186611d92565b611de860c0830185611d6a565b6101008201835f5b600e811015611e0f578151835260209283019290910190600101611df0565b50505095945050505050565b5f60208284031215611e2b575f5ffd5b815180151581146116bc575f5ffd5b6102408101611e498287611d6a565b611e566040830186611d92565b611e6360c0830185611d6a565b6101008201835f5b600a811015611e0f578151835260209283019290910190600101611e6b565b8181038181111561129857611298611d18565b60c081016112988284611c44565b6101808101611eba8287611d6a565b611ec76040830186611d92565b611ed460c0830185611d6a565b6101008201835f5b6004811015611e0f578151835260209283019290910190600101611edc565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212205c716993d98e927c2e009d323d30b276b9f9053b13c990872e37e08ceda5f0e864736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteractionId":1,"nonce":773,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","networkInteractionId":1,"nonce":773,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1877370665"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x484d4c8b764832c8d5d871e82562e201f3d2ee8eefe8f56bc95a05abc3d3c74c"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV2","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0x8584baE2E04A9481cBd8E896188f265fDD7136e1"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611f696100f95f395f81816112bc015281816112e501526114290152611f695ff3fe60806040526004361061013c575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610344578063ad3cb1cc14610363578063b4da7173146103a0578063b974158a146103bf578063f1576394146103de578063f2fde38b146103f2575f5ffd5b806375849383146102a557806376775ce1146102ba578063864eb164146102e85780638ae11770146103075780638da5cb5b1461031c57806395b7f22a14610330575f5ffd5b8063456aa4f411610104578063456aa4f41461020d578063485cc9551461022c5780634f1ef2861461024b57806352d1902d1461025e5780636a085b5014610272578063715018a614610291575f5ffd5b806308e48496146101405780631a82739b146101615780631dc4363714610195578063354d594b146101b45780633fb07027146101d6575b5f5ffd5b34801561014b575f5ffd5b5061015f61015a3660046117b4565b610411565b005b34801561016c575f5ffd5b5061018061017b366004611902565b610597565b60405190151581526020015b60405180910390f35b3480156101a0575f5ffd5b5061015f6101af3660046119a4565b610871565b3480156101bf575f5ffd5b506101c85f5481565b60405190815260200161018c565b3480156101e1575f5ffd5b506006546101f5906001600160a01b031681565b6040516001600160a01b03909116815260200161018c565b348015610218575f5ffd5b506101806102273660046119c4565b610884565b348015610237575f5ffd5b5061015f610246366004611a38565b610cbd565b61015f610259366004611a69565b610dde565b348015610269575f5ffd5b506101c8610dfd565b34801561027d575f5ffd5b5061018061028c366004611ab4565b610e18565b34801561029c575f5ffd5b5061015f6110a2565b3480156102b0575f5ffd5b506101c860015481565b3480156102c5575f5ffd5b506101806102d4366004611b25565b5f9081526003602052604090205460ff1690565b3480156102f3575f5ffd5b506009546101f5906001600160a01b031681565b348015610312575f5ffd5b506101c860025481565b348015610327575f5ffd5b506101f56110b5565b34801561033b575f5ffd5b506005546101c8565b34801561034f575f5ffd5b506008546101f5906001600160a01b031681565b34801561036e575f5ffd5b50610393604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018c9190611b6a565b3480156103ab575f5ffd5b506101806103ba366004611b7c565b6110e3565b3480156103ca575f5ffd5b506007546101f5906001600160a01b031681565b3480156103e9575f5ffd5b506004546101c8565b3480156103fd575f5ffd5b5061015f61040c366004611c19565b611207565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161047891908590600401611cac565b5f604051808303815f87803b15801561048f575f5ffd5b505af11580156104a1573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f9350738584baE2E04A9481cBd8E896188f265fDD7136e192506320cf0a37916104fd91600401611cd3565b602060405180830381865af4158015610518573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061053c9190611d03565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105899083815260200190565b60405180910390a150505050565b5f5f8260015460026105a99190611d2e565b6105b4906001611d45565b600e81106105c4576105c4611d58565b602002015190505f8360015460026105dc9190611d2e565b6105e7906002611d45565b600e81106105f7576105f7611d58565b602002015190505f84600154600261060f9190611d2e565b61061a906003611d45565b600e811061062a5761062a611d58565b602002015190505f8560015460026106429190611d2e565b61064d906004611d45565b600e811061065d5761065d611d58565b6020020151905081600454146106f15760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461077e5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a4016106e8565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107b4908c908c908c908c90600401611dc1565b602060405180830381865afa1580156107cf573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f39190611e1d565b61085e5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b60648201526084016106e8565b6004555060055550600195945050505050565b610879611244565b600491909155600555565b60055460608201515f91146109165760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a4016106e8565b6004546040830151146109a15760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a4016106e8565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109d7908890889088908890600401611e3c565b602060405180830381865afa1580156109f2573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a169190611e1d565b610a885760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f6621000060648201526084016106e8565b8151600555600a5f5b600254811015610bcb575f84610aa8836004611d45565b600a8110610ab857610ab8611d58565b602002015190505f85836002546004610ad19190611d45565b610adb9190611d45565b600a8110610aeb57610aeb611d58565b602002015190508115610bb6576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b3060018a611e8c565b600a8110610b4057610b40611d58565b602002015181526020018581526020015f815260200160016002811115610b6957610b69611c32565b8152506040518263ffffffff1660e01b8152600401610b889190611e9f565b5f604051808303815f87803b158015610b9f575f5ffd5b505af1158015610bb1573d5f5f3e3d5ffd5b505050505b50610bc49050600182611d45565b9050610a91565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610bfb6110b5565b6001600160a01b0316815260200186610c15600187611e8c565b600a8110610c2557610c25611d58565b60200201518152602001866001600a8110610c4257610c42611d58565b602002015181526020015f815260200160016002811115610c6557610c65611c32565b8152506040518263ffffffff1660e01b8152600401610c849190611e9f565b5f604051808303815f87803b158015610c9b575f5ffd5b505af1158015610cad573d5f5f3e3d5ffd5b5060019998505050505050505050565b5f610cc6611276565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ced5750825b90505f8267ffffffffffffffff166001148015610d095750303b155b905081158015610d17575080155b15610d355760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d5f57845460ff60401b1916600160401b1785555b60025f819055808055600155610d74876112a0565b600680546001600160a01b0319166001600160a01b0388161790558315610dd557845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610de66112b1565b610def82611355565b610df9828261135d565b5050565b5f610e0661141e565b505f516020611f145f395f51905f5290565b5f805b5f54811015610efc575f838260048110610e3757610e37611d58565b602002015190508015610ee9575f8181526003602052604090205460ff16610ed35760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a4016106e8565b5f818152600360205260409020805460ff191690555b50610ef5600182611d45565b9050610e1b565b50600482610f0b600283611e8c565b60048110610f1b57610f1b611d58565b602002015160045414610f965760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f742100000000000000000060648201526084016106e8565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610fcc908990899089908990600401611ead565b602060405180830381865afa158015610fe7573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061100b9190611e1d565b6110725760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b60648201526084016106e8565b8261107e600183611e8c565b6004811061108e5761108e611d58565b602002015160045550600195945050505050565b6110aa611244565b6110b35f611467565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6110ec611244565b81516001600160a01b03161561111e578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611156576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561118e576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156111c6576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156111d85760808201515f555b60c0820151156111eb5760c08201516001555b60a0820151156111fe5760a08201516002555b5060015b919050565b61120f611244565b6001600160a01b03811661123857604051631e4fbdf760e01b81525f60048201526024016106e8565b61124181611467565b50565b3361124d6110b5565b6001600160a01b0316146110b35760405163118cdaa760e01b81523360048201526024016106e8565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112a86114d7565b611241816114fc565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061133757507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661132b5f516020611f145f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156110b35760405163703e46dd60e11b815260040160405180910390fd5b611241611244565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113b7575060408051601f3d908101601f191682019092526113b491810190611d03565b60015b6113df57604051634c9c8ce360e01b81526001600160a01b03831660048201526024016106e8565b5f516020611f145f395f51905f52811461140f57604051632a87526960e21b8152600481018290526024016106e8565b6114198383611504565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146110b35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6114df611559565b6110b357604051631afcd79f60e31b815260040160405180910390fd5b61120f6114d7565b61150d82611572565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115515761141982826115d5565b610df9611647565b5f611562611276565b54600160401b900460ff16919050565b806001600160a01b03163b5f036115a757604051634c9c8ce360e01b81526001600160a01b03821660048201526024016106e8565b5f516020611f145f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115f19190611efd565b5f60405180830381855af49150503d805f8114611629576040519150601f19603f3d011682016040523d82523d5f602084013e61162e565b606091505b509150915061163e858383611666565b95945050505050565b34156110b35760405163b398979f60e01b815260040160405180910390fd5b60608261167b57611676826116c5565b6116be565b815115801561169257506001600160a01b0384163b155b156116bb57604051639996b31560e01b81526001600160a01b03851660048201526024016106e8565b50805b9392505050565b8051156116d457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114611202575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174057611740611703565b604052919050565b5f82601f830112611757575f5ffd5b813567ffffffffffffffff81111561177157611771611703565b611784601f8201601f1916602001611717565b818152846020838601011115611798575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f83850360a08112156117c7575f5ffd5b6117d0856116ed565b93506060601f19820112156117e3575f5ffd5b506040516060810167ffffffffffffffff8111828210171561180757611807611703565b6040908152602086810135835286820135908301526060860135908201529150608084013567ffffffffffffffff811115611840575f5ffd5b61184c86828701611748565b9150509250925092565b5f82601f830112611865575f5ffd5b5f6118706040611717565b9050806040840185811115611883575f5ffd5b845b8181101561189d578035835260209283019201611885565b509195945050505050565b5f82601f8301126118b7575f5ffd5b60406118c281611717565b8060808501868111156118d3575f5ffd5b855b818110156118f6576118e78882611856565b845260209093019284016118d5565b50909695505050505050565b5f5f5f5f6102c08587031215611916575f5ffd5b6119208686611856565b935061192f86604087016118a8565b925061193e8660c08701611856565b91505f8661011f870112611950575f5ffd5b505f806101c061195f81611717565b9150508091506102c0870188811115611976575f5ffd5b61010088015b8181101561199457803584526020938401930161197c565b5050809250505092959194509250565b5f5f604083850312156119b5575f5ffd5b50508035926020909101359150565b5f5f5f5f61024085870312156119d8575f5ffd5b6119e28686611856565b93506119f186604087016118a8565b9250611a008660c08701611856565b91505f8661011f870112611a12575f5ffd5b505f80610140611a2181611717565b915050809150610240870188811115611976575f5ffd5b5f5f60408385031215611a49575f5ffd5b611a52836116ed565b9150611a60602084016116ed565b90509250929050565b5f5f60408385031215611a7a575f5ffd5b611a83836116ed565b9150602083013567ffffffffffffffff811115611a9e575f5ffd5b611aaa85828601611748565b9150509250929050565b5f5f5f5f6101808587031215611ac8575f5ffd5b611ad28686611856565b9350611ae186604087016118a8565b9250611af08660c08701611856565b91505f8661011f870112611b02575f5ffd5b505f80611b0f6080611717565b9050809150610180870188811115611976575f5ffd5b5f60208284031215611b35575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6116be6020830184611b3c565b5f60e0828403128015611b8d575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611bb157611bb1611703565b604052611bbd836116ed565b8152611bcb602084016116ed565b6020820152611bdc604084016116ed565b6040820152611bed606084016116ed565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f60208284031215611c29575f5ffd5b6116be826116ed565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a081015160038110611ca157634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b611cb68184611c46565b60e060c08201525f611ccb60e0830184611b3c565b949350505050565b6060810181835f5b6003811015611cfa578151835260209283019290910190600101611cdb565b50505092915050565b5f60208284031215611d13575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761129a5761129a611d1a565b8082018082111561129a5761129a611d1a565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611d8e578151845260209384019390910190600101611d6f565b50505050565b805f5b6002811015611d8e57611dab848351611d6c565b6040939093019260209190910190600101611d97565b6102c08101611dd08287611d6c565b611ddd6040830186611d94565b611dea60c0830185611d6c565b6101008201835f5b600e811015611e11578151835260209283019290910190600101611df2565b50505095945050505050565b5f60208284031215611e2d575f5ffd5b815180151581146116be575f5ffd5b6102408101611e4b8287611d6c565b611e586040830186611d94565b611e6560c0830185611d6c565b6101008201835f5b600a811015611e11578151835260209283019290910190600101611e6d565b8181038181111561129a5761129a611d1a565b60c0810161129a8284611c46565b6101808101611ebc8287611d6c565b611ec96040830186611d94565b611ed660c0830185611d6c565b6101008201835f5b6004811015611e11578151835260209283019290910190600101611ede565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212201730379fe7a3c7937db67ca664b730fe2e0b84fe42189a88b0c15e26b364904064736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteractionId":1,"nonce":774,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","networkInteractionId":1,"nonce":774,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1877370665"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xf74eaceb8c88c54ac0f09e69243be776a3f5f1d5637f7f2fd806be77f558e6ea"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV3","dependencies":["CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0x8584baE2E04A9481cBd8E896188f265fDD7136e1"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516123496100f95f395f81816115b4015281816115dd015261172101526123495ff3fe608060405260043610610147575f3560e01c806375849383116100b3578063abed77901161006d578063abed779014610362578063ad3cb1cc14610381578063b4da7173146103be578063b974158a146103dd578063f1576394146103fc578063f2fde38b14610410575f5ffd5b806375849383146102c357806376775ce1146102d8578063864eb164146103065780638ae11770146103255780638da5cb5b1461033a57806395b7f22a1461034e575f5ffd5b806347107fdb1161010457806347107fdb14610237578063485cc9551461024a5780634f1ef2861461026957806352d1902d1461027c5780636a085b5014610290578063715018a6146102af575f5ffd5b806308e484961461014b5780631a82739b1461016c5780631dc43637146101a0578063354d594b146101bf5780633fb07027146101e1578063456aa4f414610218575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611bb8565b61042f565b005b348015610177575f5ffd5b5061018b610186366004611cbf565b6105b5565b60405190151581526020015b60405180910390f35b3480156101ab575f5ffd5b5061016a6101ba366004611d61565b61088f565b3480156101ca575f5ffd5b506101d35f5481565b604051908152602001610197565b3480156101ec575f5ffd5b50600654610200906001600160a01b031681565b6040516001600160a01b039091168152602001610197565b348015610223575f5ffd5b5061018b610232366004611d81565b6108a2565b61016a610245366004611df5565b610cdb565b348015610255575f5ffd5b5061016a610264366004611e27565b610eb9565b61016a610277366004611e4f565b610fda565b348015610287575f5ffd5b506101d3610ff9565b34801561029b575f5ffd5b5061018b6102aa366004611e9a565b611014565b3480156102ba575f5ffd5b5061016a61129e565b3480156102ce575f5ffd5b506101d360015481565b3480156102e3575f5ffd5b5061018b6102f2366004611f0b565b5f9081526003602052604090205460ff1690565b348015610311575f5ffd5b50600954610200906001600160a01b031681565b348015610330575f5ffd5b506101d360025481565b348015610345575f5ffd5b506102006112b1565b348015610359575f5ffd5b506005546101d3565b34801561036d575f5ffd5b50600854610200906001600160a01b031681565b34801561038c575f5ffd5b506103b1604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101979190611f50565b3480156103c9575f5ffd5b5061018b6103d8366004611f62565b6112df565b3480156103e8575f5ffd5b50600754610200906001600160a01b031681565b348015610407575f5ffd5b506004546101d3565b34801561041b575f5ffd5b5061016a61042a366004611fff565b611403565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc9161049691908590600401612092565b5f604051808303815f87803b1580156104ad575f5ffd5b505af11580156104bf573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f9350738584baE2E04A9481cBd8E896188f265fDD7136e192506320cf0a379161051b916004016120b9565b602060405180830381865af4158015610536573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061055a91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105a79083815260200190565b60405180910390a150505050565b5f5f8260015460026105c79190612114565b6105d290600161212b565b600e81106105e2576105e261213e565b602002015190505f8360015460026105fa9190612114565b61060590600261212b565b600e81106106155761061561213e565b602002015190505f84600154600261062d9190612114565b61063890600361212b565b600e81106106485761064861213e565b602002015190505f8560015460026106609190612114565b61066b90600461212b565b600e811061067b5761067b61213e565b60200201519050816004541461070f5760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b836005541461079c5760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a401610706565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f906107d2908c908c908c908c906004016121a1565b602060405180830381865afa1580156107ed573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061081191906121fd565b61087c5760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b6064820152608401610706565b6004555060055550600195945050505050565b610897611440565b600491909155600555565b60055460608201515f91146109345760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a401610706565b6004546040830151146109bf5760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a401610706565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f6906109f590889088908890889060040161221c565b602060405180830381865afa158015610a10573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a3491906121fd565b610aa65760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f662100006064820152608401610706565b8151600555600a5f5b600254811015610be9575f84610ac683600461212b565b600a8110610ad657610ad661213e565b602002015190505f85836002546004610aef919061212b565b610af9919061212b565b600a8110610b0957610b0961213e565b602002015190508115610bd4576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b4e60018a61226c565b600a8110610b5e57610b5e61213e565b602002015181526020018581526020015f815260200160016002811115610b8757610b87612018565b8152506040518263ffffffff1660e01b8152600401610ba6919061227f565b5f604051808303815f87803b158015610bbd575f5ffd5b505af1158015610bcf573d5f5f3e3d5ffd5b505050505b50610be2905060018261212b565b9050610aaf565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c196112b1565b6001600160a01b0316815260200186610c3360018761226c565b600a8110610c4357610c4361213e565b60200201518152602001866001600a8110610c6057610c6061213e565b602002015181526020015f815260200160016002811115610c8357610c83612018565b8152506040518263ffffffff1660e01b8152600401610ca2919061227f565b5f604051808303815f87803b158015610cb9575f5ffd5b505af1158015610ccb573d5f5f3e3d5ffd5b5060019998505050505050505050565b6001600160a01b03811615801590610d1057506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610d52576040820151610d32906001600160a01b0383169033903090611472565b6006546040830151610d52916001600160a01b03848116929116906114df565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610db0575f5ffd5b505af1158015610dc2573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f9450738584baE2E04A9481cBd8E896188f265fDD7136e193506320cf0a379250610e2091906004016120b9565b602060405180830381865af4158015610e3b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e5f91906120e9565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610eac9083815260200190565b60405180910390a1505050565b5f610ec261156e565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610ee95750825b90505f8267ffffffffffffffff166001148015610f055750303b155b905081158015610f13575080155b15610f315760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610f5b57845460ff60401b1916600160401b1785555b60025f819055808055600155610f7087611598565b600680546001600160a01b0319166001600160a01b0388161790558315610fd157845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b610fe26115a9565b610feb8261164d565b610ff58282611655565b5050565b5f611002611716565b505f5160206122f45f395f51905f5290565b5f805b5f548110156110f8575f8382600481106110335761103361213e565b6020020151905080156110e5575f8181526003602052604090205460ff166110cf5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a401610706565b5f818152600360205260409020805460ff191690555b506110f160018261212b565b9050611017565b5060048261110760028361226c565b600481106111175761111761213e565b6020020151600454146111925760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f74210000000000000000006064820152608401610706565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111c890899089908990899060040161228d565b602060405180830381865afa1580156111e3573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061120791906121fd565b61126e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b6064820152608401610706565b8261127a60018361226c565b6004811061128a5761128a61213e565b602002015160045550600195945050505050565b6112a6611440565b6112af5f61175f565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112e8611440565b81516001600160a01b03161561131a578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615611352576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b03161561138a576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b0316156113c2576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b6080820151156113d45760808201515f555b60c0820151156113e75760c08201516001555b60a0820151156113fa5760a08201516002555b5060015b919050565b61140b611440565b6001600160a01b03811661143457604051631e4fbdf760e01b81525f6004820152602401610706565b61143d8161175f565b50565b336114496112b1565b6001600160a01b0316146112af5760405163118cdaa760e01b8152336004820152602401610706565b6040516001600160a01b0384811660248301528381166044830152606482018390526114d99186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506117cf565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611530848261183b565b6114d9576040516001600160a01b0384811660248301525f604483015261156491869182169063095ea7b3906064016114a7565b6114d984826117cf565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6115a0611884565b61143d816118a9565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061162f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116235f5160206122f45f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156112af5760405163703e46dd60e11b815260040160405180910390fd5b61143d611440565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156116af575060408051601f3d908101601f191682019092526116ac918101906120e9565b60015b6116d757604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610706565b5f5160206122f45f395f51905f52811461170757604051632a87526960e21b815260048101829052602401610706565b61171183836118b1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112af5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f60205f8451602086015f885af1806117ee576040513d5f823e3d81fd5b50505f513d91508115611805578060011415611812565b6001600160a01b0384163b155b156114d957604051635274afe760e01b81526001600160a01b0385166004820152602401610706565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561187a5750811561186c578060011461187a565b5f866001600160a01b03163b115b9695505050505050565b61188c611906565b6112af57604051631afcd79f60e31b815260040160405180910390fd5b61140b611884565b6118ba8261191f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156118fe576117118282611982565b610ff56119f4565b5f61190f61156e565b54600160401b900460ff16919050565b806001600160a01b03163b5f0361195457604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610706565b5f5160206122f45f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b03168460405161199e91906122dd565b5f60405180830381855af49150503d805f81146119d6576040519150601f19603f3d011682016040523d82523d5f602084013e6119db565b606091505b50915091506119eb858383611a13565b95945050505050565b34156112af5760405163b398979f60e01b815260040160405180910390fd5b606082611a2857611a2382611a72565b611a6b565b8151158015611a3f57506001600160a01b0384163b155b15611a6857604051639996b31560e01b81526001600160a01b0385166004820152602401610706565b50805b9392505050565b805115611a8157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146113fe575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611aed57611aed611ab0565b604052919050565b5f60608284031215611b05575f5ffd5b6040516060810167ffffffffffffffff81118282101715611b2857611b28611ab0565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611b5b575f5ffd5b813567ffffffffffffffff811115611b7557611b75611ab0565b611b88601f8201601f1916602001611ac4565b818152846020838601011115611b9c575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611bca575f5ffd5b611bd384611a9a565b9250611be28560208601611af5565b9150608084013567ffffffffffffffff811115611bfd575f5ffd5b611c0986828701611b4c565b9150509250925092565b5f82601f830112611c22575f5ffd5b5f611c2d6040611ac4565b9050806040840185811115611c40575f5ffd5b845b81811015611c5a578035835260209283019201611c42565b509195945050505050565b5f82601f830112611c74575f5ffd5b6040611c7f81611ac4565b806080850186811115611c90575f5ffd5b855b81811015611cb357611ca48882611c13565b84526020909301928401611c92565b50909695505050505050565b5f5f5f5f6102c08587031215611cd3575f5ffd5b611cdd8686611c13565b9350611cec8660408701611c65565b9250611cfb8660c08701611c13565b91505f8661011f870112611d0d575f5ffd5b505f806101c0611d1c81611ac4565b9150508091506102c0870188811115611d33575f5ffd5b61010088015b81811015611d51578035845260209384019301611d39565b5050809250505092959194509250565b5f5f60408385031215611d72575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611d95575f5ffd5b611d9f8686611c13565b9350611dae8660408701611c65565b9250611dbd8660c08701611c13565b91505f8661011f870112611dcf575f5ffd5b505f80610140611dde81611ac4565b915050809150610240870188811115611d33575f5ffd5b5f5f60808385031215611e06575f5ffd5b611e108484611af5565b9150611e1e60608401611a9a565b90509250929050565b5f5f60408385031215611e38575f5ffd5b611e4183611a9a565b9150611e1e60208401611a9a565b5f5f60408385031215611e60575f5ffd5b611e6983611a9a565b9150602083013567ffffffffffffffff811115611e84575f5ffd5b611e9085828601611b4c565b9150509250929050565b5f5f5f5f6101808587031215611eae575f5ffd5b611eb88686611c13565b9350611ec78660408701611c65565b9250611ed68660c08701611c13565b91505f8661011f870112611ee8575f5ffd5b505f80611ef56080611ac4565b9050809150610180870188811115611d33575f5ffd5b5f60208284031215611f1b575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611a6b6020830184611f22565b5f60e0828403128015611f73575f5ffd5b5060405160e0810167ffffffffffffffff81118282101715611f9757611f97611ab0565b604052611fa383611a9a565b8152611fb160208401611a9a565b6020820152611fc260408401611a9a565b6040820152611fd360608401611a9a565b60608201526080838101359082015260a0808401359082015260c0928301359281019290925250919050565b5f6020828403121561200f575f5ffd5b611a6b82611a9a565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061208757634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b61209c818461202c565b60e060c08201525f6120b160e0830184611f22565b949350505050565b6060810181835f5b60038110156120e05781518352602092830192909101906001016120c1565b50505092915050565b5f602082840312156120f9575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761159257611592612100565b8082018082111561159257611592612100565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156114d9578151845260209384019390910190600101612155565b805f5b60028110156114d95761218b848351612152565b6040939093019260209190910190600101612177565b6102c081016121b08287612152565b6121bd6040830186612174565b6121ca60c0830185612152565b6101008201835f5b600e8110156121f15781518352602092830192909101906001016121d2565b50505095945050505050565b5f6020828403121561220d575f5ffd5b81518015158114611a6b575f5ffd5b610240810161222b8287612152565b6122386040830186612174565b61224560c0830185612152565b6101008201835f5b600a8110156121f157815183526020928301929091019060010161224d565b8181038181111561159257611592612100565b60c08101611592828461202c565b610180810161229c8287612152565b6122a96040830186612174565b6122b660c0830185612152565b6101008201835f5b60048110156121f15781518352602092830192909101906001016122be565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212203e7631d092463e9fef733079a709fae68d0cf33ba8f41e1065fa3c8bfd72784264736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteractionId":1,"nonce":775,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","networkInteractionId":1,"nonce":775,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1877370665"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x416e92b0e03843693e585ea3b10b6e1fd61b2257b5af4d9776f5b747ea7b0738"},"type":"TRANSACTION_SEND"}
-{"args":["0x61826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"CurvyVault#CurvyVaultV1Implementation","dependencies":["CurvyVault#CurvyVaultV1Implementation"],"functionName":"initialize","futureId":"CurvyVault#encodeFunctionCall(CurvyVault#CurvyVaultV1Implementation.initialize)","result":"0xc4d66de800000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","strategy":"basic","strategyConfig":{},"type":"ENCODE_FUNCTION_CALL_EXECUTION_STATE_INITIALIZE"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f77657200000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000017157f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b506040516116f53803806116f583398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b6115b3806101425f395ff3fe608060405260043610610084575f3560e01c80638da5cb5b116100575780638da5cb5b14610111578063d465ea5814610141578063eb2347fd14610160578063efc44aa614610197578063f2fde38b146101b6575f5ffd5b806311c9a94d1461008857806343398648146100bc578063485907d8146100e8578063715018a6146100fd575b5f5ffd5b348015610093575f5ffd5b506100a76100a2366004610746565b6101d5565b60405190151581526020015b60405180910390f35b3480156100c7575f5ffd5b506100db6100d6366004610786565b610269565b6040516100b391906107b0565b6100fb6100f6366004610848565b6102e2565b005b348015610108575f5ffd5b506100fb610488565b34801561011c575f5ffd5b505f546001600160a01b03165b6040516001600160a01b0390911681526020016100b3565b34801561014c575f5ffd5b5061012961015b366004610786565b61049b565b34801561016b575f5ffd5b506100a761017a366004610871565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101a2575f5ffd5b506100fb6101b1366004610891565b61050b565b3480156101c1575f5ffd5b506100fb6101d0366004610871565b610666565b5f6101de6106a3565b6001600160a01b0384161561020957600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561023457600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561025f57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b60605f6040518060200161027c9061071e565b601f1982820381018352601f909101166040818152602082018790526001600160a01b03861681830152805180830382018152606083019091529192506102c99083908390608001610947565b6040516020818303038152906040529250505092915050565b6002546001600160a01b0316158061030357506003546001600160a01b0316155b156103725760405162461bcd60e51b815260206004820152603460248201527f506f7274616c466163746f72793a20536869656c64696e67206e6f74207375706044820152733837b93a32b21037b7103a3434b99031b430b4b760611b60648201526084015b60405180910390fd5b5f610380835f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166103ea5760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561046b575f5ffd5b505af115801561047d573d5f5f3e3d5ffd5b505050505050505050565b6104906106a3565b6104995f6106cf565b565b5f5f6104a78484610269565b6001548151602092830120604080516001600160f81b0319818601523060601b6bffffffffffffffffffffffff1916602182015260358101939093526055808401929092528051808403909201825260759092019091528051910120949350505050565b6004546001600160a01b031661057f5760405162461bcd60e51b815260206004820152603360248201527f506f7274616c466163746f72793a204272696467696e67206e6f74207375707060448201527237b93a32b21037b7103a3434b99031b430b4b760691b6064820152608401610369565b5f61058d845f015183610269565b90505f5f60015490508083516020850134f591506001600160a01b0382166105f75760405162461bcd60e51b815260206004820181905260248201527f506f7274616c466163746f72793a204465706c6f796d656e74206661696c65646044820152606401610369565b60048054604051632f35b11d60e21b81526001600160a01b038086169363bcd6c4749361062f939216918d918d918d918d9101610963565b5f604051808303815f87803b158015610646575f5ffd5b505af1158015610658573d5f5f3e3d5ffd5b505050505050505050505050565b61066e6106a3565b6001600160a01b03811661069757604051631e4fbdf760e01b81525f6004820152602401610369565b6106a0816106cf565b50565b5f546001600160a01b031633146104995760405163118cdaa760e01b8152336004820152602401610369565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ba5806109d983390190565b80356001600160a01b0381168114610741575f5ffd5b919050565b5f5f5f60608486031215610758575f5ffd5b6107618461072b565b925061076f6020850161072b565b915061077d6040850161072b565b90509250925092565b5f5f60408385031215610797575f5ffd5b823591506107a76020840161072b565b90509250929050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f606082840312156107f5575f5ffd5b6040516060810181811067ffffffffffffffff8211171561082457634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610859575f5ffd5b61086384846107e5565b91506107a76060840161072b565b5f60208284031215610881575f5ffd5b61088a8261072b565b9392505050565b5f5f5f5f5f60c086880312156108a5575f5ffd5b853567ffffffffffffffff8111156108bb575f5ffd5b8601601f810188136108cb575f5ffd5b803567ffffffffffffffff8111156108e1575f5ffd5b8860208284010111156108f2575f5ffd5b60209182019650945061090890889088016107e5565b92506109166080870161072b565b915061092460a0870161072b565b90509295509295909350565b5f81518060208401855e5f93019283525090919050565b5f61095b6109558386610930565b84610930565b949350505050565b6001600160a01b038616815260c0602082018190528101849052838560e08301375f60e085830101525f60e0601f19601f87011683010190506109bd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a0919091015294935050505056fe6080604052348015600e575f5ffd5b50604051610ba5380380610ba5833981016040819052602b916054565b600191909155600480546001600160a01b0319166001600160a01b03909216919091179055608c565b5f5f604083850312156064575f5ffd5b825160208401519092506001600160a01b03811681146081575f5ffd5b809150509250929050565b610b0c806100995f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063bcd6c474146100ce578063ddceafa9146100e1575b5f5ffd5b600354610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600254610077906001600160a01b031681565b6100b96100b4366004610907565b6100f4565b005b6100b96100c93660046109a1565b61029b565b6100b96100dc3660046109e8565b61053a565b600454610077906001600160a01b031681565b6004546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610191573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101b59190610a8e565b905073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03851601610281575f836001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610225576040519150601f19603f3d011682016040523d82523d5f602084013e61022a565b606091505b505090508061027b5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50610295565b6102956001600160a01b038316848361074c565b50505050565b5f5460ff16156102e75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103395760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b600280546001600160a01b038085166001600160a01b0319928316179092556003805492841692909116821790556020840151604051630cf99be760e31b81525f92916367ccdf3891610393919060040190815260200190565b602060405180830381865afa9250505080156103cc575060408051601f3d908101601f191682019092526103c991810190610aa5565b60015b6103d65750610529565b90506001600160a01b0381161580159061040d57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104ac576002546040850151610432916001600160a01b03848116929116906107b0565b600254604080516347107fdb60e01b815286516004820152602087015160248201529086015160448201526001600160a01b038381166064830152909116906347107fdb906084015f604051808303815f87803b158015610491575f5ffd5b505af11580156104a3573d5f5f3e3d5ffd5b50505050610527565b6002546040858101805191516347107fdb60e01b81528751600482015260208801516024820152905160448201526001600160a01b038481166064830152909216916347107fdb91906084015f604051808303818588803b15801561050f575f5ffd5b505af1158015610521573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0385166105dc5760405162461bcd60e51b815260206004820152601d60248201527f506f7274616c3a20496e76616c6964204c492e464920616464726573730000006044820152606401610142565b60015482511461062e5760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a20496e76616c6964206f776e657220686173680000000000006044820152606401610142565b60408201516001600160a01b0382161580159061066857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576040830151610688906001600160a01b0384169088906107b0565b505f5b5f866001600160a01b03168287876040516106a7929190610ac7565b5f6040518083038185875af1925050503d805f81146106e1576040519150601f19603f3d011682016040523d82523d5f602084013e6106e6565b606091505b50509050806107375760405162461bcd60e51b815260206004820152601a60248201527f506f7274616c3a204272696467652063616c6c206661696c65640000000000006044820152606401610142565b50505f805460ff191660011790555050505050565b6040516001600160a01b038381166024830152604482018390526107ab91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061083b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261080184826108a7565b610295576040516001600160a01b0384811660248301525f604483015261083591869182169063095ea7b390606401610779565b61029584825b5f5f60205f8451602086015f885af18061085a576040513d5f823e3d81fd5b50505f513d9150811561087157806001141561087e565b6001600160a01b0384163b155b1561029557604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156108e6575081156108d857806001146108e6565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610904575f5ffd5b50565b5f5f60408385031215610918575f5ffd5b8235610923816108f0565b91506020830135610933816108f0565b809150509250929050565b5f6060828403121561094e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561097d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f60a084860312156109b3575f5ffd5b6109bd858561093e565b925060608401356109cd816108f0565b915060808401356109dd816108f0565b809150509250925092565b5f5f5f5f5f60c086880312156109fc575f5ffd5b8535610a07816108f0565b9450602086013567ffffffffffffffff811115610a22575f5ffd5b8601601f81018813610a32575f5ffd5b803567ffffffffffffffff811115610a48575f5ffd5b886020828401011115610a59575f5ffd5b60209190910194509250610a70876040880161093e565b915060a0860135610a80816108f0565b809150509295509295909350565b5f60208284031215610a9e575f5ffd5b5051919050565b5f60208284031215610ab5575f5ffd5b8151610ac0816108f0565b9392505050565b818382375f910190815291905056fea26469706673582212200677e810e640b82fed76ef98237f02703718e4b25f445a1aedeff44aa168149764736f6c634300081c0033a2646970667358221220af126a8505dd55d3a0ad5c57106b12855ee8c7d04f3f2d4c62190d0289d7312764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":776,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","networkInteractionId":1,"nonce":776,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1877370665"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xe0c80ed249842086cf0fb3971e55b007bb70a5701fcf0693d72786ec41889a31"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","hash":"0x484d4c8b764832c8d5d871e82562e201f3d2ee8eefe8f56bc95a05abc3d3c74c","networkInteractionId":1,"receipt":{"blockHash":"0x42aacd6dcda43efb6d331d4c365771e63631d1ed1b801937e606f6c806564e47","blockNumber":10203752,"contractAddress":"0x750d1d7017c4f5674767DB335F30102f05eAEd93","logs":[{"address":"0x750d1d7017c4f5674767DB335F30102f05eAEd93","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":135,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","result":{"address":"0x750d1d7017c4f5674767DB335F30102f05eAEd93","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","hash":"0xf74eaceb8c88c54ac0f09e69243be776a3f5f1d5637f7f2fd806be77f558e6ea","networkInteractionId":1,"receipt":{"blockHash":"0x42aacd6dcda43efb6d331d4c365771e63631d1ed1b801937e606f6c806564e47","blockNumber":10203752,"contractAddress":"0x406B0D00F7Fa04993F9eF685761dC256996b3eB8","logs":[{"address":"0x406B0D00F7Fa04993F9eF685761dC256996b3eB8","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":136,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation","result":{"address":"0x406B0D00F7Fa04993F9eF685761dC256996b3eB8","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","hash":"0x416e92b0e03843693e585ea3b10b6e1fd61b2257b5af4d9776f5b747ea7b0738","networkInteractionId":1,"receipt":{"blockHash":"0x42aacd6dcda43efb6d331d4c365771e63631d1ed1b801937e606f6c806564e47","blockNumber":10203752,"contractAddress":"0xA7b915120552FdE0C6CEfDEdF1Dbb4219d3C5aDC","logs":[{"address":"0xA7b915120552FdE0C6CEfDEdF1Dbb4219d3C5aDC","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":137,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation","result":{"address":"0xA7b915120552FdE0C6CEfDEdF1Dbb4219d3C5aDC","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","hash":"0xe0c80ed249842086cf0fb3971e55b007bb70a5701fcf0693d72786ec41889a31","networkInteractionId":1,"receipt":{"blockHash":"0x42aacd6dcda43efb6d331d4c365771e63631d1ed1b801937e606f6c806564e47","blockNumber":10203752,"logs":[{"address":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","data":"0x","logIndex":138,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":139,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000000e25ecebf24a7bde1655ded9630a3e75a75df6bd","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x61826700275c96633c85a6563bffcbb2e9e82dc6","0x0000000000000000000000000000000000000000"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation"],"functionName":"initialize","futureId":"CurvyAggregatorAlpha#encodeFunctionCall(CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.initialize)","result":"0x485cc95500000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000000000000000000000000000000000","strategy":"basic","strategyConfig":{},"type":"ENCODE_FUNCTION_CALL_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#ERC1967Proxy","constructorArgs":["0x68EE689410a167820ba3027DC399a06F48d66d4d","0xc4d66de800000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"contractName":"ERC1967Proxy","dependencies":["CurvyVault#CurvyVaultV1Implementation","CurvyVault#encodeFunctionCall(CurvyVault#CurvyVaultV1Implementation.initialize)"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#ERC1967Proxy","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#ERC1967Proxy","networkInteraction":{"data":"0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c003300000000000000000000000068ee689410a167820ba3027dc399a06f48d66d4d00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000024c4d66de800000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000000000000000000000000000000000000000000000","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#ERC1967Proxy","networkInteractionId":1,"nonce":777,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#ERC1967Proxy","networkInteractionId":1,"nonce":777,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2040548441"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x6946539c63dfe2df65123b419590e4dd698358a6aaed60974f5eadb6f3417360"},"type":"TRANSACTION_SEND"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0","nameOrIndex":"newContract","result":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xe0c80ed249842086cf0fb3971e55b007bb70a5701fcf0693d72786ec41889a31","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"CurvyVault#ERC1967Proxy","hash":"0x6946539c63dfe2df65123b419590e4dd698358a6aaed60974f5eadb6f3417360","networkInteractionId":1,"receipt":{"blockHash":"0x92aa3dfef52d087a3925e8d3627c06e58a78fb0a3a0ddfe96d8cbdf446b2e18c","blockNumber":10203758,"contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x","logIndex":137,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000068ee689410a167820ba3027dc399a06f48d66d4d"]},{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x","logIndex":138,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x0000000000000000000000000000000000000000000000000000000000000001","logIndex":139,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#ERC1967Proxy","result":{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#ERC1967Proxy","constructorArgs":["0x750d1d7017c4f5674767DB335F30102f05eAEd93","0x485cc95500000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000000000000000000000000000000000"],"contractName":"ERC1967Proxy","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation","CurvyAggregatorAlpha#encodeFunctionCall(CurvyAggregatorAlpha#CurvyAggregatorAlphaV1Implementation.initialize)"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#ERC1967Proxy","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteraction":{"data":"0x60806040526040516103cf3803806103cf8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024c575f5ffd5b82516001600160a01b0381168114610262575f5ffd5b60208401519092506001600160401b0381111561027d575f5ffd5b8301601f8101851361028d575f5ffd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212203c1d12875ffdf8621575aacebe1bf0957f2e1e4e7ad38d571b04c1bd7d5f4dc564736f6c634300081c0033000000000000000000000000750d1d7017c4f5674767db335f30102f05eaed9300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000044485cc95500000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteractionId":1,"nonce":778,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","networkInteractionId":1,"nonce":778,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1963190339"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xa3e6bd17ae687d2b08c940b198709307e8db1034c7e2d5e2370da5741408d2a0"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","contractName":"CurvyVaultV1","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV1","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV2","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","contractName":"CurvyVaultV2","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV3","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","contractName":"CurvyVaultV3","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy","PortalFactory#ICreateX.ContractCreation(address,bytes32).newContract.0"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","hash":"0xa3e6bd17ae687d2b08c940b198709307e8db1034c7e2d5e2370da5741408d2a0","networkInteractionId":1,"receipt":{"blockHash":"0x5a9612c216fe6d1f636543f33d7c6bceae176e1a9297df21abaff79fbe26e2bc","blockNumber":10203763,"contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","logs":[{"address":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","data":"0x","logIndex":256,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000750d1d7017c4f5674767db335f30102f05eaed93"]},{"address":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","data":"0x","logIndex":257,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","data":"0x0000000000000000000000000000000000000000000000000000000000000001","logIndex":258,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#ERC1967Proxy","result":{"address":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","contractName":"CurvyAggregatorAlphaV1","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","contractName":"CurvyAggregatorAlphaV2","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","contractName":"CurvyAggregatorAlphaV3","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","contractName":"CurvyAggregatorAlphaV4","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":["0xde15Dd34F5ebaA2F98CfA7bC600C3a1A3559b2A6","0x"],"artifactId":"CurvyVault#CurvyVaultV1","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","dependencies":["CurvyVault#CurvyVaultV1","CurvyVault#CurvyVaultV2Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000de15dd34f5ebaa2f98cfa7bc600c3a1a3559b2a600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteractionId":1,"nonce":779,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","networkInteractionId":1,"nonce":779,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2010284079"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x080a933282088ff35ec318e9967718d059cf1392de265c233fe9ca36bcabb2eb"},"type":"TRANSACTION_SEND"}
-{"args":["0x86e341d2F2e1d762940eac489EAa76eb4af7F59d","0x"],"artifactId":"CurvyVault#CurvyVaultV2","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","dependencies":["CurvyVault#CurvyVaultV2","CurvyVault#CurvyVaultV3Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef28600000000000000000000000086e341d2f2e1d762940eac489eaa76eb4af7f59d00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","networkInteractionId":1,"nonce":780,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","networkInteractionId":1,"nonce":780,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2010284079"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x4119267e74f1e8faef5631af5186013b5cdf4529c49caddb644f1c1ab12113b8"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","hash":"0x080a933282088ff35ec318e9967718d059cf1392de265c233fe9ca36bcabb2eb","networkInteractionId":1,"receipt":{"blockHash":"0xc2f341e856e7fdefa320bca199c228735f89f6b6ef898598d31a2ec009ec12f1","blockNumber":10203768,"logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x","logIndex":274,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000de15dd34f5ebaa2f98cfa7bc600c3a1a3559b2a6"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV1.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","hash":"0x4119267e74f1e8faef5631af5186013b5cdf4529c49caddb644f1c1ab12113b8","networkInteractionId":1,"receipt":{"blockHash":"0xc2f341e856e7fdefa320bca199c228735f89f6b6ef898598d31a2ec009ec12f1","blockNumber":10203768,"logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x","logIndex":275,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000086e341d2f2e1d762940eac489eaa76eb4af7f59d"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV2.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0xE340e895B07e90DEE5792ACDF6E4Ad868254BA89","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0x607E3Fcd7F1b41609Db51fC3232E9dFA92416Bfa","maxAggregations":2,"maxDeposits":2,"maxWithdrawals":2,"withdrawVerifier":"0xad811bFfE111eD645e33ea8251eF09e8E8e5ded4"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","CurvyAggregatorAlpha#CurvyInsertionVerifierAlpha_2_2","CurvyAggregatorAlpha#CurvyAggregationVerifierAlpha_2_2_2","CurvyAggregatorAlpha#CurvyWithdrawVerifierAlpha_2_2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteraction":{"data":"0xb4da7173000000000000000000000000607e3fcd7f1b41609db51fc3232e9dfa92416bfa000000000000000000000000e340e895b07e90dee5792acdf6e4ad868254ba89000000000000000000000000ad811bffe111ed645e33ea8251ef09e8e8e5ded40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteractionId":1,"nonce":781,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","networkInteractionId":1,"nonce":781,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1958481903"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xf97f5a38f8039a2ab304abee632f5a835d9c4ee5405c1e26ed9a1c0a9af87ae4"},"type":"TRANSACTION_SEND"}
-{"args":["0x406B0D00F7Fa04993F9eF685761dC256996b3eB8","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV1","CurvyAggregatorAlpha#CurvyAggregatorAlphaV2Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000406b0d00f7fa04993f9ef685761dc256996b3eb800000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteractionId":1,"nonce":782,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","networkInteractionId":1,"nonce":782,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1958481903"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x0101ffcdaf6b099c8833e3d095573d73cace1ce3f91fcc283b731cc689172dbf"},"type":"TRANSACTION_SEND"}
-{"args":["0xA7b915120552FdE0C6CEfDEdF1Dbb4219d3C5aDC","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV2","CurvyAggregatorAlpha#CurvyAggregatorAlphaV3Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000a7b915120552fde0c6cefdedf1dbb4219d3c5adc00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteractionId":1,"nonce":783,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","networkInteractionId":1,"nonce":783,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1958481903"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x99e42a8a4b1f55557fc0042df5ac1d226e4562278ab38cab789d9c7442aa0b62"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","constructorArgs":[],"contractName":"CurvyInsertionVerifierAlpha_2","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b5061124e8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046110b1565b610054565b604051901515815260200160405180910390f35b5f61005d610ed8565b60408051808201825287518152602080890151818301529083528151608080820184528851518285019081528951840151606084015282528351808501855289840180515182525184015181850152828401528483019190915282518084018452875181528783015181840152848401528251600480825260a082019094525f939092909190830190803683370190505090505f5b60048110156101375784816004811061010d5761010d611194565b602002015182828151811061012457610124611194565b60209081029190910101526001016100f2565b506101428183610161565b5f0361015357600192505050610159565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018161018c610348565b9050806080015151855160016101a291906111bc565b146101e95760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cf578387828151811061021b5761021b611194565b6020026020010151106102705760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101e0565b6102c5826102c0856080015184600161028991906111bc565b8151811061029957610299611194565b60200260200101518a85815181106102b3576102b3611194565b6020026020010151610845565b6108d9565b91506001016101ff565b506102f78183608001515f815181106102ea576102ea611194565b60200260200101516108d9565b905061032b610308865f0151610970565b8660200151845f015185602001518587604001518b604001518960600151610a0c565b61033b5760019350505050610342565b5f93505050505b92915050565b610350610f26565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f2933c663723e3630bea92f14ce272046739c1de9ac0de5108d9f97504796bcdd8185019081527f2d9d46b72cb758726c5730268fdedefe18f1b55f5b935a82ecf821c05b252da1828401528152835180850185527f0d673c337136dbf082c467ce378ee3bce333a36c5f27cc01edf54179d6e7dc6081527f0c907c5922e46c3cadc99de46a7b8d01770eded5cef85379f58252ab65cb80ad8185015281840152908401528151600580825260c08201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105cb57505060808201908152604080518082019091527f0cdbf7f6fb2cf15ec81a44a104d6490ebeeeea7bf9a0cbf4d695c2a5e7ef7d8481527e5eff6d3e9efe8e7e1fc61c474ed76a4e42f9233e0e5c1054caa772f3b03c396020820152905180515f9061065b5761065b611194565b602002602001018190525060405180604001604052807f24aa7ee61e4ad8e6faf43e12eeb8b33081498ee103385743f2f357bf8b0c6af181526020017f22d171354b9d3a5d983212b596739d62f1cc42aff5df6db8475e4b887902146581525081608001516001815181106106d2576106d2611194565b602002602001018190525060405180604001604052807f3037fd725c311a8a59dc660d0fa266e188928bef08015840cf45d7998b747a1881526020017f20918eb8f6b9ca00d9004f42b7bd61a3703ea034983fa552ba34fcbde0d59bc2815250816080015160028151811061074957610749611194565b602002602001018190525060405180604001604052807f1b5c870d21c274d5bdf96cd309bdbda13661a47c01ce8483bd3682fcc1d58a3081526020017f2f4600674aa2b704715e8f62433edcae3bae85557d27e74af090ebcdbc0b195e81525081608001516003815181106107c0576107c0611194565b602002602001018190525060405180604001604052807f199fcda69c0bfd4d6f2db0f385bd0fcf78f0074be4d5eeb7f75f32963269d8d981526020017f1638a9aa5129a8fa9964966f9545941fbceb843dd14aa0f40531c6197da17578815250816080015160048151811061083757610837611194565b602002602001018190525090565b604080518082019091525f8082526020820152610860610f76565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa9050808061088e57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101e0565b505092915050565b604080518082019091525f80825260208201526108f4610f94565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa9050808061092d57fe5b50806108d15760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101e0565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47901580156109b657506020830151155b156109d5575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f015181526020018285602001516109f991906111cf565b610a0390846111ee565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610a2657505060408051600480825260a082019092529192505f9190602082015b610a6e610fb2565b815260200190600190039081610a665790505090508a825f81518110610a9657610a96611194565b60200260200101819052508882600181518110610ab557610ab5611194565b60200260200101819052508682600281518110610ad457610ad4611194565b60200260200101819052508482600381518110610af357610af3611194565b602002602001018190525089815f81518110610b1157610b11611194565b60200260200101819052508781600181518110610b3057610b30611194565b60200260200101819052508581600281518110610b4f57610b4f611194565b60200260200101819052508381600381518110610b6e57610b6e611194565b6020026020010181905250610b838282610b92565b9b9a5050505050505050505050565b5f8151835114610bdd5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101e0565b82515f610beb826006611201565b90505f8167ffffffffffffffff811115610c0757610c0761100e565b604051908082528060200260200182016040528015610c30578160200160208202803683370190505b5090505f5b83811015610e5d57868181518110610c4f57610c4f611194565b60200260200101515f015182826006610c689190611201565b610c72905f6111bc565b81518110610c8257610c82611194565b602002602001018181525050868181518110610ca057610ca0611194565b60200260200101516020015182826006610cba9190611201565b610cc59060016111bc565b81518110610cd557610cd5611194565b602002602001018181525050858181518110610cf357610cf3611194565b6020908102919091010151515182610d0c836006611201565b610d179060026111bc565b81518110610d2757610d27611194565b602002602001018181525050858181518110610d4557610d45611194565b60209081029190910181015151015182610d60836006611201565b610d6b9060036111bc565b81518110610d7b57610d7b611194565b602002602001018181525050858181518110610d9957610d99611194565b6020026020010151602001515f60028110610db657610db6611194565b602002015182610dc7836006611201565b610dd29060046111bc565b81518110610de257610de2611194565b602002602001018181525050858181518110610e0057610e00611194565b602002602001015160200151600160028110610e1e57610e1e611194565b602002015182610e2f836006611201565b610e3a9060056111bc565b81518110610e4a57610e4a611194565b6020908102919091010152600101610c35565b50610e66610fd2565b5f602082602086026020860160086107d05a03fa90508080610e8457fe5b5080610eca5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101e0565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101610f01610fb2565b8152602001610f2160405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101610f4f610fb2565b8152602001610f5c610fb2565b8152602001610f69610fb2565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280610fc5610ff0565b8152602001610f21610ff0565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561105757634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f83011261106e575f5ffd5b5f6110796040611022565b905080604084018581111561108c575f5ffd5b845b818110156110a657803583526020928301920161108e565b509195945050505050565b5f5f5f5f61018085870312156110c5575f5ffd5b6110cf868661105f565b935085605f8601126110df575f5ffd5b60406110ea81611022565b8060c08801898111156110fb575f5ffd5b604089015b81811015611121576111128b8261105f565b84526020909301928401611100565b5081965061112f8a8261105f565b95505050505061010085015f87601f830112611149575f5ffd5b5f6111546080611022565b905080608084018a811115611167575f5ffd5b5b80851015611183578435825260209485019490910190611168565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115610342576103426111a8565b5f826111e957634e487b7160e01b5f52601260045260245ffd5b500690565b81810381811115610342576103426111a8565b8082028115828204841417610342576103426111a856fea264697066735822122052b8c89d46e40ccc60f13c59a59ab39c0a5084d1333d84af2fe13436741f62ef64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","networkInteractionId":1,"nonce":784,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","networkInteractionId":1,"nonce":784,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1958481903"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xb2d22d2c65e1ca5c96dad3c72b79db61ec2520042c86c8007857b817ad190efd"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","hash":"0xf97f5a38f8039a2ab304abee632f5a835d9c4ee5405c1e26ed9a1c0a9af87ae4","networkInteractionId":1,"receipt":{"blockHash":"0x813f93c2d5c96d7d66baa00e9477956514b080006cb50d249589bdec8fa65b53","blockNumber":10203773,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","hash":"0x0101ffcdaf6b099c8833e3d095573d73cace1ce3f91fcc283b731cc689172dbf","networkInteractionId":1,"receipt":{"blockHash":"0x813f93c2d5c96d7d66baa00e9477956514b080006cb50d249589bdec8fa65b53","blockNumber":10203773,"logs":[{"address":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","data":"0x","logIndex":251,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000406b0d00f7fa04993f9ef685761dc256996b3eb8"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV1.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","hash":"0x99e42a8a4b1f55557fc0042df5ac1d226e4562278ab38cab789d9c7442aa0b62","networkInteractionId":1,"receipt":{"blockHash":"0x813f93c2d5c96d7d66baa00e9477956514b080006cb50d249589bdec8fa65b53","blockNumber":10203773,"logs":[{"address":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","data":"0x","logIndex":253,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000a7b915120552fde0c6cefdedf1dbb4219d3c5adc"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV2.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","hash":"0xb2d22d2c65e1ca5c96dad3c72b79db61ec2520042c86c8007857b817ad190efd","networkInteractionId":1,"receipt":{"blockHash":"0x813f93c2d5c96d7d66baa00e9477956514b080006cb50d249589bdec8fa65b53","blockNumber":10203773,"contractAddress":"0xd40E27D59763DC8B5727A2D09073427E8064095D","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#NewInsertionVerifier_v2","result":{"address":"0xd40E27D59763DC8B5727A2D09073427E8064095D","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","constructorArgs":[],"contractName":"CurvyAggregationVerifierAlpha_2","dependencies":["CurvyAggregatorAlpha#NewInsertionVerifier_v2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506116ed8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004611553565b610054565b604051901515815260200160405180910390f35b5f61005d61137a565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600e8082526101e082019093525f92909182016101c0803683370190505090505f5b600e811015610133578481600e811061010957610109611633565b602002015182828151811061012057610120611633565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061165b565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611633565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061165b565b8151811061029557610295611633565b60200260200101518a85815181106102af576102af611633565b6020026020010151610ce7565b610d7b565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611633565b6020026020010151610d7b565b9050610327610304865f0151610e12565b8660200151845f015185602001518587604001518b604001518960600151610eae565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6113c8565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f040960ae7a0345676e57477fe153547dac4996ccff6cd8bdbfab68194176ebfe8185019081527f09f390a54aa2c22bc7ab1273ccbfba2d124f277c4b7858b7e6b2b215264b2524828401528152835180850185527f069489b61aadf82d080f5b031e40c78265091ce5230bde1c6b129bd6ee8f929a81527f11d4a92da28cae8798f897d046ec7d2b818431d18ca7d7b30c720a5a4320777f8185015281840152908401528151600f8082526102008201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f18c30badf97bca79e0290e1e2709c180d796014d89846a50fdf83edb9a5f126081527ec6ff8cc32c2c88d6a18abf5d8474acb27c8174ed0969d8641896bb65bc14c46020820152905180515f9061065857610658611633565b602002602001018190525060405180604001604052807f26be249a1394d006fdb707e50aafdbfae0abcdd8424b6e9ecfaad5546f97f78881526020017f1d61635959d20e223664b32f4564dc44e3b7b360b37d388f9f7f51585800155581525081608001516001815181106106cf576106cf611633565b602002602001018190525060405180604001604052807f2506541fa33baf46747051d8ebe51a91b929a728a707a75f0cdeafd7f739fd3181526020017f0d08b60cf224252ab06e146a2272e4c007567054b6e83778161343ae31deb5ac815250816080015160028151811061074657610746611633565b602002602001018190525060405180604001604052807f1f3bdf1e50dc24be846513f7f74068a55438ca5acb4f64c3d3921bde7468a2d681526020017f2e5e1a4837097500979c5d1cf152f067e70c896ac860ba29651b02f6e79edae281525081608001516003815181106107bd576107bd611633565b602002602001018190525060405180604001604052807f203c139f09bbb742c8d4c51234494498c24d56884f24f6545086e2238e763a5881526020017f028e6932f3bc2561b30d7fe76c6de6bebf4c8ea0621bbb6ad41882df5eb7264b815250816080015160048151811061083457610834611633565b602002602001018190525060405180604001604052807f204223f3717fb8cd7ebd1a98a872f75b82e0ef94fa940335abd65568db85649f81526020017f0d2ccb01844a345701f9b1f27c633fdb9ad135aeaa0fae0fd831d08edcdc323b81525081608001516005815181106108ab576108ab611633565b602002602001018190525060405180604001604052807f2ca96167b9316ee5855a83bb4a92112653444fffa0bf5725ae9b090bb288152e81526020017f1d6d5440897b2ec044f2aaecdab5e507c4d69f8c7ca8813db13ce819e79129d4815250816080015160068151811061092257610922611633565b602002602001018190525060405180604001604052807f1cba19de78b5c7c47d2407121e7e86d0d70c63aaee0ce04ca5fecaee97ab75d481526020017f059319895b38a350849d8c25b406b951743ab1c6237a63b648f07c5f3e7e19dd815250816080015160078151811061099957610999611633565b602002602001018190525060405180604001604052807f016cc32364e0c0823d4b34edc52852c6665a421cd8867fbd190170fab867bea681526020017f0734df7485b401e47cbd1c3ab7024be0250f9fa13ab7ec9b3b40d83178eb2b468152508160800151600881518110610a1057610a10611633565b602002602001018190525060405180604001604052807f29286c62d871cffa08e84997e6180455e1edca20d681ef29656ef4d6d45b001781526020017f2e71a4c29421434de9ed5e921a2b6a23816a740d99b6f135fd01cad64bd288ac8152508160800151600981518110610a8757610a87611633565b602002602001018190525060405180604001604052807f2492df9b4d0ad2639c6f34096692d29d2f9ed9ee57d9e9c3ba303e9dbcdae43081526020017f2e497c91b7e5e3a2a9b9f7fe9cdfe78c9e72037bb7552e29d54813a4566c6fbd8152508160800151600a81518110610afe57610afe611633565b602002602001018190525060405180604001604052807f1476e8d331c072345e564de7e0c1b051b0b0b18531bdd1e7441e0257090a0c1781526020017f110b09db70453d4ec6bed001ab95fcb5ce4b8e21a0c4f4c26b91dc8059aa1dce8152508160800151600b81518110610b7557610b75611633565b602002602001018190525060405180604001604052807e6e2fbcfe989d63aea84d90addc8537a921948b213ef36ec5fa0cbb5b68670381526020017f06f6a502b00b2945dd9841eca5ab5f69654f4992777102c600ca5402c35d6c288152508160800151600c81518110610beb57610beb611633565b602002602001018190525060405180604001604052807f01a330e578c215a80aaf5fc3208956611670affa4560f2dd1f7892698b50c35881526020017f0a9ccad9b2edacd7bbb8a5c460a47d7a114166eace7c8cfe32c7a4243c30e0f28152508160800151600d81518110610c6257610c62611633565b602002602001018190525060405180604001604052807f0aa436490c317254e1444ad76cac634937ea2fa0d0730983455fed54f43c9ff981526020017f12228d15b01f07e1d77acd2c2c609c7e4c9a70503e071ec4963191e6d4d13d598152508160800151600e81518110610cd957610cd9611633565b602002602001018190525090565b604080518082019091525f8082526020820152610d02611418565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610d3057fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610d96611436565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610dcf57fe5b5080610d735760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610e5857506020830151155b15610e77575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610e9b919061166e565b610ea5908461168d565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610ec857505060408051600480825260a082019092529192505f9190602082015b610f10611454565b815260200190600190039081610f085790505090508a825f81518110610f3857610f38611633565b60200260200101819052508882600181518110610f5757610f57611633565b60200260200101819052508682600281518110610f7657610f76611633565b60200260200101819052508482600381518110610f9557610f95611633565b602002602001018190525089815f81518110610fb357610fb3611633565b60200260200101819052508781600181518110610fd257610fd2611633565b60200260200101819052508581600281518110610ff157610ff1611633565b6020026020010181905250838160038151811061101057611010611633565b60200260200101819052506110258282611034565b9b9a5050505050505050505050565b5f815183511461107f5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f61108d8260066116a0565b90505f8167ffffffffffffffff8111156110a9576110a96114b0565b6040519080825280602002602001820160405280156110d2578160200160208202803683370190505b5090505f5b838110156112ff578681815181106110f1576110f1611633565b60200260200101515f01518282600661110a91906116a0565b611114905f61165b565b8151811061112457611124611633565b60200260200101818152505086818151811061114257611142611633565b6020026020010151602001518282600661115c91906116a0565b61116790600161165b565b8151811061117757611177611633565b60200260200101818152505085818151811061119557611195611633565b60209081029190910101515151826111ae8360066116a0565b6111b990600261165b565b815181106111c9576111c9611633565b6020026020010181815250508581815181106111e7576111e7611633565b602090810291909101810151510151826112028360066116a0565b61120d90600361165b565b8151811061121d5761121d611633565b60200260200101818152505085818151811061123b5761123b611633565b6020026020010151602001515f6002811061125857611258611633565b6020020151826112698360066116a0565b61127490600461165b565b8151811061128457611284611633565b6020026020010181815250508581815181106112a2576112a2611633565b6020026020010151602001516001600281106112c0576112c0611633565b6020020151826112d18360066116a0565b6112dc90600561165b565b815181106112ec576112ec611633565b60209081029190910101526001016110d7565b50611308611474565b5f602082602086026020860160086107d05a03fa9050808061132657fe5b508061136c5760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016113a3611454565b81526020016113c360405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c08301919091528152602081016113f1611454565b81526020016113fe611454565b815260200161140b611454565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b6040518060400160405280611467611492565b81526020016113c3611492565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156114f957634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611510575f5ffd5b5f61151b60406114c4565b905080604084018581111561152e575f5ffd5b845b81811015611548578035835260209283019201611530565b509195945050505050565b5f5f5f5f6102c08587031215611567575f5ffd5b6115718686611501565b935085605f860112611581575f5ffd5b604061158c816114c4565b8060c088018981111561159d575f5ffd5b604089015b818110156115c3576115b48b82611501565b845260209093019284016115a2565b508196506115d18a82611501565b95505050505061010085015f87601f8301126115eb575f5ffd5b5f6101c06115f8816114c4565b91508301818a821115611609575f5ffd5b5b8185101561162257843581526020948501940161160a565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e611647565b5f8261168857634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e611647565b808202811582820484141761033e5761033e61164756fea26469706673582212208ecec3b58f8c69288c925191a76554c85a5d679e9a34b2047785e1439c8c3d1d64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","networkInteractionId":1,"nonce":785,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","networkInteractionId":1,"nonce":785,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2035686761"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x6e39870c7a8b947206fa71d85ab7088d7ec473f426c88d03828cbdf583484bae"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","hash":"0x6e39870c7a8b947206fa71d85ab7088d7ec473f426c88d03828cbdf583484bae","networkInteractionId":1,"receipt":{"blockHash":"0xc916ecd7f21abfe0e0b26ca229767d4b09ce7dfbdb8c4de38ddc941bf914b2a4","blockNumber":10203779,"contractAddress":"0xa4d33955253d18411f30EddB5d28171722415C85","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#NewAggregationVerifier_v2","result":{"address":"0xa4d33955253d18411f30EddB5d28171722415C85","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlpha_2","dependencies":["CurvyAggregatorAlpha#NewAggregationVerifier_v2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506115118061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063f3bb70f61461002d575b5f5ffd5b61004061003b366004611377565b610054565b604051901515815260200160405180910390f35b5f61005d61119e565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600a80825261016082019093525f9290918201610140803683370190505090505f5b600a811015610133578481600a811061010957610109611457565b602002015182828151811061012057610120611457565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e919061147f565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb578387828151811061021757610217611457565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc8560800151846001610285919061147f565b8151811061029557610295611457565b60200260200101518a85815181106102af576102af611457565b6020026020010151610b0b565b610b9f565b91506001016101fb565b506102f38183608001515f815181106102e6576102e6611457565b6020026020010151610b9f565b9050610327610304865f0151610c36565b8660200151845f015185602001518587604001518b604001518960600151610cd2565b610337576001935050505061033e565b5f93505050505b92915050565b61034c6111ec565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f0b5a45bbb3d9f21c42579fd5a810f82f25e696fb3b00ef64b8ca2d17d89fe4ed8185019081527f0f79b405819a9900f7edb3f309c9b73a45673c17366eeb72361c23f957680a89828401528152835180850185527f23b107da251eb5c5dd3c157a900388d73f64a4394faf6a12ae2077766d720b0881527f2188bf40a163dba1ba12fc061d0a6fc9d7246af5e912fcbb23b59a53823b7c048185015281840152908401528151600b8082526101808201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f118592ce705cf3d21e870156a4dc6cff3b2a01fca2c8e60a402fc01dd47341de81527f1fe6c8cb2c02b9ddf7ed360fd3ba99867e54e590d7ca62b57d839ef26d549f0c6020820152905180515f9061065957610659611457565b602002602001018190525060405180604001604052807f154574f61b1a23d66f35533910d332b8ab9bffc6274ce4ffb0bf3b7f1210090781526020017f1ac6f7f35d927f760afe3efc726d0d1ab8ab6514d018630e92a11b5079108b9a81525081608001516001815181106106d0576106d0611457565b602002602001018190525060405180604001604052807f102a84a54eb42169d68f30c781aabd282a341b2b4c25cd55fdae5e3479b4182a81526020017f1b8113a1108e05880a85ae50fdaa0f86926095751a6c3f0130cee222578c7911815250816080015160028151811061074757610747611457565b602002602001018190525060405180604001604052807f25504b6ec89efe8110a42f0ffda2f64b4c0b63b83a776f2146c23ddb2b9c346081526020017e1bd1b27eb32e5c1ecc7f9b08d87e6c7eff72e21014bd87c5badb37e82d50c781525081608001516003815181106107bd576107bd611457565b602002602001018190525060405180604001604052807f2955cc92eefc93c0bb8f2a726fbcbadbedd59c2f68b3701defa2ac66e1c1643f81526020017f1a8bfc29eefca9fd267806f814daf245aa0fb67048fbc16761d5fc39282f7336815250816080015160048151811061083457610834611457565b602002602001018190525060405180604001604052807f0acefb487079ce3764bf9e0af6b69a939b8f43cb3cce80262ebd68167a86afa881526020017f2500ee5fc51d1ed187adfe4cb25ef69610207eefc41a868d14a519b58c99286081525081608001516005815181106108ab576108ab611457565b602002602001018190525060405180604001604052807f1eca69b2e86127c29cd324a9b13cf89c0e657596c9e37dc05eec008c8fa84fdb81526020017f2f11a966ac185bf5d584d386b3e8a555d66e51913d8801fb9189542b4bcd3624815250816080015160068151811061092257610922611457565b602002602001018190525060405180604001604052807ee8670dd1e30ffd6e6d42b6f98d3cd5ebb1a6c2a726f4024e6c27b555683cf881526020017f152894c1731fbedba470963903d414e8c210a8b846aedba229071fa832e882fa815250816080015160078151811061099857610998611457565b602002602001018190525060405180604001604052807f2354fe17a8632ee331a1459f6df0806153f19ed6c1645906895e966cea47cab981526020017f27700ede44b18910d2a31045a1d448bb930ba1c39cc918aa3f4b093a610e45b58152508160800151600881518110610a0f57610a0f611457565b602002602001018190525060405180604001604052807f2f583f76ad789e51575f9168446813e1e5655c1f444ed4f8bd2c38c8c438a52e81526020017f21e4aa608b395b9eaf98de7f2c77baac96da672aedab46f36e4a732fbefdaa328152508160800151600981518110610a8657610a86611457565b602002602001018190525060405180604001604052807f29b71cd418de446ac259b14d47ccbc6c7bf3021aa56d6d3ab3fc80becde42ba281526020017f1671437c4af2a055de0faf52bad6da5b1c1f37d53e279ef8d7a04b401b8f00b18152508160800151600a81518110610afd57610afd611457565b602002602001018190525090565b604080518082019091525f8082526020820152610b2661123c565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610b5457fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610bba61125a565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610bf357fe5b5080610b975760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c7c57506020830151155b15610c9b575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610cbf9190611492565b610cc990846114b1565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610cec57505060408051600480825260a082019092529192505f9190602082015b610d34611278565b815260200190600190039081610d2c5790505090508a825f81518110610d5c57610d5c611457565b60200260200101819052508882600181518110610d7b57610d7b611457565b60200260200101819052508682600281518110610d9a57610d9a611457565b60200260200101819052508482600381518110610db957610db9611457565b602002602001018190525089815f81518110610dd757610dd7611457565b60200260200101819052508781600181518110610df657610df6611457565b60200260200101819052508581600281518110610e1557610e15611457565b60200260200101819052508381600381518110610e3457610e34611457565b6020026020010181905250610e498282610e58565b9b9a5050505050505050505050565b5f8151835114610ea35760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610eb18260066114c4565b90505f8167ffffffffffffffff811115610ecd57610ecd6112d4565b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b5090505f5b8381101561112357868181518110610f1557610f15611457565b60200260200101515f015182826006610f2e91906114c4565b610f38905f61147f565b81518110610f4857610f48611457565b602002602001018181525050868181518110610f6657610f66611457565b60200260200101516020015182826006610f8091906114c4565b610f8b90600161147f565b81518110610f9b57610f9b611457565b602002602001018181525050858181518110610fb957610fb9611457565b6020908102919091010151515182610fd28360066114c4565b610fdd90600261147f565b81518110610fed57610fed611457565b60200260200101818152505085818151811061100b5761100b611457565b602090810291909101810151510151826110268360066114c4565b61103190600361147f565b8151811061104157611041611457565b60200260200101818152505085818151811061105f5761105f611457565b6020026020010151602001515f6002811061107c5761107c611457565b60200201518261108d8360066114c4565b61109890600461147f565b815181106110a8576110a8611457565b6020026020010181815250508581815181106110c6576110c6611457565b6020026020010151602001516001600281106110e4576110e4611457565b6020020151826110f58360066114c4565b61110090600561147f565b8151811061111057611110611457565b6020908102919091010152600101610efb565b5061112c611298565b5f602082602086026020860160086107d05a03fa9050808061114a57fe5b50806111905760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f6060820181815260808301919091528152602081016111c7611278565b81526020016111e760405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c0830191909152815260208101611215611278565b8152602001611222611278565b815260200161122f611278565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061128b6112b6565b81526020016111e76112b6565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561131d57634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f830112611334575f5ffd5b5f61133f60406112e8565b9050806040840185811115611352575f5ffd5b845b8181101561136c578035835260209283019201611354565b509195945050505050565b5f5f5f5f610240858703121561138b575f5ffd5b6113958686611325565b935085605f8601126113a5575f5ffd5b60406113b0816112e8565b8060c08801898111156113c1575f5ffd5b604089015b818110156113e7576113d88b82611325565b845260209093019284016113c6565b508196506113f58a82611325565b95505050505061010085015f87601f83011261140f575f5ffd5b5f61014061141c816112e8565b91508301818a82111561142d575f5ffd5b5b8185101561144657843581526020948501940161142e565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e61146b565b5f826114ac57634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e61146b565b808202811582820484141761033e5761033e61146b56fea2646970667358221220dcff813b86dd38808694958c9a737d51423f91e9af2ee777888630650f47d44264736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","networkInteractionId":1,"nonce":786,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","networkInteractionId":1,"nonce":786,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2139861265"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xd6e13e021aca95e7e84319e5b380e0704120a087fba7ccd02eaaef6459e89732"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","hash":"0xd6e13e021aca95e7e84319e5b380e0704120a087fba7ccd02eaaef6459e89732","networkInteractionId":1,"receipt":{"blockHash":"0x683aed0d0eb3d7053612a761ed3c13c2f9da70e82978762dd109cf2977de7806","blockNumber":10203784,"contractAddress":"0xa573d954f7db86b08Bd6aeDAa3eB24375Ea508bd","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#NewWithdrawVerifier_v2","result":{"address":"0xa573d954f7db86b08Bd6aeDAa3eB24375Ea508bd","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0xa4d33955253d18411f30EddB5d28171722415C85","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0xd40E27D59763DC8B5727A2D09073427E8064095D","maxAggregations":0,"maxDeposits":0,"maxWithdrawals":0,"withdrawVerifier":"0xa573d954f7db86b08Bd6aeDAa3eB24375Ea508bd"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","CurvyAggregatorAlpha#NewInsertionVerifier_v2","CurvyAggregatorAlpha#NewAggregationVerifier_v2","CurvyAggregatorAlpha#NewWithdrawVerifier_v2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteraction":{"data":"0xb4da7173000000000000000000000000d40e27d59763dc8b5727a2d09073427e8064095d000000000000000000000000a4d33955253d18411f30eddb5d28171722415c85000000000000000000000000a573d954f7db86b08bd6aedaa3eb24375ea508bd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteractionId":1,"nonce":787,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","networkInteractionId":1,"nonce":787,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2221758323"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x00dc22dea001f810bb807c6f4a72c2537988c2246f044dff01dd263d6110d3d7"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","hash":"0x00dc22dea001f810bb807c6f4a72c2537988c2246f044dff01dd263d6110d3d7","networkInteractionId":1,"receipt":{"blockHash":"0x031ff9f92d5ad5bb549bc7fdd32f28b9755992757af133dc6a0351e4a320f158","blockNumber":10203789,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV4","dependencies":["CurvyAggregatorAlpha#UpdateConfig_WithNewVerifiers","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0x8584baE2E04A9481cBd8E896188f265fDD7136e1"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516124506100f95f395f818161168a015281816116b301526117f701526124505ff3fe608060405260043610610161575f3560e01c806375849383116100cd578063abed779011610087578063c4d66de811610062578063c4d66de8146103f7578063cf101a4914610416578063f157639414610435578063f2fde38b14610449575f5ffd5b8063abed77901461037c578063ad3cb1cc1461039b578063b974158a146103d8575f5ffd5b806375849383146102dd57806376775ce1146102f2578063864eb164146103205780638ae117701461033f5780638da5cb5b1461035457806395b7f22a14610368575f5ffd5b8063456aa4f41161011e578063456aa4f41461025157806347107fdb146102705780634f1ef2861461028357806352d1902d146102965780636a085b50146102aa578063715018a6146102c9575f5ffd5b806308e48496146101655780631a82739b146101865780631dc43637146101ba5780632654a8e6146101d9578063354d594b146102105780633fb0702714610232575b5f5ffd5b348015610170575f5ffd5b5061018461017f366004611cf3565b610468565b005b348015610191575f5ffd5b506101a56101a0366004611dfa565b6105ee565b60405190151581526020015b60405180910390f35b3480156101c5575f5ffd5b506101846101d4366004611e9c565b6108c8565b3480156101e4575f5ffd5b50600a546101f8906001600160a01b031681565b6040516001600160a01b0390911681526020016101b1565b34801561021b575f5ffd5b506102245f5481565b6040519081526020016101b1565b34801561023d575f5ffd5b506006546101f8906001600160a01b031681565b34801561025c575f5ffd5b506101a561026b366004611ebc565b6108db565b61018461027e366004611f30565b610d14565b610184610291366004611f62565b610fba565b3480156102a1575f5ffd5b50610224610fd9565b3480156102b5575f5ffd5b506101a56102c4366004611fad565b610ff4565b3480156102d4575f5ffd5b5061018461127e565b3480156102e8575f5ffd5b5061022460015481565b3480156102fd575f5ffd5b506101a561030c36600461201e565b5f9081526003602052604090205460ff1690565b34801561032b575f5ffd5b506009546101f8906001600160a01b031681565b34801561034a575f5ffd5b5061022460025481565b34801561035f575f5ffd5b506101f8611291565b348015610373575f5ffd5b50600554610224565b348015610387575f5ffd5b506008546101f8906001600160a01b031681565b3480156103a6575f5ffd5b506103cb604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b19190612063565b3480156103e3575f5ffd5b506007546101f8906001600160a01b031681565b348015610402575f5ffd5b50610184610411366004612075565b6112bf565b348015610421575f5ffd5b506101a561043036600461208e565b6113b8565b348015610440575f5ffd5b50600454610224565b348015610454575f5ffd5b50610184610463366004612075565b611514565b6006546040805160c0810182526001600160a01b03868116825230602080840191909152860151828401528583015160608301525f6080830152600160a08301529151630c776f7760e21b815291909216916331ddbddc916104cf91908590600401612199565b5f604051808303815f87803b1580156104e6575f5ffd5b505af11580156104f8573d5f5f3e3d5ffd5b50506040805160608101825285518152858201516020808301919091528601518183015290516320cf0a3760e01b81525f9350738584baE2E04A9481cBd8E896188f265fDD7136e192506320cf0a3791610554916004016121c0565b602060405180830381865af415801561056f573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061059391906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee906105e09083815260200190565b60405180910390a150505050565b5f5f826001546002610600919061221b565b61060b906001612232565b600e811061061b5761061b612245565b602002015190505f836001546002610633919061221b565b61063e906002612232565b600e811061064e5761064e612245565b602002015190505f846001546002610666919061221b565b610671906003612232565b600e811061068157610681612245565b602002015190505f856001546002610699919061221b565b6106a4906004612232565b600e81106106b4576106b4612245565b6020020151905081600454146107485760405162461bcd60e51b815260206004820152604860248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e6f7465207472656520726f6f74206d60648201526769736d617463682160c01b608482015260a4015b60405180910390fd5b83600554146107d55760405162461bcd60e51b815260206004820152604d60248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f60448201527f6e42617463683a2043757272656e74206e756c6c69666965722074726565207260648201526c6f6f74206d69736d617463682160981b608482015260a40161073f565b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f9061080b908c908c908c908c906004016122a8565b602060405180830381865afa158015610826573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061084a9190612304565b6108b55760405162461bcd60e51b815260206004820152603660248201527f437572767941676772656761746f7223636f6d6d69744167677265676174696f6044820152756e42617463683a20496e76616c69642070726f6f662160501b606482015260840161073f565b6004555060055550600195945050505050565b6108d0611551565b600491909155600555565b60055460608201515f911461096d5760405162461bcd60e51b815260206004820152604c60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e756c6c6966696572207472656520726f60648201526b6f74206d69736d617463682160a01b608482015260a40161073f565b6004546040830151146109f85760405162461bcd60e51b815260206004820152604760248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a2043757272656e74206e6f7465207472656520726f6f74206d69606482015266736d617463682160c81b608482015260a40161073f565b6009546040516379ddb87b60e11b81526001600160a01b039091169063f3bb70f690610a2e908890889088908890600401612323565b602060405180830381865afa158015610a49573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d9190612304565b610adf5760405162461bcd60e51b815260206004820152603e60248201527f437572767941676772656761746f7223636f6d6d69745769746864726177616c60448201527f42617463683a20496e76616c69642077697468647261772070726f6f66210000606482015260840161073f565b8151600555600a5f5b600254811015610c22575f84610aff836004612232565b600a8110610b0f57610b0f612245565b602002015190505f85836002546004610b289190612232565b610b329190612232565b600a8110610b4257610b42612245565b602002015190508115610c0d576006546040805160c0810182523081526001600160a01b0384811660208301529092169163de1a272091810189610b8760018a612373565b600a8110610b9757610b97612245565b602002015181526020018581526020015f815260200160016002811115610bc057610bc061211f565b8152506040518263ffffffff1660e01b8152600401610bdf9190612386565b5f604051808303815f87803b158015610bf6575f5ffd5b505af1158015610c08573d5f5f3e3d5ffd5b505050505b50610c1b9050600182612232565b9050610ae8565b506006546040805160c081019091523081526001600160a01b039091169063de1a27209060208101610c52611291565b6001600160a01b0316815260200186610c6c600187612373565b600a8110610c7c57610c7c612245565b60200201518152602001866001600a8110610c9957610c99612245565b602002015181526020015f815260200160016002811115610cbc57610cbc61211f565b8152506040518263ffffffff1660e01b8152600401610cdb9190612386565b5f604051808303815f87803b158015610cf2575f5ffd5b505af1158015610d04573d5f5f3e3d5ffd5b5060019998505050505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610d5a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d7e9190612304565b610ddc5760405162461bcd60e51b815260206004820152602960248201527f437572767941676772656761746f723a20706f7274616c206973206e6f7420726044820152681959da5cdd195c995960ba1b606482015260840161073f565b6001600160a01b03811615801590610e1157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610e53576040820151610e33906001600160a01b0383169033903090611583565b6006546040830151610e53916001600160a01b03848116929116906115f0565b60065460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b158015610eb1575f5ffd5b505af1158015610ec3573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f9450738584baE2E04A9481cBd8E896188f265fDD7136e193506320cf0a379250610f2191906004016121c0565b602060405180830381865af4158015610f3c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f6091906121f0565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610fad9083815260200190565b60405180910390a1505050565b610fc261167f565b610fcb82611723565b610fd5828261172b565b5050565b5f610fe26117ec565b505f5160206123fb5f395f51905f5290565b5f805b5f548110156110d8575f83826004811061101357611013612245565b6020020151905080156110c5575f8181526003602052604090205460ff166110af5760405162461bcd60e51b815260206004820152604360248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a204e6f7465206e6f74207363686564756c656420666f72206465706f7360648201526269742160e81b608482015260a40161073f565b5f818152600360205260409020805460ff191690555b506110d1600182612232565b9050610ff7565b506004826110e7600283612373565b600481106110f7576110f7612245565b6020020151600454146111725760405162461bcd60e51b815260206004820152603760248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527f63683a20496e76616c6964206e6f74657320726f6f7421000000000000000000606482015260840161073f565b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b906111a8908990899089908990600401612394565b602060405180830381865afa1580156111c3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111e79190612304565b61124e5760405162461bcd60e51b815260206004820152603260248201527f437572767941676772656761746f7223636f6d6d69744465706f73697442617460448201527163683a20496e76616c69642070726f6f662160701b606482015260840161073f565b8261125a600183612373565b6004811061126a5761126a612245565b602002015160045550600195945050505050565b611286611551565b61128f5f611835565b565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f6112c86118a5565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156112ef5750825b90505f8267ffffffffffffffff16600114801561130b5750303b155b905081158015611319575080155b156113375760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561136157845460ff60401b1916600160401b1785555b61136a866118cf565b83156113b057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f6113c1611551565b81516001600160a01b0316156113f3578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b03161561142b576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615611463576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b03161561149b576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b0316156114d3576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a0820151156114e55760a08201515f555b60e0820151156114f85760e08201516001555b60c08201511561150b5760c08201516002555b5060015b919050565b61151c611551565b6001600160a01b03811661154557604051631e4fbdf760e01b81525f600482015260240161073f565b61154e81611835565b50565b3361155a611291565b6001600160a01b03161461128f5760405163118cdaa760e01b815233600482015260240161073f565b6040516001600160a01b0384811660248301528381166044830152606482018390526115ea9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506118e0565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052611641848261194c565b6115ea576040516001600160a01b0384811660248301525f604483015261167591869182169063095ea7b3906064016115b8565b6115ea84826118e0565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061170557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166116f95f5160206123fb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561128f5760405163703e46dd60e11b815260040160405180910390fd5b61154e611551565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611785575060408051601f3d908101601f19168201909252611782918101906121f0565b60015b6117ad57604051634c9c8ce360e01b81526001600160a01b038316600482015260240161073f565b5f5160206123fb5f395f51905f5281146117dd57604051632a87526960e21b81526004810182905260240161073f565b6117e78383611995565b505050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461128f5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6118d76119ea565b61154e81611a0f565b5f5f60205f8451602086015f885af1806118ff576040513d5f823e3d81fd5b50505f513d91508115611916578060011415611923565b6001600160a01b0384163b155b156115ea57604051635274afe760e01b81526001600160a01b038516600482015260240161073f565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561198b5750811561197d578060011461198b565b5f866001600160a01b03163b115b9695505050505050565b61199e82611a17565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156119e2576117e78282611a7a565b610fd5611aec565b6119f2611b0b565b61128f57604051631afcd79f60e31b815260040160405180910390fd5b61151c6119ea565b806001600160a01b03163b5f03611a4c57604051634c9c8ce360e01b81526001600160a01b038216600482015260240161073f565b5f5160206123fb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051611a9691906123e4565b5f60405180830381855af49150503d805f8114611ace576040519150601f19603f3d011682016040523d82523d5f602084013e611ad3565b606091505b5091509150611ae3858383611b24565b95945050505050565b341561128f5760405163b398979f60e01b815260040160405180910390fd5b5f611b146118a5565b54600160401b900460ff16919050565b606082611b3957611b3482611b83565b611b7c565b8151158015611b5057506001600160a01b0384163b155b15611b7957604051639996b31560e01b81526001600160a01b038516600482015260240161073f565b50805b9392505050565b805115611b9257805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b038116811461150f575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611bf957611bf9611bc1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611c2857611c28611bc1565b604052919050565b5f60608284031215611c40575f5ffd5b6040516060810167ffffffffffffffff81118282101715611c6357611c63611bc1565b60409081528335825260208085013590830152928301359281019290925250919050565b5f82601f830112611c96575f5ffd5b813567ffffffffffffffff811115611cb057611cb0611bc1565b611cc3601f8201601f1916602001611bff565b818152846020838601011115611cd7575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f5f60a08486031215611d05575f5ffd5b611d0e84611bab565b9250611d1d8560208601611c30565b9150608084013567ffffffffffffffff811115611d38575f5ffd5b611d4486828701611c87565b9150509250925092565b5f82601f830112611d5d575f5ffd5b5f611d686040611bff565b9050806040840185811115611d7b575f5ffd5b845b81811015611d95578035835260209283019201611d7d565b509195945050505050565b5f82601f830112611daf575f5ffd5b6040611dba81611bff565b806080850186811115611dcb575f5ffd5b855b81811015611dee57611ddf8882611d4e565b84526020909301928401611dcd565b50909695505050505050565b5f5f5f5f6102c08587031215611e0e575f5ffd5b611e188686611d4e565b9350611e278660408701611da0565b9250611e368660c08701611d4e565b91505f8661011f870112611e48575f5ffd5b505f806101c0611e5781611bff565b9150508091506102c0870188811115611e6e575f5ffd5b61010088015b81811015611e8c578035845260209384019301611e74565b5050809250505092959194509250565b5f5f60408385031215611ead575f5ffd5b50508035926020909101359150565b5f5f5f5f6102408587031215611ed0575f5ffd5b611eda8686611d4e565b9350611ee98660408701611da0565b9250611ef88660c08701611d4e565b91505f8661011f870112611f0a575f5ffd5b505f80610140611f1981611bff565b915050809150610240870188811115611e6e575f5ffd5b5f5f60808385031215611f41575f5ffd5b611f4b8484611c30565b9150611f5960608401611bab565b90509250929050565b5f5f60408385031215611f73575f5ffd5b611f7c83611bab565b9150602083013567ffffffffffffffff811115611f97575f5ffd5b611fa385828601611c87565b9150509250929050565b5f5f5f5f6101808587031215611fc1575f5ffd5b611fcb8686611d4e565b9350611fda8660408701611da0565b9250611fe98660c08701611d4e565b91505f8661011f870112611ffb575f5ffd5b505f806120086080611bff565b9050809150610180870188811115611e6e575f5ffd5b5f6020828403121561202e575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f611b7c6020830184612035565b5f60208284031215612085575f5ffd5b611b7c82611bab565b5f6101008284031280156120a0575f5ffd5b506120a9611bd5565b6120b283611bab565b81526120c060208401611bab565b60208201526120d160408401611bab565b60408201526120e260608401611bab565b60608201526120f360808401611bab565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52602160045260245ffd5b80516001600160a01b0390811683526020808301519091169083015260408082015190830152606080820151908301526080808201519083015260a08101516003811061218e57634e487b7160e01b5f52602160045260245ffd5b8060a0840152505050565b6121a38184612133565b60e060c08201525f6121b860e0830184612035565b949350505050565b6060810181835f5b60038110156121e75781518352602092830192909101906001016121c8565b50505092915050565b5f60208284031215612200575f5ffd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176118c9576118c9612207565b808201808211156118c9576118c9612207565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156115ea57815184526020938401939091019060010161225c565b805f5b60028110156115ea57612292848351612259565b604093909301926020919091019060010161227e565b6102c081016122b78287612259565b6122c4604083018661227b565b6122d160c0830185612259565b6101008201835f5b600e8110156122f85781518352602092830192909101906001016122d9565b50505095945050505050565b5f60208284031215612314575f5ffd5b81518015158114611b7c575f5ffd5b61024081016123328287612259565b61233f604083018661227b565b61234c60c0830185612259565b6101008201835f5b600a8110156122f8578151835260209283019290910190600101612354565b818103818111156118c9576118c9612207565b60c081016118c98284612133565b61018081016123a38287612259565b6123b0604083018661227b565b6123bd60c0830185612259565b6101008201835f5b60048110156122f85781518352602092830192909101906001016123c5565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122092025b772178ba3614273ca19c3c258f9eba2fee5292f2551df7e66ffb9532fa64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","networkInteractionId":1,"nonce":788,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","networkInteractionId":1,"nonce":788,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1928404117"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x19489e9f6a62aa22bd0d4b3f09dd3846cce78726217864b0b4445656318cd3ad"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","hash":"0x19489e9f6a62aa22bd0d4b3f09dd3846cce78726217864b0b4445656318cd3ad","networkInteractionId":1,"receipt":{"blockHash":"0x30283d68132b183a20d603b3c66cec527c9ac0e21eb87d152a1b3b745fd73c7d","blockNumber":10203794,"contractAddress":"0x76c53EB316dFb2ae31E880cdc613970A66748C9f","logs":[{"address":"0x76c53EB316dFb2ae31E880cdc613970A66748C9f","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":187,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation","result":{"address":"0x76c53EB316dFb2ae31E880cdc613970A66748C9f","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x76c53EB316dFb2ae31E880cdc613970A66748C9f","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef28600000000000000000000000076c53eb316dfb2ae31e880cdc613970a66748c9f00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","networkInteractionId":1,"nonce":789,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","networkInteractionId":1,"nonce":789,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1904972541"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x7873787537971521a3e063eedab26ddb4376e78e8ded73d8d4002cc08472d798"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","hash":"0x7873787537971521a3e063eedab26ddb4376e78e8ded73d8d4002cc08472d798","networkInteractionId":1,"receipt":{"blockHash":"0xd87296dc1f47d212003caf4a6c11958bade524e22d48c6ea89e4437f6cfc3a47","blockNumber":10203799,"logs":[{"address":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","data":"0x","logIndex":137,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000076c53eb316dfb2ae31e880cdc613970a66748c9f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","withdrawVerifier":"0x0000000000000000000000000000000000000000"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","CurvyVault#CurvyVaultV3","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","networkInteraction":{"data":"0xcf101a4900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad0000000000000000000000000e25ecebf24a7bde1655ded9630a3e75a75df6bd000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","networkInteractionId":1,"nonce":790,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","networkInteractionId":1,"nonce":790,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1942242227"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x5e4773e26df080019cd62e587932e48bc93abd73659adb2bc621238b95d25db8"},"type":"TRANSACTION_SEND"}
-{"args":["0x97FfCE8e772EA1594BE3C34F85B43e9c00522320"],"artifactId":"CurvyVault#CurvyVaultV3","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","dependencies":["CurvyVault#CurvyVaultV3","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c00522320","id":1,"to":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":791,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":791,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1942242227"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xe7f8c0ef61236dcfec5bac91c0a063c915fe57cc6d070d1988cab01120830b32"},"type":"TRANSACTION_SEND"}
-{"args":["0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","dependencies":["PortalFactory#PortalFactory","CurvyVault#CurvyVaultV3","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c005223200000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x0e25ECebf24A7bDE1655DEd9630a3e75A75Df6BD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":792,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":792,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1942242227"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0xfac44c235f2930f3a15a1681653ce3e8bdf41d43ca71898c32d9d9055dd147f3"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","hash":"0x5e4773e26df080019cd62e587932e48bc93abd73659adb2bc621238b95d25db8","networkInteractionId":1,"receipt":{"blockHash":"0x60b3ab5d6fb8ff1e0ada7b77b0ff9782a05bd505392896853bd0a4af4b01a31d","blockNumber":10203804,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","hash":"0xe7f8c0ef61236dcfec5bac91c0a063c915fe57cc6d070d1988cab01120830b32","networkInteractionId":1,"receipt":{"blockHash":"0x60b3ab5d6fb8ff1e0ada7b77b0ff9782a05bd505392896853bd0a4af4b01a31d","blockNumber":10203804,"logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c00522320","logIndex":167,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV3.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xfac44c235f2930f3a15a1681653ce3e8bdf41d43ca71898c32d9d9055dd147f3","networkInteractionId":1,"receipt":{"blockHash":"0x60b3ab5d6fb8ff1e0ada7b77b0ff9782a05bd505392896853bd0a4af4b01a31d","blockNumber":10203804,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238"],"artifactId":"CurvyVault#CurvyVaultV3","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","dependencies":["CurvyVault#CurvyVaultV3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_0","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_0","networkInteraction":{"data":"0x09824a800000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c7238","id":1,"to":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_0","networkInteractionId":1,"nonce":795,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_0","networkInteractionId":1,"nonce":795,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2197860701"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x4a4156fa976e8a0643d873113a5c1e0faca353c29e0b4c09d5f2b25fa57baebd"},"type":"TRANSACTION_SEND"}
-{"artifactId":"TokenBridgeModule#TokenBridge","constructorArgs":["0x0000000000000000000000000000000000000000"],"contractName":"TokenBridge","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"TokenBridgeModule#TokenBridge","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"TokenBridgeModule#TokenBridge","networkInteraction":{"data":"0x60a060405234801561000f575f5ffd5b5060405161068f38038061068f83398101604081905261002e9161003f565b6001600160a01b031660805261006c565b5f6020828403121561004f575f5ffd5b81516001600160a01b0381168114610065575f5ffd5b9392505050565b6080516105f161009e5f395f8181603d015281816092015281816101d1015281816101f901526102d301526105f15ff3fe608060405234801561000f575f5ffd5b5060043610610034575f3560e01c80632b8c45ca14610038578063bfe24a741461007b575b5f5ffd5b61005f7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b61008e61008936600461050a565b610090565b005b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166101165760405162461bcd60e51b815260206004820152602260248201527f546f6b656e4272696467653a20496e76616c6964204c492e4649206164647265604482015261737360f01b60648201526084015b60405180910390fd5b6001600160a01b0383161580159061014b57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156102c9576040516370a0823160e01b815230600482015283905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610196573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101ba9190610595565b905080156102c2576101f66001600160a01b0383167f0000000000000000000000000000000000000000000000000000000000000000836103a2565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031685856040516102319291906105ac565b5f604051808303815f865af19150503d805f811461026a576040519150601f19603f3d011682016040523d82523d5f602084013e61026f565b606091505b50509050806102c05760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b505b5050505050565b47801561039c575f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682858560405161030c9291906105ac565b5f6040518083038185875af1925050503d805f8114610346576040519150601f19603f3d011682016040523d82523d5f602084013e61034b565b606091505b50509050806102c25760405162461bcd60e51b815260206004820152601f60248201527f546f6b656e4272696467653a204272696467652063616c6c206661696c656400604482015260640161010d565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526103f38482610455565b61039c57604080516001600160a01b03851660248201525f6044808301919091528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261044b90859061049e565b61039c848261049e565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610494575081156104865780600114610494565b5f866001600160a01b03163b115b9695505050505050565b5f5f60205f8451602086015f885af1806104bd576040513d5f823e3d81fd5b50505f513d915081156104d45780600114156104e1565b6001600160a01b0384163b155b1561039c57604051635274afe760e01b81526001600160a01b038516600482015260240161010d565b5f5f5f6040848603121561051c575f5ffd5b83356001600160a01b0381168114610532575f5ffd5b9250602084013567ffffffffffffffff81111561054d575f5ffd5b8401601f8101861361055d575f5ffd5b803567ffffffffffffffff811115610573575f5ffd5b866020828401011115610584575f5ffd5b939660209190910195509293505050565b5f602082840312156105a5575f5ffd5b5051919050565b818382375f910190815291905056fea264697066735822122024b79e0e8ad787a3d9372fa489b74bacaa38a30e0b87794cfbd941ed4010f11664736f6c634300081c00330000000000000000000000000000000000000000000000000000000000000000","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"TokenBridgeModule#TokenBridge","networkInteractionId":1,"nonce":796,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"TokenBridgeModule#TokenBridge","networkInteractionId":1,"nonce":796,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"2197860701"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x6c1a707e91a1ea8189abb8d362e749b856b6da06de47c144b4aaa9d337d20cd3"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_0","hash":"0x4a4156fa976e8a0643d873113a5c1e0faca353c29e0b4c09d5f2b25fa57baebd","networkInteractionId":1,"receipt":{"blockHash":"0xb28220f7c639cef0b227976e6fbf0c960a01f0bcad7a9908d6dee6470fda0c46","blockNumber":10204854,"logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x0000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c72380000000000000000000000000000000000000000000000000000000000000002","logIndex":160,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_0","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"TokenBridgeModule#TokenBridge","hash":"0x6c1a707e91a1ea8189abb8d362e749b856b6da06de47c144b4aaa9d337d20cd3","networkInteractionId":1,"receipt":{"blockHash":"0xb28220f7c639cef0b227976e6fbf0c960a01f0bcad7a9908d6dee6470fda0c46","blockNumber":10204854,"contractAddress":"0xD6e2B1A78656327a0B63dDBB813effaefc2F89C7","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"TokenBridgeModule#TokenBridge","result":{"address":"0xD6e2B1A78656327a0B63dDBB813effaefc2F89C7","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x779877A7B0D9E8603169DdbD7836e478b4624789"],"artifactId":"CurvyVault#CurvyVaultV3","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","dependencies":["CurvyVault#CurvyVaultV3","CurvyVault#RegisterVaultToken_0"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"registerToken","futureId":"CurvyVault#RegisterVaultToken_1","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#RegisterVaultToken_1","networkInteraction":{"data":"0x09824a80000000000000000000000000779877a7b0d9e8603169ddbd7836e478b4624789","id":1,"to":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#RegisterVaultToken_1","networkInteractionId":1,"nonce":797,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_1","networkInteractionId":1,"nonce":797,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1864230521"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1439189"}},"hash":"0x6a5a6e7cfd66000dd921f0ede4451d8095398798cdcb501e241ed39106c111e0"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#RegisterVaultToken_1","hash":"0x6a5a6e7cfd66000dd921f0ede4451d8095398798cdcb501e241ed39106c111e0","networkInteractionId":1,"receipt":{"blockHash":"0x5c795ba76928a9c7db8440d37b3d06a997cbac3b703d4264b84da529b445e04c","blockNumber":10204859,"logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x000000000000000000000000779877a7b0d9e8603169ddbd7836e478b46247890000000000000000000000000000000000000000000000000000000000000003","logIndex":183,"topics":["0xf977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#RegisterVaultToken_1","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","contractName":"CurvyVaultV4","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV4Implementation","constructorArgs":[],"contractName":"CurvyVaultV4","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV4Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051612d5c6100f95f395f81816117ef01528181611818015261195c0152612d5c5ff3fe608060405260043610610163575f3560e01c806384b0196e116100cd578063b86c4d7211610087578063efeecb5111610062578063efeecb5114610472578063f153768614610486578063f2fde38b146104a5578063fe54fd6a146104c4575f5ffd5b8063b86c4d7214610415578063c4d66de814610434578063de1a272014610453575f5ffd5b806384b0196e146103395780638bc7e8c4146103605780638da5cb5b1461037f578063acb2ad6f14610393578063ad3cb1cc146103b9578063ad8623cc146103f6575f5ffd5b80634f1ef2861161011e5780634f1ef2861461027157806352d1902d1461028457806367a527931461029857806367ccdf38146102cf578063715018a61461030657806377e5614d1461031a575f5ffd5b8062fdd58e1461018e57806309824a80146101c057806320e8c565146101df5780632d0335ab146101f257806331ddbddc146102265780634e1273f414610245575f5ffd5b3661018a5761018873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f6104e3565b005b5f5ffd5b348015610199575f5ffd5b506101ad6101a8366004612597565b6108bd565b6040519081526020015b60405180910390f35b3480156101cb575f5ffd5b506101886101da3660046125bf565b6108e5565b6101886101ed3660046125d8565b6104e3565b3480156101fd575f5ffd5b506101ad61020c3660046125bf565b6001600160a01b03165f9081526001602052604090205490565b348015610231575f5ffd5b506101886102403660046126de565b6109fd565b348015610250575f5ffd5b5061026461025f3660046127b7565b610a14565b6040516101b791906128aa565b61018861027f3660046128bc565b610b63565b34801561028f575f5ffd5b506101ad610b7e565b3480156102a3575f5ffd5b506005546102b7906001600160601b031681565b6040516001600160601b0390911681526020016101b7565b3480156102da575f5ffd5b506102ee6102e93660046128f1565b610b99565b6040516001600160a01b0390911681526020016101b7565b348015610311575f5ffd5b50610188610c18565b348015610325575f5ffd5b506101886103343660046125bf565b610c2b565b348015610344575f5ffd5b5061034d610c89565b6040516101b79796959493929190612936565b34801561036b575f5ffd5b506006546102b7906001600160601b031681565b34801561038a575f5ffd5b506102ee610d32565b34801561039e575f5ffd5b506005546102b790600160601b90046001600160601b031681565b3480156103c4575f5ffd5b506103e9604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101b791906129a5565b348015610401575f5ffd5b506101886104103660046129b7565b610d60565b348015610420575f5ffd5b5061018861042f3660046129df565b610dcd565b34801561043f575f5ffd5b5061018861044e3660046125bf565b610f25565b34801561045e575f5ffd5b5061018861046d3660046129b7565b61110c565b34801561047d575f5ffd5b506002546101ad565b348015610491575f5ffd5b506101ad6104a03660046125bf565b611176565b3480156104b0575f5ffd5b506101886104bf3660046125bf565b6111f2565b3480156104cf575f5ffd5b506101886104de3660046126de565b61122c565b600654600160601b90046001600160a01b0316331461057d5760405162461bcd60e51b8152602060048201526044602482018190527f4f6e6c7920437572767941676772656761746f722063616e20646f207661756c908201527f74206465706f73697473207468726f75676820706f7274616c206175746f53686064820152631a595b1960e21b608482015260a4015b60405180910390fd5b6001600160a01b0383166105a457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461068a5734156106365760405162461bcd60e51b815260206004820152603660248201527f43757276795661756c74236465706f7369743a20446f6e27742073656e64204560448201527554482077697468204552433230206465706f7369742160501b6064820152608401610574565b61064b6001600160a01b03861633308661123f565b506001600160a01b0384165f90815260036020526040812054908190036106855760405163259ba1ad60e01b815260040160405180910390fd5b6106f2565b3483146106ee5760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74236465706f7369743a20496e636f727265637420646560448201526b706f7369742076616c75652160a01b6064820152608401610574565b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610722908490612a33565b90915550506005546001600160601b0316156107e7576005545f9061271090610754906001600160601b031686612a46565b61075e9190612a5d565b6001600160a01b0386165f90815260208181526040808320868452909152812080549293508392909190610793908490612a7c565b909155508190505f806107a4610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546107e09190612a33565b9091555050505b8115610870576001600160a01b0384165f908152602081815260408083208484529091528120805484929061081d908490612a7c565b909155508290505f8061082e610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8381526020019081526020015f205f82825461086a9190612a33565b90915550505b60408051828152602081018590526001600160a01b038616915f917f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44910160405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6108ed6112ac565b6001600160a01b0381165f908152600360205260409020541561096e5760405162461bcd60e51b815260206004820152603360248201527f43757276795661756c74237265676973746572546f6b656e3a20546f6b656e20604482015272616c726561647920726567697374657265642160681b6064820152608401610574565b60028054905f61097d83612a8f565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610a0782826112de565b610a10826114b0565b5050565b60608151835114610a805760405162461bcd60e51b815260206004820152603060248201527f43757276795661756c742362616c616e63654f6642617463683a20496e76616c60448201526f6964206172726179206c656e6774682160801b6064820152608401610574565b5f835167ffffffffffffffff811115610a9b57610a9b61262d565b604051908082528060200260200182016040528015610ac4578160200160208202803683370190505b5090505f5b8451811015610b5b575f5f868381518110610ae657610ae6612aa7565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f205f858381518110610b2057610b20612aa7565b602002602001015181526020019081526020015f2054828281518110610b4857610b48612aa7565b6020908102919091010152600101610ac9565b509392505050565b610b6b6117e4565b610b7482611888565b610a108282611890565b5f610b87611951565b505f516020612d075f395f51905f5290565b5f818152600460205260409020546001600160a01b031680610c135760405162461bcd60e51b815260206004820152602d60248201527f43757276795661756c743a236765744964416464726573733a20556e7265676960448201526c73746572656420746f6b656e2160981b6064820152608401610574565b919050565b610c206112ac565b610c295f61199a565b565b610c336112ac565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016109f2565b5f60608082808083815f516020612ce75f395f51905f528054909150158015610cb457506001810154155b610cf85760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b6044820152606401610574565b610d00611a0a565b610d08611aca565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b610d6d60208201826125bf565b6001600160a01b0316336001600160a01b031614610d9e57604051636edaef2f60e11b815260040160405180910390fd5b608081013515610dc15760405163094816b760e41b815260040160405180910390fd5b610dca81611b08565b50565b610dd56112ac565b6002826002811115610de957610de9612abb565b03610e0e57600580546001600160601b0319166001600160601b038316179055610ee8565b6001826002811115610e2257610e22612abb565b03610e5557600580546bffffffffffffffffffffffff60601b1916600160601b6001600160601b03841602179055610ee8565b5f826002811115610e6857610e68612abb565b03610e8d57600680546001600160601b0319166001600160601b038316179055610ee8565b60405162461bcd60e51b815260206004820152602a60248201527f43757276795661756c7423736574466565416d6f756e743a20556e6b6e6f776e6044820152692066656520747970652160b01b6064820152608401610574565b7f5f70d5d3c1200aea00f3b75c7a1b38bcfc5455bd0863e6fcd4f097304b859d9c8282604051610f19929190612aef565b60405180910390a15050565b5f610f2e611edc565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610f555750825b90505f8267ffffffffffffffff166001148015610f715750303b155b905081158015610f7f575080155b15610f9d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610fc757845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620322e360ec1b9282019290925261108f9190611f04565b61109886611f16565b600580546001600160c01b031916600a179055600680546001600160601b0319166014179055831561110457845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b61111960208201826125bf565b6001600160a01b0316336001600160a01b03161461114a57604051636edaef2f60e11b815260040160405180910390fd5b60808101351561116d5760405163094816b760e41b815260040160405180910390fd5b610dca816114b0565b6001600160a01b0381165f9081526003602052604081205490819003610c135760405162461bcd60e51b815260206004820152602b60248201527f43757276795661756c743a23676574546f6b656e49443a20556e72656769737460448201526a6572656420746f6b656e2160a81b6064820152608401610574565b6111fa6112ac565b6001600160a01b03811661122357604051631e4fbdf760e01b81525f6004820152602401610574565b610dca8161199a565b61123682826112de565b610a1082611b08565b6040516001600160a01b0384811660248301528381166044830152606482018390526112a69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611f27565b50505050565b336112b5610d32565b6001600160a01b031614610c295760405163118cdaa760e01b8152336004820152602401610574565b5f7fb208091ed952365f02c7667b3695159d6ab560ae0ba382eea4872477552b281e60018261131060208701876125bf565b6001600160a01b031681526020808201929092526040015f205490611337908601866125bf565b61134760408701602088016125bf565b60408701356060880135608089013561136660c08b0160a08c01612b13565b60405160200161137d989796959493929190612b2c565b6040516020818303038152906040528051906020012090505f61139f82611f93565b90505f6113ac8285611fbf565b90506113bb60208601866125bf565b6001600160a01b0316816001600160a01b0316146114355760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f76616c69646174655369676e61747572653a20496044820152706e76616c6964207369676e61747572652160781b6064820152608401610574565b6001600160a01b0381165f90815260016020526040812080549161145883612a8f565b90915550506001600160a01b0381165f818152600160209081526040918290205491519182527fb861b7bdbe611a846ab271b8d2810391bc8b5a968f390c322438ecab66bccf59910160405180910390a25050505050565b5f6114c160408301602084016125bf565b6001600160a01b0316036114e857604051634e46966960e11b815260040160405180910390fd5b60016114fa60c0830160a08401612b13565b600281111561150b5761150b612abb565b1461152957604051637513b90360e01b815260040160405180910390fd5b60608101355f8061153d60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461157d9190612a7c565b909155505060608101355f8061159960408501602086016125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f8282546115d99190612a33565b90915550506080810135156116755760808101355f806115fc60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f82825461163c9190612a7c565b9091555050325f90815260208181526040808320818501358452909152812080546080840135929061166f908490612a33565b90915550505b600554600160601b90046001600160601b031615611768576005545f90612710906116b490600160601b90046001600160601b03166060850135612a46565b6116be9190612a5d565b9050805f806116d060208601866125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117109190612a7c565b909155508190505f80611721610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f846040013581526020019081526020015f205f8282546117619190612a33565b9091555050505b61177860408201602083016125bf565b6001600160a01b031661178e60208301836125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc44836040013584606001356040516117d9929190918252602082015260400190565b60405180910390a350565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061186a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661185e5f516020612d075f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610c295760405163703e46dd60e11b815260040160405180910390fd5b610dca6112ac565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156118ea575060408051601f3d908101601f191682019092526118e791810190612b81565b60015b61191257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610574565b5f516020612d075f395f51905f52811461194257604051632a87526960e21b815260048101829052602401610574565b61194c8383611fe7565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c295760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020612ce75f395f51905f5291611a4890612b98565b80601f0160208091040260200160405190810160405280929190818152602001828054611a7490612b98565b8015611abf5780601f10611a9657610100808354040283529160200191611abf565b820191905f5260205f20905b815481529060010190602001808311611aa257829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020612ce75f395f51905f5291611a4890612b98565b5f611b1960408301602084016125bf565b6001600160a01b031603611b895760405162461bcd60e51b815260206004820152603160248201527f43757276795661756c74235f77697468647261773a20496e76616c696420776960448201527074686472617720726563697069656e742160781b6064820152608401610574565b5f611b9a60c0830160a08401612b13565b6002811115611bab57611bab612abb565b14611c165760405162461bcd60e51b815260206004820152603560248201527f43757276795661756c742377697468647261773a2057726f6e67207479706520604482015274666f72206d657461207472616e73616374696f6e2160581b6064820152608401610574565b60608101355f80611c2a60208501856125bf565b6001600160a01b03166001600160a01b031681526020019081526020015f205f836040013581526020019081526020015f205f828254611c6a9190612a7c565b90915550506060810135608082013515611cc557611c8c608083013582612a7c565b325f9081526020818152604080832081870135845290915281208054929350608085013592909190611cbf908490612a33565b90915550505b6006546001600160601b031615611d60576006545f9061271090611cf6906001600160601b03166060860135612a46565b611d009190612a5d565b9050611d0c8183612a7c565b9150805f5f611d19610d32565b6001600160a01b03166001600160a01b031681526020019081526020015f205f856040013581526020019081526020015f205f828254611d599190612a33565b9091555050505b6001826040013514611db257604080830180355f90815260046020908152929020546001600160a01b031691611dac91611d9b9186016125bf565b6001600160a01b038316908461203c565b50611e77565b5f611dc360408401602085016125bf565b6001600160a01b0316826040515f6040518083038185875af1925050503d805f8114611e0a576040519150601f19603f3d011682016040523d82523d5f602084013e611e0f565b606091505b5050905080611e755760405162461bcd60e51b815260206004820152602c60248201527f43757276795661756c74235f77697468647261773a204554482077697468647260448201526b6177616c206661696c65642160a01b6064820152608401610574565b505b5f611e8560208401846125bf565b6001600160a01b03167f9ed053bb818ff08b8353cd46f78db1f0799f31c9e4458fdb425c10eccd2efc4484604001358560600135604051611ed0929190918252602082015260400190565b60405180910390a35050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006108df565b611f0c61206d565b610a108282612092565b611f1e61206d565b610dca816120f1565b5f5f60205f8451602086015f885af180611f46576040513d5f823e3d81fd5b50505f513d91508115611f5d578060011415611f6a565b6001600160a01b0384163b155b156112a657604051635274afe760e01b81526001600160a01b0385166004820152602401610574565b5f6108df611f9f6120f9565b8360405161190160f01b8152600281019290925260228201526042902090565b5f5f5f5f611fcd8686612107565b925092509250611fdd8282612150565b5090949350505050565b611ff082612208565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156120345761194c828261226b565b610a106122dd565b6040516001600160a01b0383811660248301526044820183905261194c91859182169063a9059cbb90606401611274565b6120756122fc565b610c2957604051631afcd79f60e31b815260040160405180910390fd5b61209a61206d565b5f516020612ce75f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026120d38482612c15565b50600381016120e28382612c15565b505f8082556001909101555050565b6111fa61206d565b5f612102612315565b905090565b5f5f5f835160410361213e576020840151604085015160608601515f1a61213088828585612388565b955095509550505050612149565b505081515f91506002905b9250925092565b5f82600381111561216357612163612abb565b0361216c575050565b600182600381111561218057612180612abb565b0361219e5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156121b2576121b2612abb565b036121d35760405163fce698f760e01b815260048101829052602401610574565b60038260038111156121e7576121e7612abb565b03610a10576040516335e2f38360e21b815260048101829052602401610574565b806001600160a01b03163b5f0361223d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610574565b5f516020612d075f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516122879190612cd0565b5f60405180830381855af49150503d805f81146122bf576040519150601f19603f3d011682016040523d82523d5f602084013e6122c4565b606091505b50915091506122d4858383612450565b95945050505050565b3415610c295760405163b398979f60e01b815260040160405180910390fd5b5f612305611edc565b54600160401b900460ff16919050565b5f7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61233f6124af565b612347612517565b60408051602081019490945283019190915260608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156123c157505f91506003905082612446565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015612412573d5f5f3e3d5ffd5b5050604051601f1901519150506001600160a01b03811661243d57505f925060019150829050612446565b92505f91508190505b9450945094915050565b6060826124655761246082612559565b6124a8565b815115801561247c57506001600160a01b0384163b155b156124a557604051639996b31560e01b81526001600160a01b0385166004820152602401610574565b50805b9392505050565b5f5f516020612ce75f395f51905f52816124c7611a0a565b8051909150156124df57805160209091012092915050565b815480156124ee579392505050565b7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470935050505090565b5f5f516020612ce75f395f51905f528161252f611aca565b80519091501561254757805160209091012092915050565b600182015480156124ee579392505050565b80511561256857805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610c13575f5ffd5b5f5f604083850312156125a8575f5ffd5b6125b183612581565b946020939093013593505050565b5f602082840312156125cf575f5ffd5b6124a882612581565b5f5f5f5f608085870312156125eb575f5ffd5b6125f485612581565b935061260260208601612581565b93969395505050506040820135916060013590565b5f60c08284031215612627575f5ffd5b50919050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561266a5761266a61262d565b604052919050565b5f82601f830112612681575f5ffd5b813567ffffffffffffffff81111561269b5761269b61262d565b6126ae601f8201601f1916602001612641565b8181528460208386010111156126c2575f5ffd5b816020850160208301375f918101602001919091529392505050565b5f5f60e083850312156126ef575f5ffd5b6126f98484612617565b915060c083013567ffffffffffffffff811115612714575f5ffd5b61272085828601612672565b9150509250929050565b5f67ffffffffffffffff8211156127435761274361262d565b5060051b60200190565b5f82601f83011261275c575f5ffd5b813561276f61276a8261272a565b612641565b8082825260208201915060208360051b860101925085831115612790575f5ffd5b602085015b838110156127ad578035835260209283019201612795565b5095945050505050565b5f5f604083850312156127c8575f5ffd5b823567ffffffffffffffff8111156127de575f5ffd5b8301601f810185136127ee575f5ffd5b80356127fc61276a8261272a565b8082825260208201915060208360051b85010192508783111561281d575f5ffd5b6020840193505b828410156128465761283584612581565b825260209384019390910190612824565b9450505050602083013567ffffffffffffffff811115612864575f5ffd5b6127208582860161274d565b5f8151808452602084019350602083015f5b828110156128a0578151865260209586019590910190600101612882565b5093949350505050565b602081525f6124a86020830184612870565b5f5f604083850312156128cd575f5ffd5b6128d683612581565b9150602083013567ffffffffffffffff811115612714575f5ffd5b5f60208284031215612901575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61295460e0830189612908565b82810360408401526129668189612908565b606084018890526001600160a01b038716608085015260a0840186905283810360c085015290506129978185612870565b9a9950505050505050505050565b602081525f6124a86020830184612908565b5f60c082840312156129c7575f5ffd5b6124a88383612617565b803560038110610c13575f5ffd5b5f5f604083850312156129f0575f5ffd5b6129f9836129d1565b915060208301356001600160601b0381168114612a14575f5ffd5b809150509250929050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156108df576108df612a1f565b80820281158282048414176108df576108df612a1f565b5f82612a7757634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156108df576108df612a1f565b5f60018201612aa057612aa0612a1f565b5060010190565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52602160045260245ffd5b60038110612aeb57634e487b7160e01b5f52602160045260245ffd5b9052565b60408101612afd8285612acf565b6001600160601b03831660208301529392505050565b5f60208284031215612b23575f5ffd5b6124a8826129d1565b888152602081018890526001600160a01b038781166040830152861660608201526080810185905260a0810184905260c081018390526101008101612b7460e0830184612acf565b9998505050505050505050565b5f60208284031215612b91575f5ffd5b5051919050565b600181811c90821680612bac57607f821691505b60208210810361262757634e487b7160e01b5f52602260045260245ffd5b601f82111561194c57805f5260205f20601f840160051c81016020851015612bef5750805b601f840160051c820191505b81811015612c0e575f8155600101612bfb565b5050505050565b815167ffffffffffffffff811115612c2f57612c2f61262d565b612c4381612c3d8454612b98565b84612bca565b6020601f821160018114612c75575f8315612c5e5750848201515b5f19600385901b1c1916600184901b178455612c0e565b5f84815260208120601f198516915b82811015612ca45787850151825560209485019460019092019101612c84565b5084821015612cc157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a83c42b48ed5c8521954fb48bfceb7c89405562874000d8c7dde35c55bd5cdf264736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","networkInteractionId":1,"nonce":831,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","networkInteractionId":1,"nonce":831,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000022"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xcf5fa5395c4da97fb0bc15179cb7315820265e803cd3ac02a41487b7d1be3f70"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","hash":"0xcf5fa5395c4da97fb0bc15179cb7315820265e803cd3ac02a41487b7d1be3f70","networkInteractionId":1,"receipt":{"blockHash":"0x7f1e842b4989c32d763ab7952db7cbd0dfdaeae70f32ae6120bd41518ab77cae","blockNumber":10308200,"contractAddress":"0x10Cf9e1ABDe7360abAf59231c518D59908a527B2","logs":[{"address":"0x10Cf9e1ABDe7360abAf59231c518D59908a527B2","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":173,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV4Implementation","result":{"address":"0x10Cf9e1ABDe7360abAf59231c518D59908a527B2","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x10Cf9e1ABDe7360abAf59231c518D59908a527B2","0x"],"artifactId":"CurvyVault#CurvyVaultV3","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","dependencies":["CurvyVault#CurvyVaultV3","CurvyVault#CurvyVaultV4Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef28600000000000000000000000010cf9e1abde7360abaf59231c518d59908a527b200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","networkInteractionId":1,"nonce":832,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","networkInteractionId":1,"nonce":832,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000022"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xb2a7077c6493645d74335f910c9c67e3353d92cb5aaa1e259eaf1d44aebf7c98"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","hash":"0xb2a7077c6493645d74335f910c9c67e3353d92cb5aaa1e259eaf1d44aebf7c98","networkInteractionId":1,"receipt":{"blockHash":"0x8323de75e11a38f28e25315ee84570bcfbed38c03bcba9e72bc1daa25662f7b0","blockNumber":10308205,"logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x","logIndex":193,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000010cf9e1abde7360abaf59231c518d59908a527b2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV3.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x97FfCE8e772EA1594BE3C34F85B43e9c00522320"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","dependencies":["CurvyVault#CurvyVaultV4","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c00522320","id":1,"to":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":833,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":833,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000022"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x745cc0fd50bcfccf92ea58f1b5b293d169a178f74e2b294aa96996612ac3ff65"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","hash":"0x745cc0fd50bcfccf92ea58f1b5b293d169a178f74e2b294aa96996612ac3ff65","networkInteractionId":1,"receipt":{"blockHash":"0xff06fccd8f9c6af465269dbdb655234bf10605cdb4199a522b46df66f125209e","blockNumber":10308210,"logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c00522320","logIndex":266,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV4.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x76c53EB316dFb2ae31E880cdc613970A66748C9f","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV3","CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","networkInteraction":{"data":"0x4f1ef28600000000000000000000000076c53eb316dfb2ae31e880cdc613970a66748c9f00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","networkInteractionId":1,"nonce":840,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","networkInteractionId":1,"nonce":840,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000050"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x904451cf42eca94ef8976e06770437b05051da778ac7cc512a8b92733345d1cd"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","contractName":"CurvyAggregatorAlphaV5","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","contractName":"CurvyVaultV5","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV5","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV5Implementation","constructorArgs":[],"contractName":"CurvyVaultV5","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV5Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516118df6100f95f395f81816110600152818161108901526111cd01526118df5ff3fe608060405260043610610128575f3560e01c80638bc7e8c4116100a8578063e63697c81161006d578063e63697c814610353578063ee3d686614610372578063efeecb5114610391578063f1537686146103a5578063f2fde38b146103c4578063f8379068146103e3575f5ffd5b80638bc7e8c41461029e5780638da5cb5b146102bd578063acb2ad6f146102d1578063ad3cb1cc146102f7578063c4d66de814610334575f5ffd5b806352d1902d116100ee57806352d1902d146101e957806367a52793146101fd57806367ccdf3814610234578063715018a61461026b57806377e5614d1461027f575f5ffd5b8062fdd58e1461015357806309824a801461018557806320e8c565146101a4578063432c0553146101b75780634f1ef286146101d6575f5ffd5b3661014f5761014d73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f610402565b005b5f5ffd5b34801561015e575f5ffd5b5061017261016d36600461157d565b610669565b6040519081526020015b60405180910390f35b348015610190575f5ffd5b5061014d61019f3660046115a5565b610691565b61014d6101b23660046115be565b610402565b3480156101c2575f5ffd5b5061014d6101d13660046115fd565b61075e565b61014d6101e436600461162a565b61084e565b3480156101f4575f5ffd5b5061017261086d565b348015610208575f5ffd5b5060055461021c906001600160601b031681565b6040516001600160601b03909116815260200161017c565b34801561023f575f5ffd5b5061025361024e3660046116ee565b610888565b6040516001600160a01b03909116815260200161017c565b348015610276575f5ffd5b5061014d6108c2565b34801561028a575f5ffd5b5061014d6102993660046115a5565b6108d5565b3480156102a9575f5ffd5b5060065461021c906001600160601b031681565b3480156102c8575f5ffd5b50610253610933565b3480156102dc575f5ffd5b5060055461021c90600160601b90046001600160601b031681565b348015610302575f5ffd5b50610327604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161017c9190611705565b34801561033f575f5ffd5b5061014d61034e3660046115a5565b610961565b34801561035e575f5ffd5b5061014d61036d36600461173a565b610af3565b34801561037d575f5ffd5b5061014d61038c3660046115a5565b610d5f565b34801561039c575f5ffd5b50600254610172565b3480156103b0575f5ffd5b506101726103bf3660046115a5565b610e0f565b3480156103cf575f5ffd5b5061014d6103de3660046115a5565b610e48565b3480156103ee575f5ffd5b5061014d6103fd36600461173a565b610e8a565b600654600160601b90046001600160a01b0316331461043457604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b03831661045b57604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146104f357341561049f57604051633c9fd93960e21b815260040160405180910390fd5b6104b46001600160a01b038616333086610fbc565b506001600160a01b0384165f90815260036020526040812054908190036104ee5760405163259ba1ad60e01b815260040160405180910390fd5b610517565b3483146105135760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610547908490611781565b90915550506005546001600160601b03161561060c576005545f9061271090610579906001600160601b031686611794565b61058391906117ab565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906105b89084906117ca565b909155508190505f806105c9610933565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546106059190611781565b9091555050505b836001600160a01b0316856001600160a01b03167fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7858560405161065a929190918252602082015260400190565b60405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b610699611023565b6001600160a01b0381165f90815260036020526040902054156106cf5760405163edec813b60e01b815260040160405180910390fd5b60028054905f6106de836117dd565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610766611023565b610773602082018261180b565b6001600160601b0316156107b35761078e602082018261180b565b600580546001600160601b0319166001600160601b039290921691909117905561081f565b6107c3604082016020830161180b565b6001600160601b031615610806576107e1604082016020830161180b565b600680546001600160601b0319166001600160601b039290921691909117905561081f565b60405163c4ec2f4760e01b815260040160405180910390fd5b7f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91816040516107539190611824565b610856611055565b61085f826110f9565b6108698282611101565b5050565b5f6108766111c2565b505f51602061188a5f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806108bd5760405163259ba1ad60e01b815260040160405180910390fd5b919050565b6108ca611023565b6108d35f61120b565b565b6108dd611023565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea3190602001610753565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f61096a61127b565b805490915060ff600160401b820416159067ffffffffffffffff165f811580156109915750825b90505f8267ffffffffffffffff1660011480156109ad5750303b155b9050811580156109bb575080155b156109d95760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610a0357845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f81905260046020527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600255610a83866112a3565b600580546001600160601b0319908116600a179091556006805490911660141790558315610aeb57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610b2e5750610b18610933565b6001600160a01b0316336001600160a01b031614155b15610b4c57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610b7357604051634e46966960e11b815260040160405180910390fd5b6006546001600160601b03165f03610b9e5760405163c4ec2f4760e01b815260040160405180910390fd5b6006545f9061271090610bba906001600160601b031684611794565b610bc491906117ab565b335f90815260208181526040808320888452909152812080549293508492909190610bf09084906117ca565b909155508190505f80610c01610933565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8681526020019081526020015f205f828254610c3d9190611781565b90915550505f848152600460205260409020546001600160a01b031680610c775760405163259ba1ad60e01b815260040160405180910390fd5b60018514610ca357610c9e84610c8d84866117ca565b6001600160a01b03841691906112b4565b610d1a565b5f6001600160a01b038516610cb884866117ca565b6040515f81818185875af1925050503d805f8114610cf1576040519150601f19603f3d011682016040523d82523d5f602084013e610cf6565b606091505b5050905080610d185760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316816001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb8560405161065a91815260200190565b610d67611023565b6001600160a01b0381165f9081526003602052604081205490819003610da05760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527f59423ae65f1bcb9f1053fba8f7db2902838ef7d4001c3622192b251a90b4ffa9910160405180910390a15050565b6001600160a01b0381165f90815260036020526040812054908190036108bd5760405163259ba1ad60e01b815260040160405180910390fd5b610e50611023565b6001600160a01b038116610e7e57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610e878161120b565b50565b610e92611023565b6001600160a01b038216610eb957604051635209852960e01b815260040160405180910390fd5b6001600160a01b0382165f9081526020818152604080832084845290915281208054859290610ee99084906117ca565b90915550505f818152600460205260409020546001600160a01b031680610f235760405163259ba1ad60e01b815260040160405180910390fd5b60018214610f4457610f3f6001600160a01b03821684866112b4565b610fb6565b5f836001600160a01b0316856040515f6040518083038185875af1925050503d805f8114610f8d576040519150601f19603f3d011682016040523d82523d5f602084013e610f92565b606091505b5050905080610fb45760405163b12d13eb60e01b815260040160405180910390fd5b505b50505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610fb69186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506112e5565b3361102c610933565b6001600160a01b0316146108d35760405163118cdaa760e01b8152336004820152602401610e75565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110db57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110cf5f51602061188a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156108d35760405163703e46dd60e11b815260040160405180910390fd5b610e87611023565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561115b575060408051601f3d908101601f191682019092526111589181019061185c565b60015b61118357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610e75565b5f51602061188a5f395f51905f5281146111b357604051632a87526960e21b815260048101829052602401610e75565b6111bd8383611351565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108d35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061068b565b6112ab6113a6565b610e87816113cb565b6040516001600160a01b038381166024830152604482018390526111bd91859182169063a9059cbb90606401610ff1565b5f5f60205f8451602086015f885af180611304576040513d5f823e3d81fd5b50505f513d9150811561131b578060011415611328565b6001600160a01b0384163b155b15610fb657604051635274afe760e01b81526001600160a01b0385166004820152602401610e75565b61135a826113d3565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561139e576111bd8282611436565b6108696114a8565b6113ae6114c7565b6108d357604051631afcd79f60e31b815260040160405180910390fd5b610e506113a6565b806001600160a01b03163b5f0361140857604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610e75565b5f51602061188a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114529190611873565b5f60405180830381855af49150503d805f811461148a576040519150601f19603f3d011682016040523d82523d5f602084013e61148f565b606091505b509150915061149f8583836114e0565b95945050505050565b34156108d35760405163b398979f60e01b815260040160405180910390fd5b5f6114d061127b565b54600160401b900460ff16919050565b6060826114f5576114f08261153f565b611538565b815115801561150c57506001600160a01b0384163b155b1561153557604051639996b31560e01b81526001600160a01b0385166004820152602401610e75565b50805b9392505050565b80511561154e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146108bd575f5ffd5b5f5f6040838503121561158e575f5ffd5b61159783611567565b946020939093013593505050565b5f602082840312156115b5575f5ffd5b61153882611567565b5f5f5f5f608085870312156115d1575f5ffd5b6115da85611567565b93506115e860208601611567565b93969395505050506040820135916060013590565b5f604082840312801561160e575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561163b575f5ffd5b61164483611567565b9150602083013567ffffffffffffffff81111561165f575f5ffd5b8301601f8101851361166f575f5ffd5b803567ffffffffffffffff81111561168957611689611616565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156116b8576116b8611616565b6040528181528282016020018710156116cf575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f602082840312156116fe575f5ffd5b5035919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f5f6060848603121561174c575f5ffd5b8335925061175c60208501611567565b929592945050506040919091013590565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561068b5761068b61176d565b808202811582820484141761068b5761068b61176d565b5f826117c557634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561068b5761068b61176d565b5f600182016117ee576117ee61176d565b5060010190565b80356001600160601b03811681146108bd575f5ffd5b5f6020828403121561181b575f5ffd5b611538826117f5565b604081016001600160601b03611839846117f5565b1682526001600160601b03611850602085016117f5565b16602083015292915050565b5f6020828403121561186c575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220de27d993d71d92b25cdac5424858cdd465922a06a0d5e2bbc2068962a51180ec64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":841,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":841,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000050"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x48a7d0e776eaa69172d8646b0306eb97ead12af5e9a7b5299fe53b24972777ce"},"type":"TRANSACTION_SEND"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001ee77f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611ec7380380611ec783398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611d85806101425f395ff3fe60806040526004361061009a575f3560e01c8063715018a611610062578063715018a61461016d5780638da5cb5b14610181578063e16ca8951461019d578063eb2347fd146101bc578063f2fde38b146101f3578063f34cc1ad14610212575f5ffd5b80630188ab0f1461009e57806307922e19146100d357806311c9a94d146100e857806346bbadfb146101175780635e8b95d214610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107e6565b610231565b6040516100ca9190610829565b60405180910390f35b6100e66100e13660046108c1565b6102c0565b005b3480156100f3575f5ffd5b506101076101023660046108f3565b6103f0565b60405190151581526020016100ca565b348015610122575f5ffd5b506100e6610131366004610978565b610484565b348015610141575f5ffd5b506101556101503660046109cf565b610564565b6040516001600160a01b0390911681526020016100ca565b348015610178575f5ffd5b506100e66105ba565b34801561018c575f5ffd5b505f546001600160a01b0316610155565b3480156101a8575f5ffd5b506101556101b73660046109f0565b6105cd565b3480156101c7575f5ffd5b506101076101d6366004610a20565b6001600160a01b03165f9081526005602052604090205460ff1690565b3480156101fe575f5ffd5b506100e661020d366004610a20565b610624565b34801561021d575f5ffd5b506100e661022c366004610a40565b610666565b60605f60405180602001610244906107be565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610ac8565b60405160208183030381529060405292505050949350505050565b6102c8610743565b6002546001600160a01b031615806102e957506003546001600160a01b0316155b15610307576040516389da714f60e01b815260040160405180910390fd5b5f610317835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661035257604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156103d3575f5ffd5b505af11580156103e5573d5f5f3e3d5ffd5b505050505050505050565b5f6103f9610743565b6001600160a01b0384161561042457600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561044f57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561047a57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166104ad5760405163437f3ac360e01b815260040160405180910390fd5b5f6104bd835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104f857604051633011642560e01b815260040160405180910390fd5b60048054604051630146fbc760e21b81526001600160a01b038086169363051bef1c9361052e939216918c918c918c9101610b0c565b5f604051808303815f87803b158015610545575f5ffd5b505af1158015610557573d5f5f3e3d5ffd5b5050505050505050505050565b5f5f610572845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016105999493929190610b5c565b60408051808303601f19018152919052805160209091012095945050505050565b6105c2610743565b6105cb5f61076f565b565b5f5f6105db5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106029493929190610b5c565b60408051808303601f1901815291905280516020909101209695505050505050565b61062c610743565b6001600160a01b03811661065a57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6106638161076f565b50565b6004546001600160a01b031661068f5760405163437f3ac360e01b815260040160405180910390fd5b5f61069c5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166106d757604051633011642560e01b815260040160405180910390fd5b6004805460405162560ffb60e11b81526001600160a01b038086169362ac1ff69361070b939216918c918f918f9101610b95565b5f604051808303815f87803b158015610722575f5ffd5b505af1158015610734573d5f5f3e3d5ffd5b50505050505050505050505050565b5f546001600160a01b031633146105cb5760405163118cdaa760e01b8152336004820152602401610651565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118980610bc783390190565b80356001600160a01b03811681146107e1575f5ffd5b919050565b5f5f5f5f608085870312156107f9575f5ffd5b84359350610809602086016107cb565b92506040850135915061081e606086016107cb565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f6060828403121561086e575f5ffd5b6040516060810181811067ffffffffffffffff8211171561089d57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156108d2575f5ffd5b6108dc848461085e565b91506108ea606084016107cb565b90509250929050565b5f5f5f60608486031215610905575f5ffd5b61090e846107cb565b925061091c602085016107cb565b915061092a604085016107cb565b90509250925092565b5f5f83601f840112610943575f5ffd5b50813567ffffffffffffffff81111561095a575f5ffd5b602083019150836020828501011115610971575f5ffd5b9250929050565b5f5f5f5f60a0858703121561098b575f5ffd5b843567ffffffffffffffff8111156109a1575f5ffd5b6109ad87828801610933565b90955093506109c19050866020870161085e565b915061081e608086016107cb565b5f5f604083850312156109e0575f5ffd5b823591506108ea602084016107cb565b5f5f5f60608486031215610a02575f5ffd5b610a0b846107cb565b92506020840135915061092a604085016107cb565b5f60208284031215610a30575f5ffd5b610a39826107cb565b9392505050565b5f5f5f5f5f5f60a08789031215610a55575f5ffd5b863567ffffffffffffffff811115610a6b575f5ffd5b610a7789828a01610933565b90975095505060208701359350610a90604088016107cb565b925060608701359150610aa5608088016107cb565b90509295509295509295565b5f81518060208401855e5f93019283525090919050565b5f610adc610ad68386610ab1565b84610ab1565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b038516815260a0602082018190525f90610b309083018587610ae4565b9050610b5360408301848051825260208082015190830152604090810151910152565b95945050505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60018060a01b0385168152836020820152606060408201525f610bbc606083018486610ae4565b969550505050505056fe608060405234801561000f575f5ffd5b5060405161118938038061118983398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611053806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610079575f3560e01c80635dc24ee3116100585780635dc24ee3146100d4578063648bf774146100e7578063994d0d38146100fa578063ddceafa91461010d575f5ffd5b8062ac1ff61461007d578063051bef1c146100925780633fb07027146100a5575b5f5ffd5b61009061008b366004610c06565b610120565b005b6100906100a0366004610cf3565b6101d6565b6005546100b8906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6004546100b8906001600160a01b031681565b6100906100f5366004610d57565b6102b9565b610090610108366004610d8e565b610456565b6006546100b8906001600160a01b031681565b5f5460ff161561014b5760405162461bcd60e51b815260040161014290610dd5565b60405180910390fd5b5f6101568383610721565b60025460a08201519192506001600160a01b0391821691161461018c5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b2576040516397c91b6960e01b815260040160405180910390fd5b6101c385848484608001518861073c565b50505f805460ff19166001179055505050565b5f5460ff16156101f85760405162461bcd60e51b815260040161014290610dd5565b60015481511461021a5760405162cb7dff60e81b815260040160405180910390fd5b5f610225848461096a565b60a08101519091506001600160a01b031630146102555760405163523660f760e01b815260040160405180910390fd5b61a4b18160e001511461027b576040516397c91b6960e01b815260040160405180910390fd5b81604001518160c0015111156102a457604051632a8d68fb60e11b815260040160405180910390fd5b6101c38585858460800151866040015161073c565b6006546001600160a01b0316331461030b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610142565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016103d65760405147905f906001600160a01b0384169083908381818185875af1925050503d805f811461037a576040519150601f19603f3d011682016040523d82523d5f602084013e61037f565b606091505b50509050806103d05760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561041c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104409190610e0c565b90506103d06001600160a01b038316848361098c565b5f5460ff16156104785760405162461bcd60e51b815260040161014290610dd5565b60015483511461049a5760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa925050508015610522575060408051601f3d908101601f1916820190925261051f91810190610e23565b60015b6105bb57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105ad9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a350610710565b90506001600160a01b038116158015906105f257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610691576004546040850151610617916001600160a01b03848116929116906109f0565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610676575f5ffd5b505af1158015610688573d5f5f3e3d5ffd5b5050505061070e565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f6575f5ffd5b505af1158015610708573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610729610b30565b61073582840184610ed8565b9392505050565b6001600160a01b0385166107635760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0382161580159061079857506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108c1576040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107e3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108079190610e0c565b90508281101561082a57604051637bdd7ae760e01b815260040160405180910390fd5b61083e6001600160a01b03831688856109f0565b5f876001600160a01b03168787604051610859929190610fe7565b5f604051808303815f865af19150503d805f8114610892576040519150601f19603f3d011682016040523d82523d5f602084013e610897565b606091505b50509050806108b957604051631bb7daad60e11b815260040160405180910390fd5b505050610963565b47818110156108e357604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168387876040516108ff929190610fe7565b5f6040518083038185875af1925050503d805f8114610939576040519150601f19603f3d011682016040523d82523d5f602084013e61093e565b606091505b505090508061096057604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b610972610b30565b61097f8260048186610ff6565b8101906107359190610ed8565b6040516001600160a01b038381166024830152604482018390526109eb91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a7b565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a418482610ae7565b6103d0576040516001600160a01b0384811660248301525f6044830152610a7591869182169063095ea7b3906064016109b9565b6103d084825b5f5f60205f8451602086015f885af180610a9a576040513d5f823e3d81fd5b50505f513d91508115610ab1578060011415610abe565b6001600160a01b0384163b155b156103d057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2657508115610b185780600114610b26565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610bae575f5ffd5b50565b8035610bbc81610b9a565b919050565b5f5f83601f840112610bd1575f5ffd5b50813567ffffffffffffffff811115610be8575f5ffd5b602083019150836020828501011115610bff575f5ffd5b9250929050565b5f5f5f5f60608587031215610c19575f5ffd5b8435610c2481610b9a565b935060208501359250604085013567ffffffffffffffff811115610c46575f5ffd5b610c5287828801610bc1565b95989497509550505050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c9657610c96610c5e565b60405290565b5f60608284031215610cac575f5ffd5b6040516060810167ffffffffffffffff81118282101715610ccf57610ccf610c5e565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f60a08587031215610d06575f5ffd5b8435610d1181610b9a565b9350602085013567ffffffffffffffff811115610d2c575f5ffd5b610d3887828801610bc1565b9094509250610d4c90508660408701610c9c565b905092959194509250565b5f5f60408385031215610d68575f5ffd5b8235610d7381610b9a565b91506020830135610d8381610b9a565b809150509250929050565b5f5f5f60a08486031215610da0575f5ffd5b610daa8585610c9c565b92506060840135610dba81610b9a565b91506080840135610dca81610b9a565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1c575f5ffd5b5051919050565b5f60208284031215610e33575f5ffd5b815161073581610b9a565b5f82601f830112610e4d575f5ffd5b813567ffffffffffffffff811115610e6757610e67610c5e565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610e9657610e96610c5e565b604052818152838201602001851015610ead575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bbc575f5ffd5b5f60208284031215610ee8575f5ffd5b813567ffffffffffffffff811115610efe575f5ffd5b82016101408185031215610f10575f5ffd5b610f18610c72565b81358152602082013567ffffffffffffffff811115610f35575f5ffd5b610f4186828501610e3e565b602083015250604082013567ffffffffffffffff811115610f60575f5ffd5b610f6c86828501610e3e565b604083015250610f7e60608301610bb1565b6060820152610f8f60808301610bb1565b6080820152610fa060a08301610bb1565b60a082015260c0828101359082015260e08083013590820152610fc66101008301610ec9565b610100820152610fd96101208301610ec9565b610120820152949350505050565b818382375f9101908152919050565b5f5f85851115611004575f5ffd5b83861115611010575f5ffd5b505082019391909203915056fea26469706673582212205e44ba295ffbce9aa4a4b77bfaf2c6691aeb28ab1eacb97e24557951bb64a88264736f6c634300081c0033a26469706673582212206c4eaf508249dc883dfae40d3ac750684b4f5b1a662f0f7ca9edfc5ddaf827c064736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000000000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":842,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","networkInteractionId":1,"nonce":842,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000048"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x93f54c6b95671b929c2a33d47e938a4d316eb15198010b0ac1f20acc124efcc8"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","hash":"0x904451cf42eca94ef8976e06770437b05051da778ac7cc512a8b92733345d1cd","networkInteractionId":1,"receipt":{"blockHash":"0x06094c7f18c394badaa4b4d18164d91cac6bd191f441b68e3df1dae3811c3d04","blockNumber":10349820,"logs":[{"address":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","data":"0x","logIndex":468,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000076c53eb316dfb2ae31e880cdc613970a66748c9f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","hash":"0x48a7d0e776eaa69172d8646b0306eb97ead12af5e9a7b5299fe53b24972777ce","networkInteractionId":1,"receipt":{"blockHash":"0x06094c7f18c394badaa4b4d18164d91cac6bd191f441b68e3df1dae3811c3d04","blockNumber":10349820,"contractAddress":"0x3e3A60a40F6f6B999e4a07d7Db4E773CEbE0CC47","logs":[{"address":"0x3e3A60a40F6f6B999e4a07d7Db4E773CEbE0CC47","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":503,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","result":{"address":"0x3e3A60a40F6f6B999e4a07d7Db4E773CEbE0CC47","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","hash":"0x93f54c6b95671b929c2a33d47e938a4d316eb15198010b0ac1f20acc124efcc8","networkInteractionId":1,"receipt":{"blockHash":"0x06094c7f18c394badaa4b4d18164d91cac6bd191f441b68e3df1dae3811c3d04","blockNumber":10349820,"logs":[{"address":"0xb10abCB62f50DefF589754db1d9B548eF808B101","data":"0x","logIndex":504,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":505,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000b10abcb62f50deff589754db1d9b548ef808b101","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_Deploy_V2","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV5","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0x8584baE2E04A9481cBd8E896188f265fDD7136e1"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d756100f95f395f81816110ce015281816110f7015261123b0152611d755ff3fe60806040526004361061017b575f3560e01c806379da03f8116100cd578063abed779011610087578063c4d66de811610062578063c4d66de814610458578063cf101a4914610477578063f157639414610496578063f2fde38b146104aa575f5ffd5b8063abed7790146103dd578063ad3cb1cc146103fc578063b974158a14610439575f5ffd5b806379da03f81461031b5780637cb3e4dd1461033a578063864eb164146103595780638ae11770146103785780638da5cb5b1461038d57806395b7f22a146103c9575f5ffd5b806347107fdb116101385780636a085b50116101135780636a085b50146102a5578063715018a6146102c457806375849383146102d857806376775ce1146102ed575f5ffd5b806347107fdb1461026b5780634f1ef2861461027e57806352d1902d14610291575f5ffd5b80631a82739b1461017f5780631dc43637146101b35780632654a8e6146101d4578063332ee0d51461020b578063354d594b1461022a5780633fb070271461024c575b5f5ffd5b34801561018a575f5ffd5b5061019e61019936600461170a565b6104c9565b60405190151581526020015b60405180910390f35b3480156101be575f5ffd5b506101d26101cd3660046117ac565b61067f565b005b3480156101df575f5ffd5b50600a546101f3906001600160a01b031681565b6040516001600160a01b0390911681526020016101aa565b348015610216575f5ffd5b5061019e6102253660046117cc565b610692565b348015610235575f5ffd5b5061023e5f5481565b6040519081526020016101aa565b348015610257575f5ffd5b506006546101f3906001600160a01b031681565b6101d2610279366004611856565b610899565b6101d261028c3660046118cb565b610afe565b34801561029c575f5ffd5b5061023e610b1d565b3480156102b0575f5ffd5b5061019e6102bf366004611970565b610b38565b3480156102cf575f5ffd5b506101d2610cc2565b3480156102e3575f5ffd5b5061023e60015481565b3480156102f8575f5ffd5b5061019e6103073660046119e1565b5f9081526003602052604090205460ff1690565b348015610326575f5ffd5b50600c546101f3906001600160a01b031681565b348015610345575f5ffd5b50600b546101f3906001600160a01b031681565b348015610364575f5ffd5b506009546101f3906001600160a01b031681565b348015610383575f5ffd5b5061023e60025481565b348015610398575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101f3565b3480156103d4575f5ffd5b5060055461023e565b3480156103e8575f5ffd5b506008546101f3906001600160a01b031681565b348015610407575f5ffd5b5061042c604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101aa91906119f8565b348015610444575f5ffd5b506007546101f3906001600160a01b031681565b348015610463575f5ffd5b506101d2610472366004611a2d565b610cd5565b348015610482575f5ffd5b5061019e610491366004611a46565b610dce565b3480156104a1575f5ffd5b5060045461023e565b3480156104b5575f5ffd5b506101d26104c4366004611a2d565b610f2a565b5f5f8260015460026104db9190611aeb565b6104e6906001611b02565b600e81106104f6576104f6611b15565b602002015190505f83600154600261050e9190611aeb565b610519906002611b02565b600e811061052957610529611b15565b602002015190505f8460015460026105419190611aeb565b61054c906003611b02565b600e811061055c5761055c611b15565b602002015190505f8560015460026105749190611aeb565b61057f906004611b02565b600e811061058f5761058f611b15565b6020020151905081600454146105b85760405163215fc8af60e11b815260040160405180910390fd5b83600554146105da576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610610908c908c908c908c90600401611b94565b602060405180830381865afa15801561062b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061064f9190611bf0565b61066c576040516309bde33960e01b815260040160405180910390fd5b6004555060055550600195945050505050565b610687610f6c565b600491909155600555565b60055460408201515f91146106ba576040516322e685b360e11b815260040160405180910390fd5b6004546020830151146106e05760405163215fc8af60e11b815260040160405180910390fd5b600c5460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610716908890889088908890600401611c0f565b602060405180830381865afa158015610731573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107559190611bf0565b610772576040516309bde33960e01b815260040160405180910390fd5b815160055560095f5b60025481101561088c575f84610792836003611b02565b600981106107a2576107a2611b15565b602002015190505f858360025460036107bb9190611b02565b6107c59190611b02565b600981106107d5576107d5611b15565b60200201519050811561087757600b546001600160a01b031663e63697c8876107ff600188611c5f565b6009811061080f5761080f611b15565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b158015610860575f5ffd5b505af1158015610872573d5f5f3e3d5ffd5b505050505b506108859050600182611b02565b905061077b565b5060019695505050505050565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa1580156108df573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109039190611bf0565b6109205760405163082cec1d60e01b815260040160405180910390fd5b6001600160a01b0381161580159061095557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610997576040820151610977906001600160a01b0383169033903090610fc7565b600b546040830151610997916001600160a01b0384811692911690611034565b600b5460408381015190516320e8c56560e01b81526001600160a01b03848116600483015230602483015260448201929092525f60648201529116906320e8c5659034906084015f604051808303818588803b1580156109f5575f5ffd5b505af1158015610a07573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f9450738584baE2E04A9481cBd8E896188f265fDD7136e193506320cf0a379250610a659190600401611c72565b602060405180830381865af4158015610a80573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610aa49190611ca2565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610af19083815260200190565b60405180910390a1505050565b610b066110c3565b610b0f82611167565b610b19828261116f565b5050565b5f610b26611230565b505f516020611d205f395f51905f5290565b5f805b5f54811015610bbb575f838260048110610b5757610b57611b15565b602002015190508015610ba8575f8181526003602052604090205460ff16610b925760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b50610bb4600182611b02565b9050610b3b565b50600482610bca600283611c5f565b60048110610bda57610bda611b15565b602002015160045414610c0057604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b90610c36908990899089908990600401611cb9565b602060405180830381865afa158015610c51573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c759190611bf0565b610c92576040516309bde33960e01b815260040160405180910390fd5b82610c9e600183611c5f565b60048110610cae57610cae611b15565b602002015160045550600195945050505050565b610cca610f6c565b610cd35f611279565b565b5f610cde6112e9565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d055750825b90505f8267ffffffffffffffff166001148015610d215750303b155b905081158015610d2f575080155b15610d4d5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d7757845460ff60401b1916600160401b1785555b610d8086611313565b8315610dc657845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b5f610dd7610f6c565b81516001600160a01b031615610e09578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e41576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e79576040820151600c80546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610eb1576060820151600b80546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610ee9576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610efb5760a08201515f555b60e082015115610f0e5760e08201516001555b60c082015115610f215760c08201516002555b5060015b919050565b610f32610f6c565b6001600160a01b038116610f6057604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f6981611279565b50565b33610f9e7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610cd35760405163118cdaa760e01b8152336004820152602401610f57565b6040516001600160a01b03848116602483015283811660448301526064820183905261102e9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611324565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526110858482611390565b61102e576040516001600160a01b0384811660248301525f60448301526110b991869182169063095ea7b390606401610ffc565b61102e8482611324565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061114957507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661113d5f516020611d205f395f51905f52546001600160a01b031690565b6001600160a01b031614155b15610cd35760405163703e46dd60e11b815260040160405180910390fd5b610f69610f6c565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156111c9575060408051601f3d908101601f191682019092526111c691810190611ca2565b60015b6111f157604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f57565b5f516020611d205f395f51905f52811461122157604051632a87526960e21b815260048101829052602401610f57565b61122b83836113d9565b505050565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610cd35760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b61131b61142e565b610f6981611453565b5f5f60205f8451602086015f885af180611343576040513d5f823e3d81fd5b50505f513d9150811561135a578060011415611367565b6001600160a01b0384163b155b1561102e57604051635274afe760e01b81526001600160a01b0385166004820152602401610f57565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113cf575081156113c157806001146113cf565b5f866001600160a01b03163b115b9695505050505050565b6113e28261145b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156114265761122b82826114be565b610b19611530565b61143661154f565b610cd357604051631afcd79f60e31b815260040160405180910390fd5b610f3261142e565b806001600160a01b03163b5f0361149057604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f57565b5f516020611d205f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114da9190611d09565b5f60405180830381855af49150503d805f8114611512576040519150601f19603f3d011682016040523d82523d5f602084013e611517565b606091505b5091509150611527858383611568565b95945050505050565b3415610cd35760405163b398979f60e01b815260040160405180910390fd5b5f6115586112e9565b54600160401b900460ff16919050565b60608261157d57611578826115c7565b6115c0565b815115801561159457506001600160a01b0384163b155b156115bd57604051639996b31560e01b81526001600160a01b0385166004820152602401610f57565b50805b9392505050565b8051156115d657805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff81118282101715611627576116276115ef565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611656576116566115ef565b604052919050565b5f82601f83011261166d575f5ffd5b5f611678604061162d565b905080604084018581111561168b575f5ffd5b845b818110156116a557803583526020928301920161168d565b509195945050505050565b5f82601f8301126116bf575f5ffd5b60406116ca8161162d565b8060808501868111156116db575f5ffd5b855b818110156116fe576116ef888261165e565b845260209093019284016116dd565b50909695505050505050565b5f5f5f5f6102c0858703121561171e575f5ffd5b611728868661165e565b935061173786604087016116b0565b92506117468660c0870161165e565b91505f8661011f870112611758575f5ffd5b505f806101c06117678161162d565b9150508091506102c087018881111561177e575f5ffd5b61010088015b8181101561179c578035845260209384019301611784565b5050809250505092959194509250565b5f5f604083850312156117bd575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117e0575f5ffd5b6117ea868661165e565b93506117f986604087016116b0565b92506118088660c0870161165e565b91505f8661011f87011261181a575f5ffd5b505f806101206118298161162d565b91505080915061022087018881111561177e575f5ffd5b80356001600160a01b0381168114610f25575f5ffd5b5f5f8284036080811215611868575f5ffd5b6060811215611875575f5ffd5b506040516060810167ffffffffffffffff81118282101715611899576118996115ef565b60409081528435825260208086013590830152848101359082015291506118c260608401611840565b90509250929050565b5f5f604083850312156118dc575f5ffd5b6118e583611840565b9150602083013567ffffffffffffffff811115611900575f5ffd5b8301601f81018513611910575f5ffd5b803567ffffffffffffffff81111561192a5761192a6115ef565b61193d601f8201601f191660200161162d565b818152866020838501011115611951575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611984575f5ffd5b61198e868661165e565b935061199d86604087016116b0565b92506119ac8660c0870161165e565b91505f8661011f8701126119be575f5ffd5b505f806119cb608061162d565b905080915061018087018881111561177e575f5ffd5b5f602082840312156119f1575f5ffd5b5035919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611a3d575f5ffd5b6115c082611840565b5f610100828403128015611a58575f5ffd5b50611a61611603565b611a6a83611840565b8152611a7860208401611840565b6020820152611a8960408401611840565b6040820152611a9a60608401611840565b6060820152611aab60808401611840565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761130d5761130d611ad7565b8082018082111561130d5761130d611ad7565b634e487b7160e01b5f52603260045260245ffd5b805f5b600281101561102e578151845260209384019390910190600101611b2c565b805f5b600281101561102e578151845f5b6002811015611b7b578251825260209283019290910190600101611b5c565b5050506040939093019260209190910190600101611b4e565b6102c08101611ba38287611b29565b611bb06040830186611b4b565b611bbd60c0830185611b29565b6101008201835f5b600e811015611be4578151835260209283019290910190600101611bc5565b50505095945050505050565b5f60208284031215611c00575f5ffd5b815180151581146115c0575f5ffd5b6102208101611c1e8287611b29565b611c2b6040830186611b4b565b611c3860c0830185611b29565b6101008201835f5b6009811015611be4578151835260209283019290910190600101611c40565b8181038181111561130d5761130d611ad7565b6060810181835f5b6003811015611c99578151835260209283019290910190600101611c7a565b50505092915050565b5f60208284031215611cb2575f5ffd5b5051919050565b6101808101611cc88287611b29565b611cd56040830186611b4b565b611ce260c0830185611b29565b6101008201835f5b6004811015611be4578151835260209283019290910190600101611cea565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a1d8ea629aa2a582c51f861f3df21717a0bc669533016e41e46939ab2df01c6864736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteractionId":1,"nonce":843,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteractionId":1,"nonce":843,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000048"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x413e83255dca6f64238f78bd93752fa594103e3a5b0b202b40550ee0fd679c54"},"type":"TRANSACTION_SEND"}
-{"args":["0x3e3A60a40F6f6B999e4a07d7Db4E773CEbE0CC47","0x"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","dependencies":["CurvyVault#CurvyVaultV4","CurvyVault#CurvyVaultV5Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef2860000000000000000000000003e3a60a40f6f6b999e4a07d7db4e773cebe0cc4700000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":844,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":844,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000048"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x8411e387543e7e1c7e8a94db7153896412b56d7a8790170988e00266da15a006"},"type":"TRANSACTION_SEND"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V2","nameOrIndex":"newContract","result":"0xb10abCB62f50DefF589754db1d9B548eF808B101","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x93f54c6b95671b929c2a33d47e938a4d316eb15198010b0ac1f20acc124efcc8","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","hash":"0x413e83255dca6f64238f78bd93752fa594103e3a5b0b202b40550ee0fd679c54","networkInteractionId":1,"receipt":{"blockHash":"0xa18c37280b1972b28880acfb68835bd8b38c12265b894c190cd83da0d6cc8138","blockNumber":10349825,"contractAddress":"0xEd234d0A912DF25c8AeccFc8B81E9650e07EcDE4","logs":[{"address":"0xEd234d0A912DF25c8AeccFc8B81E9650e07EcDE4","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":464,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","result":{"address":"0xEd234d0A912DF25c8AeccFc8B81E9650e07EcDE4","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","hash":"0x8411e387543e7e1c7e8a94db7153896412b56d7a8790170988e00266da15a006","networkInteractionId":1,"receipt":{"blockHash":"0xa18c37280b1972b28880acfb68835bd8b38c12265b894c190cd83da0d6cc8138","blockNumber":10349825,"logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x","logIndex":465,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000003e3a60a40f6f6b999e4a07d7db4e773cebe0cc47"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0xEd234d0A912DF25c8AeccFc8B81E9650e07EcDE4","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000ed234d0a912df25c8aeccfc8b81e9650e07ecde400000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteractionId":1,"nonce":845,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteractionId":1,"nonce":845,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000050"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x19de62ae6afc641346697f813af88392eb7aca9b75cfc482f3d2d3bf63e11b59"},"type":"TRANSACTION_SEND"}
-{"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_Deploy_V2","PortalFactory#ReadEvent_PortalFactory_V2"],"futureId":"PortalFactory#PortalFactory_ContractAt_V2","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","hash":"0x19de62ae6afc641346697f813af88392eb7aca9b75cfc482f3d2d3bf63e11b59","networkInteractionId":1,"receipt":{"blockHash":"0xc617ff77f0f6a73dc8e5a92d8df9d6cfd67f6294f74f5aae0c92d1582c5b2ed8","blockNumber":10349830,"logs":[{"address":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","data":"0x","logIndex":390,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000ed234d0a912df25c8aeccfc8b81e9650e07ecde4"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#withdrawVerifierV3","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlphaV3_2","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b5061149a8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b366004611300565b610054565b604051901515815260200160405180910390f35b5f61005d611127565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600980825261014082019093525f9290918201610120803683370190505090505f5b600981101561013357848160098110610109576101096113e0565b6020020151828281518110610120576101206113e0565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e9190611408565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb5783878281518110610217576102176113e0565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc85608001518460016102859190611408565b81518110610295576102956113e0565b60200260200101518a85815181106102af576102af6113e0565b6020026020010151610a94565b610b28565b91506001016101fb565b506102f38183608001515f815181106102e6576102e66113e0565b6020026020010151610b28565b9050610327610304865f0151610bbf565b8660200151845f015185602001518587604001518b604001518960600151610c5b565b610337576001935050505061033e565b5f93505050505b92915050565b61034c611175565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f05d000ba4551c1fa877c7a46107992624c3d99a3e6bdd57c50698771b613cc298185019081527f1ecc95a1dbdbe4f8cef976bf22affb6de7fa33cb89b48d77bead7102ad139892828401528152835180850185527f21db75587cbe02e9192f9b5f2b763c99648c02dd6b6a4c96c20df72fb841418a81527f2af9f7e11a5a29cdcb4b532c39193095513331f2834798b89072b995ad356a898185015281840152908401528151600a8082526101608201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f2660af19967ed5580208a84497fbdd099f460ed85561c98f23edb4a0384dcf7f81527f210fa1941084636ec27feec1eb19e46b9b48bfa53b306d017ae5963efad52a436020820152905180515f90610659576106596113e0565b602002602001018190525060405180604001604052807f2083fd8b0b70f84ff529e805d135f4a43429faa7993c7722807ae7a190df845581526020017f28811e77761972df5b4960cb74319c488f4edbeddc48333c6d4d1a6bf413ca3481525081608001516001815181106106d0576106d06113e0565b602002602001018190525060405180604001604052807f13dfc5473a9989ab659e0b9a6334f6941bc90555d51e4bca722dae72810e989881526020017f013b58637f2dae5dcc9fc8fbebfc8b1381840813185e0fb647f05168c697540c8152508160800151600281518110610747576107476113e0565b602002602001018190525060405180604001604052807f1c44dcfc07f5f9ae2c637ff60d5a89d2c1713bca6aff265abcb28620a852c34281526020017f19330ccf92e4c27c2b591f021a828cca5edab6049a9d1062686fd796b6d3f52d81525081608001516003815181106107be576107be6113e0565b602002602001018190525060405180604001604052807f23d7191b87dd317ce4294b631c1ce03e454f61c038c5d9c601c8abcc5003816b81526020017f21b455e02d8d7aa7549f9e769915f44c954cbc965220a0c8f61c0c1a367509818152508160800151600481518110610835576108356113e0565b602002602001018190525060405180604001604052807f2226e11fa0ed282b86920337d75253929cdead5afa79adbc98bbf0786a21503081526020017eab0bd68fd9de0ee282bc419521c647a219f5075248f5ebfb2016464f50ba1a81525081608001516005815181106108ab576108ab6113e0565b602002602001018190525060405180604001604052807f21a6f2274e37865052daf09f57ee7d7dafbc1d60cc54e26ab82120b995ed12f481526020017f0b5c832b69ae80552e1d9402009efab37ce39eb97825b4b343f5ea9581b31c1b8152508160800151600681518110610922576109226113e0565b602002602001018190525060405180604001604052807f091ecf7419c3a24ba36564b86a4859fd8f00157103bb0759ea5ba4928bfe460b81526020017f105c38b8731b3cbeed64c9c7e1aa313538e21302828e2f95fb3b05d777a0f7d88152508160800151600781518110610999576109996113e0565b602002602001018190525060405180604001604052807f100d9113bd2a6d16e7682a168a313a92f111d97fa62ab66b9b60339ab7edd8cf81526020017f0db625617d7f1e384b7fd3bfa6625ce178ced385ea8bef33da11938d7ebc389d8152508160800151600881518110610a1057610a106113e0565b602002602001018190525060405180604001604052807ec8fdc7d85d6600498e56ca6e7082bef46e29858708e318188919835ac6878881526020017f0c567e014f5306e60d7e0d42f3e9216db8a9837c77f300ff203b05060360a30a8152508160800151600981518110610a8657610a866113e0565b602002602001018190525090565b604080518082019091525f8082526020820152610aaf6111c5565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610add57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610b436111e3565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610b7c57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c0557506020830151155b15610c24575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610c48919061141b565b610c52908461143a565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610c7557505060408051600480825260a082019092529192505f9190602082015b610cbd611201565b815260200190600190039081610cb55790505090508a825f81518110610ce557610ce56113e0565b60200260200101819052508882600181518110610d0457610d046113e0565b60200260200101819052508682600281518110610d2357610d236113e0565b60200260200101819052508482600381518110610d4257610d426113e0565b602002602001018190525089815f81518110610d6057610d606113e0565b60200260200101819052508781600181518110610d7f57610d7f6113e0565b60200260200101819052508581600281518110610d9e57610d9e6113e0565b60200260200101819052508381600381518110610dbd57610dbd6113e0565b6020026020010181905250610dd28282610de1565b9b9a5050505050505050505050565b5f8151835114610e2c5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610e3a82600661144d565b90505f8167ffffffffffffffff811115610e5657610e5661125d565b604051908082528060200260200182016040528015610e7f578160200160208202803683370190505b5090505f5b838110156110ac57868181518110610e9e57610e9e6113e0565b60200260200101515f015182826006610eb7919061144d565b610ec1905f611408565b81518110610ed157610ed16113e0565b602002602001018181525050868181518110610eef57610eef6113e0565b60200260200101516020015182826006610f09919061144d565b610f14906001611408565b81518110610f2457610f246113e0565b602002602001018181525050858181518110610f4257610f426113e0565b6020908102919091010151515182610f5b83600661144d565b610f66906002611408565b81518110610f7657610f766113e0565b602002602001018181525050858181518110610f9457610f946113e0565b60209081029190910181015151015182610faf83600661144d565b610fba906003611408565b81518110610fca57610fca6113e0565b602002602001018181525050858181518110610fe857610fe86113e0565b6020026020010151602001515f60028110611005576110056113e0565b60200201518261101683600661144d565b611021906004611408565b81518110611031576110316113e0565b60200260200101818152505085818151811061104f5761104f6113e0565b60200260200101516020015160016002811061106d5761106d6113e0565b60200201518261107e83600661144d565b611089906005611408565b81518110611099576110996113e0565b6020908102919091010152600101610e84565b506110b5611221565b5f602082602086026020860160086107d05a03fa905080806110d357fe5b50806111195760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101611150611201565b815260200161117060405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c083019190915281526020810161119e611201565b81526020016111ab611201565b81526020016111b8611201565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061121461123f565b815260200161117061123f565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156112a657634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f8301126112bd575f5ffd5b5f6112c86040611271565b90508060408401858111156112db575f5ffd5b845b818110156112f55780358352602092830192016112dd565b509195945050505050565b5f5f5f5f6102208587031215611314575f5ffd5b61131e86866112ae565b935085605f86011261132e575f5ffd5b604061133981611271565b8060c088018981111561134a575f5ffd5b604089015b81811015611370576113618b826112ae565b8452602090930192840161134f565b5081965061137e8a826112ae565b95505050505061010085015f87601f830112611398575f5ffd5b5f6101206113a581611271565b91508301818a8211156113b6575f5ffd5b5b818510156113cf5784358152602094850194016113b7565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e6113f4565b5f8261143557634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e6113f4565b808202811582820484141761033e5761033e6113f456fea2646970667358221220ee56b55b73586c11a0ad84b93a1c92445f7a65f7be9aeed3d1e4fbaef2220a4364736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteractionId":1,"nonce":846,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteractionId":1,"nonce":846,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000052"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xe970a0046f6d7e2325bd17fbb1af064b7fd27bb1fbfcc5ef4dd0aaa210f25d23"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","hash":"0xe970a0046f6d7e2325bd17fbb1af064b7fd27bb1fbfcc5ef4dd0aaa210f25d23","networkInteractionId":1,"receipt":{"blockHash":"0xdead9be8131a21710c9f69ec2038a2b50c3c6fba7ef5b6616dd197a2ab721a20","blockNumber":10349835,"contractAddress":"0x88d3df479ae4f51EF946926091537B06825A4B39","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","result":{"address":"0x88d3df479ae4f51EF946926091537B06825A4B39","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":0,"maxDeposits":0,"maxWithdrawals":0,"portalFactory":"0x0000000000000000000000000000000000000000","withdrawVerifier":"0x88d3df479ae4f51EF946926091537B06825A4B39"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#withdrawVerifierV3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"CurvyAggregatorAlpha#UpdateConfig_withdrawVerifierV3","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_withdrawVerifierV3","networkInteraction":{"data":"0xcf101a490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000088d3df479ae4f51ef946926091537b06825a4b3900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_withdrawVerifierV3","networkInteractionId":1,"nonce":847,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_withdrawVerifierV3","networkInteractionId":1,"nonce":847,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000052"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x2dbcf834c703da065a4ea2342ea2cf1b39302d6cc54197bf4060af0a818c5cc0"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_withdrawVerifierV3","hash":"0x2dbcf834c703da065a4ea2342ea2cf1b39302d6cc54197bf4060af0a818c5cc0","networkInteractionId":1,"receipt":{"blockHash":"0xce0e469d697cb14b7e489f7a0bc98301fd41b74e1214aaadacf9787e771bba65","blockNumber":10349840,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_withdrawVerifierV3","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0xb10abCB62f50DefF589754db1d9B548eF808B101","withdrawVerifier":"0x0000000000000000000000000000000000000000"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory_ContractAt_V2"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteraction":{"data":"0xcf101a4900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad000000000000000000000000b10abcb62f50deff589754db1d9b548ef808b101000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":848,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":848,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000048"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xaf65970abc8a5ffce37ceb213b05828a8e0234df85cfa0b5d7c42a3c35863df6"},"type":"TRANSACTION_SEND"}
-{"args":["0x97FfCE8e772EA1594BE3C34F85B43e9c00522320"],"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","dependencies":["CurvyVault#CurvyVaultV5","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c00522320","id":1,"to":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":849,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":849,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000048"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x03cdb512cc5d925792203536539ed56e7b43ba7cb179202f1913e726144c33c3"},"type":"TRANSACTION_SEND"}
-{"args":["0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactory#PortalFactory_ContractAt_V2","contractAddress":"0xb10abCB62f50DefF589754db1d9B548eF808B101","dependencies":["PortalFactory#PortalFactory_ContractAt_V2","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c005223200000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xb10abCB62f50DefF589754db1d9B548eF808B101","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":850,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","networkInteractionId":1,"nonce":850,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000048"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xcbd88b8817e51e3ac24dfaf5289736875279f4a26c54467390183c3e8f506fea"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","hash":"0xaf65970abc8a5ffce37ceb213b05828a8e0234df85cfa0b5d7c42a3c35863df6","networkInteractionId":1,"receipt":{"blockHash":"0x0bc26b884ce07e86fdc81d43162e3411a5f7a77db384dac6752024c581e45659","blockNumber":10349845,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","hash":"0x03cdb512cc5d925792203536539ed56e7b43ba7cb179202f1913e726144c33c3","networkInteractionId":1,"receipt":{"blockHash":"0x0bc26b884ce07e86fdc81d43162e3411a5f7a77db384dac6752024c581e45659","blockNumber":10349845,"logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c00522320","logIndex":349,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","hash":"0xcbd88b8817e51e3ac24dfaf5289736875279f4a26c54467390183c3e8f506fea","networkInteractionId":1,"receipt":{"blockHash":"0x0bc26b884ce07e86fdc81d43162e3411a5f7a77db384dac6752024c581e45659","blockNumber":10349845,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_ContractAt_V2.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"TokenBridgeModule#TokenBridge","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","type":"WIPE_APPLY"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","type":"WIPE_APPLY"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","type":"WIPE_APPLY"}
-{"futureId":"CurvyVault#CurvyVaultV5","type":"WIPE_APPLY"}
-{"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","contractName":"CurvyVaultV5","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV5","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV5Implementation","constructorArgs":[],"contractName":"CurvyVaultV5","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV5Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611bca6100f95f395f818161114e0152818161117701526112bb0152611bca5ff3fe608060405260043610610133575f3560e01c80638bc7e8c4116100a8578063e63697c81161006d578063e63697c814610385578063ee3d6866146103a4578063efeecb51146103c3578063f1537686146103d7578063f2fde38b146103f6578063f837906814610415575f5ffd5b80638bc7e8c4146102d05780638da5cb5b146102ef578063acb2ad6f14610303578063ad3cb1cc14610329578063c4d66de814610366575f5ffd5b806352d1902d116100f957806352d1902d146101f457806367a527931461020857806367ccdf381461023f578063715018a61461027657806377e5614d1461028a57806384b0196e146102a9575f5ffd5b8062fdd58e1461015e57806309824a801461019057806320e8c565146101af578063432c0553146101c25780634f1ef286146101e1575f5ffd5b3661015a5761015873eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee33345f610434565b005b5f5ffd5b348015610169575f5ffd5b5061017d61017836600461178f565b61069b565b6040519081526020015b60405180910390f35b34801561019b575f5ffd5b506101586101aa3660046117b7565b6106c3565b6101586101bd3660046117d0565b610434565b3480156101cd575f5ffd5b506101586101dc36600461180f565b610790565b6101586101ef36600461183c565b610880565b3480156101ff575f5ffd5b5061017d61089f565b348015610213575f5ffd5b50600554610227906001600160601b031681565b6040516001600160601b039091168152602001610187565b34801561024a575f5ffd5b5061025e610259366004611900565b6108ba565b6040516001600160a01b039091168152602001610187565b348015610281575f5ffd5b506101586108f4565b348015610295575f5ffd5b506101586102a43660046117b7565b610907565b3480156102b4575f5ffd5b506102bd610965565b6040516101879796959493929190611945565b3480156102db575f5ffd5b50600654610227906001600160601b031681565b3480156102fa575f5ffd5b5061025e610a26565b34801561030e575f5ffd5b5060055461022790600160601b90046001600160601b031681565b348015610334575f5ffd5b50610359604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161018791906119db565b348015610371575f5ffd5b506101586103803660046117b7565b610a54565b348015610390575f5ffd5b5061015861039f3660046119ed565b610be6565b3480156103af575f5ffd5b506101586103be3660046117b7565b610e52565b3480156103ce575f5ffd5b5060025461017d565b3480156103e2575f5ffd5b5061017d6103f13660046117b7565b610f02565b348015610401575f5ffd5b506101586104103660046117b7565b610f3b565b348015610420575f5ffd5b5061015861042f3660046119ed565b610f78565b600654600160601b90046001600160a01b0316331461046657604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b03831661048d57604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146105255734156104d157604051633c9fd93960e21b815260040160405180910390fd5b6104e66001600160a01b0386163330866110aa565b506001600160a01b0384165f90815260036020526040812054908190036105205760405163259ba1ad60e01b815260040160405180910390fd5b610549565b3483146105455760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0384165f9081526020818152604080832084845290915281208054859290610579908490611a34565b90915550506005546001600160601b03161561063e576005545f90612710906105ab906001600160601b031686611a47565b6105b59190611a5e565b6001600160a01b0386165f908152602081815260408083208684529091528120805492935083929091906105ea908490611a7d565b909155508190505f806105fb610a26565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f8282546106379190611a34565b9091555050505b836001600160a01b0316856001600160a01b03167fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7858560405161068c929190918252602082015260400190565b60405180910390a35050505050565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b6106cb611111565b6001600160a01b0381165f90815260036020526040902054156107015760405163edec813b60e01b815260040160405180910390fd5b60028054905f61071083611a90565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610798611111565b6107a56020820182611abe565b6001600160601b0316156107e5576107c06020820182611abe565b600580546001600160601b0319166001600160601b0392909216919091179055610851565b6107f56040820160208301611abe565b6001600160601b031615610838576108136040820160208301611abe565b600680546001600160601b0319166001600160601b0392909216919091179055610851565b60405163c4ec2f4760e01b815260040160405180910390fd5b7f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91816040516107859190611ad7565b610888611143565b610891826111e7565b61089b82826111ef565b5050565b5f6108a86112b0565b505f516020611b755f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806108ef5760405163259ba1ad60e01b815260040160405180910390fd5b919050565b6108fc611111565b6109055f6112f9565b565b61090f611111565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea3190602001610785565b5f60608082808083817fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10080549091501580156109a357506001810154155b6109ec5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109f4611369565b6109fc61143c565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b5f610a5d61148d565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610a845750825b90505f8267ffffffffffffffff166001148015610aa05750303b155b905081158015610aae575080155b15610acc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610af657845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f81905260046020527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600255610b76866114b5565b600580546001600160601b0319908116600a179091556006805490911660141790558315610bde57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610c215750610c0b610a26565b6001600160a01b0316336001600160a01b031614155b15610c3f57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610c6657604051634e46966960e11b815260040160405180910390fd5b6006546001600160601b03165f03610c915760405163c4ec2f4760e01b815260040160405180910390fd5b6006545f9061271090610cad906001600160601b031684611a47565b610cb79190611a5e565b335f90815260208181526040808320888452909152812080549293508492909190610ce3908490611a7d565b909155508190505f80610cf4610a26565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8681526020019081526020015f205f828254610d309190611a34565b90915550505f848152600460205260409020546001600160a01b031680610d6a5760405163259ba1ad60e01b815260040160405180910390fd5b60018514610d9657610d9184610d808486611a7d565b6001600160a01b03841691906114c6565b610e0d565b5f6001600160a01b038516610dab8486611a7d565b6040515f81818185875af1925050503d805f8114610de4576040519150601f19603f3d011682016040523d82523d5f602084013e610de9565b606091505b5050905080610e0b5760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316816001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb8560405161068c91815260200190565b610e5a611111565b6001600160a01b0381165f9081526003602052604081205490819003610e935760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527f59423ae65f1bcb9f1053fba8f7db2902838ef7d4001c3622192b251a90b4ffa9910160405180910390a15050565b6001600160a01b0381165f90815260036020526040812054908190036108ef5760405163259ba1ad60e01b815260040160405180910390fd5b610f43611111565b6001600160a01b038116610f6c57604051631e4fbdf760e01b81525f60048201526024016109e3565b610f75816112f9565b50565b610f80611111565b6001600160a01b038216610fa757604051635209852960e01b815260040160405180910390fd5b6001600160a01b0382165f9081526020818152604080832084845290915281208054859290610fd7908490611a7d565b90915550505f818152600460205260409020546001600160a01b0316806110115760405163259ba1ad60e01b815260040160405180910390fd5b600182146110325761102d6001600160a01b03821684866114c6565b6110a4565b5f836001600160a01b0316856040515f6040518083038185875af1925050503d805f811461107b576040519150601f19603f3d011682016040523d82523d5f602084013e611080565b606091505b50509050806110a25760405163b12d13eb60e01b815260040160405180910390fd5b505b50505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526110a49186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506114f7565b3361111a610a26565b6001600160a01b0316146109055760405163118cdaa760e01b81523360048201526024016109e3565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806111c957507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166111bd5f516020611b755f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109055760405163703e46dd60e11b815260040160405180910390fd5b610f75611111565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611249575060408051601f3d908101601f1916820190925261124691810190611b0f565b60015b61127157604051634c9c8ce360e01b81526001600160a01b03831660048201526024016109e3565b5f516020611b755f395f51905f5281146112a157604051632a87526960e21b8152600481018290526024016109e3565b6112ab8383611563565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109055760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060917fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100916113ba90611b26565b80601f01602080910402602001604051908101604052809291908181526020018280546113e690611b26565b80156114315780601f1061140857610100808354040283529160200191611431565b820191905f5260205f20905b81548152906001019060200180831161141457829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060917fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100916113ba90611b26565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a006106bd565b6114bd6115b8565b610f75816115dd565b6040516001600160a01b038381166024830152604482018390526112ab91859182169063a9059cbb906064016110df565b5f5f60205f8451602086015f885af180611516576040513d5f823e3d81fd5b50505f513d9150811561152d57806001141561153a565b6001600160a01b0384163b155b156110a457604051635274afe760e01b81526001600160a01b03851660048201526024016109e3565b61156c826115e5565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156115b0576112ab8282611648565b61089b6116ba565b6115c06116d9565b61090557604051631afcd79f60e31b815260040160405180910390fd5b610f436115b8565b806001600160a01b03163b5f0361161a57604051634c9c8ce360e01b81526001600160a01b03821660048201526024016109e3565b5f516020611b755f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116649190611b5e565b5f60405180830381855af49150503d805f811461169c576040519150601f19603f3d011682016040523d82523d5f602084013e6116a1565b606091505b50915091506116b18583836116f2565b95945050505050565b34156109055760405163b398979f60e01b815260040160405180910390fd5b5f6116e261148d565b54600160401b900460ff16919050565b6060826117075761170282611751565b61174a565b815115801561171e57506001600160a01b0384163b155b1561174757604051639996b31560e01b81526001600160a01b03851660048201526024016109e3565b50805b9392505050565b80511561176057805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b03811681146108ef575f5ffd5b5f5f604083850312156117a0575f5ffd5b6117a983611779565b946020939093013593505050565b5f602082840312156117c7575f5ffd5b61174a82611779565b5f5f5f5f608085870312156117e3575f5ffd5b6117ec85611779565b93506117fa60208601611779565b93969395505050506040820135916060013590565b5f6040828403128015611820575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561184d575f5ffd5b61185683611779565b9150602083013567ffffffffffffffff811115611871575f5ffd5b8301601f81018513611881575f5ffd5b803567ffffffffffffffff81111561189b5761189b611828565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156118ca576118ca611828565b6040528181528282016020018710156118e1575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611910575f5ffd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f61196360e0830189611917565b82810360408401526119758189611917565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b818110156119ca5783518352602093840193909201916001016119ac565b50909b9a5050505050505050505050565b602081525f61174a6020830184611917565b5f5f5f606084860312156119ff575f5ffd5b83359250611a0f60208501611779565b929592945050506040919091013590565b634e487b7160e01b5f52601160045260245ffd5b808201808211156106bd576106bd611a20565b80820281158282048414176106bd576106bd611a20565b5f82611a7857634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156106bd576106bd611a20565b5f60018201611aa157611aa1611a20565b5060010190565b80356001600160601b03811681146108ef575f5ffd5b5f60208284031215611ace575f5ffd5b61174a82611aa8565b604081016001600160601b03611aec84611aa8565b1682526001600160601b03611b0360208501611aa8565b16602083015292915050565b5f60208284031215611b1f575f5ffd5b5051919050565b600181811c90821680611b3a57607f821691505b602082108103611b5857634e487b7160e01b5f52602260045260245ffd5b50919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220a895fc3fa5f5d810495e45a85020d82d10b240caddf558f217762712c9f6187264736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":851,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":851,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000024"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x2ca7afeb2a35c84c57d4fee1ac8938565e6559fc6fa45604132d4cae0b4be76b"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","hash":"0x2ca7afeb2a35c84c57d4fee1ac8938565e6559fc6fa45604132d4cae0b4be76b","networkInteractionId":1,"receipt":{"blockHash":"0xe38b4435d311be6a2bcea0228b6e20bb416d8265ae2c90525658b095e23e8f2d","blockNumber":10368236,"contractAddress":"0x09aB6eb55D3514C6732f6e1f8C3f5903373795Fe","logs":[{"address":"0x09aB6eb55D3514C6732f6e1f8C3f5903373795Fe","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":295,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","result":{"address":"0x09aB6eb55D3514C6732f6e1f8C3f5903373795Fe","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x09aB6eb55D3514C6732f6e1f8C3f5903373795Fe","0x"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","dependencies":["CurvyVault#CurvyVaultV4","CurvyVault#CurvyVaultV5Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef28600000000000000000000000009ab6eb55d3514c6732f6e1f8c3f5903373795fe00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":852,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":852,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000024"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xf2fcddee5cdb4c5b43da9c350cd0f8378c2cd7405a40a0710652ddd0a1349f64"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","hash":"0xf2fcddee5cdb4c5b43da9c350cd0f8378c2cd7405a40a0710652ddd0a1349f64","networkInteractionId":1,"receipt":{"blockHash":"0xb1ca6378fff4ffb8c77fe8dadd010fa61888504fc5ec7d78742ca843a69a7560","blockNumber":10368241,"logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x","logIndex":170,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000009ab6eb55d3514c6732f6e1f8c3f5903373795fe"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x97FfCE8e772EA1594BE3C34F85B43e9c00522320"],"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","dependencies":["CurvyVault#CurvyVaultV5","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c00522320","id":1,"to":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":853,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":853,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000024"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xd0d782f0f263a51d3b30f0b12c1873864a621cc3487d59348d05523fb5c43767"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","hash":"0xd0d782f0f263a51d3b30f0b12c1873864a621cc3487d59348d05523fb5c43767","networkInteractionId":1,"receipt":{"blockHash":"0x723c48d6272aaa7a814615c6766e989746fc453cb4561610a9f6c8c7520a4cb1","blockNumber":10368246,"logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c00522320","logIndex":307,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","type":"WIPE_APPLY"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V3","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f597f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f39380380611f3983398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611df7806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6111a080610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b506040516111a03803806111a083398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b61106a806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610c00565b610121565b005b6100d36100e3366004610c6f565b6101d4565b6100d36100f6366004610d3b565b610371565b6100d3610109366004610da5565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dec565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c08686868686610736565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e23565b90506102eb6001600160a01b0383168483610964565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dec565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c085856109c8565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c0868686866040015186610736565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dec565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e3a565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b03848116929116906109ea565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b610723610b2a565b61072f82840184610eef565b9392505050565b6001600160a01b03851661075d5760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061079257506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156108bb576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107dd573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108019190610e23565b90508381101561082457604051637bdd7ae760e01b815260040160405180910390fd5b6108386001600160a01b03831688866109ea565b5f876001600160a01b03168787604051610853929190610ffe565b5f604051808303815f865af19150503d805f811461088c576040519150601f19603f3d011682016040523d82523d5f602084013e610891565b606091505b50509050806108b357604051631bb7daad60e11b815260040160405180910390fd5b50505061095d565b47828110156108dd57604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b03168487876040516108f9929190610ffe565b5f6040518083038185875af1925050503d805f8114610933576040519150601f19603f3d011682016040523d82523d5f602084013e610938565b606091505b505090508061095a57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b038381166024830152604482018390526109c391859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610a75565b505050565b6109d0610b2a565b6109dd826004818661100d565b81019061072f9190610eef565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a3b8482610ae1565b6102eb576040516001600160a01b0384811660248301525f6044830152610a6f91869182169063095ea7b390606401610991565b6102eb84825b5f5f60205f8451602086015f885af180610a94576040513d5f823e3d81fd5b50505f513d91508115610aab578060011415610ab8565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b2057508115610b125780600114610b20565b5f866001600160a01b03163b115b9695505050505050565b6040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6001600160a01b0381168114610ba8575f5ffd5b50565b8035610bb681610b94565b919050565b5f5f83601f840112610bcb575f5ffd5b50813567ffffffffffffffff811115610be2575f5ffd5b602083019150836020828501011115610bf9575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610c14575f5ffd5b8535610c1f81610b94565b9450602086013567ffffffffffffffff811115610c3a575f5ffd5b610c4688828901610bbb565b909550935050604086013591506060860135610c6181610b94565b809150509295509295909350565b5f5f60408385031215610c80575f5ffd5b8235610c8b81610b94565b91506020830135610c9b81610b94565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cde57610cde610ca6565b60405290565b5f60608284031215610cf4575f5ffd5b6040516060810167ffffffffffffffff81118282101715610d1757610d17610ca6565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d4f575f5ffd5b8535610d5a81610b94565b9450602086013567ffffffffffffffff811115610d75575f5ffd5b610d8188828901610bbb565b9095509350610d9590508760408801610ce4565b915060a0860135610c6181610b94565b5f5f5f60a08486031215610db7575f5ffd5b610dc18585610ce4565b92506060840135610dd181610b94565b91506080840135610de181610b94565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e33575f5ffd5b5051919050565b5f60208284031215610e4a575f5ffd5b815161072f81610b94565b5f82601f830112610e64575f5ffd5b813567ffffffffffffffff811115610e7e57610e7e610ca6565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ead57610ead610ca6565b604052818152838201602001851015610ec4575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610bb6575f5ffd5b5f60208284031215610eff575f5ffd5b813567ffffffffffffffff811115610f15575f5ffd5b82016101408185031215610f27575f5ffd5b610f2f610cba565b81358152602082013567ffffffffffffffff811115610f4c575f5ffd5b610f5886828501610e55565b602083015250604082013567ffffffffffffffff811115610f77575f5ffd5b610f8386828501610e55565b604083015250610f9560608301610bab565b6060820152610fa660808301610bab565b6080820152610fb760a08301610bab565b60a082015260c0828101359082015260e08083013590820152610fdd6101008301610ee0565b610100820152610ff06101208301610ee0565b610120820152949350505050565b818382375f9101908152919050565b5f5f8585111561101b575f5ffd5b83861115611027575f5ffd5b505082019391909203915056fea2646970667358221220633d05555d585b9cd564638f34d3aad5d3791bd55e5e5bcfe72066b90f54ba2864736f6c634300081c0033a26469706673582212201a9ffb315bdf1b5f0ea0753e02138b12205ddc5e87ca9c620579f8112b165ce964736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc600000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":854,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","networkInteractionId":1,"nonce":854,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000020"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x7e44e4ce235a4d463334289280e7f1f4752ae7519df438e0b6457415a80f9285"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","hash":"0x7e44e4ce235a4d463334289280e7f1f4752ae7519df438e0b6457415a80f9285","networkInteractionId":1,"receipt":{"blockHash":"0xc42df3d0a6c2e721f6bfa14a726c3ea40383f487d6712747b7c136b9e0823495","blockNumber":10369440,"logs":[{"address":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","data":"0x","logIndex":135,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":136,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000c20a3681b8fa35a68479de698e65a6403b8031de","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V3","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_V3","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V3","nameOrIndex":"newContract","result":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x7e44e4ce235a4d463334289280e7f1f4752ae7519df438e0b6457415a80f9285","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_V3","contractAddress":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_V3","PortalFactory#ReadEvent_PortalFactory_V3"],"futureId":"PortalFactory#PortalFactory_V3","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","withdrawVerifier":"0x88d3df479ae4f51EF946926091537B06825A4B39"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory_V3"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteraction":{"data":"0xcf101a490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000088d3df479ae4f51ef946926091537b06825a4b3900000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad000000000000000000000000c20a3681b8fa35a68479de698e65a6403b8031de000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":855,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":855,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000020"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x96064796553d5e88a98ad6cb87ff1a2c53776d5749462edff28392f16ce0badb"},"type":"TRANSACTION_SEND"}
-{"args":["0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactory#PortalFactory_V3","contractAddress":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","dependencies":["PortalFactory#PortalFactory_V3","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c005223200000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xc20a3681b8fa35A68479DE698e65A6403B8031DE","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteractionId":1,"nonce":856,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","networkInteractionId":1,"nonce":856,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000020"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x9deee75d11eddd673fabb67a3e10f107b9a5e86a96a0b86b9a1ee3eb516fcd53"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","hash":"0x96064796553d5e88a98ad6cb87ff1a2c53776d5749462edff28392f16ce0badb","networkInteractionId":1,"receipt":{"blockHash":"0xaf4bcce585f1b6983c8011dad6eb0e8e69d3447cf588b97d9d727f37f298c107","blockNumber":10369445,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","hash":"0x9deee75d11eddd673fabb67a3e10f107b9a5e86a96a0b86b9a1ee3eb516fcd53","networkInteractionId":1,"receipt":{"blockHash":"0xaf4bcce585f1b6983c8011dad6eb0e8e69d3447cf588b97d9d727f37f298c107","blockNumber":10369445,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V3.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","type":"WIPE_APPLY"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory_V4","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f407f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f20380380611f2083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dde806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b83660046107ee565b610231565b6040516100ca9190610831565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed3660046108ab565b6102c0565b005b6100f2610102366004610990565b6103a2565b348015610112575f5ffd5b506101266101213660046109c2565b6104d2565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610a02565b610566565b348015610160575f5ffd5b5061017461016f366004610a74565b610649565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261069f565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610a95565b6106b2565b3480156101e6575f5ffd5b506101266101f5366004610ac5565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610ac5565b610709565b60605f60405180602001610244906107c6565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610afc565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b5f6102f65f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661033157604051633011642560e01b815260040160405180910390fd5b600480546040516361704a7960e01b81526001600160a01b03808616936361704a7993610369939216918f918f918f918f9101610b40565b5f604051808303815f87803b158015610380575f5ffd5b505af1158015610392573d5f5f3e3d5ffd5b5050505050505050505050505050565b6103aa61074b565b6002546001600160a01b031615806103cb57506003546001600160a01b0316155b156103e9576040516389da714f60e01b815260040160405180910390fd5b5f6103f9835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661043457604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b1580156104b5575f5ffd5b505af11580156104c7573d5f5f3e3d5ffd5b505050505050505050565b5f6104db61074b565b6001600160a01b0384161561050657600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b0383161561053157600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b0382161561055c57600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b031661058f5760405163437f3ac360e01b815260040160405180910390fd5b5f61059f845f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105da57604051633011642560e01b815260040160405180910390fd5b600480546040516376b12b3360e01b81526001600160a01b03808616936376b12b3393610612939216918d918d918d918d9101610b86565b5f604051808303815f87803b158015610629575f5ffd5b505af115801561063b573d5f5f3e3d5ffd5b505050505050505050505050565b5f5f610657845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161067e9493929190610be8565b60408051808303601f19018152919052805160209091012095945050505050565b6106a761074b565b6106b05f610777565b565b5f5f6106c05f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016106e79493929190610be8565b60408051808303601f1901815291905280516020909101209695505050505050565b61071161074b565b6001600160a01b03811661073f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61074881610777565b50565b5f546001600160a01b031633146106b05760405163118cdaa760e01b8152336004820152602401610736565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61118780610c2283390190565b80356001600160a01b03811681146107e9575f5ffd5b919050565b5f5f5f5f60808587031215610801575f5ffd5b84359350610811602086016107d3565b925060408501359150610826606086016107d3565b905092959194509250565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610876575f5ffd5b50813567ffffffffffffffff81111561088d575f5ffd5b6020830191508360208285010111156108a4575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a0312156108c1575f5ffd5b873567ffffffffffffffff8111156108d7575f5ffd5b6108e38a828b01610866565b909850965050602088013594506108fc604089016107d3565b935061090a606089016107d3565b92506080880135915061091f60a089016107d3565b905092959891949750929550565b5f6060828403121561093d575f5ffd5b6040516060810181811067ffffffffffffffff8211171561096c57634e487b7160e01b5f52604160045260245ffd5b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f608083850312156109a1575f5ffd5b6109ab848461092d565b91506109b9606084016107d3565b90509250929050565b5f5f5f606084860312156109d4575f5ffd5b6109dd846107d3565b92506109eb602085016107d3565b91506109f9604085016107d3565b90509250925092565b5f5f5f5f5f60c08688031215610a16575f5ffd5b853567ffffffffffffffff811115610a2c575f5ffd5b610a3888828901610866565b9096509450610a4c9050876020880161092d565b9250610a5a608087016107d3565b9150610a6860a087016107d3565b90509295509295909350565b5f5f60408385031215610a85575f5ffd5b823591506109b9602084016107d3565b5f5f5f60608486031215610aa7575f5ffd5b610ab0846107d3565b9250602084013591506109f9604085016107d3565b5f60208284031215610ad5575f5ffd5b610ade826107d3565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610b10610b0a8386610ae5565b84610ae5565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160a01b03861681526080602082018190525f90610b649083018688610b18565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160a01b038616815260c0602082018190525f90610baa9083018688610b18565b9050610bcd60408301858051825260208082015190830152604090810151910152565b6001600160a01b039290921660a09190910152949350505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b5060405161118738038061118783398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b611051806101365f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c8063648bf77411610058578063648bf774146100d557806376b12b33146100e8578063994d0d38146100fb578063ddceafa91461010e575f5ffd5b80633fb070271461007e5780635dc24ee3146100ad57806361704a79146100c0575b5f5ffd5b600554610091906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610091906001600160a01b031681565b6100d36100ce366004610be7565b610121565b005b6100d36100e3366004610c56565b6101d4565b6100d36100f6366004610d22565b610371565b6100d3610109366004610d8c565b610450565b600654610091906001600160a01b031681565b5f5460ff161561014c5760405162461bcd60e51b815260040161014390610dd3565b60405180910390fd5b5f610157858561071b565b60025460a08201519192506001600160a01b0391821691161461018d5760405163523660f760e01b815260040160405180910390fd5b6003548160e00151146101b3576040516397c91b6960e01b815260040160405180910390fd5b6101c086868686866107a9565b50505f805460ff1916600117905550505050565b6006546001600160a01b031633146102265760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b6044820152606401610143565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102f15760405147905f906001600160a01b0384169083908381818185875af1925050503d805f8114610295576040519150601f19603f3d011682016040523d82523d5f602084013e61029a565b606091505b50509050806102eb5760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610143565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610337573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061035b9190610e0a565b90506102eb6001600160a01b03831684836109d7565b5f5460ff16156103935760405162461bcd60e51b815260040161014390610dd3565b6001548251146103b55760405162cb7dff60e81b815260040160405180910390fd5b5f6103c0858561071b565b60a08101519091506001600160a01b031630146103f05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e0015114610416576040516397c91b6960e01b815260040160405180910390fd5b82604001518160c00151111561043f57604051632a8d68fb60e11b815260040160405180910390fd5b6101c08686868660400151866107a9565b5f5460ff16156104725760405162461bcd60e51b815260040161014390610dd3565b6001548351146104945760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561051c575060408051601f3d908101601f1916820190925261051991810190610e21565b60015b6105b557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516105a79181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061070a565b90506001600160a01b038116158015906105ec57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561068b576004546040850151610611916001600160a01b0384811692911690610a3b565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b158015610670575f5ffd5b505af1158015610682573d5f5f3e3d5ffd5b50505050610708565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b1580156106f0575f5ffd5b505af1158015610702573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b6107886040518061014001604052805f815260200160608152602001606081526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f6001600160a01b031681526020015f81526020015f81526020015f151581526020015f151581525090565b6107958260048186610e3c565b8101906107a29190610efd565b9392505050565b6001600160a01b0385166107d05760405163149633f360e31b815260040160405180910390fd5b6001600160a01b0381161580159061080557506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b1561092e576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610850573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108749190610e0a565b90508381101561089757604051637bdd7ae760e01b815260040160405180910390fd5b6108ab6001600160a01b0383168886610a3b565b5f876001600160a01b031687876040516108c692919061100c565b5f604051808303815f865af19150503d805f81146108ff576040519150601f19603f3d011682016040523d82523d5f602084013e610904565b606091505b505090508061092657604051631bb7daad60e11b815260040160405180910390fd5b5050506109d0565b478281101561095057604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b031684878760405161096c92919061100c565b5f6040518083038185875af1925050503d805f81146109a6576040519150601f19603f3d011682016040523d82523d5f602084013e6109ab565b606091505b50509050806109cd57604051631bb7daad60e11b815260040160405180910390fd5b50505b5050505050565b6040516001600160a01b03838116602483015260448201839052610a3691859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610ac6565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a8c8482610b32565b6102eb576040516001600160a01b0384811660248301525f6044830152610ac091869182169063095ea7b390606401610a04565b6102eb84825b5f5f60205f8451602086015f885af180610ae5576040513d5f823e3d81fd5b50505f513d91508115610afc578060011415610b09565b6001600160a01b0384163b155b156102eb57604051635274afe760e01b81526001600160a01b0385166004820152602401610143565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610b7157508115610b635780600114610b71565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b0381168114610b8f575f5ffd5b50565b8035610b9d81610b7b565b919050565b5f5f83601f840112610bb2575f5ffd5b50813567ffffffffffffffff811115610bc9575f5ffd5b602083019150836020828501011115610be0575f5ffd5b9250929050565b5f5f5f5f5f60808688031215610bfb575f5ffd5b8535610c0681610b7b565b9450602086013567ffffffffffffffff811115610c21575f5ffd5b610c2d88828901610ba2565b909550935050604086013591506060860135610c4881610b7b565b809150509295509295909350565b5f5f60408385031215610c67575f5ffd5b8235610c7281610b7b565b91506020830135610c8281610b7b565b809150509250929050565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610cc557610cc5610c8d565b60405290565b5f60608284031215610cdb575f5ffd5b6040516060810167ffffffffffffffff81118282101715610cfe57610cfe610c8d565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f5f5f5f60c08688031215610d36575f5ffd5b8535610d4181610b7b565b9450602086013567ffffffffffffffff811115610d5c575f5ffd5b610d6888828901610ba2565b9095509350610d7c90508760408801610ccb565b915060a0860135610c4881610b7b565b5f5f5f60a08486031215610d9e575f5ffd5b610da88585610ccb565b92506060840135610db881610b7b565b91506080840135610dc881610b7b565b809150509250925092565b60208082526017908201527f53696e676c655573653a20416c72656164792075736564000000000000000000604082015260600190565b5f60208284031215610e1a575f5ffd5b5051919050565b5f60208284031215610e31575f5ffd5b81516107a281610b7b565b5f5f85851115610e4a575f5ffd5b83861115610e56575f5ffd5b5050820193919092039150565b5f82601f830112610e72575f5ffd5b813567ffffffffffffffff811115610e8c57610e8c610c8d565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610ebb57610ebb610c8d565b604052818152838201602001851015610ed2575f5ffd5b816020850160208301375f918101602001919091529392505050565b80358015158114610b9d575f5ffd5b5f60208284031215610f0d575f5ffd5b813567ffffffffffffffff811115610f23575f5ffd5b82016101408185031215610f35575f5ffd5b610f3d610ca1565b81358152602082013567ffffffffffffffff811115610f5a575f5ffd5b610f6686828501610e63565b602083015250604082013567ffffffffffffffff811115610f85575f5ffd5b610f9186828501610e63565b604083015250610fa360608301610b92565b6060820152610fb460808301610b92565b6080820152610fc560a08301610b92565b60a082015260c0828101359082015260e08083013590820152610feb6101008301610eee565b610100820152610ffe6101208301610eee565b610120820152949350505050565b818382375f910190815291905056fea2646970667358221220514ea5ed864f6fba53280886d32ec95865f7f8ff7d5f70e89ebdc13c5913807a64736f6c634300081c0033a2646970667358221220acf996c4b4f2f0f92fbaf8c9f956c9c2da3edd54b6f54c89c4934608d16dc92264736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":857,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","networkInteractionId":1,"nonce":857,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000020"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xfef328b5d28c602462adab0331a5c9938e45e18fd56b8fff97e5cbc9e1be6f4f"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","hash":"0xfef328b5d28c602462adab0331a5c9938e45e18fd56b8fff97e5cbc9e1be6f4f","networkInteractionId":1,"receipt":{"blockHash":"0x37f713182ed8a971e8053dc62a127fc1632b4291d2723caa9d62ae9c69a67ea4","blockNumber":10371199,"logs":[{"address":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","data":"0x","logIndex":147,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":148,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000009f3f6bd0067596fd05abca1a6a7d1298d6603730","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory_V4","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory_V4","nameOrIndex":"newContract","result":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xfef328b5d28c602462adab0331a5c9938e45e18fd56b8fff97e5cbc9e1be6f4f","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory_V4","PortalFactory#ReadEvent_PortalFactory_V4"],"futureId":"PortalFactory#PortalFactory_V4","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","withdrawVerifier":"0x88d3df479ae4f51EF946926091537B06825A4B39"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory_V4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteraction":{"data":"0xcf101a490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000088d3df479ae4f51ef946926091537b06825a4b3900000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad0000000000000000000000009f3f6bd0067596fd05abca1a6a7d1298d6603730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":858,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":858,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000022"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x29623522a3a9b80c9352ec234b1ee830a92c67823e3f1fb7af2761696fb430aa"},"type":"TRANSACTION_SEND"}
-{"args":["0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactory#PortalFactory_V4","contractAddress":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","dependencies":["PortalFactory#PortalFactory_V4","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c005223200000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x9f3F6bD0067596FD05AbcA1A6A7D1298D6603730","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":859,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","networkInteractionId":1,"nonce":859,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000022"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xf316e9233d3cfc38c979b57cb9e69f8ab0fb2915f993089982980ef8f7733441"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","hash":"0x29623522a3a9b80c9352ec234b1ee830a92c67823e3f1fb7af2761696fb430aa","networkInteractionId":1,"receipt":{"blockHash":"0x09e6b6c21d43349f57d37abe4d051b05d7f57ff8f2a0d264ca3df449737c7363","blockNumber":10371204,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","hash":"0xf316e9233d3cfc38c979b57cb9e69f8ab0fb2915f993089982980ef8f7733441","networkInteractionId":1,"receipt":{"blockHash":"0x09e6b6c21d43349f57d37abe4d051b05d7f57ff8f2a0d264ca3df449737c7363","blockNumber":10371204,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory_V4.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","type":"WIPE_APPLY"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f607f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea264697066735822122013354680d09d0c4a6d2d0f41ec143a724d64168ebf27fe607315a2230deb43fe64736f6c634300081c0033a26469706673582212206dd765f39628f435d2192321dbb2dcd7e9bdd12579149cf186225e00b33af94b64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":860,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":860,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000026"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x11262c0d0dab5d23f8898af61a8dcb8cfbfd5005c282327115d491c8d84546f1"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x11262c0d0dab5d23f8898af61a8dcb8cfbfd5005c282327115d491c8d84546f1","networkInteractionId":1,"receipt":{"blockHash":"0x53c674b49014a0cac66999c3bbacbc3d23e946c552488bc4ae228978145a0b1e","blockNumber":10383234,"logs":[{"address":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","data":"0x","logIndex":283,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":284,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000008a2560cee62d17ef542e8eb6b349c45b02120522","0x6c992cf1da233067c46b43ad933170d4a3f6843bfc68c79a343965ff8cc2620f"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x11262c0d0dab5d23f8898af61a8dcb8cfbfd5005c282327115d491c8d84546f1","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","withdrawVerifier":"0x88d3df479ae4f51EF946926091537B06825A4B39"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteraction":{"data":"0xcf101a490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000088d3df479ae4f51ef946926091537b06825a4b3900000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad0000000000000000000000008a2560cee62d17ef542e8eb6b349c45b02120522000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":861,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":861,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000022"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x93f315949b0b653b4006a544b2726a3f381b6c537aae03c27016a5bb899a0948"},"type":"TRANSACTION_SEND"}
-{"args":["0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","dependencies":["PortalFactory#PortalFactory","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c005223200000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x8A2560ceE62D17Ef542E8Eb6B349C45b02120522","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":862,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":862,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000022"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x647262cb57f83e8c4b06c360a0ef432692896949bff6c7a7d4362482b847c560"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","hash":"0x93f315949b0b653b4006a544b2726a3f381b6c537aae03c27016a5bb899a0948","networkInteractionId":1,"receipt":{"blockHash":"0xc1122a78627c24142be25169275bda338c0446dc6ac7de1550b7f3e624bd8fed","blockNumber":10383261,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x647262cb57f83e8c4b06c360a0ef432692896949bff6c7a7d4362482b847c560","networkInteractionId":1,"receipt":{"blockHash":"0xc1122a78627c24142be25169275bda338c0446dc6ac7de1550b7f3e624bd8fed","blockNumber":10383261,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x2374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea2646970667358221220e6b9ee90e5308067a21c1e3098ab614bc685c4410f4c24bae0934b1f4c6e644764736f6c634300081c0033a2646970667358221220d297d01b4b6902c3feb0c98217af74e67b07d95d815decca472096459cb1217a64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076682374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f607f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea2646970667358221220e6b9ee90e5308067a21c1e3098ab614bc685c4410f4c24bae0934b1f4c6e644764736f6c634300081c0033a2646970667358221220d297d01b4b6902c3feb0c98217af74e67b07d95d815decca472096459cb1217a64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea2646970667358221220e6b9ee90e5308067a21c1e3098ab614bc685c4410f4c24bae0934b1f4c6e644764736f6c634300081c0033a2646970667358221220d297d01b4b6902c3feb0c98217af74e67b07d95d815decca472096459cb1217a64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f607f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f40380380611f4083398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611dfe806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610cce806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610cce380380610cce83398101604081905261002e916100e5565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b600193909355600280546001600160a01b039384166001600160a01b03199182161790915560039190915560068054929093169116179055610129565b80516001600160a01b03811681146100e0575f5ffd5b919050565b5f5f5f5f608085870312156100f8575f5ffd5b84519350610108602086016100ca565b6040860151909350915061011e606086016100ca565b905092959194509250565b610b98806101365f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600554610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600454610077906001600160a01b031681565b6100b96100b43660046109b5565b6100f4565b005b6100b96100c93660046109ec565b610296565b6100b96100dc366004610a7c565b61058b565b600654610077906001600160a01b031681565b6006546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b1a565b90506102106001600160a01b03831684836107ea565b5f5460ff16156102e25760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001548351146103045760405162cb7dff60e81b815260040160405180910390fd5b600480546001600160a01b038481166001600160a01b0319928316178355600580549185169190921681179091556020850151604051630cf99be760e31b8152928301525f916367ccdf3890602401602060405180830381865afa92505050801561038c575060408051601f3d908101601f1916820190925261038991810190610b31565b60015b61042557806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b886604001516040516104179181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a35061057a565b90506001600160a01b0381161580159061045c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b156104fb576004546040850151610481916001600160a01b038481169291169061084e565b60048054604080516347107fdb60e01b81528751938101939093526020870151602484015286015160448301526001600160a01b03838116606484015216906347107fdb906084015f604051808303815f87803b1580156104e0575f5ffd5b505af11580156104f2573d5f5f3e3d5ffd5b50505050610578565b600480546040868101805191516347107fdb60e01b8152885194810194909452602088015160248501525160448401526001600160a01b038481166064850152909116916347107fdb91906084015f604051808303818588803b158015610560575f5ffd5b505af1158015610572573d5f5f3e3d5ffd5b50505050505b505b50505f805460ff1916600117905550565b5f5460ff16156105d75760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061060c57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610735576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610657573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061067b9190610b1a565b90508381101561069e57604051637bdd7ae760e01b815260040160405180910390fd5b6106b26001600160a01b038316888661084e565b5f876001600160a01b031687876040516106cd929190610b53565b5f604051808303815f865af19150503d805f8114610706576040519150601f19603f3d011682016040523d82523d5f602084013e61070b565b606091505b505090508061072d57604051631bb7daad60e11b815260040160405180910390fd5b5050506107d7565b478281101561075757604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610773929190610b53565b5f6040518083038185875af1925050503d805f81146107ad576040519150601f19603f3d011682016040523d82523d5f602084013e6107b2565b606091505b50509050806107d457604051631bb7daad60e11b815260040160405180910390fd5b50505b50505f805460ff19166001179055505050565b6040516001600160a01b0383811660248301526044820183905261084991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108d9565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261089f8482610945565b610210576040516001600160a01b0384811660248301525f60448301526108d391869182169063095ea7b390606401610817565b61021084825b5f5f60205f8451602086015f885af1806108f8576040513d5f823e3d81fd5b50505f513d9150811561090f57806001141561091c565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f519050828015610984575081156109765780600114610984565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109a2575f5ffd5b50565b80356109b08161098e565b919050565b5f5f604083850312156109c6575f5ffd5b82356109d18161098e565b915060208301356109e18161098e565b809150509250929050565b5f5f5f83850360a08112156109ff575f5ffd5b6060811215610a0c575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a3c57634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a65606085016109a5565b9150610a73608085016109a5565b90509250925092565b5f5f5f5f5f60808688031215610a90575f5ffd5b8535610a9b8161098e565b9450602086013567ffffffffffffffff811115610ab6575f5ffd5b8601601f81018813610ac6575f5ffd5b803567ffffffffffffffff811115610adc575f5ffd5b886020828401011115610aed575f5ffd5b60209190910194509250604086013591506060860135610b0c8161098e565b809150509295509295909350565b5f60208284031215610b2a575f5ffd5b5051919050565b5f60208284031215610b41575f5ffd5b8151610b4c8161098e565b9392505050565b818382375f910190815291905056fea2646970667358221220e6b9ee90e5308067a21c1e3098ab614bc685c4410f4c24bae0934b1f4c6e644764736f6c634300081c0033a2646970667358221220d297d01b4b6902c3feb0c98217af74e67b07d95d815decca472096459cb1217a64736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":870,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":870,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"6146749"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001991"}},"hash":"0x89d77ec88761cb9431485da28d4764757e3e8df34f1018ef7a8e0e4045bbfd2f"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x89d77ec88761cb9431485da28d4764757e3e8df34f1018ef7a8e0e4045bbfd2f","networkInteractionId":1,"receipt":{"blockHash":"0xb988b14c4cb29693067ebea8d0d939d803de38235cd9d575e810ccf0996b3c98","blockNumber":10395810,"logs":[{"address":"0xC12864144B35add12da579ac135Ce04676916484","data":"0x","logIndex":533,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":534,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x000000000000000000000000c12864144b35add12da579ac135ce04676916484","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0xC12864144B35add12da579ac135Ce04676916484","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x89d77ec88761cb9431485da28d4764757e3e8df34f1018ef7a8e0e4045bbfd2f","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xC12864144B35add12da579ac135Ce04676916484","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0xC12864144B35add12da579ac135Ce04676916484","withdrawVerifier":"0x88d3df479ae4f51EF946926091537B06825A4B39"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteraction":{"data":"0xcf101a490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000088d3df479ae4f51ef946926091537b06825a4b3900000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad000000000000000000000000c12864144b35add12da579ac135ce04676916484000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":871,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":871,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"5675505"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001991"}},"hash":"0xd2aa7eca9ae105a7e61394af07e5bee8c9ac1a33d6dc19814b84ca6ca6c87854"},"type":"TRANSACTION_SEND"}
-{"args":["0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0xC12864144B35add12da579ac135Ce04676916484","dependencies":["PortalFactory#PortalFactory","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c005223200000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0xC12864144B35add12da579ac135Ce04676916484","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":872,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":872,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"5675505"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001991"}},"hash":"0xe9312f597cd8065f1e466ae43c5b1ee3af31721dc29ad3e8bee4903518b3e990"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","hash":"0xd2aa7eca9ae105a7e61394af07e5bee8c9ac1a33d6dc19814b84ca6ca6c87854","networkInteractionId":1,"receipt":{"blockHash":"0x539a861e30f46c566a6ef544f9587f1316f50571e5e546df1391a8842dd2c336","blockNumber":10395815,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xe9312f597cd8065f1e466ae43c5b1ee3af31721dc29ad3e8bee4903518b3e990","networkInteractionId":1,"receipt":{"blockHash":"0x539a861e30f46c566a6ef544f9587f1316f50571e5e546df1391a8842dd2c336","blockNumber":10395815,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f787f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f58380380611f5883398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611e16806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a7d565b610231565b6040516100ca9190610ac4565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b3e565b6102c0565b005b6100f2610102366004610c5d565b61052b565b348015610112575f5ffd5b50610126610121366004610c93565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cdb565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d53565b6108df565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f2610935565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d76565b610948565b3480156101e6575f5ffd5b506101266101f5366004610daa565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610daa565b61099f565b60605f6040518060200161024490610a5c565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610de3565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610e27565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e4a565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610e27565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f6c565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f910161107b565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109e1565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109e1565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610e27565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f6c565b905061079b845f0151836108df565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b83604001518160c00151111561081f57604051632a8d68fb60e11b815260040160405180910390fd5b5f61082f855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661086a57604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf946108a7949216928f928f9290918e910161107b565b5f604051808303815f87803b1580156108be575f5ffd5b505af11580156108d0573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108ed845f5f86610231565b90505f60ff60f81b30600154848051906020012060405160200161091494939291906110c1565b60408051808303601f19018152919052805160209091012095945050505050565b61093d6109e1565b6109465f610a0d565b565b5f5f6109565f868686610231565b90505f60ff60f81b30600154848051906020012060405160200161097d94939291906110c1565b60408051808303601f1901815291905280516020909101209695505050505050565b6109a76109e1565b6001600160a01b0381166109d557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109de81610a0d565b50565b5f546001600160a01b031633146109465760405163118cdaa760e01b81523360048201526024016109cc565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110fb83390190565b6001600160a01b03811681146109de575f5ffd5b5f5f5f5f60808587031215610a90575f5ffd5b843593506020850135610aa281610a69565b9250604085013591506060850135610ab981610a69565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610b09575f5ffd5b50813567ffffffffffffffff811115610b20575f5ffd5b602083019150836020828501011115610b37575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b54575f5ffd5b873567ffffffffffffffff811115610b6a575f5ffd5b610b768a828b01610af9565b909850965050602088013594506040880135610b9181610a69565b93506060880135610ba181610a69565b92506080880135915060a0880135610bb881610a69565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610c0057610c00610bc8565b60405290565b5f60608284031215610c16575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c3957610c39610bc8565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c6e575f5ffd5b610c788484610c06565b91506060830135610c8881610a69565b809150509250929050565b5f5f5f60608486031215610ca5575f5ffd5b8335610cb081610a69565b92506020840135610cc081610a69565b91506040840135610cd081610a69565b809150509250925092565b5f5f5f5f5f60c08688031215610cef575f5ffd5b853567ffffffffffffffff811115610d05575f5ffd5b610d1188828901610af9565b9096509450610d2590508760208801610c06565b92506080860135610d3581610a69565b915060a0860135610d4581610a69565b809150509295509295909350565b5f5f60408385031215610d64575f5ffd5b823591506020830135610c8881610a69565b5f5f5f60608486031215610d88575f5ffd5b8335610d9381610a69565b9250602084013591506040840135610cd081610a69565b5f60208284031215610dba575f5ffd5b8135610dc581610a69565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610df7610df18386610dcc565b84610dcc565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610df7602083018486610dff565b8051610e4581610a69565b919050565b5f60a0828403128015610e5b575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e7f57610e7f610bc8565b6040528251610e8d81610a69565b8152602083810151908201526040830151610ea781610a69565b60408201526060830151610eba81610a69565b60608201526080928301519281019290925250919050565b5f82601f830112610ee1575f5ffd5b815167ffffffffffffffff811115610efb57610efb610bc8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f2a57610f2a610bc8565b604052818152838201602001851015610f41575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e45575f5ffd5b5f60208284031215610f7c575f5ffd5b815167ffffffffffffffff811115610f92575f5ffd5b82016101408185031215610fa4575f5ffd5b610fac610bdc565b81518152602082015167ffffffffffffffff811115610fc9575f5ffd5b610fd586828501610ed2565b602083015250604082015167ffffffffffffffff811115610ff4575f5ffd5b61100086828501610ed2565b60408301525061101260608301610e3a565b606082015261102360808301610e3a565b608082015261103460a08301610e3a565b60a082015260c0828101519082015260e0808301519082015261105a6101008301610f5d565b61010082015261106d6101208301610f5d565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f9061109f9083018688610dff565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a264697066735822122008495ef5fba440d5d00ebf1d9982df28786d83ffa5b3d1d13208322656a9395464736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":873,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":873,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"70600877"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001781"}},"hash":"0xfc0e3757619264e3cdce238842fc428ec0059f3b8045859fa8b949b0fae8cbc4"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0xfc0e3757619264e3cdce238842fc428ec0059f3b8045859fa8b949b0fae8cbc4","networkInteractionId":1,"receipt":{"blockHash":"0x2777b65537260e3e39112db5df386ca9d99b511cc2072fcad209ff27ee60c361","blockNumber":10396962,"logs":[{"address":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","data":"0x","logIndex":675,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":676,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x00000000000000000000000072d356b815974ea1b8d49823a46294fc38ba41df","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","strategy":"basic","strategyConfig":{},"txToReadFrom":"0xfc0e3757619264e3cdce238842fc428ec0059f3b8045859fa8b949b0fae8cbc4","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","withdrawVerifier":"0x88d3df479ae4f51EF946926091537B06825A4B39"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteraction":{"data":"0xcf101a490000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000088d3df479ae4f51ef946926091537b06825a4b3900000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad00000000000000000000000072d356b815974ea1b8d49823a46294fc38ba41df000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":874,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":874,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"62230285"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001781"}},"hash":"0x5c82a4d11a496939b855c404cbc1d500aaa5f6a260e3272809bc05657ed72d35"},"type":"TRANSACTION_SEND"}
-{"args":["0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","dependencies":["PortalFactory#PortalFactory","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c005223200000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":875,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":875,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"62230285"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001781"}},"hash":"0xcf40d09ef74dbf3384cb589634191b378d97bb55327020ab178e672f7d0ce7ae"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","hash":"0x5c82a4d11a496939b855c404cbc1d500aaa5f6a260e3272809bc05657ed72d35","networkInteractionId":1,"receipt":{"blockHash":"0x59e02f2d6104096862e874f4f90ce32b78f4908ca5dfc7d55d4101252a4b6c88","blockNumber":10396967,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0xcf40d09ef74dbf3384cb589634191b378d97bb55327020ab178e672f7d0ce7ae","networkInteractionId":1,"receipt":{"blockHash":"0x59e02f2d6104096862e874f4f90ce32b78f4908ca5dfc7d55d4101252a4b6c88","blockNumber":10396967,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyAggregatorAlpha#UpdateConfig_withdrawVerifierV3","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","type":"WIPE_APPLY"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","type":"WIPE_APPLY"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","type":"WIPE_APPLY"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","type":"WIPE_APPLY"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","contractName":"CurvyAggregatorAlphaV5","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV5","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0x8584baE2E04A9481cBd8E896188f265fDD7136e1"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d506100f95f395f8181610f9f01528181610fc8015261110c0152611d505ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f9450738584baE2E04A9481cBd8E896188f265fDD7136e193506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteractionId":1,"nonce":876,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteractionId":1,"nonce":876,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"23961283"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001781"}},"hash":"0xf2d456a17a8fe07d0200423e93ab4ecd8a18d89f4519d58feb1f791fe34b6e55"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","hash":"0xf2d456a17a8fe07d0200423e93ab4ecd8a18d89f4519d58feb1f791fe34b6e55","networkInteractionId":1,"receipt":{"blockHash":"0xd9bbd8c5d13445396b7a155553e98c86f896e4d0f3b7abf62540c2ba549e7f8a","blockNumber":10397184,"contractAddress":"0x6254ef326f1F4051434d6aaeAbf981Ff97BD7D14","logs":[{"address":"0x6254ef326f1F4051434d6aaeAbf981Ff97BD7D14","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":543,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","result":{"address":"0x6254ef326f1F4051434d6aaeAbf981Ff97BD7D14","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x6254ef326f1F4051434d6aaeAbf981Ff97BD7D14","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef2860000000000000000000000006254ef326f1f4051434d6aaeabf981ff97bd7d1400000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteractionId":1,"nonce":877,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteractionId":1,"nonce":877,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"23320997"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001781"}},"hash":"0xef8302d188ccc4c12c01365f79596f637fabb1dc6554fe41e4fb9123f7209946"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","hash":"0xef8302d188ccc4c12c01365f79596f637fabb1dc6554fe41e4fb9123f7209946","networkInteractionId":1,"receipt":{"blockHash":"0xd8b18563ab80b8df36e559e63cd3c1149d4423022b2c57b48ac18e68b9ebd03d","blockNumber":10397189,"logs":[{"address":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","data":"0x","logIndex":533,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000006254ef326f1f4051434d6aaeabf981ff97bd7d14"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#withdrawVerifierV3","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlphaV3_2","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b5061149a8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b366004611300565b610054565b604051901515815260200160405180910390f35b5f61005d611127565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600980825261014082019093525f9290918201610120803683370190505090505f5b600981101561013357848160098110610109576101096113e0565b6020020151828281518110610120576101206113e0565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e9190611408565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb5783878281518110610217576102176113e0565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc85608001518460016102859190611408565b81518110610295576102956113e0565b60200260200101518a85815181106102af576102af6113e0565b6020026020010151610a94565b610b28565b91506001016101fb565b506102f38183608001515f815181106102e6576102e66113e0565b6020026020010151610b28565b9050610327610304865f0151610bbf565b8660200151845f015185602001518587604001518b604001518960600151610c5b565b610337576001935050505061033e565b5f93505050505b92915050565b61034c611175565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f05d000ba4551c1fa877c7a46107992624c3d99a3e6bdd57c50698771b613cc298185019081527f1ecc95a1dbdbe4f8cef976bf22affb6de7fa33cb89b48d77bead7102ad139892828401528152835180850185527f21db75587cbe02e9192f9b5f2b763c99648c02dd6b6a4c96c20df72fb841418a81527f2af9f7e11a5a29cdcb4b532c39193095513331f2834798b89072b995ad356a898185015281840152908401528151600a8082526101608201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f2660af19967ed5580208a84497fbdd099f460ed85561c98f23edb4a0384dcf7f81527f210fa1941084636ec27feec1eb19e46b9b48bfa53b306d017ae5963efad52a436020820152905180515f90610659576106596113e0565b602002602001018190525060405180604001604052807f2083fd8b0b70f84ff529e805d135f4a43429faa7993c7722807ae7a190df845581526020017f28811e77761972df5b4960cb74319c488f4edbeddc48333c6d4d1a6bf413ca3481525081608001516001815181106106d0576106d06113e0565b602002602001018190525060405180604001604052807f13dfc5473a9989ab659e0b9a6334f6941bc90555d51e4bca722dae72810e989881526020017f013b58637f2dae5dcc9fc8fbebfc8b1381840813185e0fb647f05168c697540c8152508160800151600281518110610747576107476113e0565b602002602001018190525060405180604001604052807f1c44dcfc07f5f9ae2c637ff60d5a89d2c1713bca6aff265abcb28620a852c34281526020017f19330ccf92e4c27c2b591f021a828cca5edab6049a9d1062686fd796b6d3f52d81525081608001516003815181106107be576107be6113e0565b602002602001018190525060405180604001604052807f23d7191b87dd317ce4294b631c1ce03e454f61c038c5d9c601c8abcc5003816b81526020017f21b455e02d8d7aa7549f9e769915f44c954cbc965220a0c8f61c0c1a367509818152508160800151600481518110610835576108356113e0565b602002602001018190525060405180604001604052807f2226e11fa0ed282b86920337d75253929cdead5afa79adbc98bbf0786a21503081526020017eab0bd68fd9de0ee282bc419521c647a219f5075248f5ebfb2016464f50ba1a81525081608001516005815181106108ab576108ab6113e0565b602002602001018190525060405180604001604052807f21a6f2274e37865052daf09f57ee7d7dafbc1d60cc54e26ab82120b995ed12f481526020017f0b5c832b69ae80552e1d9402009efab37ce39eb97825b4b343f5ea9581b31c1b8152508160800151600681518110610922576109226113e0565b602002602001018190525060405180604001604052807f091ecf7419c3a24ba36564b86a4859fd8f00157103bb0759ea5ba4928bfe460b81526020017f105c38b8731b3cbeed64c9c7e1aa313538e21302828e2f95fb3b05d777a0f7d88152508160800151600781518110610999576109996113e0565b602002602001018190525060405180604001604052807f100d9113bd2a6d16e7682a168a313a92f111d97fa62ab66b9b60339ab7edd8cf81526020017f0db625617d7f1e384b7fd3bfa6625ce178ced385ea8bef33da11938d7ebc389d8152508160800151600881518110610a1057610a106113e0565b602002602001018190525060405180604001604052807ec8fdc7d85d6600498e56ca6e7082bef46e29858708e318188919835ac6878881526020017f0c567e014f5306e60d7e0d42f3e9216db8a9837c77f300ff203b05060360a30a8152508160800151600981518110610a8657610a866113e0565b602002602001018190525090565b604080518082019091525f8082526020820152610aaf6111c5565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610add57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610b436111e3565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610b7c57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c0557506020830151155b15610c24575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610c48919061141b565b610c52908461143a565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610c7557505060408051600480825260a082019092529192505f9190602082015b610cbd611201565b815260200190600190039081610cb55790505090508a825f81518110610ce557610ce56113e0565b60200260200101819052508882600181518110610d0457610d046113e0565b60200260200101819052508682600281518110610d2357610d236113e0565b60200260200101819052508482600381518110610d4257610d426113e0565b602002602001018190525089815f81518110610d6057610d606113e0565b60200260200101819052508781600181518110610d7f57610d7f6113e0565b60200260200101819052508581600281518110610d9e57610d9e6113e0565b60200260200101819052508381600381518110610dbd57610dbd6113e0565b6020026020010181905250610dd28282610de1565b9b9a5050505050505050505050565b5f8151835114610e2c5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610e3a82600661144d565b90505f8167ffffffffffffffff811115610e5657610e5661125d565b604051908082528060200260200182016040528015610e7f578160200160208202803683370190505b5090505f5b838110156110ac57868181518110610e9e57610e9e6113e0565b60200260200101515f015182826006610eb7919061144d565b610ec1905f611408565b81518110610ed157610ed16113e0565b602002602001018181525050868181518110610eef57610eef6113e0565b60200260200101516020015182826006610f09919061144d565b610f14906001611408565b81518110610f2457610f246113e0565b602002602001018181525050858181518110610f4257610f426113e0565b6020908102919091010151515182610f5b83600661144d565b610f66906002611408565b81518110610f7657610f766113e0565b602002602001018181525050858181518110610f9457610f946113e0565b60209081029190910181015151015182610faf83600661144d565b610fba906003611408565b81518110610fca57610fca6113e0565b602002602001018181525050858181518110610fe857610fe86113e0565b6020026020010151602001515f60028110611005576110056113e0565b60200201518261101683600661144d565b611021906004611408565b81518110611031576110316113e0565b60200260200101818152505085818151811061104f5761104f6113e0565b60200260200101516020015160016002811061106d5761106d6113e0565b60200201518261107e83600661144d565b611089906005611408565b81518110611099576110996113e0565b6020908102919091010152600101610e84565b506110b5611221565b5f602082602086026020860160086107d05a03fa905080806110d357fe5b50806111195760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101611150611201565b815260200161117060405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c083019190915281526020810161119e611201565b81526020016111ab611201565b81526020016111b8611201565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061121461123f565b815260200161117061123f565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156112a657634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f8301126112bd575f5ffd5b5f6112c86040611271565b90508060408401858111156112db575f5ffd5b845b818110156112f55780358352602092830192016112dd565b509195945050505050565b5f5f5f5f6102208587031215611314575f5ffd5b61131e86866112ae565b935085605f86011261132e575f5ffd5b604061133981611271565b8060c088018981111561134a575f5ffd5b604089015b81811015611370576113618b826112ae565b8452602090930192840161134f565b5081965061137e8a826112ae565b95505050505061010085015f87601f830112611398575f5ffd5b5f6101206113a581611271565b91508301818a8211156113b6575f5ffd5b5b818510156113cf5784358152602094850194016113b7565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e6113f4565b5f8261143557634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e6113f4565b808202811582820484141761033e5761033e6113f456fea2646970667358221220ee56b55b73586c11a0ad84b93a1c92445f7a65f7be9aeed3d1e4fbaef2220a4364736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteractionId":1,"nonce":878,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteractionId":1,"nonce":878,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"23667531"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001781"}},"hash":"0x6d8d79cb7a5148335ad1feec1d6a7709d11aeacc13597e000e9fe6020bf687ee"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","hash":"0x6d8d79cb7a5148335ad1feec1d6a7709d11aeacc13597e000e9fe6020bf687ee","networkInteractionId":1,"receipt":{"blockHash":"0x69f6ba0ad85d938d2ea4de5a3904f704eb9a8cdd436a49bbf5dc26f7ce093353","blockNumber":10397194,"contractAddress":"0xCb9591b720B88b0E0ef23129adc476Ff5dFF3e31","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","result":{"address":"0xCb9591b720B88b0E0ef23129adc476Ff5dFF3e31","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","withdrawVerifier":"0xCb9591b720B88b0E0ef23129adc476Ff5dFF3e31"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteraction":{"data":"0xcf101a4900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cb9591b720b88b0e0ef23129adc476ff5dff3e3100000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad00000000000000000000000072d356b815974ea1b8d49823a46294fc38ba41df000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":879,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":879,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"25821715"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001781"}},"hash":"0x8823e4310e338b05815d6c9639bf4e0b2bc4d9fbe755ae60b215effe50b3dbb4"},"type":"TRANSACTION_SEND"}
-{"args":["0x97FfCE8e772EA1594BE3C34F85B43e9c00522320"],"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","dependencies":["CurvyVault#CurvyVaultV5","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c00522320","id":1,"to":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":880,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":880,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"25821715"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001781"}},"hash":"0x1a2fdae7d749d2572f67a036c9da43bf42950998d23560f14be2695a9ef60fca"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","hash":"0x8823e4310e338b05815d6c9639bf4e0b2bc4d9fbe755ae60b215effe50b3dbb4","networkInteractionId":1,"receipt":{"blockHash":"0x31c799322059e6824289a004283b9f38b4ae5598e39c4f5c8eb4b9babd323a30","blockNumber":10397199,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","hash":"0x1a2fdae7d749d2572f67a036c9da43bf42950998d23560f14be2695a9ef60fca","networkInteractionId":1,"receipt":{"blockHash":"0x31c799322059e6824289a004283b9f38b4ae5598e39c4f5c8eb4b9babd323a30","blockNumber":10397199,"logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c00522320","logIndex":512,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","type":"WIPE_APPLY"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","type":"WIPE_APPLY"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","type":"WIPE_APPLY"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","type":"WIPE_APPLY"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","contractName":"CurvyAggregatorAlphaV5","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV5","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4Upgrade","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0x8584baE2E04A9481cBd8E896188f265fDD7136e1"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611d506100f95f395f8181610f9f01528181610fc8015261110c0152611d505ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a6101653660046116d7565b610453565b005b348015610177575f5ffd5b5061016a610186366004611779565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff366004611799565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a61024536600461182c565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a6102783660046118d3565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c0366004611944565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a61036236600461195b565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be91906119b4565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc3660046119e9565b610ca3565b34801561040c575f5ffd5b506102d461041b366004611a04565b610d9b565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e3660046119e9565b610ef7565b5f8160015460026104649190611aab565b61046f906001611ac2565b600e811061047f5761047f611ad5565b602002015190505f8260015460026104979190611aab565b6104a2906002611ac2565b600e81106104b2576104b2611ad5565b602002015190505f8360015460026104ca9190611aab565b6104d5906003611ac2565b600e81106104e5576104e5611ad5565b602002015190505f8460015460026104fd9190611aab565b610508906004611ac2565b600e811061051857610518611ad5565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611b54565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611bb0565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610f39565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611bcf565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611bb0565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611ac2565b6009811061072457610724611ad5565b602002015190505f8483600254600361073d9190611ac2565b6107479190611ac2565b6009811061075757610757611ad5565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611c1f565b6009811061079157610791611ad5565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611ac2565b90506106fd565b505050505050565b61081e610f94565b61082782611038565b6108318282611040565b5050565b5f61083e611101565b505f516020611cfb5f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611ad5565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611ac2565b9050610852565b506004816108e1600283611c1f565b600481106108f1576108f1611ad5565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611c32565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611bb0565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611c1f565b600481106109c5576109c5611ad5565b60200201516004555050505050565b6109dc610f39565b6109e55f61114a565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611bb0565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611c82565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b03831690339030906111ba565b6006546040830151610b42916001600160a01b0384811692911690611227565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50506040805160608101825286518152868201516020808301919091528701518183015290516320cf0a3760e01b81525f9450738584baE2E04A9481cBd8E896188f265fDD7136e193506320cf0a379250610c0a9190600401611c9d565b602060405180830381865af4158015610c25573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c499190611ccd565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610c969083815260200190565b60405180910390a1505050565b5f610cac6112b6565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610cd35750825b90505f8267ffffffffffffffff166001148015610cef5750303b155b905081158015610cfd575080155b15610d1b5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610d4557845460ff60401b1916600160401b1785555b610d4e866112e0565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610da4610f39565b81516001600160a01b031615610dd6578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610e0e576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610e46576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610e7e576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610eb6576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610ec85760a08201515f555b60e082015115610edb5760e08201516001555b60c082015115610eee5760c08201516002555b5060015b919050565b610eff610f39565b6001600160a01b038116610f2d57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610f368161114a565b50565b33610f6b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610f24565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061101a57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661100e5f516020611cfb5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610f36610f39565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561109a575060408051601f3d908101601f1916820190925261109791810190611ccd565b60015b6110c257604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610f24565b5f516020611cfb5f395f51905f5281146110f257604051632a87526960e21b815260048101829052602401610f24565b6110fc83836112f1565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112219186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611346565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261127884826113b2565b611221576040516001600160a01b0384811660248301525f60448301526112ac91869182169063095ea7b3906064016111ef565b6112218482611346565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6112e86113fb565b610f3681611420565b6112fa82611428565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561133e576110fc828261148b565b6108316114fd565b5f5f60205f8451602086015f885af180611365576040513d5f823e3d81fd5b50505f513d9150811561137c578060011415611389565b6001600160a01b0384163b155b1561122157604051635274afe760e01b81526001600160a01b0385166004820152602401610f24565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156113f1575081156113e357806001146113f1565b5f866001600160a01b03163b115b9695505050505050565b61140361151c565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610eff6113fb565b806001600160a01b03163b5f0361145d57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610f24565b5f516020611cfb5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516114a79190611ce4565b5f60405180830381855af49150503d805f81146114df576040519150601f19603f3d011682016040523d82523d5f602084013e6114e4565b606091505b50915091506114f4858383611535565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115256112b6565b54600160401b900460ff16919050565b60608261154a5761154582611594565b61158d565b815115801561156157506001600160a01b0384163b155b1561158a57604051639996b31560e01b81526001600160a01b0385166004820152602401610f24565b50805b9392505050565b8051156115a357805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156115f4576115f46115bc565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715611623576116236115bc565b604052919050565b5f82601f83011261163a575f5ffd5b5f61164560406115fa565b9050806040840185811115611658575f5ffd5b845b8181101561167257803583526020928301920161165a565b509195945050505050565b5f82601f83011261168c575f5ffd5b6040611697816115fa565b8060808501868111156116a8575f5ffd5b855b818110156116cb576116bc888261162b565b845260209093019284016116aa565b50909695505050505050565b5f5f5f5f6102c085870312156116eb575f5ffd5b6116f5868661162b565b9350611704866040870161167d565b92506117138660c0870161162b565b91505f8661011f870112611725575f5ffd5b505f806101c0611734816115fa565b9150508091506102c087018881111561174b575f5ffd5b61010088015b81811015611769578035845260209384019301611751565b5050809250505092959194509250565b5f5f6040838503121561178a575f5ffd5b50508035926020909101359150565b5f5f5f5f61022085870312156117ad575f5ffd5b6117b7868661162b565b93506117c6866040870161167d565b92506117d58660c0870161162b565b91505f8661011f8701126117e7575f5ffd5b505f806101206117f6816115fa565b91505080915061022087018881111561174b575f5ffd5b6001600160a01b0381168114610f36575f5ffd5b8035610ef28161180d565b5f5f6040838503121561183d575f5ffd5b82356118488161180d565b9150602083013567ffffffffffffffff811115611863575f5ffd5b8301601f81018513611873575f5ffd5b803567ffffffffffffffff81111561188d5761188d6115bc565b6118a0601f8201601f19166020016115fa565b8181528660208385010111156118b4575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f61018085870312156118e7575f5ffd5b6118f1868661162b565b9350611900866040870161167d565b925061190f8660c0870161162b565b91505f8661011f870112611921575f5ffd5b505f8061192e60806115fa565b905080915061018087018881111561174b575f5ffd5b5f60208284031215611954575f5ffd5b5035919050565b5f606082840312801561196c575f5ffd5b506040516060810167ffffffffffffffff81118282101715611990576119906115bc565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f602082840312156119f9575f5ffd5b813561158d8161180d565b5f610100828403128015611a16575f5ffd5b50611a1f6115d0565b8235611a2a8161180d565b8152611a3860208401611821565b6020820152611a4960408401611821565b6040820152611a5a60608401611821565b6060820152611a6b60808401611821565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176112da576112da611a97565b808201808211156112da576112da611a97565b634e487b7160e01b5f52603260045260245ffd5b805f5b6002811015611221578151845260209384019390910190600101611aec565b805f5b6002811015611221578151845f5b6002811015611b3b578251825260209283019290910190600101611b1c565b5050506040939093019260209190910190600101611b0e565b6102c08101611b638287611ae9565b611b706040830186611b0b565b611b7d60c0830185611ae9565b6101008201835f5b600e811015611ba4578151835260209283019290910190600101611b85565b50505095945050505050565b5f60208284031215611bc0575f5ffd5b8151801515811461158d575f5ffd5b6102208101611bde8287611ae9565b611beb6040830186611b0b565b611bf860c0830185611ae9565b6101008201835f5b6009811015611ba4578151835260209283019290910190600101611c00565b818103818111156112da576112da611a97565b6101808101611c418287611ae9565b611c4e6040830186611b0b565b611c5b60c0830185611ae9565b6101008201835f5b6004811015611ba4578151835260209283019290910190600101611c63565b5f60208284031215611c92575f5ffd5b815161158d8161180d565b6060810181835f5b6003811015611cc4578151835260209283019290910190600101611ca5565b50505092915050565b5f60208284031215611cdd575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220ec0292336c6fbd211a766dffd36cedf66fe031f96ab72b4de58aa9fe3bea751664736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteractionId":1,"nonce":881,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","networkInteractionId":1,"nonce":881,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"26614261"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001781"}},"hash":"0x3702c1f070f0a63f60580b6e478851d7ad0a42792b3cfc3ea97606674928e302"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","hash":"0x3702c1f070f0a63f60580b6e478851d7ad0a42792b3cfc3ea97606674928e302","networkInteractionId":1,"receipt":{"blockHash":"0x347486239ac7b814e5a9804711f7ee408e0ca561b926d57f50f4f4f36d071772","blockNumber":10397300,"contractAddress":"0x3482BB877fdd5A25c7328fA85C2d9A134E348b85","logs":[{"address":"0x3482BB877fdd5A25c7328fA85C2d9A134E348b85","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":593,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation","result":{"address":"0x3482BB877fdd5A25c7328fA85C2d9A134E348b85","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x3482BB877fdd5A25c7328fA85C2d9A134E348b85","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef2860000000000000000000000003482bb877fdd5a25c7328fa85c2d9a134e348b8500000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteractionId":1,"nonce":882,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","networkInteractionId":1,"nonce":882,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"28225583"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001781"}},"hash":"0x09abcc92c876bec2f14f187507cb9229c1298485408cf744c514e8ff496e98ed"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","hash":"0x09abcc92c876bec2f14f187507cb9229c1298485408cf744c514e8ff496e98ed","networkInteractionId":1,"receipt":{"blockHash":"0x2a56ffae9d5e0414eeaaef9f04607a9673ba9497a4bbd11cbe5ca484724f2497","blockNumber":10397305,"logs":[{"address":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","data":"0x","logIndex":757,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000003482bb877fdd5a25c7328fa85c2d9a134e348b85"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#withdrawVerifierV3","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlphaV3_2","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b5061149a8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b366004611300565b610054565b604051901515815260200160405180910390f35b5f61005d611127565b604080518082018252875181526020808901518183015290835281516080810183528751518184019081528851830151606083015281528251808401845288830180515182525183015181840152818301528382015281518083018352865181528682015181830152838301528151600980825261014082019093525f9290918201610120803683370190505090505f5b600981101561013357848160098110610109576101096113e0565b6020020151828281518110610120576101206113e0565b60209081029190910101526001016100ee565b5061013e818361015d565b5f0361014f57600192505050610155565b5f925050505b949350505050565b5f7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000181610188610344565b90508060800151518551600161019e9190611408565b146101e55760405162461bcd60e51b81526020600482015260126024820152711d995c9a599a595c8b5898590b5a5b9c1d5d60721b60448201526064015b60405180910390fd5b604080518082019091525f808252602082018190525b86518110156102cb5783878281518110610217576102176113e0565b60200260200101511061026c5760405162461bcd60e51b815260206004820152601f60248201527f76657269666965722d6774652d736e61726b2d7363616c61722d6669656c640060448201526064016101dc565b6102c1826102bc85608001518460016102859190611408565b81518110610295576102956113e0565b60200260200101518a85815181106102af576102af6113e0565b6020026020010151610a94565b610b28565b91506001016101fb565b506102f38183608001515f815181106102e6576102e66113e0565b6020026020010151610b28565b9050610327610304865f0151610bbf565b8660200151845f015185602001518587604001518b604001518960600151610c5b565b610337576001935050505061033e565b5f93505050505b92915050565b61034c611175565b6040805180820182527f245229d9b076b3c0e8a4d70bde8c1cccffa08a9fae7557b165b3b0dbd653e2c781527f253ec85988dbb84e46e94b5efa3373b47a000b4ac6c86b2d4b798d274a1823026020808301919091529083528151608080820184527f07090a82e8fabbd39299be24705b92cf208ee8b3487f6f2b39ff27978a29a1db8285019081527f2424bcc1f60a5472685fd50705b2809626e170120acaf441e133a2bd5e61d244606080850191909152908352845180860186527f0ae1135cffdaf227c5dc266740607aa930bc3bd92ddc2b135086d9da2dfd3e2a81527f2b86859fd3d55c9d150fb3f0aeba798826493dd73d357ab0f9fdaced9fc81829818601528385015285840192909252835180820185527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c28186019081527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed828501528152845180860186527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b81527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa818601528185015285850152835190810184527f05d000ba4551c1fa877c7a46107992624c3d99a3e6bdd57c50698771b613cc298185019081527f1ecc95a1dbdbe4f8cef976bf22affb6de7fa33cb89b48d77bead7102ad139892828401528152835180850185527f21db75587cbe02e9192f9b5f2b763c99648c02dd6b6a4c96c20df72fb841418a81527f2af9f7e11a5a29cdcb4b532c39193095513331f2834798b89072b995ad356a898185015281840152908401528151600a8082526101608201909352919082015b604080518082019091525f80825260208201528152602001906001900390816105c857505060808201908152604080518082019091527f2660af19967ed5580208a84497fbdd099f460ed85561c98f23edb4a0384dcf7f81527f210fa1941084636ec27feec1eb19e46b9b48bfa53b306d017ae5963efad52a436020820152905180515f90610659576106596113e0565b602002602001018190525060405180604001604052807f2083fd8b0b70f84ff529e805d135f4a43429faa7993c7722807ae7a190df845581526020017f28811e77761972df5b4960cb74319c488f4edbeddc48333c6d4d1a6bf413ca3481525081608001516001815181106106d0576106d06113e0565b602002602001018190525060405180604001604052807f13dfc5473a9989ab659e0b9a6334f6941bc90555d51e4bca722dae72810e989881526020017f013b58637f2dae5dcc9fc8fbebfc8b1381840813185e0fb647f05168c697540c8152508160800151600281518110610747576107476113e0565b602002602001018190525060405180604001604052807f1c44dcfc07f5f9ae2c637ff60d5a89d2c1713bca6aff265abcb28620a852c34281526020017f19330ccf92e4c27c2b591f021a828cca5edab6049a9d1062686fd796b6d3f52d81525081608001516003815181106107be576107be6113e0565b602002602001018190525060405180604001604052807f23d7191b87dd317ce4294b631c1ce03e454f61c038c5d9c601c8abcc5003816b81526020017f21b455e02d8d7aa7549f9e769915f44c954cbc965220a0c8f61c0c1a367509818152508160800151600481518110610835576108356113e0565b602002602001018190525060405180604001604052807f2226e11fa0ed282b86920337d75253929cdead5afa79adbc98bbf0786a21503081526020017eab0bd68fd9de0ee282bc419521c647a219f5075248f5ebfb2016464f50ba1a81525081608001516005815181106108ab576108ab6113e0565b602002602001018190525060405180604001604052807f21a6f2274e37865052daf09f57ee7d7dafbc1d60cc54e26ab82120b995ed12f481526020017f0b5c832b69ae80552e1d9402009efab37ce39eb97825b4b343f5ea9581b31c1b8152508160800151600681518110610922576109226113e0565b602002602001018190525060405180604001604052807f091ecf7419c3a24ba36564b86a4859fd8f00157103bb0759ea5ba4928bfe460b81526020017f105c38b8731b3cbeed64c9c7e1aa313538e21302828e2f95fb3b05d777a0f7d88152508160800151600781518110610999576109996113e0565b602002602001018190525060405180604001604052807f100d9113bd2a6d16e7682a168a313a92f111d97fa62ab66b9b60339ab7edd8cf81526020017f0db625617d7f1e384b7fd3bfa6625ce178ced385ea8bef33da11938d7ebc389d8152508160800151600881518110610a1057610a106113e0565b602002602001018190525060405180604001604052807ec8fdc7d85d6600498e56ca6e7082bef46e29858708e318188919835ac6878881526020017f0c567e014f5306e60d7e0d42f3e9216db8a9837c77f300ff203b05060360a30a8152508160800151600981518110610a8657610a866113e0565b602002602001018190525090565b604080518082019091525f8082526020820152610aaf6111c5565b8351815260208085015190820152604081018390525f60608360808460076107d05a03fa90508080610add57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5b5d5b0b59985a5b195960721b60448201526064016101dc565b505092915050565b604080518082019091525f8082526020820152610b436111e3565b8351815260208085015181830152835160408301528301516060808301919091525f908360c08460066107d05a03fa90508080610b7c57fe5b5080610b205760405162461bcd60e51b81526020600482015260126024820152711c185a5c9a5b99cb5859190b59985a5b195960721b60448201526064016101dc565b604080518082019091525f808252602082015281517f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4790158015610c0557506020830151155b15610c24575050604080518082019091525f8082526020820152919050565b6040518060400160405280845f01518152602001828560200151610c48919061141b565b610c52908461143a565b90529392505050565b60408051600480825260a082019092525f91829190816020015b604080518082019091525f8082526020820152815260200190600190039081610c7557505060408051600480825260a082019092529192505f9190602082015b610cbd611201565b815260200190600190039081610cb55790505090508a825f81518110610ce557610ce56113e0565b60200260200101819052508882600181518110610d0457610d046113e0565b60200260200101819052508682600281518110610d2357610d236113e0565b60200260200101819052508482600381518110610d4257610d426113e0565b602002602001018190525089815f81518110610d6057610d606113e0565b60200260200101819052508781600181518110610d7f57610d7f6113e0565b60200260200101819052508581600281518110610d9e57610d9e6113e0565b60200260200101819052508381600381518110610dbd57610dbd6113e0565b6020026020010181905250610dd28282610de1565b9b9a5050505050505050505050565b5f8151835114610e2c5760405162461bcd60e51b81526020600482015260166024820152751c185a5c9a5b99cb5b195b99dd1a1ccb59985a5b195960521b60448201526064016101dc565b82515f610e3a82600661144d565b90505f8167ffffffffffffffff811115610e5657610e5661125d565b604051908082528060200260200182016040528015610e7f578160200160208202803683370190505b5090505f5b838110156110ac57868181518110610e9e57610e9e6113e0565b60200260200101515f015182826006610eb7919061144d565b610ec1905f611408565b81518110610ed157610ed16113e0565b602002602001018181525050868181518110610eef57610eef6113e0565b60200260200101516020015182826006610f09919061144d565b610f14906001611408565b81518110610f2457610f246113e0565b602002602001018181525050858181518110610f4257610f426113e0565b6020908102919091010151515182610f5b83600661144d565b610f66906002611408565b81518110610f7657610f766113e0565b602002602001018181525050858181518110610f9457610f946113e0565b60209081029190910181015151015182610faf83600661144d565b610fba906003611408565b81518110610fca57610fca6113e0565b602002602001018181525050858181518110610fe857610fe86113e0565b6020026020010151602001515f60028110611005576110056113e0565b60200201518261101683600661144d565b611021906004611408565b81518110611031576110316113e0565b60200260200101818152505085818151811061104f5761104f6113e0565b60200260200101516020015160016002811061106d5761106d6113e0565b60200201518261107e83600661144d565b611089906005611408565b81518110611099576110996113e0565b6020908102919091010152600101610e84565b506110b5611221565b5f602082602086026020860160086107d05a03fa905080806110d357fe5b50806111195760405162461bcd60e51b81526020600482015260156024820152741c185a5c9a5b99cb5bdc18dbd9194b59985a5b1959605a1b60448201526064016101dc565b505115159695505050505050565b6040805160a081019091525f606082018181526080830191909152815260208101611150611201565b815260200161117060405180604001604052805f81526020015f81525090565b905290565b6040805160e081019091525f60a0820181815260c083019190915281526020810161119e611201565b81526020016111ab611201565b81526020016111b8611201565b8152602001606081525090565b60405180606001604052806003906020820280368337509192915050565b60405180608001604052806004906020820280368337509192915050565b604051806040016040528061121461123f565b815260200161117061123f565b60405180602001604052806001906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156112a657634e487b7160e01b5f52604160045260245ffd5b604052919050565b5f82601f8301126112bd575f5ffd5b5f6112c86040611271565b90508060408401858111156112db575f5ffd5b845b818110156112f55780358352602092830192016112dd565b509195945050505050565b5f5f5f5f6102208587031215611314575f5ffd5b61131e86866112ae565b935085605f86011261132e575f5ffd5b604061133981611271565b8060c088018981111561134a575f5ffd5b604089015b81811015611370576113618b826112ae565b8452602090930192840161134f565b5081965061137e8a826112ae565b95505050505061010085015f87601f830112611398575f5ffd5b5f6101206113a581611271565b91508301818a8211156113b6575f5ffd5b5b818510156113cf5784358152602094850194016113b7565b509699959850939650929450505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033e5761033e6113f4565b5f8261143557634e487b7160e01b5f52601260045260245ffd5b500690565b8181038181111561033e5761033e6113f4565b808202811582820484141761033e5761033e6113f456fea2646970667358221220ee56b55b73586c11a0ad84b93a1c92445f7a65f7be9aeed3d1e4fbaef2220a4364736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteractionId":1,"nonce":883,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","networkInteractionId":1,"nonce":883,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"28566389"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001781"}},"hash":"0x1cdae455fce5f63b9351aab230430ae06a766cb565459ce19ffe9d6f306660bc"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","hash":"0x1cdae455fce5f63b9351aab230430ae06a766cb565459ce19ffe9d6f306660bc","networkInteractionId":1,"receipt":{"blockHash":"0xf087cad86a73b172f3a83c31c9240e2810995fdea3cb34b9e82e7309b980be4c","blockNumber":10397310,"contractAddress":"0x542F0837199Cd45BdE8a58b7aBB10185C16C348A","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierV3","result":{"address":"0x542F0837199Cd45BdE8a58b7aBB10185C16C348A","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","withdrawVerifier":"0x542F0837199Cd45BdE8a58b7aBB10185C16C348A"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteraction":{"data":"0xcf101a4900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000542f0837199cd45bde8a58b7abb10185c16c348a00000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad00000000000000000000000072d356b815974ea1b8d49823a46294fc38ba41df000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":884,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","networkInteractionId":1,"nonce":884,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"28822325"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001781"}},"hash":"0xec6a6516c598bc232f31da5bb17c7df7259c43f04b403d52ed855404c19f5aef"},"type":"TRANSACTION_SEND"}
-{"args":["0x97FfCE8e772EA1594BE3C34F85B43e9c00522320"],"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","dependencies":["CurvyVault#CurvyVaultV5","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c00522320","id":1,"to":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":885,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":885,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"28822325"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001781"}},"hash":"0x8497fbb855f55e93ea2438435d0e519bdcc5b44e5e2474306aba1c315e8a3170"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","hash":"0xec6a6516c598bc232f31da5bb17c7df7259c43f04b403d52ed855404c19f5aef","networkInteractionId":1,"receipt":{"blockHash":"0x569eaee40cc16965645394c9c7741bc66974641684cb0736422c41f08d99c027","blockNumber":10397315,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","hash":"0x8497fbb855f55e93ea2438435d0e519bdcc5b44e5e2474306aba1c315e8a3170","networkInteractionId":1,"receipt":{"blockHash":"0x569eaee40cc16965645394c9c7741bc66974641684cb0736422c41f08d99c027","blockNumber":10397315,"logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c00522320","logIndex":393,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","type":"WIPE_APPLY"}
-{"futureId":"CurvyVault#CurvyVaultV5","type":"WIPE_APPLY"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","type":"WIPE_APPLY"}
-{"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","contractName":"CurvyVaultV5","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV5","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV5Implementation","constructorArgs":[],"contractName":"CurvyVaultV5","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV5Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220fd491bda775b94cc947797bcd0ac41b752963a10eb8562367f9c41712eda766664736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":886,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","networkInteractionId":1,"nonce":886,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"22998207"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001781"}},"hash":"0x781c8c31c8351167770e045305a8581502dd6efa3b3ef57177bd52c48c91a223"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","hash":"0x781c8c31c8351167770e045305a8581502dd6efa3b3ef57177bd52c48c91a223","networkInteractionId":1,"receipt":{"blockHash":"0xfdc11a60be0ab6a3259dc19a0440d91085055a1df6db5086dd4dc6bbb499adbc","blockNumber":10397372,"contractAddress":"0x64D17d6fa773Aca9170D3751B6c866b06B4471f6","logs":[{"address":"0x64D17d6fa773Aca9170D3751B6c866b06B4471f6","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":440,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV5Implementation","result":{"address":"0x64D17d6fa773Aca9170D3751B6c866b06B4471f6","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0x64D17d6fa773Aca9170D3751B6c866b06B4471f6","0x"],"artifactId":"CurvyVault#CurvyVaultV4","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","dependencies":["CurvyVault#CurvyVaultV4","CurvyVault#CurvyVaultV5Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef28600000000000000000000000064d17d6fa773aca9170d3751b6c866b06b4471f600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":887,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","networkInteractionId":1,"nonce":887,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"21902195"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001781"}},"hash":"0x3161a6d8f3e872634d4e2a3ebcc3c4b06711ac1ed8e10e8455c361e570346330"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","hash":"0x3161a6d8f3e872634d4e2a3ebcc3c4b06711ac1ed8e10e8455c361e570346330","networkInteractionId":1,"receipt":{"blockHash":"0x3be0c5c020bcb0a5bb43a3e04bda4627d2124854b4042c2110883ea9366861c5","blockNumber":10397377,"logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x","logIndex":563,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x00000000000000000000000064d17d6fa773aca9170d3751b6c866b06b4471f6"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV4.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":["0x97FfCE8e772EA1594BE3C34F85B43e9c00522320"],"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","dependencies":["CurvyVault#CurvyVaultV5","CurvyAggregatorAlpha#CurvyAggregatorAlphaV5"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c00522320","id":1,"to":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":888,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":888,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"21387703"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1001781"}},"hash":"0x76d456f757c3919b019630827a2f8e6fc3a9fb97c0f10d471362c46b4abf7a2c"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","hash":"0x76d456f757c3919b019630827a2f8e6fc3a9fb97c0f10d471362c46b4abf7a2c","networkInteractionId":1,"receipt":{"blockHash":"0xdbc0f49323d4a1fde04fc81fee09c2441759b6dfef841381c6ca051954f5a4cf","blockNumber":10397382,"logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c00522320","logIndex":681,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV5.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","contractName":"CurvyAggregatorAlphaV6","dependencies":["CurvyAggregatorAlpha#ERC1967Proxy"],"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","constructorArgs":[],"contractName":"CurvyAggregatorAlphaV6","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV4.upgradeToAndCall","CurvyAggregatorAlpha#PoseidonT4"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{"PoseidonT4":"0x8584baE2E04A9481cBd8E896188f265fDD7136e1"},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611e4b6100f95f395f81816110500152818161107901526111bd0152611e4b5ff3fe608060405260043610610147575f3560e01c806376775ce1116100b3578063ad3cb1cc1161006d578063ad3cb1cc14610386578063b974158a146103c3578063c4d66de8146103e2578063cf101a4914610401578063f157639414610420578063f2fde38b14610434575f5ffd5b806376775ce1146102a6578063864eb164146102e45780638ae11770146103035780638da5cb5b14610318578063a54149d414610354578063abed779014610367575f5ffd5b80633fb07027116101045780633fb07027146102185780634f1ef2861461023757806352d1902d1461024a5780636a085b501461025e578063715018a61461027d5780637584938314610291575f5ffd5b80631a82739b1461014b5780631dc436371461016c5780632654a8e61461018b57806329426cd0146101c7578063332ee0d5146101e5578063354d594b14610204575b5f5ffd5b348015610156575f5ffd5b5061016a610165366004611788565b610453565b005b348015610177575f5ffd5b5061016a61018636600461182a565b610603565b348015610196575f5ffd5b50600a546101aa906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d2575f5ffd5b506005545b6040519081526020016101be565b3480156101f0575f5ffd5b5061016a6101ff36600461184a565b610616565b34801561020f575f5ffd5b506101d75f5481565b348015610223575f5ffd5b506006546101aa906001600160a01b031681565b61016a6102453660046118dd565b610816565b348015610255575f5ffd5b506101d7610835565b348015610269575f5ffd5b5061016a610278366004611984565b610850565b348015610288575f5ffd5b5061016a6109d4565b34801561029c575f5ffd5b506101d760015481565b3480156102b1575f5ffd5b506102d46102c03660046119f5565b5f9081526003602052604090205460ff1690565b60405190151581526020016101be565b3480156102ef575f5ffd5b506009546101aa906001600160a01b031681565b34801561030e575f5ffd5b506101d760025481565b348015610323575f5ffd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101aa565b61016a610362366004611a0c565b6109e7565b348015610372575f5ffd5b506008546101aa906001600160a01b031681565b348015610391575f5ffd5b506103b6604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101be9190611a65565b3480156103ce575f5ffd5b506007546101aa906001600160a01b031681565b3480156103ed575f5ffd5b5061016a6103fc366004611a9a565b610d54565b34801561040c575f5ffd5b506102d461041b366004611ab5565b610e4c565b34801561042b575f5ffd5b506004546101d7565b34801561043f575f5ffd5b5061016a61044e366004611a9a565b610fa8565b5f8160015460026104649190611b5c565b61046f906001611b73565b600e811061047f5761047f611b86565b602002015190505f8260015460026104979190611b5c565b6104a2906002611b73565b600e81106104b2576104b2611b86565b602002015190505f8360015460026104ca9190611b5c565b6104d5906003611b73565b600e81106104e5576104e5611b86565b602002015190505f8460015460026104fd9190611b5c565b610508906004611b73565b600e811061051857610518611b86565b6020020151905081600454146105415760405163215fc8af60e11b815260040160405180910390fd5b8360055414610563576040516322e685b360e11b815260040160405180910390fd5b600854604051638d15f88f60e01b81526001600160a01b0390911690638d15f88f90610599908b908b908b908b90600401611c05565b602060405180830381865afa1580156105b4573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105d89190611c61565b6105f5576040516309bde33960e01b815260040160405180910390fd5b600455506005555050505050565b61060b610fea565b600491909155600555565b60055460408201511461063c576040516322e685b360e11b815260040160405180910390fd5b6004546020820151146106625760405163215fc8af60e11b815260040160405180910390fd5b60095460405163c542c93b60e01b81526001600160a01b039091169063c542c93b90610698908790879087908790600401611c80565b602060405180830381865afa1580156106b3573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106d79190611c61565b6106f4576040516309bde33960e01b815260040160405180910390fd5b805160055560095f5b60025481101561080e575f83610714836003611b73565b6009811061072457610724611b86565b602002015190505f8483600254600361073d9190611b73565b6107479190611b73565b6009811061075757610757611b86565b6020020151905081156107f9576006546001600160a01b031663e63697c886610781600188611cd0565b6009811061079157610791611b86565b60200201516040516001600160e01b031960e084901b16815260048101919091526001600160a01b0384166024820152604481018590526064015f604051808303815f87803b1580156107e2575f5ffd5b505af11580156107f4573d5f5f3e3d5ffd5b505050505b506108079050600182611b73565b90506106fd565b505050505050565b61081e611045565b610827826110e9565b61083182826110f1565b5050565b5f61083e6111b2565b505f516020611df65f395f51905f5290565b5f5b5f548110156108d2575f82826004811061086e5761086e611b86565b6020020151905080156108bf575f8181526003602052604090205460ff166108a95760405163a18652d560e01b815260040160405180910390fd5b5f818152600360205260409020805460ff191690555b506108cb600182611b73565b9050610852565b506004816108e1600283611cd0565b600481106108f1576108f1611b86565b60200201516004541461091757604051633a54868960e01b815260040160405180910390fd5b600754604051635fe8c13b60e01b81526001600160a01b0390911690635fe8c13b9061094d908890889088908890600401611ce3565b602060405180830381865afa158015610968573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061098c9190611c61565b6109a9576040516309bde33960e01b815260040160405180910390fd5b816109b5600183611cd0565b600481106109c5576109c5611b86565b60200201516004555050505050565b6109dc610fea565b6109e55f6111fb565b565b600a5460405163eb2347fd60e01b81523360048201526001600160a01b039091169063eb2347fd90602401602060405180830381865afa158015610a2d573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a519190611c61565b610a6e5760405163082cec1d60e01b815260040160405180910390fd5b6006546020820151604051630cf99be760e31b815260048101919091525f916001600160a01b0316906367ccdf3890602401602060405180830381865afa158015610abb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610adf9190611d33565b90506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610b42576040820151610b22906001600160a01b038316903390309061126b565b6006546040830151610b42916001600160a01b03848116929116906112d8565b6006546040838101519051638340f54960e01b81526001600160a01b0384811660048301523060248301526044820192909252911690638340f5499034906064015f604051808303818588803b158015610b9a575f5ffd5b505af1158015610bac573d5f5f3e3d5ffd5b50505050505f61271060065f9054906101000a90046001600160a01b03166001600160a01b03166367a527936040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c299190611d4e565b6bffffffffffffffffffffffff168460400151610c469190611b5c565b610c509190611d79565b90505f738584baE2E04A9481cBd8E896188f265fDD7136e16320cf0a376040518060600160405280875f01518152602001858860400151610c919190611cd0565b815260200187602001518152506040518263ffffffff1660e01b8152600401610cba9190611d98565b602060405180830381865af4158015610cd5573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cf99190611dc8565b5f8181526003602052604090819020805460ff19166001179055519091507f085eb711e9033934898875f6926d3a98c49bae62c73a015160bc22993aae4bee90610d469083815260200190565b60405180910390a150505050565b5f610d5d611367565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610d845750825b90505f8267ffffffffffffffff166001148015610da05750303b155b905081158015610dae575080155b15610dcc5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610df657845460ff60401b1916600160401b1785555b610dff86611391565b831561080e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f610e55610fea565b81516001600160a01b031615610e87578151600780546001600160a01b0319166001600160a01b039092169190911790555b60208201516001600160a01b031615610ebf576020820151600880546001600160a01b0319166001600160a01b039092169190911790555b60408201516001600160a01b031615610ef7576040820151600980546001600160a01b0319166001600160a01b039092169190911790555b60608201516001600160a01b031615610f2f576060820151600680546001600160a01b0319166001600160a01b039092169190911790555b60808201516001600160a01b031615610f67576080820151600a80546001600160a01b0319166001600160a01b039092169190911790555b60a082015115610f795760a08201515f555b60e082015115610f8c5760e08201516001555b60c082015115610f9f5760c08201516002555b5060015b919050565b610fb0610fea565b6001600160a01b038116610fde57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610fe7816111fb565b50565b3361101c7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146109e55760405163118cdaa760e01b8152336004820152602401610fd5565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110cb57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110bf5f516020611df65f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156109e55760405163703e46dd60e11b815260040160405180910390fd5b610fe7610fea565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561114b575060408051601f3d908101601f1916820190925261114891810190611dc8565b60015b61117357604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610fd5565b5f516020611df65f395f51905f5281146111a357604051632a87526960e21b815260048101829052602401610fd5565b6111ad83836113a2565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146109e55760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b0384811660248301528381166044830152606482018390526112d29186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506113f7565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526113298482611463565b6112d2576040516001600160a01b0384811660248301525f604483015261135d91869182169063095ea7b3906064016112a0565b6112d284826113f7565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005b92915050565b6113996114ac565b610fe7816114d1565b6113ab826114d9565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156113ef576111ad828261153c565b6108316115ae565b5f5f60205f8451602086015f885af180611416576040513d5f823e3d81fd5b50505f513d9150811561142d57806001141561143a565b6001600160a01b0384163b155b156112d257604051635274afe760e01b81526001600160a01b0385166004820152602401610fd5565b5f5f5f5f60205f8651602088015f8a5af192503d91505f5190508280156114a25750811561149457806001146114a2565b5f866001600160a01b03163b115b9695505050505050565b6114b46115cd565b6109e557604051631afcd79f60e31b815260040160405180910390fd5b610fb06114ac565b806001600160a01b03163b5f0361150e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610fd5565b5f516020611df65f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516115589190611ddf565b5f60405180830381855af49150503d805f8114611590576040519150601f19603f3d011682016040523d82523d5f602084013e611595565b606091505b50915091506115a58583836115e6565b95945050505050565b34156109e55760405163b398979f60e01b815260040160405180910390fd5b5f6115d6611367565b54600160401b900460ff16919050565b6060826115fb576115f682611645565b61163e565b815115801561161257506001600160a01b0384163b155b1561163b57604051639996b31560e01b81526001600160a01b0385166004820152602401610fd5565b50805b9392505050565b80511561165457805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b604051610100810167ffffffffffffffff811182821017156116a5576116a561166d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156116d4576116d461166d565b604052919050565b5f82601f8301126116eb575f5ffd5b5f6116f660406116ab565b9050806040840185811115611709575f5ffd5b845b8181101561172357803583526020928301920161170b565b509195945050505050565b5f82601f83011261173d575f5ffd5b6040611748816116ab565b806080850186811115611759575f5ffd5b855b8181101561177c5761176d88826116dc565b8452602090930192840161175b565b50909695505050505050565b5f5f5f5f6102c0858703121561179c575f5ffd5b6117a686866116dc565b93506117b5866040870161172e565b92506117c48660c087016116dc565b91505f8661011f8701126117d6575f5ffd5b505f806101c06117e5816116ab565b9150508091506102c08701888111156117fc575f5ffd5b61010088015b8181101561181a578035845260209384019301611802565b5050809250505092959194509250565b5f5f6040838503121561183b575f5ffd5b50508035926020909101359150565b5f5f5f5f610220858703121561185e575f5ffd5b61186886866116dc565b9350611877866040870161172e565b92506118868660c087016116dc565b91505f8661011f870112611898575f5ffd5b505f806101206118a7816116ab565b9150508091506102208701888111156117fc575f5ffd5b6001600160a01b0381168114610fe7575f5ffd5b8035610fa3816118be565b5f5f604083850312156118ee575f5ffd5b82356118f9816118be565b9150602083013567ffffffffffffffff811115611914575f5ffd5b8301601f81018513611924575f5ffd5b803567ffffffffffffffff81111561193e5761193e61166d565b611951601f8201601f19166020016116ab565b818152866020838501011115611965575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f5f5f6101808587031215611998575f5ffd5b6119a286866116dc565b93506119b1866040870161172e565b92506119c08660c087016116dc565b91505f8661011f8701126119d2575f5ffd5b505f806119df60806116ab565b90508091506101808701888111156117fc575f5ffd5b5f60208284031215611a05575f5ffd5b5035919050565b5f6060828403128015611a1d575f5ffd5b506040516060810167ffffffffffffffff81118282101715611a4157611a4161166d565b60409081528335825260208085013590830152928301359281019290925250919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f60208284031215611aaa575f5ffd5b813561163e816118be565b5f610100828403128015611ac7575f5ffd5b50611ad0611681565b8235611adb816118be565b8152611ae9602084016118d2565b6020820152611afa604084016118d2565b6040820152611b0b606084016118d2565b6060820152611b1c608084016118d2565b608082015260a0838101359082015260c0808401359082015260e0928301359281019290925250919050565b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761138b5761138b611b48565b8082018082111561138b5761138b611b48565b634e487b7160e01b5f52603260045260245ffd5b805f5b60028110156112d2578151845260209384019390910190600101611b9d565b805f5b60028110156112d2578151845f5b6002811015611bec578251825260209283019290910190600101611bcd565b5050506040939093019260209190910190600101611bbf565b6102c08101611c148287611b9a565b611c216040830186611bbc565b611c2e60c0830185611b9a565b6101008201835f5b600e811015611c55578151835260209283019290910190600101611c36565b50505095945050505050565b5f60208284031215611c71575f5ffd5b8151801515811461163e575f5ffd5b6102208101611c8f8287611b9a565b611c9c6040830186611bbc565b611ca960c0830185611b9a565b6101008201835f5b6009811015611c55578151835260209283019290910190600101611cb1565b8181038181111561138b5761138b611b48565b6101808101611cf28287611b9a565b611cff6040830186611bbc565b611d0c60c0830185611b9a565b6101008201835f5b6004811015611c55578151835260209283019290910190600101611d14565b5f60208284031215611d43575f5ffd5b815161163e816118be565b5f60208284031215611d5e575f5ffd5b81516bffffffffffffffffffffffff8116811461163e575f5ffd5b5f82611d9357634e487b7160e01b5f52601260045260245ffd5b500490565b6060810181835f5b6003811015611dbf578151835260209283019290910190600101611da0565b50505092915050565b5f60208284031215611dd8575f5ffd5b5051919050565b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca26469706673582212208f2e8324f8bc31cb2ae1aae1c39b79771ef989b4fa1c757adc44a878fdc9f1bf64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","networkInteractionId":1,"nonce":912,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","networkInteractionId":1,"nonce":912,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000020"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xa5423e5172a2adbaf721d09d714904ccf5b08049737c29a6c018bd7b70ce0692"},"type":"TRANSACTION_SEND"}
-{"artifactId":"CurvyVault#CurvyVaultV6","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","contractName":"CurvyVaultV6","dependencies":["CurvyVault#ERC1967Proxy"],"futureId":"CurvyVault#CurvyVaultV6","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"CurvyVault#CurvyVaultV6Implementation","constructorArgs":[],"contractName":"CurvyVaultV6","dependencies":[],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyVault#CurvyVaultV6Implementation","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","networkInteraction":{"data":"0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611c7b6100f95f395f81816110420152818161106b01526111aa0152611c7b5ff3fe608060405260043610610130575f3560e01c80638bc7e8c4116100a8578063bab2af1d1161006d578063bab2af1d1461035d578063c4d66de81461037c578063e63697c81461039b578063efeecb51146103ba578063f1537686146103ce578063f2fde38b146103ed575f5ffd5b80638bc7e8c4146102a85780638da5cb5b146102c7578063acb2ad6f146102db578063ad3cb1cc14610301578063b17acdcd1461033e575f5ffd5b806367a52793116100f957806367a52793146101cd57806367ccdf3814610204578063715018a61461023b57806377e5614d1461024f5780638340f5491461026e57806384b0196e14610281575f5ffd5b8062fdd58e1461013457806309824a8014610166578063432c0553146101875780634f1ef286146101a657806352d1902d146101b9575b5f5ffd5b34801561013f575f5ffd5b5061015361014e366004611730565b61040c565b6040519081526020015b60405180910390f35b348015610171575f5ffd5b50610185610180366004611758565b610434565b005b348015610192575f5ffd5b506101856101a1366004611771565b610501565b6101856101b436600461179e565b610596565b3480156101c4575f5ffd5b506101536105b5565b3480156101d8575f5ffd5b506005546101ec906001600160601b031681565b6040516001600160601b03909116815260200161015d565b34801561020f575f5ffd5b5061022361021e366004611862565b6105d0565b6040516001600160a01b03909116815260200161015d565b348015610246575f5ffd5b5061018561060a565b34801561025a575f5ffd5b50610185610269366004611758565b61061d565b61018561027c366004611879565b61067b565b34801561028c575f5ffd5b506102956108d8565b60405161015d97969594939291906118e1565b3480156102b3575f5ffd5b506006546101ec906001600160601b031681565b3480156102d2575f5ffd5b50610223610986565b3480156102e6575f5ffd5b506005546101ec90600160601b90046001600160601b031681565b34801561030c575f5ffd5b50610331604051806040016040528060058152602001640352e302e360dc1b81525081565b60405161015d9190611977565b348015610349575f5ffd5b50610185610358366004611862565b6109b4565b348015610368575f5ffd5b50610185610377366004611758565b610a9a565b348015610387575f5ffd5b50610185610396366004611758565b610b4a565b3480156103a6575f5ffd5b506101856103b5366004611989565b610d31565b3480156103c5575f5ffd5b50600254610153565b3480156103d9575f5ffd5b506101536103e8366004611758565b610f8f565b3480156103f8575f5ffd5b50610185610407366004611758565b610fc8565b6001600160a01b0382165f908152602081815260408083208484529091529020545b92915050565b61043c611005565b6001600160a01b0381165f908152600360205260409020541561047257604051633ea7ffd960e11b815260040160405180910390fd5b60028054905f610481836119bf565b9091555050600280545f90815260046020908152604080832080546001600160a01b0319166001600160a01b038716908117909155935484845260038352928190208390558051938452908301919091527ff977d54986414fc91816901629d1d788ad95448ab4198dcb9b6dc5ed2b930c1f91015b60405180910390a150565b610509611005565b61051660208201826119ed565b600580546001600160601b0319166001600160601b039290921691909117905561054660408201602083016119ed565b600680546001600160601b0319166001600160601b03929092169190911790556040517f05b0d5368126ccdf14c78784aaaf9b84ef107f0da56a648b96377e939a745b91906104f6908390611a06565b61059e611037565b6105a7826110db565b6105b182826110e3565b5050565b5f6105be61119f565b505f516020611c265f395f51905f5290565b5f818152600460205260409020546001600160a01b0316806106055760405163259ba1ad60e01b815260040160405180910390fd5b919050565b610612611005565b61061b5f6111e8565b565b610625611005565b600680546001600160601b0316600160601b6001600160a01b038416908102919091179091556040519081527f655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31906020016104f6565b600654600160601b90046001600160a01b031633146106ad57604051631ef0010360e21b815260040160405180910390fd5b6001600160a01b0382166106d457604051634e46966960e11b815260040160405180910390fd5b5f6001600160a01b03841673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461076c57341561071857604051633c9fd93960e21b815260040160405180910390fd5b506001600160a01b0383165f90815260036020526040812054908190036107525760405163259ba1ad60e01b815260040160405180910390fd5b6107676001600160a01b038516333085611258565b610790565b34821461078c5760405163b12d13eb60e01b815260040160405180910390fd5b5060015b6001600160a01b0383165f90815260208181526040808320848452909152812080548492906107c0908490611a3e565b90915550506005546001600160601b031615610885576005545f90612710906107f2906001600160601b031685611a51565b6107fc9190611a68565b6001600160a01b0385165f90815260208181526040808320868452909152812080549293508392909190610831908490611a87565b909155508190505f80610842610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f82825461087e9190611a3e565b9091555050505b826001600160a01b0316846001600160a01b03167f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f62846040516108ca91815260200190565b60405180910390a350505050565b5f60608082808083815f516020611c065f395f51905f52805490915015801561090357506001810154155b61094c5760405162461bcd60e51b81526020600482015260156024820152741152540dcc4c8e88155b9a5b9a5d1a585b1a5e9959605a1b60448201526064015b60405180910390fd5b6109546112bf565b61095c61137f565b604080515f80825260208201909252600f60f81b9c939b5091995046985030975095509350915050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6109bc611005565b5f818152600460205260409020546001600160a01b0316806109f15760405163259ba1ad60e01b815260040160405180910390fd5b335f908152602081815260408083208584529091528120805491905560018314610a2e57610a296001600160a01b03831633836113bd565b505050565b6040515f90339083908381818185875af1925050503d805f8114610a6d576040519150601f19603f3d011682016040523d82523d5f602084013e610a72565b606091505b5050905080610a945760405163b12d13eb60e01b815260040160405180910390fd5b50505050565b610aa2611005565b6001600160a01b0381165f9081526003602052604081205490819003610adb5760405163259ba1ad60e01b815260040160405180910390fd5b6001600160a01b0382165f818152600360209081526040808320839055848352600482529182902080546001600160a01b0319169055815192835282018390527fb22138f13a420bba1ab2b64bc09fab38675c54bb673095a4c684db4966d07260910160405180910390a15050565b5f610b536113ee565b805490915060ff600160401b820416159067ffffffffffffffff165f81158015610b7a5750825b90505f8267ffffffffffffffff166001148015610b965750303b155b905081158015610ba4575080155b15610bc25760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610bec57845460ff60401b1916600160401b1785555b60017f40c35f83c179e47de306c9fe55fdc60064f11dd52adb51ab61b5643ee626f98d8190555f819052600460209081527fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0580546001600160a01b03191673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee179055600291909155604080518082018252601381527210dd5c9d9e48141c9a5d9858de4815985d5b1d606a1b81840152815180830190925260038252620312e360ec1b92820192909252610cb49190611416565b610cbd86611428565b600580546001600160c01b031916600a179055600680546001600160601b03191660141790558315610d2957845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b600654600160601b90046001600160a01b03163314801590610d6c5750610d56610986565b6001600160a01b0316336001600160a01b031614155b15610d8a57604051630314de4760e41b815260040160405180910390fd5b6001600160a01b038216610db157604051634e46966960e11b815260040160405180910390fd5b5f838152600460205260409020546001600160a01b031680610de65760405163259ba1ad60e01b815260040160405180910390fd5b335f9081526020818152604080832087845290915281208054849290610e0d908490611a87565b909155505060065482906001600160601b031615610ea8576006545f9061271090610e41906001600160601b031686611a51565b610e4b9190611a68565b9050805f5f610e58610986565b6001600160a01b03166001600160a01b031681526020019081526020015f205f8881526020019081526020015f205f828254610e949190611a3e565b90915550610ea490508183611a87565b9150505b60018514610ec957610ec46001600160a01b03831685836113bd565b610f3b565b5f846001600160a01b0316826040515f6040518083038185875af1925050503d805f8114610f12576040519150601f19603f3d011682016040523d82523d5f602084013e610f17565b606091505b5050905080610f395760405163b12d13eb60e01b815260040160405180910390fd5b505b836001600160a01b0316826001600160a01b03167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb85604051610f8091815260200190565b60405180910390a35050505050565b6001600160a01b0381165f90815260036020526040812054908190036106055760405163259ba1ad60e01b815260040160405180910390fd5b610fd0611005565b6001600160a01b038116610ff957604051631e4fbdf760e01b81525f6004820152602401610943565b611002816111e8565b50565b3361100e610986565b6001600160a01b03161461061b5760405163118cdaa760e01b8152336004820152602401610943565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806110bd57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166110b15f516020611c265f395f51905f52546001600160a01b031690565b6001600160a01b031614155b1561061b5760405163703e46dd60e11b815260040160405180910390fd5b611002611005565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561113d575060408051601f3d908101601f1916820190925261113a91810190611a9a565b60015b61116557604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610943565b5f516020611c265f395f51905f52811461119557604051632a87526960e21b815260048101829052602401610943565b610a298383611439565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061b5760405163703e46dd60e11b815260040160405180910390fd5b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b6040516001600160a01b038481166024830152838116604483015260648201839052610a949186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505061148e565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10280546060915f516020611c065f395f51905f52916112fd90611ab1565b80601f016020809104026020016040519081016040528092919081815260200182805461132990611ab1565b80156113745780601f1061134b57610100808354040283529160200191611374565b820191905f5260205f20905b81548152906001019060200180831161135757829003601f168201915b505050505091505090565b7fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d10380546060915f516020611c065f395f51905f52916112fd90611ab1565b6040516001600160a01b03838116602483015260448201839052610a2991859182169063a9059cbb9060640161128d565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0061042e565b61141e6114fa565b6105b1828261151f565b6114306114fa565b6110028161157e565b61144282611586565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561148657610a2982826115e9565b6105b161165b565b5f5f60205f8451602086015f885af1806114ad576040513d5f823e3d81fd5b50505f513d915081156114c45780600114156114d1565b6001600160a01b0384163b155b15610a9457604051635274afe760e01b81526001600160a01b0385166004820152602401610943565b61150261167a565b61061b57604051631afcd79f60e31b815260040160405180910390fd5b6115276114fa565b5f516020611c065f395f51905f527fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1026115608482611b34565b506003810161156f8382611b34565b505f8082556001909101555050565b610fd06114fa565b806001600160a01b03163b5f036115bb57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610943565b5f516020611c265f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516116059190611bef565b5f60405180830381855af49150503d805f811461163d576040519150601f19603f3d011682016040523d82523d5f602084013e611642565b606091505b5091509150611652858383611693565b95945050505050565b341561061b5760405163b398979f60e01b815260040160405180910390fd5b5f6116836113ee565b54600160401b900460ff16919050565b6060826116a8576116a3826116f2565b6116eb565b81511580156116bf57506001600160a01b0384163b155b156116e857604051639996b31560e01b81526001600160a01b0385166004820152602401610943565b50805b9392505050565b80511561170157805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160a01b0381168114610605575f5ffd5b5f5f60408385031215611741575f5ffd5b61174a8361171a565b946020939093013593505050565b5f60208284031215611768575f5ffd5b6116eb8261171a565b5f6040828403128015611782575f5ffd5b509092915050565b634e487b7160e01b5f52604160045260245ffd5b5f5f604083850312156117af575f5ffd5b6117b88361171a565b9150602083013567ffffffffffffffff8111156117d3575f5ffd5b8301601f810185136117e3575f5ffd5b803567ffffffffffffffff8111156117fd576117fd61178a565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561182c5761182c61178a565b604052818152828201602001871015611843575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215611872575f5ffd5b5035919050565b5f5f5f6060848603121561188b575f5ffd5b6118948461171a565b92506118a26020850161171a565b929592945050506040919091013590565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b60ff60f81b8816815260e060208201525f6118ff60e08301896118b3565b828103604084015261191181896118b3565b606084018890526001600160a01b038716608085015260a0840186905283810360c0850152845180825260208087019350909101905f5b81811015611966578351835260209384019390920191600101611948565b50909b9a5050505050505050505050565b602081525f6116eb60208301846118b3565b5f5f5f6060848603121561199b575f5ffd5b833592506118a26020850161171a565b634e487b7160e01b5f52601160045260245ffd5b5f600182016119d0576119d06119ab565b5060010190565b80356001600160601b0381168114610605575f5ffd5b5f602082840312156119fd575f5ffd5b6116eb826119d7565b604081016001600160601b03611a1b846119d7565b1682526001600160601b03611a32602085016119d7565b16602083015292915050565b8082018082111561042e5761042e6119ab565b808202811582820484141761042e5761042e6119ab565b5f82611a8257634e487b7160e01b5f52601260045260245ffd5b500490565b8181038181111561042e5761042e6119ab565b5f60208284031215611aaa575f5ffd5b5051919050565b600181811c90821680611ac557607f821691505b602082108103611ae357634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610a2957805f5260205f20601f840160051c81016020851015611b0e5750805b601f840160051c820191505b81811015611b2d575f8155600101611b1a565b5050505050565b815167ffffffffffffffff811115611b4e57611b4e61178a565b611b6281611b5c8454611ab1565b84611ae9565b6020601f821160018114611b94575f8315611b7d5750848201515b5f19600385901b1c1916600184901b178455611b2d565b5f84815260208120601f198516915b82811015611bc35787850151825560209485019460019092019101611ba3565b5084821015611be057868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f82518060208501845e5f92019182525091905056fea16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220abf4833af5f4eaf00c587d9249e43bdb81105120a948ba55ef3190468959dffb64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","networkInteractionId":1,"nonce":913,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","networkInteractionId":1,"nonce":913,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000020"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xdd3f64a189303c1b678641ca5926b133c8f475922cbddd7f2984eef33227a1b7"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","hash":"0xa5423e5172a2adbaf721d09d714904ccf5b08049737c29a6c018bd7b70ce0692","networkInteractionId":1,"receipt":{"blockHash":"0xb3895efbb1be426b5eba543d80eeaca9c0b14d3fc135e7c01bfe5e350390dfc1","blockNumber":10427447,"contractAddress":"0xfE753596d74145b8ec2F1C78e8eeD050FB17A73e","logs":[{"address":"0xfE753596d74145b8ec2F1C78e8eeD050FB17A73e","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":172,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation","result":{"address":"0xfE753596d74145b8ec2F1C78e8eeD050FB17A73e","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","hash":"0xdd3f64a189303c1b678641ca5926b133c8f475922cbddd7f2984eef33227a1b7","networkInteractionId":1,"receipt":{"blockHash":"0xb3895efbb1be426b5eba543d80eeaca9c0b14d3fc135e7c01bfe5e350390dfc1","blockNumber":10427447,"contractAddress":"0x7a725623696ef0303B110523D9A39DABd3C5c3c1","logs":[{"address":"0x7a725623696ef0303B110523D9A39DABd3C5c3c1","data":"0x000000000000000000000000000000000000000000000000ffffffffffffffff","logIndex":173,"topics":["0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV6Implementation","result":{"address":"0x7a725623696ef0303B110523D9A39DABd3C5c3c1","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":["0xfE753596d74145b8ec2F1C78e8eeD050FB17A73e","0x"],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5","CurvyAggregatorAlpha#CurvyAggregatorAlphaV6Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef286000000000000000000000000fe753596d74145b8ec2f1c78e8eed050fb17a73e00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","networkInteractionId":1,"nonce":914,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","networkInteractionId":1,"nonce":914,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000020"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xdfa2daf63a8dc1fc951a3188aba33eca7c9264888d4bbd94ddc1a37572c88c0b"},"type":"TRANSACTION_SEND"}
-{"args":["0x7a725623696ef0303B110523D9A39DABd3C5c3c1","0x"],"artifactId":"CurvyVault#CurvyVaultV5","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","dependencies":["CurvyVault#CurvyVaultV5","CurvyVault#CurvyVaultV6Implementation"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"upgradeToAndCall","futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","networkInteraction":{"data":"0x4f1ef2860000000000000000000000007a725623696ef0303b110523d9a39dabd3c5c3c100000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","networkInteractionId":1,"nonce":915,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","networkInteractionId":1,"nonce":915,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000020"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xd4d3584b438ff89c5b70f475f657b65b4577597f1d077f2cc8a2a6cda795e352"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","hash":"0xdfa2daf63a8dc1fc951a3188aba33eca7c9264888d4bbd94ddc1a37572c88c0b","networkInteractionId":1,"receipt":{"blockHash":"0x4440b051962d0302709db6201600b674521851296cb8177bf2c7b4c3c414dfab","blockNumber":10427452,"logs":[{"address":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","data":"0x","logIndex":400,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x000000000000000000000000fe753596d74145b8ec2f1c78e8eed050fb17a73e"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","hash":"0xd4d3584b438ff89c5b70f475f657b65b4577597f1d077f2cc8a2a6cda795e352","networkInteractionId":1,"receipt":{"blockHash":"0x4440b051962d0302709db6201600b674521851296cb8177bf2c7b4c3c414dfab","blockNumber":10427452,"logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x","logIndex":401,"topics":["0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b","0x0000000000000000000000007a725623696ef0303b110523d9a39dabd3c5c3c1"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyVault#CurvyVaultV5.upgradeToAndCall","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x72D356b815974eA1B8d49823a46294Fc38Ba41DF","withdrawVerifier":"0x542F0837199Cd45BdE8a58b7aBB10185C16C348A"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteraction":{"data":"0xcf101a4900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000542f0837199cd45bde8a58b7abb10185c16c348a00000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad00000000000000000000000072d356b815974ea1b8d49823a46294fc38ba41df000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":916,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":916,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000020"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x6374cf4879f37ddb42e444d56698fde76cabe63db600204df72d448685f8bf34"},"type":"TRANSACTION_SEND"}
-{"args":["0x97FfCE8e772EA1594BE3C34F85B43e9c00522320"],"artifactId":"CurvyVault#CurvyVaultV6","contractAddress":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","dependencies":["CurvyVault#CurvyVaultV6","CurvyAggregatorAlpha#CurvyAggregatorAlphaV6"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"setCurvyAggregatorAddress","futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","networkInteraction":{"data":"0x77e5614d00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c00522320","id":1,"to":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":917,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","networkInteractionId":1,"nonce":917,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000020"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x982b28d5bc42ea4893d59d3fd063a626ad9ef3cb880b1b73feede658dec939df"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","hash":"0x6374cf4879f37ddb42e444d56698fde76cabe63db600204df72d448685f8bf34","networkInteractionId":1,"receipt":{"blockHash":"0xfd33b88cefece84c409ad94236f172c5bbd7abbe6f027d03b7ea39dbaedfca61","blockNumber":10427457,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","hash":"0x982b28d5bc42ea4893d59d3fd063a626ad9ef3cb880b1b73feede658dec939df","networkInteractionId":1,"receipt":{"blockHash":"0xfd33b88cefece84c409ad94236f172c5bbd7abbe6f027d03b7ea39dbaedfca61","blockNumber":10427457,"logs":[{"address":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","data":"0x00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c00522320","logIndex":206,"topics":["0x655e5d85efd94f0a91c5daa6b61dc00c7047473c77ebf046c47ab252bd25ea31"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyVault~CurvyVaultV6.setCurvyAggregatorAddress","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV4.updateConfig","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#ReadEvent_PortalFactory","type":"WIPE_APPLY"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","type":"WIPE_APPLY"}
-{"args":["0x3374616765206d696861696c6f2c76616e6a6120637572767920706f77657200","0x7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"],"artifactId":"PortalFactory#CreateX","contractAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","dependencies":["PortalFactory#CreateX"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"deployCreate2(bytes32,bytes)","futureId":"PortalFactory#CreateX_PortalFactory","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteraction":{"data":"0x263076683374616765206d696861696c6f2c76616e6a6120637572767920706f7765720000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000001f4f7f63757276792d706f7274616c2d666163746f72792d73616c740000000000000060a052601960805260b96040527f0c1d487ad400ae94b5e3f681571516a683db363b3743ef8072d065745915e37e60015534801561005c575f5ffd5b50604051611f2f380380611f2f83398101604081905261007b91610108565b806001600160a01b0381166100a957604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6100b2816100b9565b5050610135565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610118575f5ffd5b81516001600160a01b038116811461012e575f5ffd5b9392505050565b611ded806101425f395ff3fe60806040526004361061009a575f3560e01c80635e8b95d2116100625780635e8b95d214610155578063715018a61461018c5780638da5cb5b146101a0578063e16ca895146101bc578063eb2347fd146101db578063f2fde38b14610212575f5ffd5b80630188ab0f1461009e57806303e62121146100d357806307922e19146100f457806311c9a94d146101075780632b4c74fa14610136575b5f5ffd5b3480156100a9575f5ffd5b506100bd6100b8366004610a54565b610231565b6040516100ca9190610a9b565b60405180910390f35b3480156100de575f5ffd5b506100f26100ed366004610b15565b6102c0565b005b6100f2610102366004610c34565b61052b565b348015610112575f5ffd5b50610126610121366004610c6a565b61065b565b60405190151581526020016100ca565b348015610141575f5ffd5b506100f2610150366004610cb2565b6106ef565b348015610160575f5ffd5b5061017461016f366004610d2a565b6108b6565b6040516001600160a01b0390911681526020016100ca565b348015610197575f5ffd5b506100f261090c565b3480156101ab575f5ffd5b505f546001600160a01b0316610174565b3480156101c7575f5ffd5b506101746101d6366004610d4d565b61091f565b3480156101e6575f5ffd5b506101266101f5366004610d81565b6001600160a01b03165f9081526005602052604090205460ff1690565b34801561021d575f5ffd5b506100f261022c366004610d81565b610976565b60605f6040518060200161024490610a33565b601f1982820381018352601f909101166040818152602082018990526001600160a01b03888116828401526060830188905286166080808401919091528151808403909101815260a083019091529192506102a5908390839060c001610dba565b60405160208183030381529060405292505050949350505050565b6004546001600160a01b03166102e95760405163437f3ac360e01b815260040160405180910390fd5b4682036103a0576004805460405163618c776d60e11b81525f926001600160a01b039092169163c318eeda91610323918c918c9101610dfe565b60a060405180830381865afa15801561033e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103629190610e21565b9050836001600160a01b031681604001516001600160a01b03161461039a5760405163523660f760e01b815260040160405180910390fd5b50610472565b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af916103d3918c918c9101610dfe565b5f60405180830381865afa1580156103ed573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526104149190810190610f43565b9050836001600160a01b03168160a001516001600160a01b03161461044c5760405163523660f760e01b815260040160405180910390fd5b828160e0015114610470576040516397c91b6960e01b815260040160405180910390fd5b505b5f61047f5f858585610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166104ba57604051633011642560e01b815260040160405180910390fd5b6004805460405163a31716bf60e01b81526001600160a01b038086169363a31716bf936104f2939216918f918f918f918f9101611052565b5f604051808303815f87803b158015610509575f5ffd5b505af115801561051b573d5f5f3e3d5ffd5b5050505050505050505050505050565b6105336109b8565b6002546001600160a01b0316158061055457506003546001600160a01b0316155b15610572576040516389da714f60e01b815260040160405180910390fd5b5f610582835f01515f5f85610231565b90505f5f60015490508083516020850134f591506001600160a01b0382166105bd57604051633011642560e01b815260040160405180910390fd5b6001600160a01b038281165f81815260056020908152604091829020805460ff191660011790556003546002548351631329a1a760e31b81528b516004820152928b01516024840152928a0151604483015284166064820152921660848301529063994d0d389060a4015f604051808303815f87803b15801561063e575f5ffd5b505af1158015610650573d5f5f3e3d5ffd5b505050505050505050565b5f6106646109b8565b6001600160a01b0384161561068f57600280546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156106ba57600380546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156106e557600480546001600160a01b0319166001600160a01b0384161790555b5060019392505050565b6004546001600160a01b03166107185760405163437f3ac360e01b815260040160405180910390fd5b60048054604051637f99d7af60e01b81525f926001600160a01b0390921691637f99d7af9161074b918a918a9101610dfe565b5f60405180830381865afa158015610765573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261078c9190810190610f43565b905061079b845f0151836108b6565b6001600160a01b03168160a001516001600160a01b0316146107d05760405163523660f760e01b815260040160405180910390fd5b61a4b18160e00151146107f6576040516397c91b6960e01b815260040160405180910390fd5b5f610806855f01515f5f86610231565b90505f5f60015490508083516020850134f591506001600160a01b03821661084157604051633011642560e01b815260040160405180910390fd5b600480546040808a0151905163a31716bf60e01b81526001600160a01b038087169463a31716bf9461087e949216928f928f9290918e9101611052565b5f604051808303815f87803b158015610895575f5ffd5b505af11580156108a7573d5f5f3e3d5ffd5b50505050505050505050505050565b5f5f6108c4845f5f86610231565b90505f60ff60f81b3060015484805190602001206040516020016108eb9493929190611098565b60408051808303601f19018152919052805160209091012095945050505050565b6109146109b8565b61091d5f6109e4565b565b5f5f61092d5f868686610231565b90505f60ff60f81b3060015484805190602001206040516020016109549493929190611098565b60408051808303601f1901815291905280516020909101209695505050505050565b61097e6109b8565b6001600160a01b0381166109ac57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6109b5816109e4565b50565b5f546001600160a01b0316331461091d5760405163118cdaa760e01b81523360048201526024016109a3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ce6806110d283390190565b6001600160a01b03811681146109b5575f5ffd5b5f5f5f5f60808587031215610a67575f5ffd5b843593506020850135610a7981610a40565b9250604085013591506060850135610a9081610a40565b939692955090935050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f83601f840112610ae0575f5ffd5b50813567ffffffffffffffff811115610af7575f5ffd5b602083019150836020828501011115610b0e575f5ffd5b9250929050565b5f5f5f5f5f5f5f60c0888a031215610b2b575f5ffd5b873567ffffffffffffffff811115610b41575f5ffd5b610b4d8a828b01610ad0565b909850965050602088013594506040880135610b6881610a40565b93506060880135610b7881610a40565b92506080880135915060a0880135610b8f81610a40565b8091505092959891949750929550565b634e487b7160e01b5f52604160045260245ffd5b604051610140810167ffffffffffffffff81118282101715610bd757610bd7610b9f565b60405290565b5f60608284031215610bed575f5ffd5b6040516060810167ffffffffffffffff81118282101715610c1057610c10610b9f565b60409081528335825260208085013590830152928301359281019290925250919050565b5f5f60808385031215610c45575f5ffd5b610c4f8484610bdd565b91506060830135610c5f81610a40565b809150509250929050565b5f5f5f60608486031215610c7c575f5ffd5b8335610c8781610a40565b92506020840135610c9781610a40565b91506040840135610ca781610a40565b809150509250925092565b5f5f5f5f5f60c08688031215610cc6575f5ffd5b853567ffffffffffffffff811115610cdc575f5ffd5b610ce888828901610ad0565b9096509450610cfc90508760208801610bdd565b92506080860135610d0c81610a40565b915060a0860135610d1c81610a40565b809150509295509295909350565b5f5f60408385031215610d3b575f5ffd5b823591506020830135610c5f81610a40565b5f5f5f60608486031215610d5f575f5ffd5b8335610d6a81610a40565b9250602084013591506040840135610ca781610a40565b5f60208284031215610d91575f5ffd5b8135610d9c81610a40565b9392505050565b5f81518060208401855e5f93019283525090919050565b5f610dce610dc88386610da3565b84610da3565b949350505050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b602081525f610dce602083018486610dd6565b8051610e1c81610a40565b919050565b5f60a0828403128015610e32575f5ffd5b5060405160a0810167ffffffffffffffff81118282101715610e5657610e56610b9f565b6040528251610e6481610a40565b8152602083810151908201526040830151610e7e81610a40565b60408201526060830151610e9181610a40565b60608201526080928301519281019290925250919050565b5f82601f830112610eb8575f5ffd5b815167ffffffffffffffff811115610ed257610ed2610b9f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610f0157610f01610b9f565b604052818152838201602001851015610f18575f5ffd5b8160208501602083015e5f918101602001919091529392505050565b80518015158114610e1c575f5ffd5b5f60208284031215610f53575f5ffd5b815167ffffffffffffffff811115610f69575f5ffd5b82016101408185031215610f7b575f5ffd5b610f83610bb3565b81518152602082015167ffffffffffffffff811115610fa0575f5ffd5b610fac86828501610ea9565b602083015250604082015167ffffffffffffffff811115610fcb575f5ffd5b610fd786828501610ea9565b604083015250610fe960608301610e11565b6060820152610ffa60808301610e11565b608082015261100b60a08301610e11565b60a082015260c0828101519082015260e080830151908201526110316101008301610f34565b6101008201526110446101208301610f34565b610120820152949350505050565b6001600160a01b03861681526080602082018190525f906110769083018688610dd6565b6040830194909452506001600160a01b03919091166060909101529392505050565b6001600160f81b031994909416845260609290921b6bffffffffffffffffffffffff19166001840152601583015260358201526055019056fe608060405234801561000f575f5ffd5b50604051610ce6380380610ce683398101604081905261002e916100e4565b6001600160a01b0381166100555760405163530a10d160e11b815260040160405180910390fd5b83156001600160a01b03841615148061006f575083158215145b1561008d57604051631d4deb8b60e31b815260040160405180910390fd5b5f93909355600180546001600160a01b039384166001600160a01b03199182161790915560029190915560058054929093169116179055610128565b80516001600160a01b03811681146100df575f5ffd5b919050565b5f5f5f5f608085870312156100f7575f5ffd5b84519350610107602086016100c9565b6040860151909350915061011d606086016100c9565b905092959194509250565b610bb1806101355f395ff3fe608060405234801561000f575f5ffd5b5060043610610060575f3560e01c80633fb07027146100645780635dc24ee314610093578063648bf774146100a6578063994d0d38146100bb578063a31716bf146100ce578063ddceafa9146100e1575b5f5ffd5b600454610077906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b600354610077906001600160a01b031681565b6100b96100b43660046109ce565b6100f4565b005b6100b96100c9366004610a05565b610296565b6100b96100dc366004610a95565b610595565b600554610077906001600160a01b031681565b6005546001600160a01b0316331461014b5760405162461bcd60e51b8152602060048201526015602482015274506f7274616c3a204f6e6c79207265636f7665727960581b60448201526064015b60405180910390fd5b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038316016102165760405147905f906001600160a01b0384169083908381818185875af1925050503d805f81146101ba576040519150601f19603f3d011682016040523d82523d5f602084013e6101bf565b606091505b50509050806102105760405162461bcd60e51b815260206004820152601b60248201527f506f7274616c3a20455448207472616e73666572206661696c656400000000006044820152606401610142565b50505050565b6040516370a0823160e01b815230600482015282905f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561025c573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102809190610b33565b90506102106001600160a01b0383168483610803565b600554600160a01b900460ff16156102ea5760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b5f5483511461030b5760405162cb7dff60e81b815260040160405180910390fd5b600380546001600160a01b038481166001600160a01b0319928316179092556004805492841692909116821781556020850151604051630cf99be760e31b8152918201525f91906367ccdf3890602401602060405180830381865afa925050508015610394575060408051601f3d908101601f1916820190925261039191810190610b4a565b60015b61043a57806001600160a01b0316845f01517ffc1e38218583f70caa9a6f4085fafbac0d535b341b12a5a3e96bfe421121b0b8866040015160405161041f9181526040602082018190526026908201527f4661696c656420746f2067657420746f6b656e20616464726573732066726f6d606082015265081d985d5b1d60d21b608082015260a00190565b60405180910390a3506005805460ff60a01b1916905561057d565b90506001600160a01b0381161580159061047157506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610508576003546040850151610496916001600160a01b0384811692911690610867565b60035460408051632950527560e21b815286516004820152602087015160248201529086015160448201526001600160a01b039091169063a54149d4906064015f604051808303815f87803b1580156104ed575f5ffd5b505af11580156104ff573d5f5f3e3d5ffd5b5050505061057b565b600354604085810180519151632950527560e21b81528751600482015260208801516024820152905160448201526001600160a01b039092169163a54149d491906064015f604051808303818588803b158015610563575f5ffd5b505af1158015610575573d5f5f3e3d5ffd5b50505050505b505b50506005805460ff60a01b1916600160a01b17905550565b600554600160a01b900460ff16156105e95760405162461bcd60e51b815260206004820152601760248201527614da5b99db19555cd94e88105b1c9958591e481d5cd959604a1b6044820152606401610142565b6001600160a01b0381161580159061061e57506001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14155b15610747576040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa158015610669573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061068d9190610b33565b9050838110156106b057604051637bdd7ae760e01b815260040160405180910390fd5b6106c46001600160a01b0383168886610867565b5f876001600160a01b031687876040516106df929190610b6c565b5f604051808303815f865af19150503d805f8114610718576040519150601f19603f3d011682016040523d82523d5f602084013e61071d565b606091505b505090508061073f57604051631bb7daad60e11b815260040160405180910390fd5b5050506107e9565b478281101561076957604051637bdd7ae760e01b815260040160405180910390fd5b5f866001600160a01b0316848787604051610785929190610b6c565b5f6040518083038185875af1925050503d805f81146107bf576040519150601f19603f3d011682016040523d82523d5f602084013e6107c4565b606091505b50509050806107e657604051631bb7daad60e11b815260040160405180910390fd5b50505b50506005805460ff60a01b1916600160a01b179055505050565b6040516001600160a01b0383811660248301526044820183905261086291859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b0383818316178352505050506108f2565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526108b8848261095e565b610210576040516001600160a01b0384811660248301525f60448301526108ec91869182169063095ea7b390606401610830565b61021084825b5f5f60205f8451602086015f885af180610911576040513d5f823e3d81fd5b50505f513d91508115610928578060011415610935565b6001600160a01b0384163b155b1561021057604051635274afe760e01b81526001600160a01b0385166004820152602401610142565b5f5f5f5f60205f8651602088015f8a5af192503d91505f51905082801561099d5750811561098f578060011461099d565b5f866001600160a01b03163b115b9695505050505050565b6001600160a01b03811681146109bb575f5ffd5b50565b80356109c9816109a7565b919050565b5f5f604083850312156109df575f5ffd5b82356109ea816109a7565b915060208301356109fa816109a7565b809150509250929050565b5f5f5f83850360a0811215610a18575f5ffd5b6060811215610a25575f5ffd5b506040516060810181811067ffffffffffffffff82111715610a5557634e487b7160e01b5f52604160045260245ffd5b6040908152853582526020808701359083015285810135908201529250610a7e606085016109be565b9150610a8c608085016109be565b90509250925092565b5f5f5f5f5f60808688031215610aa9575f5ffd5b8535610ab4816109a7565b9450602086013567ffffffffffffffff811115610acf575f5ffd5b8601601f81018813610adf575f5ffd5b803567ffffffffffffffff811115610af5575f5ffd5b886020828401011115610b06575f5ffd5b60209190910194509250604086013591506060860135610b25816109a7565b809150509295509295909350565b5f60208284031215610b43575f5ffd5b5051919050565b5f60208284031215610b5a575f5ffd5b8151610b65816109a7565b9392505050565b818382375f910190815291905056fea26469706673582212201017b15132cb2ff981006a9c8e2eab34121257c8c8f5897e86553aa02be78be564736f6c634300081c0033a26469706673582212207299f802ba49e8ff0e439029ca5df52853c72cc240e21c729c8caeb3ec572e3764736f6c634300081c003300000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc60000000000000000000000000000000000","id":1,"to":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":924,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","networkInteractionId":1,"nonce":924,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000024"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x20047c2504659fee555dcb6765d5e1fc37c1e73ee76d5ecabdb822ea930b15b1"},"type":"TRANSACTION_SEND"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","hash":"0x20047c2504659fee555dcb6765d5e1fc37c1e73ee76d5ecabdb822ea930b15b1","networkInteractionId":1,"receipt":{"blockHash":"0x4ebd6f9ace9904dd8da59e86cd73e0f6170e78b7e5bd72830b61ffeccd8458f2","blockNumber":10439613,"logs":[{"address":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","data":"0x","logIndex":186,"topics":["0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0","0x0000000000000000000000000000000000000000000000000000000000000000","0x00000000000000000000000061826700275c96633c85a6563bffcbb2e9e82dc6"]},{"address":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","data":"0x","logIndex":187,"topics":["0xb8fda7e00c6b06a2b54e58521bc5894fee35f1090e5a3bb6390bfe2b98b497f7","0x0000000000000000000000007125ed21e90a790090245748a47753f3be54ccb3","0xc16b82a18f226a531c3aeb6acbdab3c7a1330eabe60444bfec030b989a69480a"]}],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"PortalFactory#CreateX_PortalFactory","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"PortalFactory#CreateX","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#CreateX"],"emitterAddress":"0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed","eventIndex":0,"eventName":"ContractCreation(address,bytes32)","futureId":"PortalFactory#ReadEvent_PortalFactory","nameOrIndex":"newContract","result":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","strategy":"basic","strategyConfig":{},"txToReadFrom":"0x20047c2504659fee555dcb6765d5e1fc37c1e73ee76d5ecabdb822ea930b15b1","type":"READ_EVENT_ARGUMENT_EXECUTION_STATE_INITIALIZE"}
-{"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","contractName":"PortalFactory","dependencies":["PortalFactory#CreateX_PortalFactory","PortalFactory#ReadEvent_PortalFactory"],"futureId":"PortalFactory#PortalFactory","futureType":"NAMED_ARTIFACT_CONTRACT_AT","strategy":"basic","strategyConfig":{},"type":"CONTRACT_AT_EXECUTION_STATE_INITIALIZE"}
-{"args":[{"aggregationVerifier":"0x0000000000000000000000000000000000000000","curvyVault":"0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","insertionVerifier":"0x0000000000000000000000000000000000000000","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","withdrawVerifier":"0x542F0837199Cd45BdE8a58b7aBB10185C16C348A"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","CurvyAggregatorAlpha#withdrawVerifierV3","CurvyVault#ERC1967Proxy","PortalFactory#PortalFactory"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteraction":{"data":"0xcf101a4900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000542f0837199cd45bde8a58b7abb10185c16c348a00000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad0000000000000000000000007125ed21e90a790090245748a47753f3be54ccb3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":925,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","networkInteractionId":1,"nonce":925,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000026"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x4ed7f917e0867bd253fd6c580d23faa5f375853e2ec62d8521519dd44d1a3d42"},"type":"TRANSACTION_SEND"}
-{"args":["0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD","0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","0x0000000000000000000000000000000000000000"],"artifactId":"PortalFactory#PortalFactory","contractAddress":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","dependencies":["PortalFactory#PortalFactory","CurvyVault#ERC1967Proxy","CurvyAggregatorAlpha#ERC1967Proxy"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteraction":{"data":"0x11c9a94d00000000000000000000000073efd0abe4d89f3c40ac226229db204a1e7b13ad00000000000000000000000097ffce8e772ea1594be3c34f85b43e9c005223200000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x7125Ed21e90A790090245748A47753F3BE54Ccb3","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":926,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","networkInteractionId":1,"nonce":926,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000026"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x394d2f433542eb73e84a0df66ddd9ea2b488bcdd1ef1f324c4959bf3d0f5b726"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","hash":"0x4ed7f917e0867bd253fd6c580d23faa5f375853e2ec62d8521519dd44d1a3d42","networkInteractionId":1,"receipt":{"blockHash":"0xe9f4f6c8adc6b23a091ef91e77e8d86f3d14dfb32ffc0c1895ba77d9ff146133","blockNumber":10439618,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","hash":"0x394d2f433542eb73e84a0df66ddd9ea2b488bcdd1ef1f324c4959bf3d0f5b726","networkInteractionId":1,"receipt":{"blockHash":"0xe9f4f6c8adc6b23a091ef91e77e8d86f3d14dfb32ffc0c1895ba77d9ff146133","blockNumber":10439618,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#PortalFactory~PortalFactory.updateConfig","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#insertionVerifierDepth30","constructorArgs":[],"contractName":"CurvyInsertionVerifierAlpha_2_30","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV5.upgradeToAndCall"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506106638061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80635fe8c13b1461002d575b5f5ffd5b61004061003b3660046105d6565b610054565b604051901515815260200160405180910390f35b5f61055b565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f0924b2da45959e3db416d37c294a404744951be16e42f1d992acb2f9b1653c9b85527f1dd38cbdac759717b0ac22a4684a67b9dde133900fd0de04e84649d362c43af260208601525f608086018661018e87357f1b2708ad6d7e6be283e7de6a744c951d2b8e5364548e69df7856c3c97b573e1b7f0974e3e005ff370d47e3fdb7ccdf534091ef1e4a005206d2d1231e67b90511998461008c565b6101de60208801357f2ebb5ab1d89212403b8779a300f9ddc2d940387f8a35748b528e34a8ba9aa8eb7f19eeb6ab376be1165cb0ec80572317e9f5c4518602464a5713c215c980fefb428461008c565b61022e60408801357f057838b481ea687ebdd9e99e7b0a647b9fde53a265abb2ebf10f786977fd745d7f303b63a34f398feec2ee236d526cf0b1152e7c0322e5ff4d253c0a3a8bf17fdc8461008c565b61027e60608801357f19345bce990107cbcf966676e877fb4f5ca5266f5d57adab7678620d605636d87f180b99f92cc59f1eabdbad0ff4a62544fa9bf0cab8f5912f5a847c5640c1d7328461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f0e2bb878054469b448cc0e33dc738b287d43fe65e576af5b3b04e591fdb54f1e60c08201527f1bf275d3700d3f50dca59951ba350ffa3ea2372d0196c425caa92a9e67899ade60e08201527f0c44e70b0815f8e0e28ce0457dc505fe56b05e59d49b5ae4e11b055a806910336101008201527f1232e197aaa7b2d91e891300fac64a73564b798a3db3fa5fb3abf383bf2032606101208201527f28308763f703530f89d2cf0bfa677e8d6cee8f7d9027e414164185b9819db03d6101408201527f1992fd2f54f2bb493054e09c96436be20ea7137974f126e81c09c2b32f70290c6101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f1d12be17bc61349a2fa4a78986dc0c65250840b18d469b5239a06678fdaffff36102808201527f2b76fd205a71da739792da15aa42bf4e6e549970f2c5d27f19456ed6ef65f9136102a08201527f291ed4e167e08d61ceb08cb301209e3431b16f87170ed88f5265b625d5e194486102c08201527e6370563f1ca56b9f3f3329c4a4724e95130020346360fa7e450ed7315a22e16102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526105725f84013561005a565b61057f602084013561005a565b61058c604084013561005a565b610599606084013561005a565b6105a6818486888a6100f2565b9050805f5260205ff35b80604081018310156105c0575f5ffd5b92915050565b80608081018310156105c0575f5ffd5b5f5f5f5f61018085870312156105ea575f5ffd5b6105f486866105b0565b935061060386604087016105c6565b92506106128660c087016105b0565b91506106228661010087016105c6565b90509295919450925056fea26469706673582212205a855661bcf2b5e7a6820e1e0d44203c68c61e39b2b0c99faac2b30e34af037964736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","networkInteractionId":1,"nonce":930,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","networkInteractionId":1,"nonce":930,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000022"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0xcc1fb8ba28d7672fb01f11d4907c9d18e026b5b9375b486c0f7a9817aa1b28f7"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","hash":"0xcc1fb8ba28d7672fb01f11d4907c9d18e026b5b9375b486c0f7a9817aa1b28f7","networkInteractionId":1,"receipt":{"blockHash":"0x849ff1c6fdb81de166f0ce7a794200af39cc152bd0679aaf379360e9623a37a0","blockNumber":10464386,"contractAddress":"0x3e4C55949136286Ec2d30E8772cf9e0f0323Bc9E","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#insertionVerifierDepth30","result":{"address":"0x3e4C55949136286Ec2d30E8772cf9e0f0323Bc9E","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","constructorArgs":[],"contractName":"CurvyAggregationVerifierAlpha_2_2_2_30","dependencies":["CurvyAggregatorAlpha#insertionVerifierDepth30"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b50610a0d8061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c80638d15f88f1461002d575b5f5ffd5b61004061003b366004610975565b610054565b604051901515815260200160405180910390f35b5f610882565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f2677d6c999b93ce8836a26f68400342d9206d0042e5bef74384d97668d4fbd7185527f1c6dffd717c92db39b15ffaac7f1ca0896359f64d86ddbde53a9a724d53d687f60208601525f608086018661018e87357f1588203686d2c659beac6e6b6a0696c9a73b43167a1c23dcd156cd423a3486617f2a9a27b4754629f464e15757a6e1795285c772d60b824c8f1dcf721853505b648461008c565b6101de60208801357f0e7ef5047b47aa90a649bd18cea070121bf160cd07d5fb6f059d7f85959093037f0ad8fc97f11c92c12ec509d473fb3a2131cd46398b83b0f6931d5a316885bf4c8461008c565b61022e60408801357f1f360486c53217bd225c170d2c9bff57ce0401a846932d5998b0985302d0d0297f1f0d2c4008add8e5f828066af26a4893d22ede59ce5ed922805bbf72172f926f8461008c565b61027e60608801357f19038ac1aeb7fff5205df6e24fb20b79efc3e47b23ba901c6133a077fd25a41f7f06a8f121ae5a14cd6561c3d301b7a599cd187d66b69ec0dca5b594c90d359db18461008c565b6102ce60808801357f14392ad2a968554f2e9be3192822ee370df3835437d6bdd824f7c02486a799757f1a901b29f21dd86a23814194667419cdb034a8f419cce6f36219ebe12f1d03ce8461008c565b61031e60a08801357f222b41b2066c2e18de2ce8f1b38e21067945bf3a523068d9be283bdeb0b090ca7f260b831c981e5d0edf7c4a1ce05d34b900e8e771b704ff94f52c9945a1227a038461008c565b61036e60c08801357f03ba99acc272296f6b5e8b46fdd80641dc68056bf1f1d058d7b0ae82673e6e0a7f1a49fe52f86e2ce468118842968ef83a85cc11ca735d1707594d03c0fcc5f7a48461008c565b6103be60e08801357f1bb356cda8bd9d21ca448a588e9fe402a48c2c090cc2d9028aabebf7eae7f18f7f2ba484140c7672e35cc296b012b1c06c9d65fa7daf76d898d54502b9dd6e8f298461008c565b61040f6101008801357f158100efe205b2ae041cd2722595c576d8ad554efd549c541c0235ddb95cc70d7f16532b0559581e1c0ff25d04ef22b687551e792d5f5d2134877bffd292114f998461008c565b6104606101208801357f1ecea9cf3060c8c3e065cd2f2f05fe405f4d81a6e4a067c43f65de122d4a8ecc7f0271befe332df95f1520c793b30ab4bbc373b49d736fdf4954fa8129851d9e288461008c565b6104b16101408801357f01886e15dd9ecac1445aca0b7c14420423ce79e0e7b5e5e7ca612fdbbbb0c77f7f17567d5e10acb1c359a4936a01b981b1e6fb9b2bf8746cfa36232c503fd055d18461008c565b6105026101608801357f0fa31e0ed9c1e3ebd3ff073c06bd5ec2056806962a50a4f9490d9d2d3c9125d47f12de630747fad5d0d0b137586691387df79e8a34d3b2968dc56f775ab6b3f4788461008c565b6105536101808801357f0675adf13437ce0b6c1853a85e1ce69404e9b79fc48e04a0757066da7650c6007f25415c817f8b5a1b4b8b1fbaba8a708d3c69f7a1aa35a3834e454b146a0a719a8461008c565b6105a46101a08801357f21c1a157c26e7368b687ff48228bde51af963a5337385f672bf794b1e734c4de7f10d8fd6daf436328532c048653ff83bc1192914754b7a5c907de1869768706848461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f039e6c254fdbfdddb550d7b28587b6e3359a0978a174c832f180238460bf67f660c08201527f05a7b274497c5b63c2aa9486e0610bf9c9fa32e70ac3453f26f181300106533a60e08201527f0e5775bf946735d1ab10bc0fe721dac812003a0756b73371686b39a0c8e0a59a6101008201527f2e63b48c5263b864a5ac08e86eda8c54b609edde10946cdd944dd04bf8f706996101208201527f2a68fdf476b29776ff77059d8292dbdef8bf3835b1d0b8c5e61a8e9f9065804c6101408201527f1b6deed70cfcb89383c60b8d413374d552260ab753beccb04e2077b09a6b69216101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f158d15b191dda264a993425059ebfd021c32c1730e3d254e31fd87de0ab46bac6102808201527f250bca34a48b272729deaec79ae6cc9a702ed03a18a0b5dbd03e9355f52480a56102a08201527f1a999fb6f30f5cc719a772e575a1effffd30eac8e14132c3759716b124d6750b6102c08201527f1db0c59f9dd26d6b1e665961792353cbd44351a6e5108cc13ee1aae16c3734046102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526108995f84013561005a565b6108a6602084013561005a565b6108b3604084013561005a565b6108c0606084013561005a565b6108cd608084013561005a565b6108da60a084013561005a565b6108e760c084013561005a565b6108f460e084013561005a565b61090261010084013561005a565b61091061012084013561005a565b61091e61014084013561005a565b61092c61016084013561005a565b61093a61018084013561005a565b6109486101a084013561005a565b610955818486888a6100f2565b9050805f5260205ff35b806040810183101561096f575f5ffd5b92915050565b5f5f5f5f6102c08587031215610989575f5ffd5b610993868661095f565b935060c08501868111156109a5575f5ffd5b6040860193506109b5878261095f565b925050856102c0860111156109c8575f5ffd5b5091949093509091610100019056fea2646970667358221220478778d0335dd646856137a27c3acb70f813b5d21368e81d0f8aa12044b1af5b64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","networkInteractionId":1,"nonce":931,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","networkInteractionId":1,"nonce":931,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000022"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x88b9046cffd3b23205f8e915c10aeba1162f2d5eacd11cb94ad29d0fd7565236"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","hash":"0x88b9046cffd3b23205f8e915c10aeba1162f2d5eacd11cb94ad29d0fd7565236","networkInteractionId":1,"receipt":{"blockHash":"0x698f51b8d2806dcbd46833db022f8f35325a5a101b032c0e11e4ff8a965124ff","blockNumber":10464391,"contractAddress":"0x6e9b3C08967206Ab39C12DEFe7f17f3212B61694","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#aggregationVerifierDepth30","result":{"address":"0x6e9b3C08967206Ab39C12DEFe7f17f3212B61694","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"artifactId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","constructorArgs":[],"contractName":"CurvyWithdrawVerifierAlpha_2_2_30","dependencies":["CurvyAggregatorAlpha#aggregationVerifierDepth30"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","futureType":"NAMED_ARTIFACT_CONTRACT_DEPLOYMENT","libraries":{},"strategy":"basic","strategyConfig":{},"type":"DEPLOYMENT_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","networkInteraction":{"data":"0x6080604052348015600e575f5ffd5b506108328061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610029575f3560e01c8063c542c93b1461002d575b5f5ffd5b61004061003b36600461079a565b610054565b604051901515815260200160405180910390f35b5f6106ed565b7f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000018110610089575f5f5260205ff35b50565b5f60405183815284602082015285604082015260408160608360076107d05a03fa9150816100bc575f5f5260205ff35b825160408201526020830151606082015260408360808360066107d05a03fa915050806100eb575f5f5260205ff35b5050505050565b7f03760d22d9f2d34545c9e1914bb1ce7a6044769221030d98d87baf999cce726d85527f156ecf9f5c2610839d6d385378a656c0efd32e94a04ebc9c7089f4fe125b838260208601525f608086018661018e87357f2b2c117485e91a1ea632fe27385f77f9331e1db2672e42e9c86a2f802d6f4a577f022aa120b95ee1b256867106394adb6006f30068c06b3ea2e7a6a5bd396d32b88461008c565b6101de60208801357f190133b406f620e57f93dac97d795ee3e6c1cd5c1380ff8efa9bb5ae36eb6f027f201b5a5bcdd373439d8e242f31c140092f2e5e54fd22a0cd50775e373802199e8461008c565b61022e60408801357f1dacf0b93a0b74bacc711d37c038bc8c83ade754b2ce6b8d14bdab54c5267fcf7f27793f520413175bff070cb1cf2a66e303cb460fc50eae4788cc70e37947189e8461008c565b61027e60608801357f20c614098c5807d4d609bcda798ec95ffb84ea0fc6b97e2383149f4797c4071c7f1fcbb72508f88430df9f833ac15e753e438b391af9ded7d805815264fb92b9a18461008c565b6102ce60808801357f0f412826e324f04afe142e271f643cfd1191362dbd52c4ab1027b6dc5f4505197f251f4cfcfa4754144730a6dc064fe7159ceceaa24682c33fa9ec26df30314a098461008c565b61031e60a08801357f0a87b48bf8cd64b224ef5e524ccc422db4d1a2ddc4c6a52bf1354155dbfaca107f11ba886ae51f5da62f1ef74ebc2d941ffe1c84c0cc86a039eea59d753cf737e58461008c565b61036e60c08801357f0eb0f1a445dc5bdf6debee9f4b65306030a8c1c70c87aa910f111314550ff7ca7f0497eac083a6ae9671da1e9e67b4d81eb1890f772f559945e8db07f731b89b948461008c565b6103be60e08801357f27d71145b77c48dc3f37b04048a4952390eff92adf283803d939a5ef357469fa7f2f1d2ecb7da3238e91f60101a82f95a2a0cf3f18513a3efea2ef960e0f1b05038461008c565b61040f6101008801357f1232a2dd4a7f2a4eb7706e0ef2ac142d17bdd99c74cac407523c83ae2c0b14bf7f3013a3053bd7992674a30da3c9e0d99c8b16d930ea2986caa9428a2b843bcf9e8461008c565b50823581527f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4760208401357f30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd4703066020820152833560408201526020840135606082015260408401356080820152606084013560a08201527f1e16c25ab763d8d1477730a7d1ccef12a682cea336a50d06e8fbf5c6179e17d460c08201527f075447418c2d22c69113fa9cdfa0d27ef53317ffdee3259adcd492ba271bc6d460e08201527f2cc1fb86ad7b8be8587556a4b94dc9e84e3b8666d59c51208ee844733934e6696101008201527f27d109e11d2b06dc95900781efaa5ef1fc6dfbdb31e61283628e962fd17fe8c16101208201527f2f8043381982846eac492d6f3a1d39a682c65bfa8dd02e323e7a95df562cf9c96101408201527f29b9eff97456a285bf27898a846691a82071d53474301e1ca6b49892eb4499a56101608201525f87015161018082015260205f018701516101a08201527f198e9393920d483a7260bfb731fb5d25f1aa493335a9e71297e485b7aef312c26101c08201527f1800deef121f1e76426a00665e5c4479674322d4f75edadd46debd5cd992f6ed6101e08201527f090689d0585ff075ec9e99ad690c3395bc4b313370b38ef355acdadcd122975b6102008201527f12c85ea5db8c6deb4aab71808dcb408fe3d1e7690c43d37b4ce6cc0166fa7daa610220820152843561024082015260208501356102608201527f02eed0745f7d7332ae3ac78bd0254d1d2a4f9c1ce849e2228ea68328f9861bab6102808201527f0a53e8207852cc09b290c2038962e161eb338f5b97cb2e1df58d5d4dd059cbdd6102a08201527f251e2c5b50852e3d17871d61fea2a638e7bd6669af35a7a4239e571588856f356102c08201527f1a01f4782436380d4ee0769723d43073f4888b316a973df0e33004b2ded19df76102e08201526020816103008360086107d05a03fa9051169695505050505050565b60405161038081016040526107045f84013561005a565b610711602084013561005a565b61071e604084013561005a565b61072b606084013561005a565b610738608084013561005a565b61074560a084013561005a565b61075260c084013561005a565b61075f60e084013561005a565b61076d61010084013561005a565b61077a818486888a6100f2565b9050805f5260205ff35b8060408101831015610794575f5ffd5b92915050565b5f5f5f5f61022085870312156107ae575f5ffd5b6107b88686610784565b935060c08501868111156107ca575f5ffd5b6040860193506107da8782610784565b92505085610220860111156107ed575f5ffd5b5091949093509091610100019056fea2646970667358221220aa1cf904b8465ae86135852d29b474903154ff35037e293a5f977b17164b752c64736f6c634300081c0033","id":1,"type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","networkInteractionId":1,"nonce":932,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","networkInteractionId":1,"nonce":932,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000022"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x1619629a2962f2b670341b779c0424a4e4a71cf30465734d6d01cfc0d2dab52c"},"type":"TRANSACTION_SEND"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","hash":"0x1619629a2962f2b670341b779c0424a4e4a71cf30465734d6d01cfc0d2dab52c","networkInteractionId":1,"receipt":{"blockHash":"0x8bed4adbbf9790a0d0255fa27b386721597315e32f207c27dd8c97eb260fb467","blockNumber":10464396,"contractAddress":"0x9206F178070A41d5Ff4Ff53f4555A8159EA0FA3e","logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"CurvyAggregatorAlpha#withdrawVerifierDepth30","result":{"address":"0x9206F178070A41d5Ff4Ff53f4555A8159EA0FA3e","type":"SUCCESS"},"type":"DEPLOYMENT_EXECUTION_STATE_COMPLETE"}
-{"args":[{"aggregationVerifier":"0x6e9b3C08967206Ab39C12DEFe7f17f3212B61694","curvyVault":"0x0000000000000000000000000000000000000000","insertionVerifier":"0x3e4C55949136286Ec2d30E8772cf9e0f0323Bc9E","maxAggregations":{"_kind":"bigint","value":"0"},"maxDeposits":{"_kind":"bigint","value":"0"},"maxWithdrawals":{"_kind":"bigint","value":"0"},"portalFactory":"0x0000000000000000000000000000000000000000","withdrawVerifier":"0x9206F178070A41d5Ff4Ff53f4555A8159EA0FA3e"}],"artifactId":"CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","contractAddress":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","dependencies":["CurvyAggregatorAlpha#CurvyAggregatorAlphaV6","CurvyAggregatorAlpha#insertionVerifierDepth30","CurvyAggregatorAlpha#aggregationVerifierDepth30","CurvyAggregatorAlpha#withdrawVerifierDepth30"],"from":"0x61826700275c96633c85a6563bffcbb2e9e82dc6","functionName":"updateConfig","futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","strategy":"basic","strategyConfig":{},"type":"CALL_EXECUTION_STATE_INITIALIZE","value":{"_kind":"bigint","value":"0"}}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","networkInteraction":{"data":"0xcf101a490000000000000000000000003e4c55949136286ec2d30e8772cf9e0f0323bc9e0000000000000000000000006e9b3c08967206ab39c12defe7f17f3212b616940000000000000000000000009206f178070a41d5ff4ff53f4555a8159ea0fa3e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","id":1,"to":"0x97FfCE8e772EA1594BE3C34F85B43e9c00522320","type":"ONCHAIN_INTERACTION","value":{"_kind":"bigint","value":"0"}},"type":"NETWORK_INTERACTION_REQUEST"}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","networkInteractionId":1,"nonce":933,"type":"TRANSACTION_PREPARE_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","networkInteractionId":1,"nonce":933,"transaction":{"fees":{"maxFeePerGas":{"_kind":"bigint","value":"1000026"},"maxPriorityFeePerGas":{"_kind":"bigint","value":"1000000"}},"hash":"0x5d25fd261e2d682bcac340a01f4f431a217b7ac2c164c9e369ca2335b9bef614"},"type":"TRANSACTION_SEND"}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","hash":"0x5d25fd261e2d682bcac340a01f4f431a217b7ac2c164c9e369ca2335b9bef614","networkInteractionId":1,"receipt":{"blockHash":"0xcb129a3f4f2ce1295f8b522cddad5cc7441e2239fa3b5a1b7ba3e37c6522a128","blockNumber":10464401,"logs":[],"status":"SUCCESS"},"type":"TRANSACTION_CONFIRM"}
-{"futureId":"MainDeploymentModule#CurvyAggregator_VerifiersDepth30Update","result":{"type":"SUCCESS"},"type":"CALL_EXECUTION_STATE_COMPLETE"}
\ No newline at end of file
diff --git a/ignition/modules/CurvyAggregatorAlpha.ts b/ignition/modules/CurvyAggregatorAlpha.ts
index 9c28a23..3ffade7 100644
--- a/ignition/modules/CurvyAggregatorAlpha.ts
+++ b/ignition/modules/CurvyAggregatorAlpha.ts
@@ -2,168 +2,45 @@ import { buildModule } from "@nomicfoundation/hardhat-ignition/modules";
export default buildModule("CurvyAggregatorAlpha", (m) => {
const poseidonT4 = m.library("PoseidonT4");
+
const implementation = m.contract("CurvyAggregatorAlphaV1", [], {
id: "CurvyAggregatorAlphaV1Implementation",
- libraries: {
- PoseidonT4: poseidonT4,
- },
+ libraries: { PoseidonT4: poseidonT4 },
});
const owner = m.getAccount(0);
const proxy = m.contract("ERC1967Proxy", [
implementation,
- m.encodeFunctionCall(implementation, "initialize", [owner, "0x0000000000000000000000000000000000000000"]),
+ m.encodeFunctionCall(implementation, "initialize", [owner]),
]);
- const curvyAggregatorAlphaV1 = m.contractAt(`CurvyAggregatorAlphaV1`, proxy);
-
- const maxDeposits = 2;
- const maxAggregations = 2;
- const maxWithdrawals = 2;
+ const curvyAggregatorAlpha = m.contractAt("CurvyAggregatorAlphaV1", proxy);
- const insertionVerifier = m.contract(`CurvyInsertionVerifierAlpha_${maxDeposits}_2`);
- const aggregationVerifier = m.contract(`CurvyAggregationVerifierAlpha_${maxAggregations}_2_2`);
- const withdrawVerifier = m.contract(`CurvyWithdrawVerifierAlpha_${maxWithdrawals}_2`);
+ // Production verifier set: depth-30 trees, dimensional suffixes encode circuit shape.
+ const insertionVerifier = m.contract("CurvyInsertionVerifierAlpha_2_30");
+ const aggregationVerifier = m.contract("CurvyAggregationVerifierAlpha_2_2_2_30");
+ const withdrawVerifier = m.contract("CurvyWithdrawVerifierAlpha_2_2_30");
- m.call(curvyAggregatorAlphaV1, "updateConfig", [
+ m.call(curvyAggregatorAlpha, "updateConfig", [
{
insertionVerifier,
aggregationVerifier,
withdrawVerifier,
- // Don't change what was set in constructor
curvyVault: "0x0000000000000000000000000000000000000000",
- maxDeposits,
- maxAggregations,
- maxWithdrawals,
+ portalFactory: "0x0000000000000000000000000000000000000000",
+ maxDeposits: 2,
+ maxAggregations: 2,
+ maxWithdrawals: 2,
},
]);
- // This implementation fixes the commitWithdrawalBatch to invoke meta tx with type transfer instead of withdraw
- const implementationV2 = m.contract("CurvyAggregatorAlphaV2", [], {
- id: "CurvyAggregatorAlphaV2Implementation",
- libraries: {
- PoseidonT4: poseidonT4,
- },
- });
-
- m.call(curvyAggregatorAlphaV1, "upgradeToAndCall", [implementationV2, "0x"]);
-
- const curvyAggregatorAlphaV2 = m.contractAt("CurvyAggregatorAlphaV2", proxy);
-
- const implementationV3 = m.contract("CurvyAggregatorAlphaV3", [], {
- id: "CurvyAggregatorAlphaV3Implementation",
- libraries: {
- PoseidonT4: poseidonT4,
- },
- });
-
- m.call(curvyAggregatorAlphaV2, "upgradeToAndCall", [implementationV3, "0x"]);
-
- const curvyAggregatorAlphaV3 = m.contractAt("CurvyAggregatorAlphaV3", proxy);
-
- const newInsertionVerifier = m.contract(`CurvyInsertionVerifierAlpha_${maxDeposits}`, [], {
- id: "NewInsertionVerifier_v2",
- after: [curvyAggregatorAlphaV3],
- });
-
- const newAggregationVerifier = m.contract(`CurvyAggregationVerifierAlpha_${maxAggregations}`, [], {
- id: "NewAggregationVerifier_v2",
- after: [newInsertionVerifier],
- });
-
- const newWithdrawVerifier = m.contract(`CurvyWithdrawVerifierAlpha_${maxWithdrawals}`, [], {
- id: "NewWithdrawVerifier_v2",
- after: [newAggregationVerifier],
- });
-
- const updateNewVerifiers = m.call(
- curvyAggregatorAlphaV3,
- "updateConfig",
- [
- {
- insertionVerifier: newInsertionVerifier,
- aggregationVerifier: newAggregationVerifier,
- withdrawVerifier: newWithdrawVerifier,
- curvyVault: "0x0000000000000000000000000000000000000000",
- maxDeposits: 0,
- maxAggregations: 0,
- maxWithdrawals: 0,
- },
- ],
- {
- id: "UpdateConfig_WithNewVerifiers",
- after: [newWithdrawVerifier],
- },
- );
-
- const implementationV4 = m.contract("CurvyAggregatorAlphaV4", [], {
- id: "CurvyAggregatorAlphaV4Implementation",
- libraries: {
- PoseidonT4: poseidonT4,
- },
- after: [updateNewVerifiers],
- });
-
- const upgradeV4 = m.call(curvyAggregatorAlphaV3, "upgradeToAndCall", [implementationV4, "0x"], {
- id: "CurvyAggregatorAlphaV4Upgrade",
- after: [implementationV4],
- });
-
- const curvyAggregatorAlphaV4 = m.contractAt("CurvyAggregatorAlphaV4", proxy);
-
- // This implementation relies on vault's withdraw instead of transfer and includes forceWithdrawal
- const implementationV5 = m.contract("CurvyAggregatorAlphaV5", [], {
- id: "CurvyAggregatorAlphaV5Implementation",
- libraries: {
- PoseidonT4: poseidonT4,
- },
- after: [upgradeV4],
- });
-
- const upgradeV5 = m.call(curvyAggregatorAlphaV4, "upgradeToAndCall", [implementationV5, "0x"]);
-
- const curvyAggregatorAlphaV5 = m.contractAt("CurvyAggregatorAlphaV5", proxy);
-
- const withdrawVerifierV3 = m.contract(`CurvyWithdrawVerifierAlphaV3_${maxWithdrawals}`, [], {
- id: "withdrawVerifierV3",
- after: [upgradeV5],
- });
-
- const implementationV6 = m.contract("CurvyAggregatorAlphaV6", [], {
- id: "CurvyAggregatorAlphaV6Implementation",
- libraries: {
- PoseidonT4: poseidonT4,
- },
- after: [upgradeV5],
- });
-
- const upgradeV6 = m.call(curvyAggregatorAlphaV5, "upgradeToAndCall", [implementationV6, "0x"]);
-
- const curvyAggregatorAlpha = m.contractAt("CurvyAggregatorAlphaV6", proxy);
-
- const insertionVerifierDepth30 = m.contract("CurvyInsertionVerifierAlpha_2_30", [], {
- id: "insertionVerifierDepth30",
- after: [upgradeV6],
- });
-
- const aggregationVerifierDepth30 = m.contract("CurvyAggregationVerifierAlpha_2_2_2_30", [], {
- id: "aggregationVerifierDepth30",
- after: [insertionVerifierDepth30],
- });
-
- const withdrawVerifierDepth30 = m.contract("CurvyWithdrawVerifierAlpha_2_2_30", [], {
- id: "withdrawVerifierDepth30",
- after: [aggregationVerifierDepth30],
- });
-
- return {
- implementation: implementationV6,
- proxy,
- curvyAggregatorAlpha,
- withdrawVerifierV3,
- insertionVerifierDepth30,
- aggregationVerifierDepth30,
- withdrawVerifierDepth30
+ return {
+ implementation,
+ proxy,
+ curvyAggregatorAlpha,
+ insertionVerifierDepth30: insertionVerifier,
+ aggregationVerifierDepth30: aggregationVerifier,
+ withdrawVerifierDepth30: withdrawVerifier,
};
});
diff --git a/ignition/modules/CurvyVault.ts b/ignition/modules/CurvyVault.ts
index 7f06845..8508a49 100644
--- a/ignition/modules/CurvyVault.ts
+++ b/ignition/modules/CurvyVault.ts
@@ -11,31 +11,9 @@ export default buildModule("CurvyVault", (m) => {
m.encodeFunctionCall(implementation, "initialize", [owner]),
]);
- const curvyVaultV1 = m.contractAt("CurvyVaultV1", proxy);
-
- // This version makes the fees for withdrawal inclusive adds nicer error messages
- const implementationV2 = m.contract("CurvyVaultV2", [], { id: "CurvyVaultV2Implementation" });
-
- m.call(curvyVaultV1, "upgradeToAndCall", [implementationV2, "0x"]);
-
- const curvyVaultV2 = m.contractAt("CurvyVaultV2", proxy);
-
- // This version introduces the origin address checks for compliance
- const implementationV3 = m.contract("CurvyVaultV3", [], { id: "CurvyVaultV3Implementation" });
- m.call(curvyVaultV2, "upgradeToAndCall", [implementationV3, "0x"]);
-
- const curvyVaultV3 = m.contractAt("CurvyVaultV3", proxy);
-
- // This version fixes the bug with gas sponsorship when transferring
- const implementationV4 = m.contract("CurvyVaultV4", [], { id: "CurvyVaultV4Implementation" });
- m.call(curvyVaultV3, "upgradeToAndCall", [implementationV4, "0x"]);
-
- const curvyVaultV4 = m.contractAt("CurvyVaultV4", proxy);
-
- // Register tokens in vault
+ const curvyVault = m.contractAt("CurvyVaultV1", proxy);
let previousRegistration: any;
-
const erc20Addresses = getNetworkParameter("erc20Addresses");
for (let i = 0; i < erc20Addresses.length; i++) {
@@ -46,20 +24,11 @@ export default buildModule("CurvyVault", (m) => {
after.push(previousRegistration);
}
- previousRegistration = m.call(curvyVaultV4, "registerToken", [address], {
+ previousRegistration = m.call(curvyVault, "registerToken", [address], {
id: `RegisterVaultToken_${i}`,
after,
});
}
- // This version removes EIP712 metatractions, transfers, and fee structures in favor of a simpler generic interface.
- const implementationV5 = m.contract("CurvyVaultV5", [], { id: "CurvyVaultV5Implementation" });
- m.call(curvyVaultV4, "upgradeToAndCall", [implementationV5, "0x"]);
- const curvyVaultV5 = m.contractAt("CurvyVaultV5", proxy);
-
- const implementationV6 = m.contract("CurvyVaultV6", [], { id: "CurvyVaultV6Implementation" });
- m.call(curvyVaultV5, "upgradeToAndCall", [implementationV6, "0x"]);
- const curvyVault = m.contractAt("CurvyVaultV6", proxy);
-
- return { implementation: implementationV6, proxy, curvyVault };
+ return { implementation, proxy, curvyVault };
});
diff --git a/ignition/modules/Deployment.ts b/ignition/modules/Deployment.ts
index 0795f9c..7c1f480 100644
--- a/ignition/modules/Deployment.ts
+++ b/ignition/modules/Deployment.ts
@@ -1,15 +1,13 @@
import { buildModule } from "@nomicfoundation/hardhat-ignition/modules";
import PortalFactory from "./PortalFactory";
-import { getNetworkParameter } from "./utils/parameters";
+// audit(2026-Q1): No Validation of Address Format - use validated address parameter helper
+import { getAddressParameter } from "./utils/parameters";
export default buildModule("DeploymentModule", (m) => {
const { portalFactory } = m.useModule(PortalFactory);
- const lifiDiamondAddress = getNetworkParameter<`0x{string}`>("lifiDiamondAddress");
-
- if (!lifiDiamondAddress) {
- throw new Error("Missing lifiDiamondAddress network parameter");
- }
+ // audit(2026-Q1): No Validation of Address Format - validates 0x-prefixed 20-byte hex
+ const lifiDiamondAddress = getAddressParameter("lifiDiamondAddress", "network");
m.call(portalFactory, "updateConfig", [
"0x0000000000000000000000000000000000000000",
diff --git a/ignition/modules/Devenv.ts b/ignition/modules/Devenv.ts
index dbe7443..da396e5 100644
--- a/ignition/modules/Devenv.ts
+++ b/ignition/modules/Devenv.ts
@@ -1,13 +1,52 @@
import fs from "node:fs";
import { buildModule } from "@nomicfoundation/hardhat-ignition/modules";
import { labelhash, namehash } from "viem";
-import MainDeployment from "./MainDeployment";
+import CurvyAggregatorAlpha from "./CurvyAggregatorAlpha";
+import CurvyVault from "./CurvyVault";
+import PortalFactory from "./PortalFactory";
+// audit(2026-Q1): No Validation of Address Format - use validated address parameter helper
+import { getAddressParameter } from "./utils/parameters";
const DEPOSIT_AMOUNT = 1000n * 10n ** 18n;
export default buildModule("Devenv", (m) => {
- // Deploy aggregator, vault and portal factory
- const { curvyVault, portalFactory } = m.useModule(MainDeployment);
+ // Greenfield deploy of vault + aggregator + portal factory + wiring.
+ // (MainDeployment.ts is the V1 launch on existing proxies — not for local
+ // dev where there are no pre-existing proxies. The building blocks below
+ // give us the same end state as a beta-style fresh deploy.)
+ const { curvyAggregatorAlpha, proxy: curvyAggregatorAlphaProxy } = m.useModule(CurvyAggregatorAlpha);
+ const { curvyVault, proxy: curvyVaultProxy } = m.useModule(CurvyVault);
+ const { portalFactory } = m.useModule(PortalFactory);
+
+ // Wire vault to aggregator
+ const setVaultAggregator = m.call(curvyVault, "setCurvyAggregatorAddress", [curvyAggregatorAlpha]);
+
+ // Wire aggregator to vault + portal factory (verifiers were already set by CurvyAggregatorAlpha module)
+ const wireAggregator = m.call(
+ curvyAggregatorAlpha,
+ "updateConfig",
+ [
+ {
+ insertionVerifier: "0x0000000000000000000000000000000000000000",
+ aggregationVerifier: "0x0000000000000000000000000000000000000000",
+ withdrawVerifier: "0x0000000000000000000000000000000000000000",
+ curvyVault: curvyVaultProxy,
+ portalFactory: portalFactory,
+ maxDeposits: 0n,
+ maxAggregations: 0n,
+ maxWithdrawals: 0n,
+ },
+ ],
+ { id: "Aggregator_WireVaultAndFactory", after: [setVaultAggregator] },
+ );
+
+ // Wire portal factory to vault, aggregator, and the network's LiFi diamond
+ // audit(2026-Q1): No Validation of Address Format - validates 0x-prefixed 20-byte hex
+ const lifiDiamondAddress = getAddressParameter("lifiDiamondAddress", "network");
+ m.call(portalFactory, "updateConfig", [curvyVaultProxy, curvyAggregatorAlphaProxy, lifiDiamondAddress], {
+ id: "PortalFactory_Wire",
+ after: [wireAggregator],
+ });
// Deploy multicall
const multicall3 = m.contract("Multicall3");
@@ -84,4 +123,4 @@ export default buildModule("Devenv", (m) => {
});
return { erc20Mock, multicall3, curvyVault, portalFactory, universal, registry, offchain };
-});
\ No newline at end of file
+});
diff --git a/ignition/modules/MainDeployment.ts b/ignition/modules/MainDeployment.ts
index a67c2e5..a8513bb 100644
--- a/ignition/modules/MainDeployment.ts
+++ b/ignition/modules/MainDeployment.ts
@@ -1,58 +1,84 @@
import { buildModule } from "@nomicfoundation/hardhat-ignition/modules";
-import CurvyAggregatorAlpha from "./CurvyAggregatorAlpha";
-import CurvyVault from "./CurvyVault";
import PortalFactory from "./PortalFactory";
-import { getNetworkParameter } from "./utils/parameters";
-
-export default buildModule("MainDeploymentModule", (m) => {
- // Deploy the contracts
- const {
- curvyAggregatorAlpha,
- proxy: curvyAggregatorAlphaProxy,
- withdrawVerifierV3,
- insertionVerifierDepth30,
- aggregationVerifierDepth30,
- withdrawVerifierDepth30
- } = m.useModule(CurvyAggregatorAlpha);
- const { curvyVault, proxy: curvyVaultProxy } = m.useModule(CurvyVault);
+// audit(2026-Q1): No Validation of Address Format - use validated address parameter helper
+import { getAddressParameter } from "./utils/parameters";
+
+/**
+ * Main-chain deployment for the V1 (out-of-beta) launch.
+ *
+ * On a chain that already runs the beta vault + aggregator (i.e. the
+ * aggregator chain and its testnet — see `legacy-proxy-addresses.json`),
+ * this module:
+ *
+ * 1. Deploys the audited V1 vault implementation and runs
+ * `upgradeToAndCall(impl, bootstrapAccessControl())` on the existing
+ * proxy. The bootstrap is `reinitializer(2)` and seeds OPERATOR_ROLE
+ * and AUTHORITY_ROLE on the current owner; the pre-AC
+ * `_authorizeUpgrade(onlyOwner)` gates the upgrade itself.
+ * 2. Same for the audited V1 aggregator (proxy reused, PoseidonT4 library
+ * reused).
+ * 3. Deploys a fresh PortalFactory via CreateX (deterministic from
+ * `create2_salt`) and wires it to the freshly-upgraded vault, aggregator,
+ * and the network's LiFi diamond.
+ *
+ * Greenfield (no existing proxies) main-chain bootstrap is not handled here
+ * by design — the building blocks live in `CurvyVault.ts`,
+ * `CurvyAggregatorAlpha.ts`, and `PortalFactory.ts` and can be composed when
+ * a new aggregator chain is onboarded.
+ */
+export default buildModule("MainDeployment", (m) => {
+ const vaultProxyAddress = m.getParameter("vaultProxyAddress");
+ const aggregatorProxyAddress = m.getParameter("aggregatorProxyAddress");
+ const poseidonT4Address = m.getParameter("poseidonT4Address");
+
+ // === Vault upgrade ===
+ const newVaultImpl = m.contract("CurvyVaultV1", [], {
+ id: "CurvyVaultV1Implementation_Audited",
+ });
+
+ const vaultProxyAsV1 = m.contractAt("CurvyVaultV1", vaultProxyAddress, {
+ id: "VaultProxyAsV1",
+ });
+
+ const vaultUpgrade = m.call(
+ vaultProxyAsV1,
+ "upgradeToAndCall",
+ [newVaultImpl, m.encodeFunctionCall(newVaultImpl, "bootstrapAccessControl", [])],
+ { id: "VaultUpgradeToV1" },
+ );
+
+ // === Aggregator upgrade ===
+ const poseidonT4 = m.contractAt("PoseidonT4", poseidonT4Address, { id: "PoseidonT4Existing" });
+
+ const newAggImpl = m.contract("CurvyAggregatorAlphaV1", [], {
+ id: "CurvyAggregatorAlphaV1Implementation_Audited",
+ libraries: { PoseidonT4: poseidonT4 },
+ });
+
+ const aggProxyAsV1 = m.contractAt("CurvyAggregatorAlphaV1", aggregatorProxyAddress, {
+ id: "AggProxyAsV1",
+ });
+
+ const aggUpgrade = m.call(
+ aggProxyAsV1,
+ "upgradeToAndCall",
+ [newAggImpl, m.encodeFunctionCall(newAggImpl, "bootstrapAccessControl", [])],
+ { id: "AggUpgradeToV1" },
+ );
+
+ // === PortalFactory fresh deploy ===
+ // CreateX gives a deterministic address from `create2_salt`; audit-fixed
+ // bytecode means a different address than the beta factory, so all V1
+ // portals are CREATE2-derived from the new factory address.
const { portalFactory } = m.useModule(PortalFactory);
- // Connect Vault to Aggregator
- m.call(curvyVault, "setCurvyAggregatorAddress", [curvyAggregatorAlpha]);
-
- // Connect Aggregator to Vault
- m.call(curvyAggregatorAlpha, "updateConfig", [
- {
- insertionVerifier: "0x0000000000000000000000000000000000000000",
- aggregationVerifier: "0x0000000000000000000000000000000000000000",
- withdrawVerifier: withdrawVerifierV3,
- curvyVault: curvyVaultProxy,
- portalFactory: portalFactory,
- maxDeposits: BigInt(0),
- maxAggregations: BigInt(0),
- maxWithdrawals: BigInt(0),
- },
- ]);
-
- // Connect PortalFactory to LifiDiamond, Aggregator and Vault
- const lifiDiamondAddress = getNetworkParameter<`0x{string}`>("lifiDiamondAddress");
-
- m.call(portalFactory, "updateConfig", [curvyVaultProxy, curvyAggregatorAlphaProxy, lifiDiamondAddress]);
-
- m.call(curvyAggregatorAlpha, "updateConfig", [
- {
- insertionVerifier: insertionVerifierDepth30,
- aggregationVerifier: aggregationVerifierDepth30,
- withdrawVerifier: withdrawVerifierDepth30,
- curvyVault: "0x0000000000000000000000000000000000000000",
- portalFactory: "0x0000000000000000000000000000000000000000",
- maxDeposits: BigInt(0),
- maxAggregations: BigInt(0),
- maxWithdrawals: BigInt(0),
- },
- ], {
- id: "CurvyAggregator_VerifiersDepth30Update"
+ // audit(2026-Q1): No Validation of Address Format - validates 0x-prefixed 20-byte hex
+ const lifiDiamondAddress = getAddressParameter("lifiDiamondAddress", "network");
+
+ m.call(portalFactory, "updateConfig", [vaultProxyAddress, aggregatorProxyAddress, lifiDiamondAddress], {
+ id: "PortalFactoryConfig",
+ after: [vaultUpgrade, aggUpgrade],
});
- return { curvyAggregatorAlpha, curvyVault, portalFactory };
+ return { newVaultImpl, newAggImpl, portalFactory };
});
diff --git a/ignition/modules/PortalFactory.ts b/ignition/modules/PortalFactory.ts
index 2406354..29687ac 100644
--- a/ignition/modules/PortalFactory.ts
+++ b/ignition/modules/PortalFactory.ts
@@ -1,13 +1,20 @@
import { buildModule } from "@nomicfoundation/hardhat-ignition/modules";
import { encodeDeployData } from "viem";
import artifact from "../../artifacts/contracts/portal/PortalFactory.sol/PortalFactory.json";
-import { getEnvironmentParameter } from "./utils/parameters";
+// audit(2026-Q1): Moving constant to JSON
+import { getAddressParameter, getEnvironmentParameter } from "./utils/parameters";
export default buildModule("PortalFactory", (m) => {
- const ownerAddress = getEnvironmentParameter<`0x{string}`>("owner");
+ const ownerAddress = getEnvironmentParameter<`0x${string}`>("owner");
- const CREATEX_ADDRESS = "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed";
- const createX = m.contractAt("ICreateX", CREATEX_ADDRESS, { id: "CreateX" });
+ // audit(2026-Q1): Moving constant to JSON - CreateX address now sourced per-network from network-parameters.json
+ const createXAddress = getAddressParameter("createXAddress", "network");
+ const createX = m.contractAt("ICreateX", createXAddress, { id: "CreateX" });
+
+ // audit(2026-Q1): Moving constant to JSON - error message if artifact is malformed
+ if (!artifact.abi || !artifact.bytecode) {
+ throw new Error("PortalFactory artifact is malformed: missing abi or bytecode");
+ }
const initCode = encodeDeployData({
abi: artifact.abi,
@@ -15,7 +22,7 @@ export default buildModule("PortalFactory", (m) => {
args: [ownerAddress as `0x${string}`],
});
- const create2Salt = getEnvironmentParameter<`0x{string}`>("create2_salt");
+ const create2Salt = getEnvironmentParameter<`0x${string}`>("create2_salt");
if (!create2Salt) {
throw new Error("Missing create2_salt environment variable");
}
@@ -33,6 +40,5 @@ export default buildModule("PortalFactory", (m) => {
after: [deployCall],
});
-
return { portalFactory };
});
diff --git a/ignition/modules/test/CurvyVaultV2Mock.ts b/ignition/modules/test/CurvyVaultV2Mock.ts
deleted file mode 100644
index 9a7d90e..0000000
--- a/ignition/modules/test/CurvyVaultV2Mock.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import { buildModule } from "@nomicfoundation/hardhat-ignition/modules";
-
-import CurvyVaultModule from "../CurvyVault";
-
-export default buildModule("CurvyVaultV2Mock", (m) => {
- const { proxy, curvyVault: oldCurvyVault } = m.useModule(CurvyVaultModule);
-
- const implementation = m.contract("CurvyVaultV2", [], { id: "CurvyVaultV2Implementation" });
-
- m.call(oldCurvyVault, "upgradeToAndCall", [implementation, m.encodeFunctionCall(implementation, "initializeV2", [])]);
-
- const curvyVault = m.contractAt("CurvyVaultV2", proxy);
-
- return { implementation, proxy, curvyVault };
-});
diff --git a/ignition/modules/utils/parameters.ts b/ignition/modules/utils/parameters.ts
index 7c8ec95..d88274b 100644
--- a/ignition/modules/utils/parameters.ts
+++ b/ignition/modules/utils/parameters.ts
@@ -36,6 +36,11 @@ export function getEnvironmentAndNetworkName(): { environment: string; networkNa
return { environment, networkName };
}
+// audit(2026-Q1): No Validation of Address Format
+function isValidAddress(value: unknown): value is `0x${string}` {
+ return typeof value === "string" && /^0x[0-9a-fA-F]{40}$/.test(value);
+}
+
function getNetworkParameter(parameterName: string, networkName?: string): T {
if (!networkName) {
networkName = getEnvironmentAndNetworkName().networkName;
@@ -43,11 +48,17 @@ function getNetworkParameter(parameterName: string, networkName?: string): T
const parameters = readParameters("network-parameters.json");
- if (parameters[networkName] === undefined || parameters[networkName][parameterName] === undefined) {
+ if (parameters[networkName] === undefined) {
throw new Error(`Parameter ${parameterName} not found for network ${networkName}`);
}
- return parameters[networkName][parameterName];
+ // audit(2026-Q1): Missing Null/Undefined Return Handling
+ const value = parameters[networkName][parameterName];
+ if (value === null || value === undefined) {
+ throw new Error(`Parameter '${parameterName}' is null or undefined for network '${networkName}'`);
+ }
+
+ return value;
}
function getEnvironmentParameter(parameterName: string, environment?: string): T {
@@ -57,11 +68,32 @@ function getEnvironmentParameter(parameterName: string, environment?: string)
const parameters = readParameters("environment-parameters.json");
- if (parameters[environment] === undefined || !parameters[environment][parameterName] === undefined) {
+ // audit(2026-Q1): Short-circuit guard bug / operator precedence bug - removed broken `!parameters[env][name] === undefined` check
+ if (parameters[environment] === undefined) {
throw new Error(`Parameter ${parameterName} not found for environment ${environment}`);
}
- return parameters[environment][parameterName];
+ // audit(2026-Q1): Missing Null/Undefined Return Handling
+ const value = parameters[environment][parameterName];
+ if (value === null || value === undefined) {
+ throw new Error(`Parameter '${parameterName}' is null or undefined for environment '${environment}'`);
+ }
+
+ return value;
+}
+
+// audit(2026-Q1): No Validation of Address Format
+function getAddressParameter(parameterName: string, source: "network" | "environment", scope?: string): `0x${string}` {
+ const value =
+ source === "network"
+ ? getNetworkParameter(parameterName, scope)
+ : getEnvironmentParameter(parameterName, scope);
+
+ if (!isValidAddress(value)) {
+ throw new Error(`Invalid ${parameterName} format: expected a 0x-prefixed 20-byte hex string`);
+ }
+
+ return value;
}
function readParameters(filename: "network-parameters.json" | "environment-parameters.json"): any {
@@ -72,7 +104,12 @@ function readParameters(filename: "network-parameters.json" | "environment-param
}
const rawData = fs.readFileSync(filePath, "utf-8");
- return JSON.parse(rawData);
+ // audit(2026-Q1): No Error Handling for Invalid JSON
+ try {
+ return JSON.parse(rawData);
+ } catch (error) {
+ throw new Error(`Failed to parse ${filename}: ${error instanceof Error ? error.message : String(error)}`);
+ }
}
-export { getNetworkParameter, getEnvironmentParameter };
+export { getNetworkParameter, getEnvironmentParameter, getAddressParameter };
diff --git a/ignition/network-parameters.json b/ignition/network-parameters.json
index 60a295f..d54ceee 100644
--- a/ignition/network-parameters.json
+++ b/ignition/network-parameters.json
@@ -2,12 +2,26 @@
"sepolia": {
"mainDeployment": true,
"lifiDiamondAddress": "0x0000000000000000000000000000000000000000",
+ "createXAddress": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
"erc20Addresses": ["0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238", "0x779877A7B0D9E8603169DdbD7836e478b4624789"],
- "outputBridgeLifiDiamondAddress": "0x0000000000000000000000000000000000000000"
+ "outputBridgeLifiDiamondAddress": "0x0000000000000000000000000000000000000000",
+ "legacyProxies": {
+ "production": {
+ "vaultProxy": "0xc837Aaa99A8e5A096F5e6E54E396F027fA106aB5",
+ "aggregatorProxy": "0xE7c543dE96e99fDD9F8435bDEeCeE4361B98cebB",
+ "poseidonT4": "0xEa16Fb67A4Bb4a90598FDf03e68091ecD33614ae"
+ },
+ "staging": {
+ "vaultProxy": "0x73Efd0aBE4D89F3C40Ac226229db204A1E7B13aD",
+ "aggregatorProxy": "0x97FfCE8e772EA1594BE3C34F85B43e9c00522320",
+ "poseidonT4": "0x8584baE2E04A9481cBd8E896188f265fDD7136e1"
+ }
+ }
},
"arbitrum": {
"mainDeployment": true,
"lifiDiamondAddress": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
+ "createXAddress": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
"outputBridgeLifiDiamondAddress": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
"erc20Addresses": [
"0xba5DdD1f9d7F570dc94a51479a000E3BCE967196",
@@ -29,40 +43,65 @@
"0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f",
"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"0x82Af49447D8A07E3Bd95bd0d56F35241523FBaB2"
- ]
+ ],
+ "legacyProxies": {
+ "production": {
+ "vaultProxy": "0xB4BA872fBa00Bc4268067D5DE4223240cEc4B6d5",
+ "aggregatorProxy": "0x9c07E1Ff4f1B96ae609331BAc327FcC2d8563224",
+ "poseidonT4": "0xe5d7A03b2343F7d8155Dd70F45744644a7Fbf5Eb"
+ },
+ "staging": {
+ "vaultProxy": "0xB61F0c208356Df565Bde02dCEd33C896F6b0F939",
+ "aggregatorProxy": "0xE01eE56C613175502c8e677774eaCbBB2738674C",
+ "poseidonT4": "0xfAf8ab242A7445b5D5749bAa5a6D2C20A8dD0B10"
+ }
+ }
},
"ethereum": {
"lifiDiamondAddress": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
+ "createXAddress": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
"mainDeployment": false
},
"base": {
"lifiDiamondAddress": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
+ "createXAddress": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
"mainDeployment": false
},
"optimism": {
"lifiDiamondAddress": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
+ "createXAddress": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
"mainDeployment": false
},
"polygon": {
"lifiDiamondAddress": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
+ "createXAddress": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
"mainDeployment": false
},
"bsc": {
"lifiDiamondAddress": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
+ "createXAddress": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
"mainDeployment": false
},
"gnosis": {
"lifiDiamondAddress": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
+ "createXAddress": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
"mainDeployment": false
},
"linea": {
"lifiDiamondAddress": "0xde1e598b81620773454588b85d6b5d4eec32573e",
+ "createXAddress": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
+ "mainDeployment": false
+ },
+ "tempo": {
+ "lifiDiamondAddress": "0x2cAcAE8e22418E65dcf7651c67aEbe6288EB8243",
+ "createXAddress": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
"mainDeployment": false
},
"anvil": {
"lifiDiamondAddress": "0x0000000000000000000000000000000000000000",
+ "createXAddress": "0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
"mainDeployment": true,
"outputBridgeLifiDiamondAddress": "0x0000000000000000000000000000000000000000",
"erc20Addresses": []
}
-}
\ No newline at end of file
+}
diff --git a/scripts/aggregator-noteid.ts b/scripts/aggregator-noteid.ts
index 8ae0fe5..964862c 100644
--- a/scripts/aggregator-noteid.ts
+++ b/scripts/aggregator-noteid.ts
@@ -5,12 +5,12 @@ const { viem } = await network.connect({ network: "anvil" });
const deployedAddressesPath = "./ignition/deployments/local_anvil/deployed_addresses.json";
const deployedAddresses = JSON.parse(fs.readFileSync(deployedAddressesPath, "utf8"));
-const curvyAggregatorAddress = deployedAddresses["CurvyAggregatorAlpha#CurvyAggregatorAlphaV2"];
+const curvyAggregatorAddress = deployedAddresses["CurvyAggregatorAlpha#ERC1967Proxy"];
if (!curvyAggregatorAddress) {
throw new Error("Aggregator address not found for anvil");
}
-const curvyAggregator = await viem.getContractAt("CurvyAggregatorAlphaV2", curvyAggregatorAddress);
+const curvyAggregator = await viem.getContractAt("CurvyAggregatorAlphaV1", curvyAggregatorAddress);
const noteid = await curvyAggregator.read.noteInQueue([
14967077268631546162044198053248993673186354912497893587694799228971941136645n,
diff --git a/scripts/aggregator-reset.ts b/scripts/aggregator-reset.ts
index 268516d..838c012 100644
--- a/scripts/aggregator-reset.ts
+++ b/scripts/aggregator-reset.ts
@@ -12,8 +12,8 @@ const curvyAggregatorAddress = deployedAddresses["CurvyAggregatorAlpha#ERC1967Pr
if (!curvyAggregatorAddress) {
throw new Error("Aggregator address not found for staging_ethereum-sepolia");
}
-const curvyAggregator = await viem.getContractAt("CurvyAggregatorAlphaV3", curvyAggregatorAddress);
+const curvyAggregator = await viem.getContractAt("CurvyAggregatorAlphaV1", curvyAggregatorAddress);
-const reset = await curvyAggregator.write.reset([0n, 0n], { account: senderClient.account});
+const reset = await curvyAggregator.write.reset([0n, 0n], { account: senderClient.account });
console.log("Reset is done in transaction: ", reset);
diff --git a/scripts/deploy.ts b/scripts/deploy.ts
index 550a738..1f82d3a 100644
--- a/scripts/deploy.ts
+++ b/scripts/deploy.ts
@@ -1,6 +1,18 @@
import { spawn } from "node:child_process";
-import { getEnvironmentParameter, getNetworkParameter } from "../ignition/modules/utils/parameters";
import fs from "node:fs";
+import path from "node:path";
+import { getEnvironmentParameter, getNetworkParameter } from "../ignition/modules/utils/parameters";
+
+type LegacyProxies = {
+ vaultProxy: string;
+ aggregatorProxy: string;
+ poseidonT4: string;
+};
+
+type LegacyProxiesByEnv = {
+ production?: LegacyProxies;
+ staging?: LegacyProxies;
+};
function run(cmd: string, args: readonly string[]): Promise {
return new Promise((resolve, reject) => {
@@ -14,8 +26,20 @@ function getPortalFactoryAddress(deploymentId: string) {
const deployedAddresses = JSON.parse(fs.readFileSync(deployedAddressesPath, "utf8"));
return deployedAddresses["PortalFactory#PortalFactory"];
}
+
async function main() {
- const networks = ["sepolia", "arbitrum"];
+ const networks = [
+ "sepolia",
+ "arbitrum",
+ "ethereum",
+ "optimism",
+ "base",
+ "linea",
+ "polygon",
+ "bsc",
+ "gnosis",
+ "tempo",
+ ];
const environment = process.env.ENVIRONMENT;
if (environment !== "staging" && environment !== "production") {
@@ -25,20 +49,48 @@ async function main() {
const ownerAddress = getEnvironmentParameter("owner", environment);
for (const networkName of networks) {
+ const deploymentId = `${environment}_${networkName}`;
const mainDeployment = getNetworkParameter("mainDeployment", networkName);
+
if (mainDeployment) {
- console.log(`==== ${environment}_${networkName} main deployment ====`);
- await run("pnpm", [
- "hardhat",
- "ignition",
- "deploy",
- "--deployment-id",
- `${environment}_${networkName}`,
- "--network",
- networkName,
- "--verify",
- "./ignition/modules/MainDeployment.ts",
- ]);
+ const legacyByEnv = getNetworkParameter("legacyProxies", networkName);
+ const legacy = legacyByEnv[environment];
+ if (!legacy) {
+ throw new Error(
+ `mainDeployment chain '${networkName}' is missing legacyProxies.${environment} in network-parameters.json`,
+ );
+ }
+
+ console.log(`==== ${deploymentId} main deployment (V1 launch on existing proxies) ====`);
+
+ const parameters = {
+ MainDeployment: {
+ vaultProxyAddress: legacy.vaultProxy,
+ aggregatorProxyAddress: legacy.aggregatorProxy,
+ poseidonT4Address: legacy.poseidonT4,
+ },
+ };
+
+ const paramFile = path.resolve(`./ignition/.deploy-params-${deploymentId}.json`);
+ fs.writeFileSync(paramFile, JSON.stringify(parameters, null, 2));
+
+ try {
+ await run("pnpm", [
+ "hardhat",
+ "ignition",
+ "deploy",
+ "--deployment-id",
+ deploymentId,
+ "--network",
+ networkName,
+ "--parameters",
+ paramFile,
+ "--verify",
+ "./ignition/modules/MainDeployment.ts",
+ ]);
+ } finally {
+ fs.unlinkSync(paramFile);
+ }
console.log(`Manually verifying PortalFactory...`);
await run("pnpm", [
@@ -46,17 +98,17 @@ async function main() {
"verify",
"--network",
networkName,
- await getPortalFactoryAddress(`${environment}_${networkName}`),
+ await getPortalFactoryAddress(deploymentId),
ownerAddress,
]);
} else {
- console.log(`==== ${environment}_${networkName} portal factory only deployment ====`);
+ console.log(`==== ${deploymentId} portal factory only deployment ====`);
await run("pnpm", [
"hardhat",
"ignition",
"deploy",
"--deployment-id",
- `${environment}_${networkName}`,
+ deploymentId,
"--network",
networkName,
"--verify",
@@ -69,7 +121,7 @@ async function main() {
"verify",
"--network",
networkName,
- await getPortalFactoryAddress(`${environment}_${networkName}`),
+ await getPortalFactoryAddress(deploymentId),
ownerAddress,
]);
}
diff --git a/scripts/extract-abis.ts b/scripts/extract-abis.ts
index ff5c00e..ed4bdd3 100644
--- a/scripts/extract-abis.ts
+++ b/scripts/extract-abis.ts
@@ -27,8 +27,8 @@ async function main() {
};
const contractImplementations: Record = {
- CurvyAggregatorAlpha: "CurvyAggregatorAlphaV5",
- CurvyVault: "CurvyVaultV5",
+ CurvyAggregatorAlpha: "CurvyAggregatorAlphaV1",
+ CurvyVault: "CurvyVaultV1",
PortalFactory: "PortalFactory",
};
diff --git a/scripts/get-nonce.ts b/scripts/get-nonce.ts
index 6681533..a00b5f2 100644
--- a/scripts/get-nonce.ts
+++ b/scripts/get-nonce.ts
@@ -6,9 +6,9 @@ const { viem } = await network.connect({ network: "anvil" });
const deployedAddressesPath = "./ignition/deployments/chain-31337/deployed_addresses.json";
const deployedAddresses = JSON.parse(fs.readFileSync(deployedAddressesPath, "utf8"));
-const vaultAddress = deployedAddresses["CurvyVault#CurvyVaultV1"];
+const vaultAddress = deployedAddresses["CurvyVault#ERC1967Proxy"];
if (!vaultAddress) {
- throw new Error("MetaERC20Wrapper address not found for chain-31337");
+ throw new Error("CurvyVault proxy address not found for chain-31337");
}
const vault = await viem.getContractAt("CurvyVaultV1", vaultAddress);
diff --git a/scripts/get-vault-balance.ts b/scripts/get-vault-balance.ts
index 903d806..63f8124 100644
--- a/scripts/get-vault-balance.ts
+++ b/scripts/get-vault-balance.ts
@@ -6,11 +6,11 @@ const { viem } = await network.connect({ network: "anvil" });
const deployedAddressesPath = "./ignition/deployments/local_anvil/deployed_addresses.json";
const deployedAddresses = JSON.parse(fs.readFileSync(deployedAddressesPath, "utf8"));
-const vaultAddress = deployedAddresses["CurvyVault#CurvyVaultV2"];
+const vaultAddress = deployedAddresses["CurvyVault#ERC1967Proxy"];
if (!vaultAddress) {
throw new Error("CurvyVault address not found for anvil");
}
-const vault = await viem.getContractAt("CurvyVaultV2", vaultAddress);
+const vault = await viem.getContractAt("CurvyVaultV1", vaultAddress);
const balance = await vault.read.balanceOf(["0x59b670e9fA9D0A427751Af201D676719a970857b", 1n]);
diff --git a/scripts/portal-recovery.ts b/scripts/portal-recovery.ts
deleted file mode 100644
index 1bfd104..0000000
--- a/scripts/portal-recovery.ts
+++ /dev/null
@@ -1,91 +0,0 @@
-import * as fs from "node:fs";
-import { Core } from "@0xcurvy/curvy-sdk";
-import { network } from "hardhat";
-import { privateKeyToAccount } from "viem/accounts";
-
-const { viem } = await network.connect({ network: "arbitrum" });
-const [deployerClient] = await viem.getWalletClients();
-const publicClient = await viem.getPublicClient();
-
-console.log(`👷 Deployer Wallet: ${deployerClient.account.address}`);
-
-const core = new Core();
-
-// note data
-const ownerHash = 104523775061865081978688333206914837947832712051815280022934306837594910208413n;
-const tokenAddress = "0xabc";
-const viewTag = "2a";
-const ephemeralPublicKey = "216163113738129077026981082324476512393870475034151261972342073686655368504.17738778503081880329520898390562451499239148980806015804088882169172728886181";
-const announcement = {
- createdAt: "2026-01-22T09:15:53.168Z",
- id: "49",
- networkFlavour: "evm",
- viewTag,
- ephemeralPublicKey,
-} as const;
-
-// address where user wants to recover their funds
-const recoveryAddress = "0xabc";
-
-// spending and viewing private keys of the user
-const spendingPrivateKey = "";
-const viewingPrivateKey = "";
-
-const {
- spendingPrivKeys: [recoveryPrivateKey],
-} = await core.scan(spendingPrivateKey, viewingPrivateKey, [announcement]);
-
-const recoveryAccount = privateKeyToAccount(recoveryPrivateKey);
-
-console.log(`Recovery wallet address: ${recoveryAccount.address}`);
-
-const deployedAddressesPath = "./ignition/deployments/staging_arbitrum/deployed_addresses.json";
-const deployedAddresses = JSON.parse(fs.readFileSync(deployedAddressesPath, "utf8"));
-
-const portalFactoryAddress = deployedAddresses["PortalFactoryModule#PortalFactory"];
-
-if (!portalFactoryAddress) {
- throw new Error("PortalFactory address not found.");
-}
-
-const portalFactory = await viem.getContractAt("PortalFactory", portalFactoryAddress);
-
-console.log("Calculating expected Portal address...");
-const expectedPortalAddress = await portalFactory.read.getPortalAddress([ownerHash, recoveryAccount.address]);
-console.log(`Target Portal Address: ${expectedPortalAddress}`);
-
-const bytecode = await publicClient.getCode({ address: expectedPortalAddress });
-const isDeployed = bytecode && bytecode !== "0x";
-
-if (!isDeployed) {
- console.log("⚠️ Portal code NOT found at this address.");
- console.log("🚀 Deploying Portal now to enable recovery...");
-
- const dummyNote = {
- ownerHash: ownerHash,
- token: 0n,
- amount: 0n,
- };
-
- const deployHash = await portalFactory.write.deployAndShield([dummyNote, recoveryAccount.address], {
- account: deployerClient.account,
- });
-
- console.log("Deploy transaction sent:", deployHash);
- console.log("Waiting for confirmation...");
-
- const receipt = await publicClient.waitForTransactionReceipt({ hash: deployHash });
-
- if (receipt.status !== "success") {
- throw new Error("Portal deployment failed!");
- }
- console.log("✅ Portal successfully deployed!");
-} else {
- console.log("✅ Portal is already deployed.");
-}
-
-console.log("Initiating recovery...");
-
-const portal = await viem.getContractAt("Portal", expectedPortalAddress);
-const recoverTx = await portal.write.recover([tokenAddress, recoveryAddress], { account: recoveryAccount });
-console.log("💸 Recovery transaction sent:", recoverTx);
\ No newline at end of file
diff --git a/scripts/vault-get-token-address.ts b/scripts/vault-get-token-address.ts
index e5e8660..653ee34 100644
--- a/scripts/vault-get-token-address.ts
+++ b/scripts/vault-get-token-address.ts
@@ -6,11 +6,11 @@ const { viem } = await network.connect({ network: "anvil" });
const deployedAddressesPath = "./ignition/deployments/local_anvil/deployed_addresses.json";
const deployedAddresses = JSON.parse(fs.readFileSync(deployedAddressesPath, "utf8"));
-const vaultAddress = deployedAddresses["CurvyVault#CurvyVaultV1"];
+const vaultAddress = deployedAddresses["CurvyVault#ERC1967Proxy"];
if (!vaultAddress) {
throw new Error("Vault address not found for anvil_staging");
}
-const vault = await viem.getContractAt("CurvyVaultV3", vaultAddress);
+const vault = await viem.getContractAt("CurvyVaultV1", vaultAddress);
const tokenAddress = await vault.read.getTokenAddress([1]);
console.log(tokenAddress);
diff --git a/test/automatic-shielding.test.ts b/test/automatic-shielding.test.ts
index 0b0065b..5ce9915 100644
--- a/test/automatic-shielding.test.ts
+++ b/test/automatic-shielding.test.ts
@@ -1,8 +1,8 @@
import fs from "node:fs";
+import type { HexString } from "@0xcurvy/curvy-sdk";
import { network } from "hardhat";
import { privateKeyToAccount } from "viem/accounts";
import { expect, test } from "vitest";
-import type { HexString } from "@0xcurvy/curvy-sdk";
// import PortalFactoryModule from "../ignition/modules/AutomaticShielding";
@@ -16,7 +16,7 @@ test("automatic-shielding", async () => {
// Deploy and run tests
// const { ignition, viem } = networkObj
- // const { portalFactory, curvyVault, curvyAggregatorAlphaV2, erc20Mock } =
+ // const { portalFactory, curvyVault, curvyAggregatorAlpha, erc20Mock } =
// await ignition.deploy(PortalFactoryModule);
//#region Load deployed contracts
@@ -25,17 +25,17 @@ test("automatic-shielding", async () => {
const deployedAddressesPath = "./ignition/deployments/local_anvil/deployed_addresses.json";
const deployedAddresses = JSON.parse(fs.readFileSync(deployedAddressesPath, "utf8"));
- const vaultAddress = deployedAddresses["CurvyVault#CurvyVault"];
+ const vaultAddress = deployedAddresses["CurvyVault#ERC1967Proxy"];
if (!vaultAddress) {
- throw new Error("MetaERC20Wrapper address not found for anvil");
+ throw new Error("CurvyVault proxy address not found for anvil");
}
- const portalFactoryAddress = deployedAddresses["CurvyAggregatorAlpha#PortalFactory"];
+ const portalFactoryAddress = deployedAddresses["PortalFactory#PortalFactory"];
if (!portalFactoryAddress) {
throw new Error("PortalFactory address not found for anvil");
}
- const curvyAggregatorAlphaAddress = deployedAddresses["CurvyAggregatorAlpha#CurvyAggregatorAlpha"];
+ const curvyAggregatorAlphaAddress = deployedAddresses["CurvyAggregatorAlpha#ERC1967Proxy"];
if (!curvyAggregatorAlphaAddress) {
- throw new Error("CurvyAggregatorAlpha address not found for anvil");
+ throw new Error("CurvyAggregatorAlpha proxy address not found for anvil");
}
const erc20MockAddress = deployedAddresses["Devenv#ERC20Mock"];
@@ -43,9 +43,9 @@ test("automatic-shielding", async () => {
throw new Error("ERC20Mock address not found for anvil");
}
- const curvyVault = await viem.getContractAt("CurvyVault", vaultAddress);
+ const curvyVault = await viem.getContractAt("CurvyVaultV1", vaultAddress);
const portalFactory = await viem.getContractAt("PortalFactory", portalFactoryAddress);
- const curvyAggregatorAlpha = await viem.getContractAt("CurvyAggregatorAlpha", curvyAggregatorAlphaAddress);
+ const curvyAggregatorAlpha = await viem.getContractAt("CurvyAggregatorAlphaV1", curvyAggregatorAlphaAddress);
const erc20Mock = await viem.getContractAt("ERC20Mock", erc20MockAddress);
//#endregion
@@ -117,7 +117,7 @@ test("automatic-shielding", async () => {
// check balances after deposit
- const depositFee = await curvyVault.read.depositFee() as bigint;
+ const depositFee = (await curvyVault.read.depositFee()) as bigint;
const expectedAmountMinusFees = amount - (amount * depositFee) / 10000n;
const vaultErc20MockBalanceOfAggregator = await curvyVault.read.balanceOf([
diff --git a/test/curvy-vault-upgrade.test.ts b/test/curvy-vault-upgrade.test.ts
deleted file mode 100644
index 5f854e7..0000000
--- a/test/curvy-vault-upgrade.test.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-// We define a module in the test file here, but you can also `import` it.
-import { network } from "hardhat";
-import { expect, test } from "vitest";
-import CurvyVaultModule from "../ignition/modules/CurvyVault";
-import CurvyVaultV2Module from "../ignition/modules/test/CurvyVaultV2Mock";
-
-test("curvy vault upgrade", async () => {
- const { ignition } = await network.connect();
-
- const { implementation, proxy, curvyVault } = await ignition.deploy(CurvyVaultModule);
-
- expect(implementation).toBeDefined();
- expect(proxy).toBeDefined();
- expect(curvyVault).toBeDefined();
-
- const numberOfTokens = await curvyVault.read.getNumberOfTokens();
- expect(numberOfTokens).toBe(1n);
-
- const owner = await curvyVault.read.owner();
- expect(owner.toLowerCase()).toBe("0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266");
-
- const version = (await curvyVault.read.eip712Domain())[2];
- expect(version).toBe("1.0");
-
- // Do the upgrade
- const { curvyVault: newCurvyVault } = await ignition.deploy(CurvyVaultV2Module);
-
- const newVersion = (await newCurvyVault.read.eip712Domain())[2];
- expect(newVersion).toBe("2.0");
-
- // Try to read version from "old vault", it should also return 2.0 because of delegatecall
- const newVersionFromOldVault = (await curvyVault.read.eip712Domain())[2];
- expect(newVersionFromOldVault).toBe("2.0");
-}, 5000000);
diff --git a/test/eip-712.test.ts b/test/eip-712.test.ts
deleted file mode 100644
index edf7b16..0000000
--- a/test/eip-712.test.ts
+++ /dev/null
@@ -1,78 +0,0 @@
-import { buildModule } from "@nomicfoundation/hardhat-ignition/modules";
-import { network } from "hardhat";
-import { privateKeyToAccount } from "viem/accounts";
-import { test } from "vitest";
-
-const harness = buildModule("CurvyVault", (m) => {
- const implementation = m.contract("CurvyVaultV1ValidateSignatureHarness", [], { id: "CurvyVaultV1Implementation" });
-
- const owner = m.getAccount(0);
-
- const proxy = m.contract("ERC1967Proxy", [
- implementation,
- m.encodeFunctionCall(implementation, "initialize", [owner]),
- ]);
-
- const curvyVault = m.contractAt("CurvyVaultV1ValidateSignatureHarness", proxy);
-
- return { implementation, proxy, curvyVault };
-});
-
-test("eip-712 signing", async () => {
- const { ignition, viem } = await network.connect();
-
- const { curvyVault } = await ignition.deploy(harness);
-
- const privateKey = "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80";
- const account = privateKeyToAccount(privateKey);
-
- const name = "Curvy Privacy Vault";
- const version = "1.0";
- const verifyingContract = curvyVault.address;
-
- const client = await viem.getPublicClient();
- const chainId = await client.getChainId();
-
- const nonce = 0n;
- const from = account.address;
- const to = "0x0b306bf915c4d645ff596e518faf3f9669b97016";
- const tokenId = 1n;
- const amount = 998999905426735528144n;
- const gasFee = 0n;
- const metaTransactionType = 1;
-
- const signature = await account.signTypedData({
- domain: {
- name,
- version,
- chainId,
- verifyingContract,
- },
- primaryType: "CurvyMetaTransaction",
- types: {
- CurvyMetaTransaction: [
- { name: "nonce", type: "uint256" },
- { name: "from", type: "address" },
- { name: "to", type: "address" },
- { name: "tokenId", type: "uint256" },
- { name: "amount", type: "uint256" },
- { name: "gasFee", type: "uint256" },
- { name: "metaTransactionType", type: "uint8" },
- ],
- },
- message: {
- nonce,
- from,
- to,
- tokenId,
- amount,
- gasFee,
- metaTransactionType,
- },
- });
-
- await curvyVault.write._validateSignature_Harness([
- { from, to, tokenId, amount, gasFee, metaTransactionType },
- signature,
- ]);
-}, 5000000);
diff --git a/test/portal-recovery.test.ts b/test/portal-recovery.test.ts
deleted file mode 100644
index df32176..0000000
--- a/test/portal-recovery.test.ts
+++ /dev/null
@@ -1,116 +0,0 @@
-import fs from "node:fs";
-import { network } from "hardhat";
-import { privateKeyToAccount } from "viem/accounts";
-import { expect, test } from "vitest";
-
-test("portal-recovery", async () => {
- // 1. Setup
- const ownerHash = 702705117071108858750548073842146797693190729490869702449519502701872077655n;
- const tokenId = 2n;
- const amount = 2797004n;
-
- const networkObj = await network.connect({ network: "anvil" });
-
- const { viem } = networkObj;
- const deployedAddressesPath = "./ignition/deployments/local_anvil/deployed_addresses.json";
- const deployedAddresses = JSON.parse(fs.readFileSync(deployedAddressesPath, "utf8"));
-
- const portalFactoryAddress = deployedAddresses["PortalFactoryAggregatorModule#PortalFactory"];
- if (!portalFactoryAddress) {
- throw new Error("PortalFactory address not found for anvil");
- }
-
- const erc20MockAddress = deployedAddresses["Devenv#ERC20Mock"];
- if (!erc20MockAddress) {
- throw new Error("ERC20Mock address not found for anvil");
- }
-
- const portalFactory = await viem.getContractAt("PortalFactory", portalFactoryAddress);
- const erc20Mock = await viem.getContractAt("ERC20Mock", erc20MockAddress);
-
- const publicClient = await viem.getPublicClient();
-
- const user = privateKeyToAccount("0x49593edf99c94e11b7e1e6f98387af4b5bb996ee76723f0ab5a658ba643d1058");
- const userClient = await viem.getWalletClient(user.address);
-
- // 2. Transfer tokens to portal
- const expectedPortalAddress = await portalFactory.read.getPortalAddress([ownerHash, user.address]);
-
- const { request } = await publicClient.simulateContract({
- account: user,
- address: erc20MockAddress,
- abi: [
- {
- inputs: [
- {
- internalType: "address",
- name: "to",
- type: "address",
- },
- {
- internalType: "uint256",
- name: "value",
- type: "uint256",
- },
- ],
- name: "transfer",
- outputs: [
- {
- internalType: "bool",
- name: "",
- type: "bool",
- },
- ],
- stateMutability: "nonpayable",
- type: "function",
- },
- ],
- functionName: "transfer",
- args: [expectedPortalAddress, amount],
- });
-
- const hash = await userClient.writeContract(request);
-
- const receipt = await publicClient.waitForTransactionReceipt({ hash });
-
- expect(receipt).toBeDefined();
-
- // 3. Deploy Portal with INVALID token in Note
- console.log("Deploying Portal with invalid token");
- const deployHash = await portalFactory.write.deployAndShield([
- {
- ownerHash,
- token: tokenId,
- amount: amount,
- },
- user.address,
- ]);
-
- const deployReceipt = await publicClient.waitForTransactionReceipt({
- hash: deployHash,
- });
- expect(deployReceipt.status).toBe("success");
-
- const portal = await viem.getContractAt("Portal", expectedPortalAddress);
-
- const recovery = await portal.read.recovery();
- expect(recovery.toLowerCase()).toBe(user.address.toLowerCase());
-
- const portalBalance = await erc20Mock.read.balanceOf([expectedPortalAddress]);
- expect(portalBalance).toBe(amount);
-
- // 4. Recover Funds
- console.log("Recovering funds");
- const recoverHash = await portal.write.recover([erc20Mock.address, user.address], { account: user });
-
- const recoverReceipt = await publicClient.waitForTransactionReceipt({
- hash: recoverHash,
- });
- expect(recoverReceipt.status).toBe("success");
-
- // 5. Verify Balance
- const portalBalanceAfter = await erc20Mock.read.balanceOf([expectedPortalAddress]);
- expect(portalBalanceAfter).toBe(0n);
-
- console.log("Recover successful!");
-}, 30_000);
diff --git a/wipe.sh b/wipe.sh
index 0cc98ad..f30da05 100644
--- a/wipe.sh
+++ b/wipe.sh
@@ -16,7 +16,6 @@ set -ex
# pnpm hardhat ignition wipe production_arbitrum MainDeploymentModule#PortalFactory~PortalFactory.updateConfig
# pnpm hardhat ignition wipe production_arbitrum MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV6.updateConfig
-# pnpm hardhat ignition wipe production_arbitrum MainDeploymentModule#CurvyAggregatorAlpha~CurvyAggregatorAlphaV5.updateConfig
# pnpm hardhat ignition wipe production_arbitrum PortalFactory#PortalFactory
# pnpm hardhat ignition wipe production_arbitrum PortalFactory#ReadEvent_PortalFactory
# pnpm hardhat ignition wipe production_arbitrum PortalFactory#CreateX_PortalFactory